|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.soda.ExpressionBase
public abstract class ExpressionBase
Base expression.
Constructor Summary | |
---|---|
ExpressionBase()
Ctor. |
Method Summary | |
---|---|
void |
addChild(Expression expression)
Adds a new child expression to the current expression. |
java.util.List<Expression> |
getChildren()
Returns the list of sub-expressions to the current expression. |
java.lang.String |
getTreeObjectName()
Returns the tree of object name, for use by tools to assign an identifier to an expression. |
protected static void |
renderAggregation(java.io.StringWriter writer,
java.lang.String name,
boolean distinct,
java.util.List<Expression> children)
Render an aggregation function with distinct and parameter expressions |
void |
setChildren(java.util.List<Expression> children)
Sets the list of sub-expressions (child expressions) to the current expression node. |
void |
setTreeObjectName(java.lang.String treeObjectName)
Sets the tree of object name, for use by tools to assign an identifier to an expression. |
void |
toEPL(java.io.StringWriter writer,
ExpressionPrecedenceEnum parentPrecedence)
Write expression considering precedence. |
protected static void |
toPrecedenceFreeEPL(java.util.List<Expression> children,
java.io.StringWriter writer)
Render expression list |
protected static void |
toPrecedenceFreeEPL(java.lang.String functionName,
java.util.List<Expression> children,
java.io.StringWriter writer)
Renders child expression of a function in a comma-separated list. |
abstract 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.espertech.esper.client.soda.Expression |
---|
getPrecedence |
Constructor Detail |
---|
public ExpressionBase()
Method Detail |
---|
public java.lang.String getTreeObjectName()
Expression
getTreeObjectName
in interface Expression
public void setTreeObjectName(java.lang.String treeObjectName)
Expression
setTreeObjectName
in interface Expression
treeObjectName
- tree object idpublic java.util.List<Expression> getChildren()
getChildren
in interface Expression
public void addChild(Expression expression)
expression
- to addpublic void setChildren(java.util.List<Expression> children)
Expression
setChildren
in interface Expression
children
- child expressions or empty list if there are no child expressionspublic final void toEPL(java.io.StringWriter writer, ExpressionPrecedenceEnum parentPrecedence)
Expression
toEPL
in interface Expression
writer
- to useparentPrecedence
- precedenceprotected static void toPrecedenceFreeEPL(java.lang.String functionName, java.util.List<Expression> children, java.io.StringWriter writer)
functionName
- function namechildren
- child nodeswriter
- writerprotected static void toPrecedenceFreeEPL(java.util.List<Expression> children, java.io.StringWriter writer)
children
- expressions to renderwriter
- writer to render toprotected static void renderAggregation(java.io.StringWriter writer, java.lang.String name, boolean distinct, java.util.List<Expression> children)
writer
- to render toname
- function namedistinct
- distinct flagchildren
- parameters to renderpublic abstract void toPrecedenceFreeEPL(java.io.StringWriter writer)
writer
- is the output to use
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |