|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teiid.language.visitor.CollectorVisitor<T>
public class CollectorVisitor<T>
This visitor can be used to collect all objects of a certain type in a language tree. Each visit method does an instanceof method to check whether the object is of the expected type.
Constructor Summary | |
---|---|
CollectorVisitor(java.lang.Class<T> type)
|
Method Summary | ||
---|---|---|
static java.util.Collection<ColumnReference> |
collectElements(LanguageObject object)
This is a utility method for a common use of this visitor, which is to collect all elements in an object tree. |
|
static java.util.Collection<NamedTable> |
collectGroups(LanguageObject object)
This is a utility method for a common use of this visitor, which is to collect all groups in an object tree. |
|
static java.util.Set<NamedTable> |
collectGroupsUsedByElements(LanguageObject object)
This is a utility method for a common use of this visitor, which is to collect all groups used by all elements in an object tree. |
|
static
|
collectObjects(java.lang.Class<T> type,
LanguageObject object)
This is a utility method to instantiate and run the visitor in conjunction with a HierarchyVisitor to collect all objects of the specified type of the specified tree in the language object tree. |
|
java.util.Collection<T> |
getCollectedObjects()
|
|
void |
visit(AggregateFunction obj)
|
|
void |
visit(AndOr obj)
|
|
void |
visit(Argument obj)
|
|
void |
visit(BatchedUpdates obj)
|
|
void |
visit(Call obj)
|
|
void |
visit(ColumnReference obj)
|
|
void |
visit(Comparison obj)
|
|
void |
visit(Delete obj)
|
|
void |
visit(DerivedColumn obj)
|
|
void |
visit(DerivedTable obj)
|
|
void |
visit(Exists obj)
|
|
void |
visit(ExpressionValueSource obj)
|
|
void |
visit(Function obj)
|
|
void |
visit(GroupBy obj)
|
|
void |
visit(In obj)
|
|
void |
visit(Insert obj)
|
|
void |
visit(IsNull obj)
|
|
void |
visit(IteratorValueSource obj)
|
|
void |
visit(Join obj)
|
|
void |
visit(Like obj)
|
|
void |
visit(Limit obj)
|
|
void |
visit(Literal obj)
|
|
void |
visit(NamedTable obj)
|
|
void |
visit(Not obj)
|
|
void |
visit(OrderBy obj)
|
|
void |
visit(ScalarSubquery obj)
|
|
void |
visit(SearchedCase obj)
|
|
void |
visit(SearchedWhenClause obj)
|
|
void |
visit(Select obj)
|
|
void |
visit(SetClause obj)
|
|
void |
visit(SetQuery obj)
|
|
void |
visit(SortSpecification obj)
|
|
void |
visit(SubqueryComparison obj)
|
|
void |
visit(SubqueryIn obj)
|
|
void |
visit(Update obj)
|
|
void |
visit(With obj)
|
|
void |
visit(WithItem obj)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollectorVisitor(java.lang.Class<T> type)
Method Detail |
---|
public java.util.Collection<T> getCollectedObjects()
public void visit(AggregateFunction obj)
visit
in interface LanguageObjectVisitor
public void visit(BatchedUpdates obj)
visit
in interface LanguageObjectVisitor
public void visit(Comparison obj)
visit
in interface LanguageObjectVisitor
public void visit(AndOr obj)
visit
in interface LanguageObjectVisitor
public void visit(Delete obj)
visit
in interface LanguageObjectVisitor
public void visit(ColumnReference obj)
visit
in interface LanguageObjectVisitor
public void visit(Exists obj)
visit
in interface LanguageObjectVisitor
public void visit(Function obj)
visit
in interface LanguageObjectVisitor
public void visit(NamedTable obj)
visit
in interface LanguageObjectVisitor
public void visit(GroupBy obj)
visit
in interface LanguageObjectVisitor
public void visit(In obj)
visit
in interface LanguageObjectVisitor
public void visit(DerivedTable obj)
visit
in interface LanguageObjectVisitor
public void visit(Insert obj)
visit
in interface LanguageObjectVisitor
public void visit(ExpressionValueSource obj)
visit
in interface LanguageObjectVisitor
public void visit(IsNull obj)
visit
in interface LanguageObjectVisitor
public void visit(Join obj)
visit
in interface LanguageObjectVisitor
public void visit(Like obj)
visit
in interface LanguageObjectVisitor
public void visit(Limit obj)
visit
in interface LanguageObjectVisitor
public void visit(Literal obj)
visit
in interface LanguageObjectVisitor
public void visit(Not obj)
visit
in interface LanguageObjectVisitor
public void visit(OrderBy obj)
visit
in interface LanguageObjectVisitor
public void visit(SortSpecification obj)
visit
in interface LanguageObjectVisitor
public void visit(Argument obj)
visit
in interface LanguageObjectVisitor
public void visit(Call obj)
visit
in interface LanguageObjectVisitor
public void visit(Select obj)
visit
in interface LanguageObjectVisitor
public void visit(ScalarSubquery obj)
visit
in interface LanguageObjectVisitor
public void visit(SearchedCase obj)
visit
in interface LanguageObjectVisitor
public void visit(DerivedColumn obj)
visit
in interface LanguageObjectVisitor
public void visit(SubqueryComparison obj)
visit
in interface LanguageObjectVisitor
public void visit(SubqueryIn obj)
visit
in interface LanguageObjectVisitor
public void visit(Update obj)
visit
in interface LanguageObjectVisitor
public void visit(SetQuery obj)
visit
in interface LanguageObjectVisitor
public void visit(SetClause obj)
visit
in interface LanguageObjectVisitor
public void visit(SearchedWhenClause obj)
visit
in interface LanguageObjectVisitor
public void visit(IteratorValueSource obj)
visit
in interface LanguageObjectVisitor
public void visit(With obj)
visit
in interface LanguageObjectVisitor
public void visit(WithItem obj)
visit
in interface LanguageObjectVisitor
public static <T> java.util.Collection<T> collectObjects(java.lang.Class<T> type, LanguageObject object)
type
- Language object type to look forobject
- Root of the language object tree
public static java.util.Collection<ColumnReference> collectElements(LanguageObject object)
type
- Language object type to look forobject
- Root of the language object tree
public static java.util.Collection<NamedTable> collectGroups(LanguageObject object)
type
- Language object type to look forobject
- Root of the language object tree
public static java.util.Set<NamedTable> collectGroupsUsedByElements(LanguageObject object)
type
- Language object type to look forobject
- Root of the language object tree
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |