org.activiti.engine.impl.juel
类 Tree

java.lang.Object
  继承者 org.activiti.engine.impl.juel.Tree

public class Tree
extends Object

Parsed expression, usually created by a TreeBuilder. The bind(FunctionMapper, VariableMapper) method is used to create Bindings, which are needed at evaluation time to lookup functions and variables. The tree itself does not contain such information, because it would make the tree depend on the function/variable mapper supplied at parse time.

作者:
Christoph Beck

构造方法摘要
Tree(ExpressionNode root, Collection<FunctionNode> functions, Collection<IdentifierNode> identifiers, boolean deferred)
          Constructor.
 
方法摘要
 Bindings bind(FunctionMapper fnMapper, VariableMapper varMapper)
          Create a bindings.
 Bindings bind(FunctionMapper fnMapper, VariableMapper varMapper, TypeConverter converter)
          Create a bindings.
 Iterable<FunctionNode> getFunctionNodes()
          Get function nodes (in no particular order)
 Iterable<IdentifierNode> getIdentifierNodes()
          Get identifier nodes (in no particular order)
 ExpressionNode getRoot()
           
 boolean isDeferred()
           
 String toString()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

Tree

public Tree(ExpressionNode root,
            Collection<FunctionNode> functions,
            Collection<IdentifierNode> identifiers,
            boolean deferred)
Constructor.

参数:
root - root node
functions - collection of function nodes
identifiers - collection of identifier nodes
方法详细信息

getFunctionNodes

public Iterable<FunctionNode> getFunctionNodes()
Get function nodes (in no particular order)


getIdentifierNodes

public Iterable<IdentifierNode> getIdentifierNodes()
Get identifier nodes (in no particular order)


getRoot

public ExpressionNode getRoot()
返回:
root node

isDeferred

public boolean isDeferred()

toString

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

bind

public Bindings bind(FunctionMapper fnMapper,
                     VariableMapper varMapper)
Create a bindings.

参数:
fnMapper - the function mapper to use
varMapper - the variable mapper to use
返回:
tree bindings

bind

public Bindings bind(FunctionMapper fnMapper,
                     VariableMapper varMapper,
                     TypeConverter converter)
Create a bindings.

参数:
fnMapper - the function mapper to use
varMapper - the variable mapper to use
converter - custom type converter
返回:
tree bindings


Copyright © 2013 Alfresco. All rights reserved.