org.aspectj.org.eclipse.jdt.internal.core.search.matching
Class SuperTypeNamesCollector

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.core.search.matching.SuperTypeNamesCollector

public class SuperTypeNamesCollector
extends java.lang.Object

Collects the super type names of a given declaring type. Returns NOT_FOUND_DECLARING_TYPE if the declaring type was not found. Returns null if the declaring type pattern doesn't require an exact match.


Nested Class Summary
 class SuperTypeNamesCollector.TypeDeclarationVisitor
          An ast visitor that visits type declarations and member type declarations collecting their super type names.
 
Constructor Summary
SuperTypeNamesCollector(SearchPattern pattern, char[] typeSimpleName, char[] typeQualification, MatchLocator locator, IType type, IProgressMonitor progressMonitor)
           
 
Method Summary
protected  void addToResult(char[][] compoundName)
           
protected  CompilationUnitDeclaration buildBindings(ICompilationUnit compilationUnit, boolean isTopLevelOrMember)
           
 char[][][] collect()
           
protected  void collectSuperTypeNames(ReferenceBinding binding)
          Collects the names of all the supertypes of the given type.
protected  java.lang.String[] getPathsOfDeclaringType()
           
protected  boolean matches(char[][] compoundName)
           
protected  boolean matches(ReferenceBinding binding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuperTypeNamesCollector

public SuperTypeNamesCollector(SearchPattern pattern,
                               char[] typeSimpleName,
                               char[] typeQualification,
                               MatchLocator locator,
                               IType type,
                               IProgressMonitor progressMonitor)
Method Detail

addToResult

protected void addToResult(char[][] compoundName)

buildBindings

protected CompilationUnitDeclaration buildBindings(ICompilationUnit compilationUnit,
                                                   boolean isTopLevelOrMember)
                                            throws JavaModelException
Throws:
JavaModelException

collect

public char[][][] collect()
                   throws JavaModelException
Throws:
JavaModelException

collectSuperTypeNames

protected void collectSuperTypeNames(ReferenceBinding binding)
Collects the names of all the supertypes of the given type.


getPathsOfDeclaringType

protected java.lang.String[] getPathsOfDeclaringType()

matches

protected boolean matches(char[][] compoundName)

matches

protected boolean matches(ReferenceBinding binding)