Class X.Var

java.lang.Object
com.zfabrik.util.expression.X
com.zfabrik.util.expression.X.Var
Enclosing class:
X

public static class X.Var extends X
Variable of field value operator. The value of the X.Var operator is to denote a variable or field name. During evaluation this name should be resolved to a value.

In the default map context evaluation, the map value for the variable name is returned as evaluation result

Author:
hb
  • Constructor Details

    • Var

      public Var(String name)
  • Method Details

    • get

      public String get()
    • eval

      public Object eval(Map<String,Object> context)
      Description copied from class: X
      Evaluation of the expression over a map style context that defines variable values.
      Specified by:
      eval in class X
    • toString

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object