Class ColumnNamedNodeSwapper
java.lang.Object
com.espertech.esper.common.internal.epl.resultset.core.ColumnNamedNodeSwapper
A utility class for replacing select-clause column names with their
definitions in expression node trees.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ColumnNamedNodeSwapper
public ColumnNamedNodeSwapper()
-
-
Method Details
-
swap
Replace all instances of the node representing the colum name with the full expression.- Parameters:
exprTree
- - the expression node tree to make the changes incolumnName
- - the select-clause name that is to be expandedfullExpr
- - the full expression that the column name represents- Returns:
- exprTree with the appropriate swaps performed, or fullExpr, if all of exprTree needed to be swapped
-