kodo.query
Interface Constant
- All Superinterfaces:
- Value
- public interface Constant
- extends Value
Specialization of Value that represents a constant value
in the AST. This has no additional behavior. It is returned from
ExpressionFactory#newConstant(Object,Object).
- Since:
- 3.3.3
TYPE_SINGLE_QUOTED_STRING
public static final Object TYPE_SINGLE_QUOTED_STRING
TYPE_STRING
public static final Object TYPE_STRING
TYPE_BOOLEAN
public static final Object TYPE_BOOLEAN
TYPE_NUMBER
public static final Object TYPE_NUMBER
TYPE_UNKNOWN
public static final Object TYPE_UNKNOWN
getConstantType
public Object getConstantType()
- Returns one of
TYPE_BOOLEAN, TYPE_NUMBER,
TYPE_SINGLE_QUOTED_STRING, TYPE_STRING, or
TYPE_UNKNOWN, as appropriate.
getValue
public Object getValue()
- Returns the constant value that this object represents.
setValue
public void setValue(Object v)
- Sets the constant value that this object represents. Care should be
taken to ensure that this is set to a type compatible with this
constant's type.
Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.