org.activiti.engine.impl.juel
类 ObjectValueExpression

java.lang.Object
  继承者 org.activiti.engine.impl.javax.el.Expression
      继承者 org.activiti.engine.impl.javax.el.ValueExpression
          继承者 org.activiti.engine.impl.juel.ObjectValueExpression
所有已实现的接口:
Serializable

public final class ObjectValueExpression
extends ValueExpression

Object wrapper expression.

作者:
Christoph Beck
另请参见:
序列化表格

构造方法摘要
ObjectValueExpression(TypeConverter converter, Object object, Class<?> type)
          Wrap an object into a value expression.
 
方法摘要
 boolean equals(Object obj)
          Two object value expressions are equal if and only if their wrapped objects are equal.
 Class<?> getExpectedType()
          Returns the type the result of the expression will be coerced to after evaluation.
 String getExpressionString()
          Answer null.
 Class<?> getType(ELContext context)
          Answer null.
 Object getValue(ELContext context)
          Answer the wrapped object, coerced to the expected type.
 int hashCode()
          Returns the hash code for this Expression.
 boolean isLiteralText()
          Answer false.
 boolean isReadOnly(ELContext context)
          Answer true.
 void setValue(ELContext context, Object value)
          Throw an exception.
 String toString()
           
 
从类 org.activiti.engine.impl.javax.el.ValueExpression 继承的方法
getValueReference
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

ObjectValueExpression

public ObjectValueExpression(TypeConverter converter,
                             Object object,
                             Class<?> type)
Wrap an object into a value expression.

参数:
converter - type converter
object - the object to wrap
type - the expected type this object will be coerced in getValue(ELContext).
方法详细信息

equals

public boolean equals(Object obj)
Two object value expressions are equal if and only if their wrapped objects are equal.

指定者:
Expression 中的 equals
参数:
obj - the Object to test for equality.
返回:
true if obj equals this Expression; false otherwise.

hashCode

public int hashCode()
从类 Expression 复制的描述
Returns the hash code for this Expression. See the note in the Expression.equals(Object) method on how two expressions can be equal if their expression Strings are different. Recall that if two objects are equal according to the equals(Object) method, then calling the hashCode method on each of the two objects must produce the same integer result. Implementations must take special note and implement hashCode correctly.

指定者:
Expression 中的 hashCode
返回:
The hash code for this Expression.
另请参见:
Expression.equals(Object), Hashtable, Object.hashCode()

getValue

public Object getValue(ELContext context)
Answer the wrapped object, coerced to the expected type.

指定者:
ValueExpression 中的 getValue
参数:
context - The context of this evaluation.
返回:
The result of the expression evaluation.

getExpressionString

public String getExpressionString()
Answer null.

指定者:
Expression 中的 getExpressionString
返回:
The original expression String.

isLiteralText

public boolean isLiteralText()
Answer false.

指定者:
Expression 中的 isLiteralText
返回:
true if this expression was created from only literal text; false otherwise.

getType

public Class<?> getType(ELContext context)
Answer null.

指定者:
ValueExpression 中的 getType
参数:
context - The context of this evaluation.
返回:
the most general acceptable type; otherwise undefined.

isReadOnly

public boolean isReadOnly(ELContext context)
Answer true.

指定者:
ValueExpression 中的 isReadOnly
参数:
context - The context of this evaluation.
返回:
true if the expression is read-only or false if not.

setValue

public void setValue(ELContext context,
                     Object value)
Throw an exception.

指定者:
ValueExpression 中的 setValue
参数:
context - The context of this evaluation.
value - The new value to be set.

toString

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

getExpectedType

public Class<?> getExpectedType()
从类 ValueExpression 复制的描述
Returns the type the result of the expression will be coerced to after evaluation.

指定者:
ValueExpression 中的 getExpectedType
返回:
the expectedType passed to the ExpressionFactory.createValueExpression method that created this ValueExpression.


Copyright © 2013 Alfresco. All rights reserved.