Modifier and Type | Method and Description |
---|---|
IType |
IType.createType(java.lang.String contents,
IJavaScriptElement sibling,
boolean force,
IProgressMonitor monitor)
Creates and returns a type in this type with the
given contents.
|
IType |
IJavaScriptUnit.createType(java.lang.String contents,
IJavaScriptElement sibling,
boolean force,
IProgressMonitor monitor)
Creates and returns a type in this javaScript file with the
given contents.
|
IType |
ITypeRoot.findPrimaryType()
Finds the primary type of this JavaScript type root (that is, the type with the same name as the
javascript file), or
null if no such a type exists. |
IType |
IJavaScriptProject.findType(java.lang.String fullyQualifiedName)
Returns the first type found following this project's includepath
with the given fully qualified name or
null if none is found. |
IType |
IJavaScriptProject.findType(java.lang.String fullyQualifiedName,
IProgressMonitor progressMonitor)
Same functionality as
IJavaScriptProject.findType(String) but also look for secondary
types if given name does not match a javaScript unit name. |
IType |
IJavaScriptProject.findType(java.lang.String packageName,
java.lang.String typeQualifiedName,
IProgressMonitor progressMonitor)
Same functionality as
#findType(String, String) but also look for
secondary types if given name does not match a javaScript unit name. |
IType |
IJavaScriptProject.findType(java.lang.String packageName,
java.lang.String typeQualifiedName,
WorkingCopyOwner owner,
IProgressMonitor progressMonitor)
Same functionality as
#findType(String, String, WorkingCopyOwner)
but also look for secondary types if given name does not match a javaScript unit name. |
IType |
IJavaScriptProject.findType(java.lang.String fullyQualifiedName,
WorkingCopyOwner owner,
IProgressMonitor progressMonitor)
Same functionality as
#findType(String, WorkingCopyOwner)
but also look for secondary types if given name does not match
a javaScript unit name. |
IType[] |
IJavaScriptProject.findTypes(java.lang.String fullyQualifiedName)
Returns all the types found following this project's include path with
the given fully qualified name.
|
IType[] |
IJavaScriptProject.findTypes(java.lang.String fullyQualifiedName,
WorkingCopyOwner owner)
Returns all the types found following this project's include path with
the given fully qualified name.
|
IType[] |
ITypeHierarchy.getAllClasses()
Returns all classes in this type hierarchy's graph, in no particular
order.
|
IType[] |
ITypeHierarchy.getAllSubtypes(IType type)
Returns all resolved subtypes (direct and indirect) of the
given type, in no particular order, limited to the
types in this type hierarchy's graph.
|
IType[] |
ITypeHierarchy.getAllSuperclasses(IType type)
Returns all resolved superclasses of the
given class, in bottom-up order.
|
IType[] |
IJavaScriptUnit.getAllTypes()
Returns all types declared in this javaScript file in the order
in which they appear in the source.
|
IType |
IMember.getDeclaringType()
Returns the type in which this member is declared, or
null
if this member is not declared in a type (for example, a top-level type). |
IType[] |
ITypeHierarchy.getRootClasses()
Returns all classes in the graph which have no resolved superclass,
in no particular order.
|
IType[] |
ITypeHierarchy.getSubclasses(IType type)
Returns the direct resolved subclasses of the given class,
in no particular order, limited to the classes in this
type hierarchy's graph.
|
IType |
ITypeHierarchy.getSuperclass(IType type)
Returns the resolved superclass of the given class,
or
null if the given class has no superclass or
the superclass could not be resolved. |
IType |
ITypeHierarchy.getType()
Returns the type this hierarchy was computed for.
|
IType |
IClassFile.getType()
Returns the first type contained in this file.
|
IType |
IType.getType(java.lang.String name)
Returns the member type declared in this type with the given simple name.
|
IType |
IFunctionContainer.getType(java.lang.String name)
Returns the type with the specified name
|
IType |
IMember.getType(java.lang.String name,
int occurrenceCount)
Returns the local or anonymous type declared in this source member with the given simple name and/or
with the specified position relative to the order they are defined in the source.
|
IType[] |
IType.getTypes()
Returns the immediate member types declared by this type.
|
IType[] |
IJavaScriptUnit.getTypes()
Returns the top-level types declared in this javaScript file
in the order in which they appear in the source.
|
IType[] |
IClassFile.getTypes() |
Modifier and Type | Method and Description |
---|---|
boolean |
ITypeHierarchy.contains(IType type)
Returns whether the given type is part of this hierarchy.
|
IType[] |
ITypeHierarchy.getAllSubtypes(IType type)
Returns all resolved subtypes (direct and indirect) of the
given type, in no particular order, limited to the
types in this type hierarchy's graph.
|
IType[] |
ITypeHierarchy.getAllSuperclasses(IType type)
Returns all resolved superclasses of the
given class, in bottom-up order.
|
int |
ITypeHierarchy.getCachedFlags(IType type)
Return the flags associated with the given type (would be equivalent to
IMember.getFlags() ),
or -1 if this information wasn't cached on the hierarchy during its computation. |
IType[] |
ITypeHierarchy.getSubclasses(IType type)
Returns the direct resolved subclasses of the given class,
in no particular order, limited to the classes in this
type hierarchy's graph.
|
IType |
ITypeHierarchy.getSuperclass(IType type)
Returns the resolved superclass of the given class,
or
null if the given class has no superclass or
the superclass could not be resolved. |
ITypeHierarchy |
IJavaScriptProject.newTypeHierarchy(IType type,
IRegion region,
IProgressMonitor monitor)
Creates and returns a type hierarchy for the given type considering
subtypes in the specified region.
|
ITypeHierarchy |
IJavaScriptProject.newTypeHierarchy(IType type,
IRegion region,
WorkingCopyOwner owner,
IProgressMonitor monitor)
Creates and returns a type hierarchy for the given type considering
subtypes in the specified region and considering types in the
working copies with the given owner.
|
Modifier and Type | Method and Description |
---|---|
void |
IEvaluationContext.evaluateCodeSnippet(java.lang.String codeSnippet,
java.lang.String[] localVariableTypeNames,
java.lang.String[] localVariableNames,
int[] localVariableModifiers,
IType declaringType,
boolean isStatic,
boolean isConstructorCall,
ICodeSnippetRequestor requestor,
IProgressMonitor progressMonitor)
Evaluates the given code snippet in the context of a suspended thread.
|
Modifier and Type | Method and Description |
---|---|
void |
MoveStaticMembersDescriptor.setDestinationType(IType type)
Sets the destination type of the move operation.
|
void |
UseSupertypeDescriptor.setSubtype(IType type)
Sets the subtype of the refactoring.
|
void |
UseSupertypeDescriptor.setSupertype(IType type)
Sets the supertype of the refactoring.
|
Modifier and Type | Method and Description |
---|---|
abstract IType |
TypeNameMatch.getType()
Returns a javascript model type handle.
|
Modifier and Type | Method and Description |
---|---|
static IJavaScriptSearchScope |
SearchEngine.createHierarchyScope(IType type)
Returns a JavaScript search scope limited to the hierarchy of the given type.
|
static IJavaScriptSearchScope |
SearchEngine.createHierarchyScope(IType type,
WorkingCopyOwner owner)
Returns a JavaScript search scope limited to the hierarchy of the given type.
|
static TypeNameMatch |
SearchEngine.createTypeNameMatch(IType type,
int modifiers)
Create a type name match on a given type with specific modifiers.
|
Modifier and Type | Method and Description |
---|---|
static void |
JavaScriptElementLabels.getTypeLabel(IType type,
long flags,
java.lang.StringBuffer buf)
Appends the label for a type to a
StringBuffer . |
void |
ITypeHierarchyViewPart.setInput(IType type)
Deprecated.
use setInputElement instead
|
Modifier and Type | Method and Description |
---|---|
static RenameSupport |
RenameSupport.create(IType type,
java.lang.String newName,
int flags)
Creates a new rename support for the given
IType . |
Modifier and Type | Method and Description |
---|---|
IType |
JavaContentAssistInvocationContext.getExpectedType()
Returns the expected type if any,
null otherwise. |
Modifier and Type | Method and Description |
---|---|
protected IType |
NewTypeWizardPage.chooseEnclosingType()
Opens a selection dialog that allows to select an enclosing type.
|
protected IType |
NewTypeWizardPage.chooseSuperClass()
Opens a selection dialog that allows to select a super class.
|
IType |
NewTypeWizardPage.getCreatedType()
Returns the created type or
null is the type has not been created yet. |
IType |
NewTypeWizardPage.getEnclosingType()
Returns the enclosing type corresponding to the current input.
|
Modifier and Type | Method and Description |
---|---|
protected IFunction[] |
NewTypeWizardPage.createInheritedMethods(IType type,
boolean doConstructors,
boolean doUnimplementedMethods,
NewTypeWizardPage.ImportsManager imports,
IProgressMonitor monitor)
Creates the bodies of all unimplemented methods and constructors and adds them to the type.
|
protected void |
NewTypeWizardPage.createTypeMembers(IType newType,
NewTypeWizardPage.ImportsManager imports,
IProgressMonitor monitor)
Hook method that gets called from
createType to support adding of
unanticipated methods, fields, and inner types to the created type. |
protected void |
NewClassWizardPage.createTypeMembers(IType type,
NewTypeWizardPage.ImportsManager imports,
IProgressMonitor monitor) |
void |
NewTypeWizardPage.setEnclosingType(IType type,
boolean canBeModified)
Sets the enclosing type.
|
Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.