oracle.javatools.parser.java.v2.model
Interface JavaIsGeneric
- All Superinterfaces: 
 - Element, JavaElement, JavaHasAnnotations, JavaHasName, JavaHasType, JavaMember
 
- All Known Subinterfaces: 
 - JavaClass, JavaMethod, JavaType, JavaTypeVariable, JavaWildcardType, SourceClass, SourceMethod, SourceTypeParameter
 
- All Known Implementing Classes: 
 - AbstractClass, AbstractMethod, AbstractType, BaseFileProvider.BaseClass, CastedMethod, oracle.javatools.parser.java.v2.classfile.ClClass, PrimitiveType, QuickComponent, QuickMethod, WrapperClass, WrapperMethod
 
public interface JavaIsGeneric
- extends JavaMember
 
A generic declaration declares type parameters. Both types and
 methods (constructors too) may declare type parameters. A bound
 declaration may be created from a generic declaration.
 
 
 
 
 
| Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaHasName | 
getName | 
 
 
| Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaElement | 
getElementKind, getFile, getModifiers, getOwner, getSourceElement, isDeprecated, isFinal, isHidden, isSourceElement, isSynthetic, printCompiledInfo | 
 
hasTypeParameters
boolean hasTypeParameters()
 
- Returns:
 - True if this member has type parameters.
 
 
getTypeParameters
java.util.Collection getTypeParameters()
 
- Returns:
 - The array of type parameters for this generic type.
 Zero-length if this type is not of generic type. Returns
 a Collection of JavaTypeVariable's.
 
 
getTypeParameter
JavaTypeVariable getTypeParameter(java.lang.String name)
 
- Returns:
 - The matching type parameter. Null means no match.
 
 
hasActualTypeArguments
boolean hasActualTypeArguments()
 
- Returns:
 - True if this member has actual type arguments.
 
 
getActualTypeArguments
java.util.Collection getActualTypeArguments()
 
- Returns:
 - The array of actual type arguments this generic type is
 element is bound to. Zero-length if this type is not generic or
 is not bound. Returns a Collection of JavaType's.
 
 
Copyright © 1997, 2009, Oracle. All rights reserved.