Package org.camunda.bpm.engine.impl.juel
Class AstFunction
- java.lang.Object
-
- org.camunda.bpm.engine.impl.juel.AstNode
-
- org.camunda.bpm.engine.impl.juel.AstRightValue
-
- org.camunda.bpm.engine.impl.juel.AstFunction
-
- All Implemented Interfaces:
ExpressionNode,FunctionNode,Node
public class AstFunction extends AstRightValue implements FunctionNode
-
-
Constructor Summary
Constructors Constructor Description AstFunction(String name, int index, AstParameters params)AstFunction(String name, int index, AstParameters params, boolean varargs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendStructure(StringBuilder b, Bindings bindings)Objecteval(Bindings bindings, ELContext context)intgetCardinality()Get the node's number of children.AstNodegetChild(int i)Get i'th childintgetIndex()Get the unique index of this identifier in the expression (e.g.StringgetName()Get the full function nameprotected AstNodegetParam(int i)intgetParamCount()Get the number of parameters for this functionprotected Objectinvoke(Bindings bindings, ELContext context, Object base, Method method)Invoke method.booleanisVarArgs()StringtoString()-
Methods inherited from class org.camunda.bpm.engine.impl.juel.AstRightValue
getMethodInfo, getType, getValueReference, invoke, isLeftValue, isLiteralText, isMethodInvocation, isReadOnly, setValue
-
Methods inherited from class org.camunda.bpm.engine.impl.juel.AstNode
getStructuralId, getValue
-
-
-
-
Constructor Detail
-
AstFunction
public AstFunction(String name, int index, AstParameters params)
-
AstFunction
public AstFunction(String name, int index, AstParameters params, boolean varargs)
-
-
Method Detail
-
invoke
protected Object invoke(Bindings bindings, ELContext context, Object base, Method method) throws InvocationTargetException, IllegalAccessException
Invoke method.- Parameters:
bindings-context-base-method-- Returns:
- method result
- Throws:
InvocationTargetExceptionIllegalAccessException
-
appendStructure
public void appendStructure(StringBuilder b, Bindings bindings)
- Specified by:
appendStructurein classAstNode
-
getIndex
public int getIndex()
Description copied from interface:FunctionNodeGet the unique index of this identifier in the expression (e.g. preorder index)- Specified by:
getIndexin interfaceFunctionNode
-
getName
public String getName()
Description copied from interface:FunctionNodeGet the full function name- Specified by:
getNamein interfaceFunctionNode
-
isVarArgs
public boolean isVarArgs()
- Specified by:
isVarArgsin interfaceFunctionNode- Returns:
trueif this node supports varargs.
-
getParamCount
public int getParamCount()
Description copied from interface:FunctionNodeGet the number of parameters for this function- Specified by:
getParamCountin interfaceFunctionNode
-
getParam
protected AstNode getParam(int i)
-
getCardinality
public int getCardinality()
Description copied from interface:NodeGet the node's number of children.- Specified by:
getCardinalityin interfaceNode
-
-