org.activiti.engine.impl.juel
类 AstRightValue

java.lang.Object
  继承者 org.activiti.engine.impl.juel.AstNode
      继承者 org.activiti.engine.impl.juel.AstRightValue
所有已实现的接口:
ExpressionNode, Node
直接已知子类:
AstBinary, AstChoice, AstComposite, AstFunction, AstLiteral, AstNested, AstParameters, AstUnary

public abstract class AstRightValue
extends AstNode

作者:
Christoph Beck

构造方法摘要
AstRightValue()
           
 
方法摘要
 MethodInfo getMethodInfo(Bindings bindings, ELContext context, Class<?> returnType, Class<?>[] paramTypes)
          Get method information.
 Class<?> getType(Bindings bindings, ELContext context)
          according to the spec, the result is undefined for rvalues, so answer null
 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()
          Answer false
 boolean isMethodInvocation()
           
 boolean isReadOnly(Bindings bindings, ELContext context)
          non-lvalues are always readonly, so answer true
 void setValue(Bindings bindings, ELContext context, Object value)
          non-lvalues are always readonly, so throw an exception
 
从类 org.activiti.engine.impl.juel.AstNode 继承的方法
appendStructure, eval, getStructuralId, getValue
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 org.activiti.engine.impl.juel.Node 继承的方法
getCardinality, getChild
 

构造方法详细信息

AstRightValue

public AstRightValue()
方法详细信息

isLiteralText

public final boolean isLiteralText()
Answer false

返回:
true if this node represents literal text

getType

public final Class<?> getType(Bindings bindings,
                              ELContext context)
according to the spec, the result is undefined for rvalues, so answer null

参数:
bindings - bindings containing variables and functions
context - evaluation context
返回:
accepted type or null for non-lvalue nodes

isReadOnly

public final boolean isReadOnly(Bindings bindings,
                                ELContext context)
non-lvalues are always readonly, so answer true

参数:
bindings - bindings containing variables and functions
context - evaluation context
返回:
true if this a read-only expression node

setValue

public final void setValue(Bindings bindings,
                           ELContext context,
                           Object value)
non-lvalues are always readonly, so throw an exception

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

getMethodInfo

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

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.

getValueReference

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

返回:
value reference


Copyright © 2013 Alfresco. All rights reserved.