Package com.im.ijc.cf.api
Class CFExpression
- java.lang.Object
-
- com.im.ijc.cf.api.CFExpression
-
public final class CFExpression extends java.lang.Object
This object represents one expression in theCFExpressionSet
. Each expression is associated with exactly onebin
from abin set
.This class is intentionally immutable. Create always new instance if you want to modify its properties.
- Author:
- Petr Hamernik
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CFBin
getBin()
Get bin associated with this expression.CFExpressionSet
getExpressionSet()
CFOperator
getOperator()
Get operator for this expression.java.lang.Object[]
getValues()
Get value(s) for this expression (e.g.java.lang.String
toString()
-
-
-
Method Detail
-
getExpressionSet
public CFExpressionSet getExpressionSet()
- Returns:
- expression set to which this expression belongs.
-
getValues
public java.lang.Object[] getValues()
Get value(s) for this expression (e.g. in the case of "< 5" the value is 5). Values (elements of the array) should be always of appropriate type (e.g. for integer value it'sInteger
, for text value it'sString
, etc.). Can return empty array in the case of nullary operator, i.e. operator which takes no operands (e.g.CFOperator.IS_NULL
).- Returns:
- values used in the expression
- See Also:
getOperator()
-
getBin
public CFBin getBin()
Get bin associated with this expression.- Returns:
- target bin is this expression is evaluated as true
-
getOperator
public CFOperator getOperator()
Get operator for this expression.- Returns:
- operator
- See Also:
getValues()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-