org.activiti.engine.impl.juel
类 AstEval

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

public final class AstEval
extends AstNode


构造方法摘要
AstEval(AstNode child, boolean deferred)
           
 
方法摘要
 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
 MethodInfo getMethodInfo(Bindings bindings, ELContext context, Class<?> returnType, Class<?>[] paramTypes)
          Get method information.
 Class<?> getType(Bindings bindings, ELContext context)
          Get the value type accepted in ExpressionNode.setValue(Bindings, ELContext, Object).
 ValueReference getValueReference(Bindings bindings, ELContext context)
          Get value reference.
 Object invoke(Bindings bindings, ELContext context, Class<?> returnType, Class<?>[] paramTypes, Object[] paramValues)
          Invoke method.
 boolean isDeferred()
           
 boolean isLeftValue()
           
 boolean isLiteralText()
           
 boolean isMethodInvocation()
           
 boolean isReadOnly(Bindings bindings, ELContext context)
          Determine whether ExpressionNode.setValue(Bindings, ELContext, Object) will throw a PropertyNotWritableException.
 void setValue(Bindings bindings, ELContext context, Object value)
          Assign value.
 String toString()
           
 
从类 org.activiti.engine.impl.juel.AstNode 继承的方法
getStructuralId, getValue
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

AstEval

public AstEval(AstNode child,
               boolean deferred)
方法详细信息

isDeferred

public boolean isDeferred()

isLeftValue

public boolean isLeftValue()
返回:
true if the subtree rooted at this node could be used as an lvalue expression (identifier or property sequence with non-literal prefix).

isMethodInvocation

public boolean isMethodInvocation()
返回:
true if the subtree rooted at this node is a method invocation.

getValueReference

public ValueReference getValueReference(Bindings bindings,
                                        ELContext context)
从接口 ExpressionNode 复制的描述
Get value reference.

返回:
value reference

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

getMethodInfo

public MethodInfo getMethodInfo(Bindings bindings,
                                ELContext context,
                                Class<?> returnType,
                                Class<?>[] paramTypes)
从接口 ExpressionNode 复制的描述
Get method information. If this is a non-lvalue node, answer null.

参数:
bindings - bindings containing variables and functions
context - evaluation context
returnType - expected method return type (may be null meaning don't care)
paramTypes - expected method argument types
返回:
method information or null

invoke

public Object invoke(Bindings bindings,
                     ELContext context,
                     Class<?> returnType,
                     Class<?>[] paramTypes,
                     Object[] paramValues)
从接口 ExpressionNode 复制的描述
Invoke method.

参数:
bindings - bindings containing variables and functions
context - evaluation context
returnType - expected method return type (may be null meaning don't care)
paramTypes - expected method argument types
paramValues - parameter values
返回:
result of the method invocation

getType

public Class<?> getType(Bindings bindings,
                        ELContext context)
从接口 ExpressionNode 复制的描述
Get the value type accepted in ExpressionNode.setValue(Bindings, ELContext, Object).

参数:
bindings - bindings containing variables and functions
context - evaluation context
返回:
accepted type or null for non-lvalue nodes

isLiteralText

public boolean isLiteralText()
返回:
true if this node represents literal text

isReadOnly

public boolean isReadOnly(Bindings bindings,
                          ELContext context)
从接口 ExpressionNode 复制的描述
Determine whether ExpressionNode.setValue(Bindings, ELContext, Object) will throw a PropertyNotWritableException.

参数:
bindings - bindings containing variables and functions
context - evaluation context
返回:
true if this a read-only expression node

setValue

public void setValue(Bindings bindings,
                     ELContext context,
                     Object value)
从接口 ExpressionNode 复制的描述
Assign value.

参数:
bindings - bindings containing variables and functions
context - evaluation context
value - value to set

getCardinality

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


getChild

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



Copyright © 2013 Alfresco. All rights reserved.