Package com.zfabrik.util.expression
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 theX.Varoperator 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 Summary
Constructors Constructor Description Var(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.Objecteval(java.util.Map<java.lang.String,java.lang.Object> context)Evaluation of the expression over a map style context that defines variable values.java.lang.Stringget()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
get
public java.lang.String get()
-
eval
public java.lang.Object eval(java.util.Map<java.lang.String,java.lang.Object> context)
Description copied from class:XEvaluation of the expression over a map style context that defines variable values.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-