Package com.adbs.ast
Class AstNodeBase
java.lang.Object
com.adbs.ast.AstNodeBase
- All Implemented Interfaces:
Disposable
- Direct Known Subclasses:
AstExtender
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BaseSQLContext
protected StatsColumns
protected StatsObjects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
protected void
buildASTField
(AstNode field, SQLBuilder builder, SQLBuilderSelectFormat format) protected void
buildASTField
(AstNode field, SQLBuilder builder, SQLBuilderSelectFormat format, boolean writeSpaceAfter) protected int
int
clone
(BaseSQLContext sqlContext) protected AstNodeBase
cloneInternal
(BaseSQLContext sqlContext) void
dispose()
protected int
protected AstFieldList
protected void
void
getMyChildren
(List list) void
getMyChildrenRecursive
(Wrapper<List> list) void
void
void
void
boolean
isAlive()
void
moveSubQueryInProxy
(Object parameter, Class cls) void
moveSubQueryInProxyRecursive
(Object parameter, Class cls) void
prepareAndFixupRecursive
(List cteList, List fromSourcesList) void
prepareAndFixupRecursive
(List cteList, List fromSourcesList, boolean calcFieldUsageStats) void
void
boolean
protected void
protected boolean
replaceReferencesToDatasource
(SQLFromSource fsFrom, SQLFromSource fsTo) boolean
replaceReferencesToDatasourceRecursive
(SQLFromSource fsFrom, SQLFromSource fsTo) protected void
void
restoreColumnPrefixRecursive
(boolean restore) void
void
void
traverseASTTreeDepthFirst
(AstTraversable traversable) void
traverseASTTreeSiblingFirst
(AstTraversable traversable)
-
Field Details
-
data
-
sqlContext
-
usedDatabaseObjects
-
usedDatabaseObjectColumns
-
-
Constructor Details
-
AstNodeBase
-
-
Method Details
-
dispose
public void dispose()- Specified by:
dispose
in interfaceDisposable
-
getAstFieldList
-
getSQLContext
-
getUsedDatabaseObjects
-
getUsedDatabaseObjectColumns
-
isAlive
public boolean isAlive() -
assertIsAlive
public void assertIsAlive() -
getASTFields
-
cloneInternal
-
buildASTField
protected void buildASTField(AstNode field, SQLBuilder builder, SQLBuilderSelectFormat format, boolean writeSpaceAfter) -
buildASTField
-
getMyChildren
-
prepareCalcStatistics
public void prepareCalcStatistics() -
calcStatistics
protected int calcStatistics() -
simplifyTree
public void simplifyTree() -
moveSubQueryInProxy
-
removeReferencesToDatasourceInternal
-
getReferencedDatasources
-
getReferencedColumns
-
assign
-
clone
-
traverseASTTreeDepthFirst
-
traverseASTTreeSiblingFirst
-
getMyChildrenRecursive
-
prepareAndFixupRecursive
-
prepareAndFixupRecursive
-
simplifyTreeRecursive
public void simplifyTreeRecursive() -
moveSubQueryInProxyRecursive
-
removeReferencesToDatasource
-
getReferencedColumnsRecursive
-
getReferencedDatasourcesRecursive
-
prepareCalcStatisticsRecursive
public void prepareCalcStatisticsRecursive() -
calcStatisticsRecursive
public int calcStatisticsRecursive() -
restoreColumnPrefix
protected void restoreColumnPrefix() -
restoreColumnPrefixRecursive
public void restoreColumnPrefixRecursive(boolean restore) -
replaceReferencesToDatasource
-
replaceReferencesToDatasourceRecursive
-
findFirstChildIndexForClass
-