Class Constant

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public final class Constant
    extends FieldExpression
    Constant value FieldExpression.
    See Also:
    Serialized Form
    • Constructor Detail

      • Constant

        public Constant()
      • Constant

        public Constant​(java.lang.String value)
        Construct a new Constant.
      • Constant

        public Constant​(java.math.BigDecimal value)
      • Constant

        public Constant​(java.util.Date value)
        Construct a new Constant.
      • Constant

        public Constant​(Point value)
        Construct a new Constant.
      • Constant

        public Constant​(boolean value)
        Construct a new Constant.
      • Constant

        public Constant​(int value)
        Construct a new Constant.
      • Constant

        public Constant​(long value)
        Construct a new Constant.
      • Constant

        public Constant​(float value)
        Construct a new Constant.
      • Constant

        public Constant​(double value)
        Construct a new Constant.
      • Constant

        public Constant​(byte[] value)
    • Method Detail

      • hasChildren

        public boolean hasChildren()
        Returns true if this field expression has any sub FieldExpressions.
        Specified by:
        hasChildren in class FieldExpression
      • isConstant

        public boolean isConstant()
        Returns true if this field expression evaluates to a constant value.
        Specified by:
        isConstant in class FieldExpression
      • isNull

        public boolean isNull()
        Returns true if this constant is null.
      • getValue

        public java.lang.Object getValue()
        Get the value.
      • setValue

        public void setValue​(byte[] value)
        Set the value.
      • setValue

        public void setValue​(java.lang.String value)
        Set the value.
      • setValue

        public void setValue​(java.math.BigDecimal value)
        Set the value.
      • setValue

        public void setValue​(java.util.Date value)
        Set the value.
      • setValue

        public void setValue​(Point value)
        Set the value.
      • setValue

        public void setValue​(int value)
        Set the value.
      • setValue

        public void setValue​(long value)
        Set the value.
      • setValue

        public void setValue​(float value)
        Set the value.
      • setValue

        public void setValue​(double value)
        Set the value.
      • setValue

        public void setValue​(boolean value)
        Set the value.
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • valueOf

        public static Constant valueOf​(java.lang.Object value)