public abstract class TypeNameMatch
extends java.lang.Object
searching for
all type names methods using a requestor.
The type of this match is available from getType().
TypeNameMatchRequestor,
SearchEngine#searchAllTypeNames(char[], int, char[], int, int, IJavaSearchScope, TypeNameMatchRequestor, int, org.eclipse.core.runtime.IProgressMonitor),
SearchEngine#searchAllTypeNames(char[][], char[][], IJavaSearchScope, TypeNameMatchRequestor, int, org.eclipse.core.runtime.IProgressMonitor)| Constructor and Description |
|---|
TypeNameMatch() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
getAccessibility()
Returns the accessibility of the type name match
|
java.lang.String |
getFullyQualifiedName()
Returns the matched type's fully qualified name using '.' character
as separator (e.g.
|
abstract int |
getModifiers()
Returns the modifiers of the matched type.
|
IPackageFragmentRoot |
getPackageFragmentRoot()
Returns the package fragment root of the stored type.
|
java.lang.String |
getPackageName()
Returns the package name of the stored type.
|
java.lang.String |
getSimpleTypeName()
Returns the name of the stored type.
|
abstract IType |
getType()
Returns a java model type handle.
|
java.lang.String |
getTypeContainerName()
Name of the type container using '.' character
as separator (e.g.
|
java.lang.String |
getTypeQualifiedName()
Returns the matched type's type qualified name using '.' character
as separator (e.g.
|
public abstract int getAccessibility()
IAccessRule.K_ACCESSIBLE, IAccessRule.K_DISCOURAGED
or IAccessRule.K_NON_ACCESSIBLE.
The default returned value is IAccessRule.K_ACCESSIBLE.IAccessRulepublic java.lang.String getFullyQualifiedName()
java.lang.NullPointerException - if matched type is nullgetType(),
IType.getFullyQualifiedName(char)public abstract int getModifiers()
This is a handle-only method as neither Java Model nor classpath initialization is done while calling this method.
public IPackageFragmentRoot getPackageFragmentRoot()
null
and will return true to exists() message).java.lang.NullPointerException - if matched type is nullgetType(),
IJavaElement.getAncestor(int)public java.lang.String getPackageName()
java.lang.NullPointerException - if matched type is nullgetType(),
IType.getPackageFragment()public java.lang.String getSimpleTypeName()
java.lang.NullPointerException - if matched type is nullgetType(),
IJavaElement.getElementName()public abstract IType getType()
null.
This is a handle-only method as neither Java Model nor classpath initializations are done while calling this method.
ITypepublic java.lang.String getTypeContainerName()
java.lang.NullPointerException - if matched type is nullgetType(),
IMember.getDeclaringType()public java.lang.String getTypeQualifiedName()
java.lang.NullPointerException - if matched type is nullgetType(),
IType.getTypeQualifiedName(char)