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().
This class is not intended to be overridden by clients.
TypeNameMatchRequestor,
SearchEngine#searchAllTypeNames(char[], int, char[], int, int, IJavaScriptSearchScope, TypeNameMatchRequestor, int, org.eclipse.core.runtime.IProgressMonitor),
Provisional API: This class/interface is part of an interim API that is still under development and expected to
change significantly before reaching stability. It is being made available at this early stage to solicit feedback
from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
(repeatedly) as the API evolves.| Constructor and Description |
|---|
TypeNameMatch() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.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.
|
java.lang.String |
getPackageName()
Returns the package name of the stored type.
|
java.lang.String |
getQualifiedName() |
java.lang.String |
getSimpleTypeName()
Returns the name of the stored type.
|
char[][] |
getSuperTypeNames()
Returns the stored super type names.
|
abstract IType |
getType()
Returns a javascript model type handle.
|
java.lang.String |
getTypeContainerName()
Name of the type container using '.' character
as separator (e.g. package name + '.' + enclosing type names).
|
java.lang.String |
getTypeQualifiedName()
Returns the matched type's type qualified name using '.' character
as separator (e.g. enclosing type names + '.' + simple name).
|
public 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 JavaScript Model nor includepath 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(),
IJavaScriptElement.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(),
IJavaScriptElement.getElementName()public char[][] getSuperTypeNames()
public abstract IType getType()
null.
This is a handle-only method as neither JavaScript Model nor includepath 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)public java.lang.String getQualifiedName()
Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.