public class ColumnNamedNodeSwapper extends Object
Constructor and Description |
---|
ColumnNamedNodeSwapper() |
Modifier and Type | Method and Description |
---|---|
static ExprNode |
swap(ExprNode exprTree,
String columnName,
ExprNode fullExpr)
Replace all instances of the node representing the colum name with
the full expression.
|
public static ExprNode swap(ExprNode exprTree, String columnName, ExprNode fullExpr)
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