Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2004, 2010 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: IBM Corporation - initial API and implementation /
package org.eclipse.jdt.core;


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(java.lang.String) and IMethod.getTypeParameter(java.lang.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
Noimplement:
This interface is not intended to be implemented by clients.
public interface ITypeParameter extends IJavaElement, ISourceReference {

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
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 the extends keyword. The signatures may be either unresolved (for source types) or resolved (for binary types). See Signature for details.

Returns:
the signatures for the bounds of this formal type parameter
Throws:
JavaModelException if this element does not exist or if an exception occurs while accessing its corresponding resource.
Since:
3.6
See also:
Signature
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.
Returns the Java type root in which this type parameter is declared.

This is a handle-only method.

Returns:
the Java type root in which this type parameter is declared
Since:
3.7
New to GrepCode? Check out our FAQ X