org.camunda.bpm.engine.impl.juel
Class AstFunction

java.lang.Object
  extended by org.camunda.bpm.engine.impl.juel.AstNode
      extended by org.camunda.bpm.engine.impl.juel.AstRightValue
          extended by org.camunda.bpm.engine.impl.juel.AstFunction
All Implemented Interfaces:
ExpressionNode, FunctionNode, Node

public class AstFunction
extends AstRightValue
implements FunctionNode


Constructor Summary
AstFunction(String name, int index, AstParameters params)
           
AstFunction(String name, int index, AstParameters params, boolean varargs)
           
 
Method Summary
 void appendStructure(StringBuilder b, Bindings bindings)
           
 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.
 String getName()
          Get the full function name
protected  AstNode getParam(int i)
           
 int getParamCount()
          Get the number of parameters for this function
protected  Object invoke(Bindings bindings, ELContext context, Object base, Method method)
          Invoke method.
 boolean isVarArgs()
           
 String toString()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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:
InvocationTargetException
IllegalAccessException

eval

public Object eval(Bindings bindings,
                   ELContext context)
Specified by:
eval in class AstNode

toString

public String toString()
Overrides:
toString in class Object

appendStructure

public void appendStructure(StringBuilder b,
                            Bindings bindings)
Specified by:
appendStructure in class AstNode

getIndex

public int getIndex()
Description copied from interface: FunctionNode
Get the unique index of this identifier in the expression (e.g. preorder index)

Specified by:
getIndex in interface FunctionNode

getName

public String getName()
Description copied from interface: FunctionNode
Get the full function name

Specified by:
getName in interface FunctionNode

isVarArgs

public boolean isVarArgs()
Specified by:
isVarArgs in interface FunctionNode
Returns:
true if this node supports varargs.

getParamCount

public int getParamCount()
Description copied from interface: FunctionNode
Get the number of parameters for this function

Specified by:
getParamCount in interface FunctionNode

getParam

protected AstNode getParam(int i)

getCardinality

public int getCardinality()
Description copied from interface: Node
Get the node's number of children.

Specified by:
getCardinality in interface Node

getChild

public AstNode getChild(int i)
Description copied from interface: Node
Get i'th child

Specified by:
getChild in interface Node


Copyright © 2015 camunda services GmbH. All rights reserved.