public abstract class PatternExprBase extends java.lang.Object implements PatternExpr
Modifier | Constructor and Description |
---|---|
protected |
PatternExprBase()
Ctor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addChild(PatternExpr expression)
Adds a sub-expression to the pattern expression.
|
java.util.List<PatternExpr> |
getChildren()
Returns the list of pattern sub-expressions (child expressions) to the current pattern expression node.
|
java.lang.String |
getTreeObjectName()
Returns the id for the pattern expression, for use by tools.
|
void |
setChildren(java.util.List<PatternExpr> children)
Sets the list of pattern sub-expressions (child expressions) to the current pattern expression node.
|
void |
setTreeObjectName(java.lang.String treeObjectName)
Sets and id for the pattern expression, for use by tools.
|
void |
toEPL(java.io.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.
|
abstract void |
toPrecedenceFreeEPL(java.io.StringWriter writer,
EPStatementFormatter formatter)
Renders the expressions and all it's child expression, in full tree depth, as a string in
language syntax.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPrecedence
public java.lang.String getTreeObjectName()
PatternExpr
getTreeObjectName
in interface PatternExpr
public void setTreeObjectName(java.lang.String treeObjectName)
PatternExpr
setTreeObjectName
in interface PatternExpr
treeObjectName
- idpublic java.util.List<PatternExpr> getChildren()
PatternExpr
getChildren
in interface PatternExpr
public void setChildren(java.util.List<PatternExpr> children)
PatternExpr
setChildren
in interface PatternExpr
children
- pattern child expressions or empty list if there are no child expressionsprotected void addChild(PatternExpr expression)
expression
- to addpublic final void toEPL(java.io.StringWriter writer, PatternExprPrecedenceEnum parentPrecedence, EPStatementFormatter formatter)
PatternExpr
toEPL
in interface PatternExpr
writer
- is the output to useparentPrecedence
- precedenceformatter
- formatterpublic abstract void toPrecedenceFreeEPL(java.io.StringWriter writer, EPStatementFormatter formatter)
writer
- is the output to useformatter
- for newline-whitespace formatting