public class ConstantExpression extends ExpressionBase
Constructor and Description |
---|
ConstantExpression()
Ctor.
|
ConstantExpression(java.lang.Object constant)
Ctor.
|
ConstantExpression(java.lang.Object constant,
java.lang.String constantType)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getConstant()
Returns the constant value that the expression represents.
|
java.lang.String |
getConstantType()
Returns the type of the constant.
|
ExpressionPrecedenceEnum |
getPrecedence()
Returns precedence.
|
void |
setConstant(java.lang.Object constant)
Sets the constant value that the expression represents.
|
void |
setConstantType(java.lang.String constantType)
Sets the type of the constant.
|
void |
toPrecedenceFreeEPL(java.io.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(java.lang.Object constant)
constant
- is the constant value, or null to represent the null valuepublic ConstantExpression(java.lang.Object constant, java.lang.String constantType)
constant
- valueconstantType
- typepublic java.lang.String getConstantType()
public void setConstantType(java.lang.String constantType)
constantType
- typepublic ExpressionPrecedenceEnum getPrecedence()
Expression
public void toPrecedenceFreeEPL(java.io.StringWriter writer)
ExpressionBase
toPrecedenceFreeEPL
in class ExpressionBase
writer
- is the output to usepublic java.lang.Object getConstant()
public void setConstant(java.lang.Object constant)
constant
- is the value, or null to indicate the null value