org.activiti.engine.impl.juel
类 AstNode

java.lang.Object
  继承者 org.activiti.engine.impl.juel.AstNode
所有已实现的接口:
ExpressionNode, Node
直接已知子类:
AstEval, AstIdentifier, AstMethod, AstProperty, AstRightValue, AstText

public abstract class AstNode
extends Object
implements ExpressionNode


构造方法摘要
AstNode()
           
 
方法摘要
abstract  void appendStructure(StringBuilder builder, Bindings bindings)
           
abstract  Object eval(Bindings bindings, ELContext context)
           
 String getStructuralId(Bindings bindings)
          Get the canonical expression string for this node.
 Object getValue(Bindings bindings, ELContext context, Class<?> type)
          evaluate and return the (optionally coerced) result.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 org.activiti.engine.impl.juel.ExpressionNode 继承的方法
getMethodInfo, getType, getValueReference, invoke, isLeftValue, isLiteralText, isMethodInvocation, isReadOnly, setValue
 
从接口 org.activiti.engine.impl.juel.Node 继承的方法
getCardinality, getChild
 

构造方法详细信息

AstNode

public AstNode()
方法详细信息

getValue

public final Object getValue(Bindings bindings,
                             ELContext context,
                             Class<?> type)
evaluate and return the (optionally coerced) result.

指定者:
接口 ExpressionNode 中的 getValue
参数:
bindings - bindings containing variables and functions
context - evaluation context
type - result type
返回:
evaluated node, coerced to the expected type

appendStructure

public abstract void appendStructure(StringBuilder builder,
                                     Bindings bindings)

eval

public abstract Object eval(Bindings bindings,
                            ELContext context)

getStructuralId

public final String getStructuralId(Bindings bindings)
从接口 ExpressionNode 复制的描述
Get the canonical expression string for this node. Variable and funtion names will be replaced in a way such that two expression nodes that have the same node structure and bindings will also answer the same value here.

For example, "${foo:bar()+2*foobar}" may lead to "${<fn>() + 2 * <var>}" if foobar is a bound variable. Otherwise, the structural id would be "${<fn>() + 2 * foobar}".

If the bindings is null, the full canonical subexpression is returned.

指定者:
接口 ExpressionNode 中的 getStructuralId


Copyright © 2013 Alfresco. All rights reserved.