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