|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.odysseus.el.tree.impl.ast.AstNode
de.odysseus.el.tree.impl.ast.AstRightValue
de.odysseus.el.tree.impl.ast.AstFunction
public class AstFunction
| Constructor Summary | |
|---|---|
AstFunction(java.lang.String name,
int index,
AstParameters params)
|
|
AstFunction(java.lang.String name,
int index,
AstParameters params,
boolean varargs)
|
|
| Method Summary | |
|---|---|
void |
appendStructure(java.lang.StringBuilder b,
Bindings bindings)
|
java.lang.Object |
eval(Bindings bindings,
ELContext context)
|
int |
getCardinality()
Get the node's number of children. |
AstNode |
getChild(int i)
Get i'th child |
int |
getIndex()
Get the unique index of this identifier in the expression (e.g. |
java.lang.String |
getName()
Get the full function name |
protected AstNode |
getParam(int i)
|
int |
getParamCount()
Get the number of parameters for this function |
protected java.lang.Object |
invoke(Bindings bindings,
ELContext context,
java.lang.Object base,
java.lang.reflect.Method method)
Invoke method. |
boolean |
isVarArgs()
|
java.lang.String |
toString()
|
| Methods inherited from class de.odysseus.el.tree.impl.ast.AstRightValue |
|---|
getMethodInfo, getType, getValueReference, invoke, isLeftValue, isLiteralText, isMethodInvocation, isReadOnly, setValue |
| Methods inherited from class de.odysseus.el.tree.impl.ast.AstNode |
|---|
findAccessibleMethod, getStructuralId, getValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AstFunction(java.lang.String name,
int index,
AstParameters params)
public AstFunction(java.lang.String name,
int index,
AstParameters params,
boolean varargs)
| Method Detail |
|---|
protected java.lang.Object invoke(Bindings bindings,
ELContext context,
java.lang.Object base,
java.lang.reflect.Method method)
throws java.lang.reflect.InvocationTargetException,
java.lang.IllegalAccessException
bindings - context - base - method -
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
public java.lang.Object eval(Bindings bindings,
ELContext context)
eval in class AstNodepublic java.lang.String toString()
toString in class java.lang.Object
public void appendStructure(java.lang.StringBuilder b,
Bindings bindings)
appendStructure in class AstNodepublic int getIndex()
FunctionNode
getIndex in interface FunctionNodepublic java.lang.String getName()
FunctionNode
getName in interface FunctionNodepublic boolean isVarArgs()
isVarArgs in interface FunctionNodetrue if this node supports varargs.public int getParamCount()
FunctionNode
getParamCount in interface FunctionNodeprotected AstNode getParam(int i)
public int getCardinality()
Node
getCardinality in interface Nodepublic AstNode getChild(int i)
Node
getChild in interface Node
|
Copyright © 2006-2009 Odysseus Software GmbH. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||