Package de.odysseus.el.tree
Class Bindings
java.lang.Object
de.odysseus.el.tree.Bindings
- All Implemented Interfaces:
TypeConverter
,Serializable
Bindings, usually created by a
Tree
.- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeConverter
private Method[]
private static final Method[]
private static final javax.el.ValueExpression[]
private static final long
private final javax.el.ValueExpression[]
Fields inherited from interface de.odysseus.el.misc.TypeConverter
DEFAULT
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.Bindings
(Method[] functions, javax.el.ValueExpression[] variables, TypeConverter converter) Constructor. -
Method Summary
Modifier and TypeMethodDescription<T> T
Apply type conversion.boolean
getFunction
(int index) Get function by index.javax.el.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.private void
private void
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
NO_FUNCTIONS
-
NO_VARIABLES
private static final javax.el.ValueExpression[] NO_VARIABLES -
functions
-
variables
private final javax.el.ValueExpression[] variables -
converter
-
-
Constructor Details
-
Bindings
Constructor. -
Bindings
Constructor.
-
-
Method Details
-
getFunction
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 javax.el.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
Apply type conversion.- Specified by:
convert
in interfaceTypeConverter
- Parameters:
value
- value to converttype
- target type- Returns:
- converted value
- Throws:
javax.el.ELException
-
equals
-
hashCode
public int hashCode() -
writeObject
- Throws:
IOException
ClassNotFoundException
-
readObject
- Throws:
IOException
ClassNotFoundException
-