Skip navigation links
oracle.javatools.parser.java.v2.model
Interface JavaTypeVariable
- All Superinterfaces:
- Element, JavaElement, JavaHasAnnotations, JavaHasName, JavaHasType, JavaIsGeneric, JavaMember, JavaType
- All Known Subinterfaces:
- SourceTypeParameter
-
public interface JavaTypeVariable
- extends JavaType
The TypeVariable is a new concept in jdk 1.5. A TypeVariable has a name, a superclass, and an array of super-interfaces. A TypeVariable declares no fields, methods, constructors, or inner classes. If no superclass was declared, then java/lang/Object is the implicit superclass. Because type variables have a superclass and an array of super-interfaces, they may have hierarchies.
Type variables are not interface, enum, annotation, primitive, or array types. A type variable will return its variable name when asked for its qualified or raw name.
Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaType |
equals, getArrayDimensions, getBaseComponentType, getClass, getClasses, getClinitMethod, getClosestClass, getComponentType, getDeclaredClass, getDeclaredClasses, getDeclaredConstructor, getDeclaredConstructors, getDeclaredField, getDeclaredFields, getDeclaredMethod, getDeclaredMethods, getDeclaredMethods, getDescriptor, getField, getFields, getHierarchy, getInterfaces, getMethod, getMethods, getMethods, getName, getPackage, getPackageName, getQualifiedName, getRawName, getSignature, getSuperclass, getThisValue, getTypeErasure, getTypeSignature, getUniqueIdentifier, getUnqualifiedName, getUnresolvedInterfaces, getUnresolvedSuperclass, getURL, getVMName, isAnnotation, isArray, isAssignableFrom, isEnum, isExported, isInterface, isMemberClass, isPrimitive, isSubtypeOf |
Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaElement |
getElementKind, getFile, getModifiers, getOwner, getSourceElement, isDeprecated, isFinal, isHidden, isSourceElement, isSynthetic, printCompiledInfo |
getBounds
java.util.Collection<JavaType> getBounds()
- Corresponds to java/lang/reflect/TypeVariable.getBounds().
Returns the explicitly declared bounds. If no explicit bounds were declared, an empty Collection is returned, which implicitly means that the bounds is java/lang/Object.
-
- Returns:
- A collection of JavaType's, which might be empty, that has the explicitly declared upper (inclusive) bounds for this type.
getOwningMember
JavaMember getOwningMember()
- Type variables can be owned by either a class or a method.
-
- Returns:
- The owning member of this type variable.
Skip navigation links
Copyright © 1997, 2012, Oracle. All rights reserved.