Package org.aspectj.org.eclipse.jdt.core
Schnittstelle ITypeParameter
- Alle Superschnittstellen:
org.eclipse.core.runtime.IAdaptable
,IJavaElement
,ISourceReference
- Alle bekannten Implementierungsklassen:
AssistTypeParameter
,TypeParameter
Represents a type parameter defined by a type or a method
in a compilation unit or a class file.
Type parameters are obtained using IType.getTypeParameter(String)
and
IMethod.getTypeParameter(String)
.
Note that type parameters are not children of their declaring type or method. To get a list
of the type parameters use IType.getTypeParameters()
for a type and use
IMethod.getTypeParameters()
for a method.
- Seit:
- 3.1
-
Feldübersicht
Von Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.core.IJavaElement
ANNOTATION, CLASS_FILE, COMPILATION_UNIT, FIELD, IMPORT_CONTAINER, IMPORT_DECLARATION, INITIALIZER, JAVA_MODEL, JAVA_MODULE, JAVA_PROJECT, LOCAL_VARIABLE, METHOD, PACKAGE_DECLARATION, PACKAGE_FRAGMENT, PACKAGE_FRAGMENT_ROOT, TYPE, TYPE_PARAMETER
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungString[]
Returns the names of the class and interface bounds of this type parameter.String[]
Returns the signatures for this type parameter's bounds.Returns the declaring member of this type parameter.Returns the Java type root in which this type parameter is declared.Von Schnittstelle geerbte Methoden org.eclipse.core.runtime.IAdaptable
getAdapter
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.IJavaElement
exists, getAncestor, getAttachedJavadoc, getCorrespondingResource, getElementName, getElementType, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPath, getPrimaryElement, getResource, getSchedulingRule, getUnderlyingResource, isReadOnly, isStructureKnown
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.ISourceReference
exists, getNameRange, getSource, getSourceRange
-
Methodendetails
-
getBounds
Returns the names of the class and interface bounds of this type parameter. Returns an empty array if this type parameter has no bounds. A bound name is the name as it appears in the source (without theextends
keyword) if the type parameter comes from a compilation unit. It is the dot-separated fully qualified name of the bound if the type parameter comes from a class file.- Gibt zurück:
- the names of the bounds
- Löst aus:
JavaModelException
- if this element does not exist or if an exception occurs while accessing its corresponding resource
-
getBoundsSignatures
Returns the signatures for this type parameter's bounds. The type parameter may have been declared as part of a type or a method. The signatures represent only the individual bounds and do not include the type variable name or theextends
keyword. The signatures may be either unresolved (for source types) or resolved (for binary types). SeeSignature
for details.- Gibt zurück:
- the signatures for the bounds of this formal type parameter
- Löst aus:
JavaModelException
- if this element does not exist or if an exception occurs while accessing its corresponding resource.- Seit:
- 3.6
- Siehe auch:
-
getDeclaringMember
IMember getDeclaringMember()Returns the declaring member of this type parameter. This can be either anIType
or anIMethod
.This is a handle-only method.
- Gibt zurück:
- the declaring member of this type parameter.
-
getTypeRoot
ITypeRoot getTypeRoot()Returns the Java type root in which this type parameter is declared.This is a handle-only method.
- Gibt zurück:
- the Java type root in which this type parameter is declared
- Seit:
- 3.7
-