org.activiti.engine.impl.juel
类 AstMethod

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

public class AstMethod
extends AstNode


构造方法摘要
AstMethod(AstProperty property, AstParameters params)
           
 
方法摘要
 void appendStructure(StringBuilder builder, Bindings bindings)
           
 Object eval(Bindings bindings, ELContext context)
           
 int getCardinality()
          Get the node's number of children.
 Node 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 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
 

构造方法详细信息

AstMethod

public AstMethod(AstProperty property,
                 AstParameters params)
方法详细信息

isLiteralText

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

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

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

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

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 final ValueReference getValueReference(Bindings bindings,
                                              ELContext context)
从接口 ExpressionNode 复制的描述
Get value reference.

返回:
value reference

appendStructure

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

eval

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

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

getCardinality

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


getChild

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


toString

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


Copyright © 2013 Alfresco. All rights reserved.