public class PatternGuardExpr extends EPBaseNamedObject implements PatternExpr
Constructor and Description |
---|
PatternGuardExpr(String namespace,
String name,
Expression[] parameters,
PatternExpr guarded)
Ctor - for use to create a pattern expression tree, without pattern child expression.
|
PatternGuardExpr(String namespace,
String name,
List<Expression> parameters)
Ctor - for use to create a pattern expression tree, without pattern child expression.
|
PatternGuardExpr(String namespace,
String name,
List<Expression> parameters,
PatternExpr guardedPattern)
Ctor - for use to create a pattern expression tree, without pattern child expression.
|
Modifier and Type | Method and Description |
---|---|
List<PatternExpr> |
getChildren()
Returns the list of pattern sub-expressions (child expressions) to the current pattern expression node.
|
List<PatternExpr> |
getGuarded()
Get sub expression
|
PatternExprPrecedenceEnum |
getPrecedence()
Returns the precedence.
|
String |
getTreeObjectName()
Returns the id for the pattern expression, for use by tools.
|
void |
setChildren(List<PatternExpr> children)
Sets the list of pattern sub-expressions (child expressions) to the current pattern expression node.
|
void |
setGuarded(List<PatternExpr> guarded)
Set sub pattern.
|
void |
setTreeObjectName(String treeObjectName)
Sets and id for the pattern expression, for use by tools.
|
void |
toEPL(StringWriter writer,
PatternExprPrecedenceEnum parentPrecedence,
EPStatementFormatter formatter)
Renders the pattern expression and all it's child expressions, in full tree depth, as a string in
language syntax.
|
void |
toPrecedenceFreeEPL(StringWriter writer,
EPStatementFormatter formatter)
Renders the expressions and all it's child expression, in full tree depth, as a string in
language syntax.
|
getName, getNamespace, getParameters, setName, setNamespace, setParameters, toEPL
public PatternGuardExpr(String namespace, String name, List<Expression> parameters)
namespace
- is the guard object namespacename
- is the guard object nameparameters
- is guard object parameterspublic PatternGuardExpr(String namespace, String name, Expression[] parameters, PatternExpr guarded)
namespace
- is the guard object namespacename
- is the guard object nameparameters
- is guard object parametersguarded
- is the guarded pattern expressionpublic PatternGuardExpr(String namespace, String name, List<Expression> parameters, PatternExpr guardedPattern)
namespace
- is the guard object namespacename
- is the guard object nameparameters
- is guard object parametersguardedPattern
- is the guarded pattern expressionpublic List<PatternExpr> getChildren()
PatternExpr
getChildren
in interface PatternExpr
public void setGuarded(List<PatternExpr> guarded)
guarded
- sub expressionpublic List<PatternExpr> getGuarded()
public String getTreeObjectName()
PatternExpr
getTreeObjectName
in interface PatternExpr
public void setTreeObjectName(String treeObjectName)
PatternExpr
setTreeObjectName
in interface PatternExpr
treeObjectName
- idpublic PatternExprPrecedenceEnum getPrecedence()
PatternExpr
getPrecedence
in interface PatternExpr
public final void toEPL(StringWriter writer, PatternExprPrecedenceEnum parentPrecedence, EPStatementFormatter formatter)
PatternExpr
toEPL
in interface PatternExpr
writer
- is the output to useparentPrecedence
- precedenceformatter
- formatterpublic void toPrecedenceFreeEPL(StringWriter writer, EPStatementFormatter formatter)
writer
- is the output to useformatter
- for newline-whitespace formattingpublic void setChildren(List<PatternExpr> children)
PatternExpr
setChildren
in interface PatternExpr
children
- pattern child expressions or empty list if there are no child expressionsCopyright © 2005–2018. All rights reserved.