Class ObjectValueExpression

java.lang.Object
jakarta.el.Expression
jakarta.el.ValueExpression
org.camunda.bpm.impl.juel.ObjectValueExpression
All Implemented Interfaces:
Serializable

public final class ObjectValueExpression extends jakarta.el.ValueExpression
Object wrapper expression.
Author:
Christoph Beck
See Also:
  • Constructor Details

    • ObjectValueExpression

      public ObjectValueExpression(TypeConverter converter, Object object, Class<?> type)
      Wrap an object into a value expression.
      Parameters:
      converter - type converter
      object - the object to wrap
      type - the expected type this object will be coerced in getValue(ELContext).
  • Method Details

    • equals

      public boolean equals(Object obj)
      Two object value expressions are equal if and only if their wrapped objects are equal.
      Specified by:
      equals in class jakarta.el.Expression
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class jakarta.el.Expression
    • getValue

      public Object getValue(jakarta.el.ELContext context)
      Answer the wrapped object, coerced to the expected type.
      Specified by:
      getValue in class jakarta.el.ValueExpression
    • getExpressionString

      public String getExpressionString()
      Answer null.
      Specified by:
      getExpressionString in class jakarta.el.Expression
    • isLiteralText

      public boolean isLiteralText()
      Answer false.
      Specified by:
      isLiteralText in class jakarta.el.Expression
    • getType

      public Class<?> getType(jakarta.el.ELContext context)
      Answer null.
      Specified by:
      getType in class jakarta.el.ValueExpression
    • isReadOnly

      public boolean isReadOnly(jakarta.el.ELContext context)
      Answer true.
      Specified by:
      isReadOnly in class jakarta.el.ValueExpression
    • setValue

      public void setValue(jakarta.el.ELContext context, Object value)
      Throw an exception.
      Specified by:
      setValue in class jakarta.el.ValueExpression
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getExpectedType

      public Class<?> getExpectedType()
      Specified by:
      getExpectedType in class jakarta.el.ValueExpression