Package | Description |
---|---|
org.eclipse.jdt.core |
The Java model is the set of classes that model the
objects associated with creating, editing, and building a Java program.
|
org.eclipse.jdt.core.eval |
Provides support for the evaluation of code snippets
in a scrapbook or inside the debugger.
|
org.eclipse.jdt.core.search |
Provides support for searching the workspace Java
elements that match a particular description.
|
org.eclipse.jdt.ui |
Application programming interfaces for interaction
with the Eclipse Java User Interface.
|
org.eclipse.jdt.ui.jarpackager |
Provides classes and interfaces to generate a JAR file.
|
org.eclipse.jdt.ui.refactoring |
Application programming interfaces for rename refactorings.
|
org.eclipse.jdt.ui.text.java |
Application programming interfaces for interaction
with the Eclipse Java User Interface.
|
org.eclipse.jdt.ui.wizards |
Application programming interfaces for interaction
with the Eclipse Java User Interface wizards.
|
Modifier and Type | Method and Description |
---|---|
IType |
ICompilationUnit.createType(String contents,
IJavaElement sibling,
boolean force,
IProgressMonitor monitor)
Creates and returns a type in this compilation unit with the
given contents.
|
IType |
IType.createType(String contents,
IJavaElement sibling,
boolean force,
IProgressMonitor monitor)
Creates and returns a type in this type with the
given contents.
|
IType |
ICompilationUnit.findPrimaryType()
Finds the primary type of this compilation unit (that is, the type with the same name as the
compilation unit), or
null if no such a type exists. |
IType |
IWorkingCopy.findPrimaryType()
Deprecated.
Finds the primary type of this compilation unit (that is, the type with the same name as the
compilation unit), or
null if no such a type exists. |
IType |
IJavaProject.findType(String fullyQualifiedName)
Returns the first type found following this project's classpath
with the given fully qualified name or
null if none is found. |
IType |
IJavaProject.findType(String fullyQualifiedName,
IProgressMonitor progressMonitor)
Same functionality as
IJavaProject.findType(String) but also look for secondary
types if given name does not match a compilation unit name. |
IType |
IJavaProject.findType(String packageName,
String typeQualifiedName)
Returns the first type found following this project's classpath
with the given package name and type qualified name
or
null if none is found. |
IType |
IJavaProject.findType(String packageName,
String typeQualifiedName,
IProgressMonitor progressMonitor)
Same functionality as
IJavaProject.findType(String, String) but also look for
secondary types if given name does not match a compilation unit name. |
IType |
IJavaProject.findType(String packageName,
String typeQualifiedName,
WorkingCopyOwner owner)
Returns the first type found following this project's classpath
with the given package name and type qualified name
or
null if none is found. |
IType |
IJavaProject.findType(String packageName,
String typeQualifiedName,
WorkingCopyOwner owner,
IProgressMonitor progressMonitor)
Same functionality as
IJavaProject.findType(String, String, WorkingCopyOwner)
but also look for secondary types if given name does not match a compilation unit name. |
IType |
IJavaProject.findType(String fullyQualifiedName,
WorkingCopyOwner owner)
Returns the first type found following this project's classpath
with the given fully qualified name or
null if none is found. |
IType |
IJavaProject.findType(String fullyQualifiedName,
WorkingCopyOwner owner,
IProgressMonitor progressMonitor)
Same functionality as
IJavaProject.findType(String, WorkingCopyOwner)
but also look for secondary types if given name does not match
a compilation unit name. |
IType[] |
ITypeHierarchy.getAllClasses()
Returns all classes in this type hierarchy's graph, in no particular
order.
|
IType[] |
ITypeHierarchy.getAllInterfaces()
Returns all interfaces 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[] |
ITypeHierarchy.getAllSuperInterfaces(IType type)
Returns all resolved superinterfaces (direct and indirect) of the given type.
|
IType[] |
ITypeHierarchy.getAllSupertypes(IType type)
Returns all resolved supertypes of the
given type, in bottom-up order.
|
IType[] |
ICompilationUnit.getAllTypes()
Returns all types declared in this compilation unit in the order
in which they appear in the source.
|
IType[] |
ITypeHierarchy.getAllTypes()
Returns all types in this type hierarchy's graph, in no particular
order.
|
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.getExtendingInterfaces(IType type)
Returns all interfaces resolved to extend the given interface,
in no particular order, limited to the interfaces in this
hierarchy's graph.
|
IType[] |
ITypeHierarchy.getImplementingClasses(IType type)
Returns all classes resolved to implement the given interface,
in no particular order, limited to the classes in this type
hierarchy's graph.
|
IType[] |
ITypeHierarchy.getRootClasses()
Returns all classes in the graph which have no resolved superclass,
in no particular order.
|
IType[] |
ITypeHierarchy.getRootInterfaces()
Returns all interfaces in the graph which have no resolved superinterfaces,
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.getSubtypes(IType type)
Returns the direct resolved subtypes of the given type,
in no particular order, limited to the types 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,
the superclass could not be resolved, or if the given
type is an interface. |
IType[] |
ITypeHierarchy.getSuperInterfaces(IType type)
Returns the direct resolved interfaces that the given type implements or extends,
in no particular order, limited to the interfaces in this type
hierarchy's graph.
|
IType[] |
ITypeHierarchy.getSupertypes(IType type)
Returns the resolved supertypes of the given type,
in no particular order, limited to the types in this
type hierarchy's graph.
|
IType |
ITypeHierarchy.getType()
Returns the type this hierarchy was computed for.
|
IType |
IClassFile.getType()
Returns the type contained in this class file.
|
IType |
ICompilationUnit.getType(String name)
Returns the top-level type declared in this compilation unit with the given simple type name.
|
IType |
IType.getType(String name)
Returns the member type declared in this type with the given simple name.
|
IType |
IMember.getType(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[] |
ICompilationUnit.getTypes()
Returns the top-level types declared in this compilation unit
in the order in which they appear in the source.
|
IType[] |
IType.getTypes()
Returns the immediate member types declared by this type.
|
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.
|
IType[] |
ITypeHierarchy.getAllSuperInterfaces(IType type)
Returns all resolved superinterfaces (direct and indirect) of the given type.
|
IType[] |
ITypeHierarchy.getAllSupertypes(IType type)
Returns all resolved supertypes of the
given type, 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.getExtendingInterfaces(IType type)
Returns all interfaces resolved to extend the given interface,
in no particular order, limited to the interfaces in this
hierarchy's graph.
|
IType[] |
ITypeHierarchy.getImplementingClasses(IType type)
Returns all classes resolved to implement the given interface,
in no particular order, limited to the classes in this type
hierarchy's graph.
|
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.getSubtypes(IType type)
Returns the direct resolved subtypes of the given type,
in no particular order, limited to the types 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,
the superclass could not be resolved, or if the given
type is an interface. |
IType[] |
ITypeHierarchy.getSuperInterfaces(IType type)
Returns the direct resolved interfaces that the given type implements or extends,
in no particular order, limited to the interfaces in this type
hierarchy's graph.
|
IType[] |
ITypeHierarchy.getSupertypes(IType type)
Returns the resolved supertypes of the given type,
in no particular order, limited to the types in this
type hierarchy's graph.
|
ITypeHierarchy |
IJavaProject.newTypeHierarchy(IType type,
IRegion region,
IProgressMonitor monitor)
Creates and returns a type hierarchy for the given type considering
subtypes in the specified region.
|
ITypeHierarchy |
IJavaProject.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(String codeSnippet,
String[] localVariableTypeNames,
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 |
---|---|
static IJavaSearchScope |
SearchEngine.createHierarchyScope(IType type)
Returns a Java search scope limited to the hierarchy of the given type.
|
static IJavaSearchScope |
SearchEngine.createHierarchyScope(IType type,
WorkingCopyOwner owner)
Returns a Java search scope limited to the hierarchy of the given type.
|
Modifier and Type | Method and Description |
---|---|
IType |
ITypeHierarchyViewPart.getInput()
Deprecated.
use getInputElement instead
|
Modifier and Type | Method and Description |
---|---|
protected int |
OverrideIndicatorLabelDecorator.findInHierarchy(IType type,
ITypeHierarchy hierarchy,
String name,
String[] paramTypes)
Deprecated.
Not used anymore. This method is not accurate for methods in generic types.
|
static void |
JavaElementLabels.getTypeLabel(IType type,
long flags,
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 |
---|---|
IType |
JarPackageData.getManifestMainClass()
Gets the manifest's main class.
|
Modifier and Type | Method and Description |
---|---|
void |
JarPackageData.setManifestMainClass(IType manifestMainClass)
Set the manifest's main class.
|
Modifier and Type | Method and Description |
---|---|
static RenameSupport |
RenameSupport.create(IType type,
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 IMethod[] |
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, 2006. All Rights Reserved.