org.activiti.engine.impl.juel
类 AstProperty

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

public abstract class AstProperty
extends AstNode


字段摘要
protected  boolean lvalue
           
protected  AstNode prefix
           
protected  boolean strict
           
 
构造方法摘要
AstProperty(AstNode prefix, boolean lvalue, boolean strict)
           
 
方法摘要
 Object eval(Bindings bindings, ELContext context)
           
protected  Method findMethod(String name, Class<?> clazz, Class<?> returnType, Class<?>[] paramTypes)
           
 AstNode getChild(int i)
          Get i'th child
 MethodInfo getMethodInfo(Bindings bindings, ELContext context, Class<?> returnType, Class<?>[] paramTypes)
          Get method information.
protected  AstNode getPrefix()
           
protected abstract  Object getProperty(Bindings bindings, ELContext context)
           
 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.
 
从类 org.activiti.engine.impl.juel.AstNode 继承的方法
appendStructure, getStructuralId, getValue
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 org.activiti.engine.impl.juel.Node 继承的方法
getCardinality
 

字段详细信息

prefix

protected final AstNode prefix

lvalue

protected final boolean lvalue

strict

protected final boolean strict
构造方法详细信息

AstProperty

public AstProperty(AstNode prefix,
                   boolean lvalue,
                   boolean strict)
方法详细信息

getProperty

protected abstract Object getProperty(Bindings bindings,
                                      ELContext context)
                               throws ELException
抛出:
ELException

getPrefix

protected AstNode getPrefix()

getValueReference

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

返回:
value reference

eval

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

isLiteralText

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

isLeftValue

public final 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.

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)
                   throws ELException
从接口 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
抛出:
ELException

setValue

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

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

findMethod

protected Method findMethod(String name,
                            Class<?> clazz,
                            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.

参数:
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

getChild

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



Copyright © 2013 Alfresco. All rights reserved.