org.camunda.bpm.engine.impl.juel
Class Bindings

java.lang.Object
  extended by org.camunda.bpm.engine.impl.juel.Bindings
All Implemented Interfaces:
Serializable, TypeConverter

public class Bindings
extends Object
implements TypeConverter

Bindings, usually created by a Tree.

Author:
Christoph Beck
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.camunda.bpm.engine.impl.juel.TypeConverter
DEFAULT
 
Constructor Summary
Bindings(Method[] functions, ValueExpression[] variables)
          Constructor.
Bindings(Method[] functions, ValueExpression[] variables, TypeConverter converter)
          Constructor.
 
Method Summary
<T> T
convert(Object value, Class<T> type)
          Apply type conversion.
 boolean equals(Object obj)
           
 Method getFunction(int index)
          Get function by index.
 ValueExpression getVariable(int index)
          Get variable by index.
 int hashCode()
           
 boolean isFunctionBound(int index)
          Test if given index is bound to a function.
 boolean isVariableBound(int index)
          Test if given index is bound to a variable.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bindings

public Bindings(Method[] functions,
                ValueExpression[] variables)
Constructor.


Bindings

public Bindings(Method[] functions,
                ValueExpression[] variables,
                TypeConverter converter)
Constructor.

Method Detail

getFunction

public Method getFunction(int index)
Get function by index.

Parameters:
index - function index
Returns:
method

isFunctionBound

public boolean isFunctionBound(int index)
Test if given index is bound to a function. This method performs an index check.

Parameters:
index - identifier index
Returns:
true if the given index is bound to a function

getVariable

public ValueExpression getVariable(int index)
Get variable by index.

Parameters:
index - identifier index
Returns:
value expression

isVariableBound

public boolean isVariableBound(int index)
Test if given index is bound to a variable. This method performs an index check.

Parameters:
index - identifier index
Returns:
true if the given index is bound to a variable

convert

public <T> T convert(Object value,
                     Class<T> type)
Apply type conversion.

Specified by:
convert in interface TypeConverter
Parameters:
value - value to convert
type - target type
Returns:
converted value
Throws:
ELException

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2017 camunda services GmbH. All rights reserved.