Class CFExpression


  • public final class CFExpression
    extends java.lang.Object
    This object represents one expression in the CFExpressionSet. Each expression is associated with exactly one bin from a bin set.

    This class is intentionally immutable. Create always new instance if you want to modify its properties.

    Author:
    Petr Hamernik
    • 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's Integer, for text value it's String, 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 class java.lang.Object