Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse JDT
Release 3.5

org.eclipse.jdt.core
Interface ITypeParameter

All Superinterfaces:
IAdaptable, IJavaElement, ISourceReference

public interface ITypeParameter
extends IJavaElement, ISourceReference

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.

Since:
3.1
Restriction:
This interface is not intended to be implemented by clients.

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.
  IMember getDeclaringMember ()
          Returns the declaring member of this type parameter.
  ISourceRange getNameRange ()
          Returns the source range of this type parameter's name, or null if this type parameter does not have associated source code (for example, in a binary type).
 
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, getSource, getSourceRange
 

Method Detail

getBounds


String[] getBounds()
                   throws 
JavaModelException
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 the 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.

Returns:
the names of the bounds
Throws:
JavaModelException - if this element does not exist or if an exception occurs while accessing its corresponding resource

getDeclaringMember


IMember getDeclaringMember()
Returns the declaring member of this type parameter. This can be either an IType or an IMethod.

This is a handle-only method.

Returns:
the declaring member of this type parameter.

getNameRange


ISourceRange getNameRange()
                          throws 
JavaModelException
Returns the source range of this type parameter's name, or null if this type parameter does not have associated source code (for example, in a binary type).

Returns:
the source range of this type parameter's name, or null if this type parameter does not have associated source code (for example, in a binary type)
Throws:
JavaModelException - if this element does not exist or if an exception occurs while accessing its corresponding resource.

Eclipse JDT
Release 3.5

Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire