|
Eclipse JDT Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITypeParameter
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.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.jdt.core.IJavaElement |
|---|
ANNOTATION, CLASS_FILE, COMPILATION_UNIT, FIELD, IMPORT_CONTAINER, IMPORT_DECLARATION, INITIALIZER, JAVA_MODEL, JAVA_PROJECT, LOCAL_VARIABLE, METHOD, PACKAGE_DECLARATION, PACKAGE_FRAGMENT, PACKAGE_FRAGMENT_ROOT, TYPE, TYPE_PARAMETER |
| Method Summary | |
|---|---|
String[] |
getBounds()
Returns the names of the class and interface bounds of this type parameter. |
String[] |
getBoundsSignatures()
Returns the signatures for this type parameter's bounds. |
IMember |
getDeclaringMember()
Returns the declaring member of this type parameter. |
ITypeRoot |
getTypeRoot()
Returns the Java type root in which this type parameter is declared. |
| Methods inherited from interface org.eclipse.jdt.core.IJavaElement |
|---|
exists, getAncestor, getAttachedJavadoc, getCorrespondingResource, getElementName, getElementType, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPath, getPrimaryElement, getResource, getSchedulingRule, getUnderlyingResource, isReadOnly, isStructureKnown |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Methods inherited from interface org.eclipse.jdt.core.ISourceReference |
|---|
exists, getNameRange, getSource, getSourceRange |
| Method Detail |
|---|
String[] getBounds()
throws JavaModelException
extends 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.
JavaModelException - if this element does not exist or if an
exception occurs while accessing its corresponding resource
String[] getBoundsSignatures()
throws JavaModelException
extends keyword.
The signatures may be either unresolved (for source types) or resolved (for binary types).
See Signature for details.
JavaModelException - if this element does not exist or if an exception occurs while accessing its corresponding resource.SignatureIMember getDeclaringMember()
IType
or an IMethod.
This is a handle-only method.
ITypeRoot getTypeRoot()
This is a handle-only method.
|
Eclipse JDT Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2011 IBM Corporation and others. All rights reserved.