public class CastExpression extends ExpressionBase
Constructor and Description |
---|
CastExpression()
Ctor.
|
CastExpression(Expression expressionToCheck,
String typeName)
Ctor.
|
CastExpression(String typeName)
Ctor - for use to create an expression tree, without child expression.
|
Modifier and Type | Method and Description |
---|---|
ExpressionPrecedenceEnum |
getPrecedence()
Returns precedence.
|
String |
getTypeName()
Returns the name of the type to cast to.
|
void |
setTypeName(String typeName)
Sets the name of the type to cast to.
|
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 CastExpression()
public CastExpression(String typeName)
typeName
- is the type to cast to: a fully-qualified class name or Java primitive type name or "string"public CastExpression(Expression expressionToCheck, String typeName)
expressionToCheck
- provides values to casttypeName
- is the type to cast to: a fully-qualified class names or Java primitive type names or "string"public ExpressionPrecedenceEnum getPrecedence()
Expression
public void toPrecedenceFreeEPL(StringWriter writer)
ExpressionBase
toPrecedenceFreeEPL
in class ExpressionBase
writer
- is the output to usepublic String getTypeName()
public void setTypeName(String typeName)
typeName
- is the name of type to cast to