public class InstanceOfExpression extends ExpressionBase
Constructor and Description |
---|
InstanceOfExpression()
Ctor.
|
InstanceOfExpression(Expression expressionToCheck,
java.lang.String typeName,
java.lang.String... moreTypes)
Ctor.
|
InstanceOfExpression(java.lang.String[] typeNames)
Ctor - for use to create an expression tree, without child expression.
|
Modifier and Type | Method and Description |
---|---|
ExpressionPrecedenceEnum |
getPrecedence()
Returns precedence.
|
java.lang.String[] |
getTypeNames()
Returns the types to compare to.
|
void |
setTypeNames(java.lang.String[] typeNames)
Sets the types to compare to.
|
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 InstanceOfExpression()
public InstanceOfExpression(java.lang.String[] typeNames)
typeNames
- is the fully-qualified class names or Java primitive type names or "string"public InstanceOfExpression(Expression expressionToCheck, java.lang.String typeName, java.lang.String... moreTypes)
expressionToCheck
- provides values to check the type oftypeName
- is one fully-qualified class names or Java primitive type names or "string"moreTypes
- is additional optional fully-qualified class names or Java primitive type names or "string"public ExpressionPrecedenceEnum getPrecedence()
Expression
public void toPrecedenceFreeEPL(java.io.StringWriter writer)
ExpressionBase
toPrecedenceFreeEPL
in class ExpressionBase
writer
- is the output to usepublic java.lang.String[] getTypeNames()
public void setTypeNames(java.lang.String[] typeNames)
typeNames
- list of types to compare to