org.activiti.engine.impl.juel
类 AstFunction

java.lang.Object
  继承者 org.activiti.engine.impl.juel.AstNode
      继承者 org.activiti.engine.impl.juel.AstRightValue
          继承者 org.activiti.engine.impl.juel.AstFunction
所有已实现的接口:
ExpressionNode, FunctionNode, Node

public class AstFunction
extends AstRightValue
implements FunctionNode


构造方法摘要
AstFunction(String name, int index, AstParameters params)
           
AstFunction(String name, int index, AstParameters params, boolean varargs)
           
 
方法摘要
 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. preorder index)
 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()
           
 
从类 org.activiti.engine.impl.juel.AstRightValue 继承的方法
getMethodInfo, getType, getValueReference, invoke, isLeftValue, isLiteralText, isMethodInvocation, isReadOnly, setValue
 
从类 org.activiti.engine.impl.juel.AstNode 继承的方法
getStructuralId, getValue
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

AstFunction

public AstFunction(String name,
                   int index,
                   AstParameters params)

AstFunction

public AstFunction(String name,
                   int index,
                   AstParameters params,
                   boolean varargs)
方法详细信息

invoke

protected Object invoke(Bindings bindings,
                        ELContext context,
                        Object base,
                        Method method)
                 throws InvocationTargetException,
                        IllegalAccessException
Invoke method.

参数:
bindings -
context -
base -
method -
返回:
method result
抛出:
InvocationTargetException
IllegalAccessException

eval

public Object eval(Bindings bindings,
                   ELContext context)
指定者:
AstNode 中的 eval

toString

public String toString()
覆盖:
Object 中的 toString

appendStructure

public void appendStructure(StringBuilder b,
                            Bindings bindings)
指定者:
AstNode 中的 appendStructure

getIndex

public int getIndex()
从接口 FunctionNode 复制的描述
Get the unique index of this identifier in the expression (e.g. preorder index)

指定者:
接口 FunctionNode 中的 getIndex

getName

public String getName()
从接口 FunctionNode 复制的描述
Get the full function name

指定者:
接口 FunctionNode 中的 getName

isVarArgs

public boolean isVarArgs()
指定者:
接口 FunctionNode 中的 isVarArgs
返回:
true if this node supports varargs.

getParamCount

public int getParamCount()
从接口 FunctionNode 复制的描述
Get the number of parameters for this function

指定者:
接口 FunctionNode 中的 getParamCount

getParam

protected AstNode getParam(int i)

getCardinality

public int getCardinality()
从接口 Node 复制的描述
Get the node's number of children.

指定者:
接口 Node 中的 getCardinality

getChild

public AstNode getChild(int i)
从接口 Node 复制的描述
Get i'th child

指定者:
接口 Node 中的 getChild


Copyright © 2013 Alfresco. All rights reserved.