public class Bindings extends java.lang.Object implements TypeConverter
Tree
.DEFAULT
Constructor and Description |
---|
Bindings(java.lang.reflect.Method[] functions,
ValueExpression[] variables)
Constructor.
|
Bindings(java.lang.reflect.Method[] functions,
ValueExpression[] variables,
TypeConverter converter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
convert(java.lang.Object value,
java.lang.Class<T> type)
Apply type conversion.
|
boolean |
equals(java.lang.Object obj) |
java.lang.reflect.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.
|
public Bindings(java.lang.reflect.Method[] functions, ValueExpression[] variables)
public Bindings(java.lang.reflect.Method[] functions, ValueExpression[] variables, TypeConverter converter)
public java.lang.reflect.Method getFunction(int index)
index
- function indexpublic boolean isFunctionBound(int index)
index
- identifier indextrue
if the given index is bound to a functionpublic ValueExpression getVariable(int index)
index
- identifier indexpublic boolean isVariableBound(int index)
index
- identifier indextrue
if the given index is bound to a variablepublic <T> T convert(java.lang.Object value, java.lang.Class<T> type)
convert
in interface TypeConverter
value
- value to converttype
- target typeELException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object