public class ConstantExpression extends ExpressionBase
Constructor and Description |
---|
ConstantExpression()
Ctor.
|
ConstantExpression(Object constant)
Ctor.
|
ConstantExpression(Object constant,
String constantType)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Object |
getConstant()
Returns the constant value that the expression represents.
|
String |
getConstantType()
Returns the type of the constant.
|
ExpressionPrecedenceEnum |
getPrecedence()
Returns precedence.
|
void |
setConstant(Object constant)
Sets the constant value that the expression represents.
|
void |
setConstantType(String constantType)
Sets the type of the constant.
|
void |
toPrecedenceFreeEPL(StringWriter writer)
Renders the expressions and all it's child expression, in full tree depth, as a string in
language syntax.
|
addChild, getChildren, getTreeObjectName, renderAggregation, setChildren, setTreeObjectName, toEPL, toPrecedenceFreeEPL, toPrecedenceFreeEPL
public ConstantExpression()
public ConstantExpression(Object constant)
constant
- is the constant value, or null to represent the null valuepublic String getConstantType()
public void setConstantType(String constantType)
constantType
- typepublic ExpressionPrecedenceEnum getPrecedence()
Expression
public void toPrecedenceFreeEPL(StringWriter writer)
ExpressionBase
toPrecedenceFreeEPL
in class ExpressionBase
writer
- is the output to usepublic Object getConstant()
public void setConstant(Object constant)
constant
- is the value, or null to indicate the null value