Modifier and Type | Field and Description |
---|---|
static int |
INTEGER
An integer operand
|
static int |
REAL
A real (i.e., floating-point) operand
|
static int |
STRING
A string operand
|
Constructor and Description |
---|
CompareTerm()
Default constructor used when constructing a Column object
|
CompareTerm(Double d)
Constructs a CompareTerm that represents a floating-point operand
with a fixed value.
|
CompareTerm(Integer i)
Constructs a CompareTerm that represents an integer operand
with a fixed value.
|
CompareTerm(String s)
Constructs a CompareTerm that represents a String operand
with a fixed value.
|
Modifier and Type | Method and Description |
---|---|
int |
getValType()
Gets the type of the operand's value.
|
Object |
getValue()
Gets the operand's value.
|
void |
setValType(int type)
Sets the type of the operand's value.
|
String |
toString() |
public static final int INTEGER
public static final int REAL
public static final int STRING
public CompareTerm()
public CompareTerm(Integer i)
i
- the value of the operandpublic CompareTerm(Double d)
d
- the value of the operandpublic CompareTerm(String s)
s
- the value of the operandpublic void setValType(int type)
type
- the type (one of the constants defined in this class)public int getValType()
public Object getValue()