|
|
|
|
Uses of Interface org.eclipse.jdt.core.IType
Methods in
org.eclipse.jdt.core that return
IType
|
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.
createType
(
String contents,
IJavaElement sibling,
boolean force,
IProgressMonitor monitor)
Creates and returns a type in this compilation unit with the
given contents. |
IType
|
IWorkingCopy.
findPrimaryType
()
Deprecated. Use
ITypeRoot.findPrimaryType() instead.
|
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
|
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[]
|
ITypeHierarchy.
getAllTypes
()
Returns all types in this type hierarchy's graph, in no particular
order. |
IType[]
|
ICompilationUnit.
getAllTypes
()
Returns all types declared in this compilation unit 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.
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
|
IType.
getType
(
String name)
Returns the member type declared in this type with the given simple name. |
IType
|
ICompilationUnit.
getType
(
String name)
Returns the top-level type declared in this compilation unit with the given simple type 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[]
|
IType.
getTypes
()
Returns the immediate member types declared by this type. |
IType[]
|
ICompilationUnit.
getTypes
()
Returns the top-level types declared in this compilation unit
in the order in which they appear in the source. |
Methods in
org.eclipse.jdt.core with parameters of type
IType
|
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. |
Methods in
org.eclipse.jdt.ui.wizards with parameters of type
IType
|
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, 2008. All Rights Reserved.
|
|
|