Package org.camunda.bpm.impl.juel
Class AstFunction
java.lang.Object
org.camunda.bpm.impl.juel.AstNode
org.camunda.bpm.impl.juel.AstRightValue
org.camunda.bpm.impl.juel.AstFunction
- All Implemented Interfaces:
ExpressionNode,FunctionNode,Node
-
Constructor Summary
ConstructorsConstructorDescriptionAstFunction(String name, int index, AstParameters params) AstFunction(String name, int index, AstParameters params, boolean varargs) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendStructure(StringBuilder b, Bindings bindings) intGet the node's number of children.getChild(int i) Get i'th childintgetIndex()Get the unique index of this identifier in the expression (e.g.getName()Get the full function nameprotected AstNodegetParam(int i) intGet the number of parameters for this functionprotected ObjectInvoke method.booleantoString()Methods inherited from class org.camunda.bpm.impl.juel.AstRightValue
getMethodInfo, getType, getValueReference, invoke, isLeftValue, isLiteralText, isMethodInvocation, isReadOnly, setValueMethods inherited from class org.camunda.bpm.impl.juel.AstNode
getStructuralId, getValue
-
Constructor Details
-
AstFunction
-
AstFunction
-
-
Method Details
-
invoke
protected Object invoke(Bindings bindings, jakarta.el.ELContext context, Object base, Method method) throws InvocationTargetException, IllegalAccessException Invoke method.- Parameters:
bindings-context-base-method-- Returns:
- method result
- Throws:
InvocationTargetExceptionIllegalAccessException
-
eval
-
toString
-
appendStructure
- 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
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
-
getCardinality
public int getCardinality()Description copied from interface:NodeGet the node's number of children.- Specified by:
getCardinalityin interfaceNode
-
getChild
Description copied from interface:NodeGet i'th child
-