org.teiid.query.sql.visitor
Class GroupsUsedByElementsVisitor

java.lang.Object
  extended by org.teiid.query.sql.visitor.GroupsUsedByElementsVisitor

public class GroupsUsedByElementsVisitor
extends Object


Constructor Summary
GroupsUsedByElementsVisitor()
           
 
Method Summary
static Set<GroupSymbol> getGroups(Collection<? extends LanguageObject> objects)
           
static void getGroups(Collection<? extends LanguageObject> objects, Set<GroupSymbol> groups)
           
static Set<GroupSymbol> getGroups(LanguageObject obj)
          Helper to quickly get the groups from obj in a collection.
static void getGroups(LanguageObject obj, Collection<GroupSymbol> groups)
          Helper to quickly get the groups from obj in the elements collection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupsUsedByElementsVisitor

public GroupsUsedByElementsVisitor()
Method Detail

getGroups

public static final void getGroups(LanguageObject obj,
                                   Collection<GroupSymbol> groups)
Helper to quickly get the groups from obj in the elements collection

Parameters:
obj - Language object
elements - Collection to collect groups in

getGroups

public static final Set<GroupSymbol> getGroups(LanguageObject obj)
Helper to quickly get the groups from obj in a collection. Duplicates are removed.

Parameters:
obj - Language object
Returns:
Collection of GroupSymbol

getGroups

public static Set<GroupSymbol> getGroups(Collection<? extends LanguageObject> objects)

getGroups

public static void getGroups(Collection<? extends LanguageObject> objects,
                             Set<GroupSymbol> groups)


Copyright © 2011. All Rights Reserved.