Class SuperTypeNamesCollector
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.search.matching.SuperTypeNamesCollector
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
Modifier and TypeClassDescriptionclass
An ast visitor that visits type declarations and member type declarations collecting their super type names. -
Constructor Summary
ConstructorDescriptionSuperTypeNamesCollector(SearchPattern pattern, char[] typeSimpleName, char[] typeQualification, MatchLocator locator, IType type, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addToResult(char[][] compoundName)
protected CompilationUnitDeclaration
buildBindings(ICompilationUnit compilationUnit, boolean isTopLevelOrMember)
char[][][]
collect()
protected void
collectSuperTypeNames(ReferenceBinding binding, char[][] path)
Collects the names of all the supertypes of the given type.protected String[]
char[][][]
protected boolean
matches(char[][] compoundName)
protected boolean
matches(ReferenceBinding binding)
-
Constructor Details
-
SuperTypeNamesCollector
public SuperTypeNamesCollector(SearchPattern pattern, char[] typeSimpleName, char[] typeQualification, MatchLocator locator, IType type, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
-
-
Method Details
-
addToResult
protected void addToResult(char[][] compoundName) -
buildBindings
protected CompilationUnitDeclaration buildBindings(ICompilationUnit compilationUnit, boolean isTopLevelOrMember) throws JavaModelException- Throws:
JavaModelException
-
collect
- Throws:
JavaModelException
-
collectSuperTypeNames
Collects the names of all the supertypes of the given type. -
getPathsOfDeclaringType
-
getSamePackageSuperTypeNames
public char[][][] getSamePackageSuperTypeNames() -
matches
protected boolean matches(char[][] compoundName) -
matches
-