Class ELXelExpression

java.lang.Object
org.zkoss.xel.zel.ELXelExpression
All Implemented Interfaces:
Serializable, Expression, ExpressionX

public class ELXelExpression extends Object implements ExpressionX, Serializable
An XEL Expression that is based on ZEL ValueExpression.
Since:
6.0.0
Author:
henrichen
See Also:
  • Field Details

    • _expr

      protected final org.zkoss.zel.ValueExpression _expr
  • Constructor Details

    • ELXelExpression

      public ELXelExpression(org.zkoss.zel.ValueExpression expr)
  • Method Details

    • evaluate

      public Object evaluate(XelContext xelc) throws XelException
      Description copied from interface: Expression
      Evaluates an expression that was previously prepared.
      Specified by:
      evaluate in interface Expression
      Throws:
      XelException
    • isReadOnly

      public boolean isReadOnly(XelContext xelc) throws XelException
      Description copied from interface: ExpressionX
      Returns whether this is a read only (cannot setValue) expression.
      Specified by:
      isReadOnly in interface ExpressionX
      Parameters:
      xelc - the evaluation context
      Returns:
      whether this is a read only (cannot setValue) expression.
      Throws:
      XelException
    • setValue

      public void setValue(XelContext xelc, Object value) throws XelException
      Description copied from interface: ExpressionX
      Set values into the property resolved by this expression.
      Specified by:
      setValue in interface ExpressionX
      Parameters:
      xelc - the evaluation context
      value - the value to be set into the property resolved by this expression
      Throws:
      XelException
    • getExpressionString

      public String getExpressionString()
      Description copied from interface: ExpressionX
      Returns the expression in String form.
      Specified by:
      getExpressionString in interface ExpressionX
      Returns:
      the expression in String form.
    • getType

      public Class getType(XelContext xelc)
      Description copied from interface: ExpressionX
      Returns the result type of this expression.
      Specified by:
      getType in interface ExpressionX
      Parameters:
      xelc - the evaluation context
      Returns:
      the result type of this expression.
    • getValueReference

      public ValueReference getValueReference(XelContext xelc)
      Description copied from interface: ExpressionX
      Returns the target bean and field name of this expression.
      Specified by:
      getValueReference in interface ExpressionX
      Parameters:
      xelc - the evaluation context
      Returns:
      the target bean and field name of this expression.
    • newELContext

      protected org.zkoss.zel.ELContext newELContext(XelContext xelc)