org.activiti.engine.impl.juel
类 AstIdentifier

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

public class AstIdentifier
extends AstNode
implements IdentifierNode


构造方法摘要
AstIdentifier(String name, int index)
           
 
方法摘要
 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)
protected  Method getMethod(Bindings bindings, ELContext context, Class<?> returnType, Class<?>[] paramTypes)
           
 MethodInfo getMethodInfo(Bindings bindings, ELContext context, Class<?> returnType, Class<?>[] paramTypes)
          Get method information.
 String getName()
          Get the identifier name
 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[] params)
          Invoke method.
 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
 

构造方法详细信息

AstIdentifier

public AstIdentifier(String name,
                     int index)
方法详细信息

getType

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

指定者:
接口 ExpressionNode 中的 getType
参数:
bindings - bindings containing variables and functions
context - evaluation context
返回:
accepted type or null for non-lvalue nodes

isLeftValue

public boolean isLeftValue()
指定者:
接口 ExpressionNode 中的 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()
指定者:
接口 ExpressionNode 中的 isMethodInvocation
返回:
true if the subtree rooted at this node is a method invocation.

isLiteralText

public boolean isLiteralText()
指定者:
接口 ExpressionNode 中的 isLiteralText
返回:
true if this node represents literal text

getValueReference

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

指定者:
接口 ExpressionNode 中的 getValueReference
返回:
value reference

eval

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

setValue

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

指定者:
接口 ExpressionNode 中的 setValue
参数:
bindings - bindings containing variables and functions
context - evaluation context
value - value to set

isReadOnly

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

指定者:
接口 ExpressionNode 中的 isReadOnly
参数:
bindings - bindings containing variables and functions
context - evaluation context
返回:
true if this a read-only expression node

getMethod

protected Method getMethod(Bindings bindings,
                           ELContext context,
                           Class<?> returnType,
                           Class<?>[] paramTypes)

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.

指定者:
接口 ExpressionNode 中的 getMethodInfo
参数:
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[] params)
从接口 ExpressionNode 复制的描述
Invoke method.

指定者:
接口 ExpressionNode 中的 invoke
参数:
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
params - parameter values
返回:
result of the method invocation

toString

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

appendStructure

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

getIndex

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

指定者:
接口 IdentifierNode 中的 getIndex

getName

public String getName()
从接口 IdentifierNode 复制的描述
Get the identifier name

指定者:
接口 IdentifierNode 中的 getName

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.