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.refactoring.descriptors |
Application programming interface to access Java refactorings provided by JDT.
|
org.eclipse.jdt.core.search |
Provides support for searching the workspace Java
elements that match a particular description.
|
org.eclipse.jdt.debug.ui.launchConfigurations |
Provides an implementation launch configuration tabs for local and remote Java applications. |
org.eclipse.jdt.junit |
Application programming interfaces for interaction
with the Eclipse Java development tools JUnit support.
|
org.eclipse.jdt.junit.wizards |
Application programming interfaces to implement wizards to create new JUnit testcases.
|
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 |
ITypeRoot.findPrimaryType()
Finds the primary type of this Java type root (that is, the type with the same name as the
compilation unit, or the type of a class file), or
null if no such a type exists. |
IType |
IWorkingCopy.findPrimaryType()
Deprecated.
Use
ITypeRoot.findPrimaryType() instead. |
IType |
IJavaProject.findType(String fullyQualifiedName)
Returns the first type (excluding secondary types) 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 looks for secondary
types if the given name does not match a compilation unit name. |
IType |
IJavaProject.findType(String packageName,
String typeQualifiedName)
Returns the first type (excluding secondary types) 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 looks for
secondary types if the given name does not match a compilation unit name. |
IType |
IJavaProject.findType(String packageName,
String typeQualifiedName,
WorkingCopyOwner owner)
Returns the first type (excluding secondary types) 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 looks for secondary types if the given name does not match a compilation unit name. |
IType |
IJavaProject.findType(String fullyQualifiedName,
WorkingCopyOwner owner)
Returns the first type (excluding secondary types) 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 looks for secondary types if the 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 |
---|---|
IType |
ExtractClassDescriptor.getType()
Returns the type from which the fields are moved
|
Modifier and Type | Method and Description |
---|---|
static ExtractClassDescriptor.Field[] |
ExtractClassDescriptor.getFields(IType type)
Creates
ExtractClassDescriptor.Field objects for all instance fields of the type |
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.
|
void |
ExtractClassDescriptor.setType(IType type)
Sets the type to extract class from
|
Modifier and Type | Method and Description |
---|---|
abstract IType |
TypeNameMatch.getType()
Returns a java model type handle.
|
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.
|
static IJavaSearchScope |
SearchEngine.createStrictHierarchyScope(IJavaProject project,
IType type,
boolean onlySubtypes,
boolean includeFocusType,
WorkingCopyOwner owner)
Returns a Java search scope limited to the hierarchy of the given type and to a given project.
|
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 |
---|---|
protected IType |
JavaLaunchShortcut.chooseType(IType[] types,
String title)
Prompts the user to select a type from the given types.
|
protected IType[] |
JavaAppletLaunchShortcut.findTypes(Object[] elements,
IRunnableContext context) |
protected abstract IType[] |
JavaLaunchShortcut.findTypes(Object[] elements,
IRunnableContext context)
Finds and returns the types in the given collection of elements that can be launched.
|
protected IType[] |
JavaApplicationLaunchShortcut.findTypes(Object[] elements,
IRunnableContext context) |
Modifier and Type | Method and Description |
---|---|
protected IType |
JavaLaunchShortcut.chooseType(IType[] types,
String title)
Prompts the user to select a type from the given types.
|
protected ILaunchConfiguration |
JavaAppletLaunchShortcut.createConfiguration(IType type) |
protected abstract ILaunchConfiguration |
JavaLaunchShortcut.createConfiguration(IType type)
Creates and returns a new configuration based on the specified type.
|
protected ILaunchConfiguration |
JavaApplicationLaunchShortcut.createConfiguration(IType type) |
protected ILaunchConfiguration |
JavaLaunchShortcut.findLaunchConfiguration(IType type,
ILaunchConfigurationType configType)
Finds and returns an existing configuration to re-launch for the given type,
or
null if there is no existing configuration. |
protected void |
JavaLaunchShortcut.launch(IType type,
String mode)
Launches the given type in the specified mode.
|
Modifier and Type | Method and Description |
---|---|
static IType[] |
JUnitCore.findTestTypes(IJavaElement container,
IProgressMonitor monitor)
Finds types that contain JUnit tests in the given container.
|
Modifier and Type | Method and Description |
---|---|
IType |
NewTestCaseWizardPageOne.getClassUnderTest()
Returns the class to be tested.
|
Modifier and Type | Method and Description |
---|---|
protected void |
NewTestSuiteWizardPage.createTypeMembers(IType type,
NewTypeWizardPage.ImportsManager imports,
IProgressMonitor monitor) |
protected void |
NewTestCaseWizardPageOne.createTypeMembers(IType type,
NewTypeWizardPage.ImportsManager imports,
IProgressMonitor monitor) |
void |
NewTestCaseWizardPageTwo.setClassUnderTest(IType classUnderTest)
Sets the class under test.
|
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 . |
static void |
JavaElementLabels.getTypeLabel(IType type,
long flags,
StyledString result)
Appends the label for a type to a
StyledString . |
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) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.