public abstract class TypeNameMatch extends 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
|
String |
getFullyQualifiedName()
Returns the matched type's fully qualified name using '.' character
as separator (e.g. package name + '.' enclosing type names + '.' simple name).
|
abstract int |
getModifiers()
Returns the modifiers of the matched type.
|
IPackageFragmentRoot |
getPackageFragmentRoot()
Returns the package fragment root of the stored type.
|
String |
getPackageName()
Returns the package name of the stored type.
|
String |
getSimpleTypeName()
Returns the name of the stored type.
|
abstract IType |
getType()
Returns a java model type handle.
|
String |
getTypeContainerName()
Name of the type container using '.' character
as separator (e.g. package name + '.' + enclosing type names).
|
String |
getTypeQualifiedName()
Returns the matched type's type qualified name using '.' character
as separator (e.g. enclosing type names + '.' + simple name).
|
public abstract int getAccessibility()
IAccessRule.K_ACCESSIBLE, IAccessRule.K_DISCOURAGED
or IAccessRule.K_NON_ACCESSIBLE.
The default returned value is IAccessRule.K_ACCESSIBLE.IAccessRulepublic String getFullyQualifiedName()
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).NullPointerException - if matched type is nullgetType(),
IJavaElement.getAncestor(int)public String getPackageName()
NullPointerException - if matched type is nullgetType(),
IType.getPackageFragment()public String getSimpleTypeName()
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 String getTypeContainerName()
NullPointerException - if matched type is nullgetType(),
IMember.getDeclaringType()public String getTypeQualifiedName()
NullPointerException - if matched type is nullgetType(),
IType.getTypeQualifiedName(char)
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.