public class Bindings extends Object implements TypeConverter
Tree
.DEFAULT
Constructor and Description |
---|
Bindings(Method[] functions,
ValueExpression[] variables)
Constructor.
|
Bindings(Method[] functions,
ValueExpression[] variables,
TypeConverter converter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<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.
|
public Bindings(Method[] functions, ValueExpression[] variables)
public Bindings(Method[] functions, ValueExpression[] variables, TypeConverter converter)
public 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(Object value, Class<T> type)
convert
in interface TypeConverter
value
- value to converttype
- target typeELException
Copyright © 2017. All rights reserved.