public class JGenericType extends JRealClassType implements JGenericType
Constructor and Description |
---|
JGenericType(TypeOracle oracle,
JPackage declaringPackage,
String enclosingTypeName,
String name,
boolean isInterface,
JTypeParameter[] jtypeParameters) |
Modifier and Type | Method and Description |
---|---|
JParameterizedType |
asParameterizedByWildcards() |
JClassType |
getErasedType()
Returns this type with no type parameters or type variables.
|
String |
getParameterizedQualifiedSourceName()
Returns a type name as it would be specified in Java source, with the
package name included.
|
JRawType |
getRawType()
Returns the raw type for this generic type.
|
JTypeParameter[] |
getTypeParameters()
Returns the type parameters on this element.
|
JGenericType |
isGenericType()
Returns this instance if it is a real class that has type parameters or
null
if it is not. |
String |
toString() |
acceptSubtype, addConstructor, addField, addLastModifiedTime, addMethod, addModifierBits, addNestedType, findConstructor, findField, findMethod, findNestedType, findNestedTypeImpl, getAnnotation, getAnnotations, getConstructor, getConstructors, getDeclaredAnnotations, getEnclosingType, getField, getFields, getImplementedInterfaces, getInheritableMethods, getInheritableMethodsOnSuperclassesAndThisClass, getInheritableMethodsOnSuperinterfacesAndMaybeThisInterface, getJNISignature, getLastModifiedTime, getMethod, getMethods, getModifierBits, getName, getNestedType, getNestedTypes, getOracle, getOverloads, getOverridableMethods, getPackage, getQualifiedBinaryName, getQualifiedSourceName, getSimpleSourceName, getSubtypes, getSuperclass, isAbstract, isAnnotationPresent, isArray, isClass, isDefaultInstantiable, isEnum, isFinal, isInterface, isMemberType, isParameterized, isPrimitive, isPrivate, isProtected, isPublic, isRawType, isStatic, isWildcard, notifySuperTypesOf, removeSubtype
asParameterizationOf, equals, findAnnotationInTypeHierarchy, getFlattenedSupertypeHierarchy, getFlattenedSuperTypeHierarchy, getLeafType, getMetaData, getMetaDataTags, hashCode, isAnnotation, isAssignableFrom, isAssignableTo, isClassOrInterface, isEnhanced, isLocalType, isMaybeParameterizedType, isTypeParameter, setEnhanced
getLastModifiedTime
asParameterizationOf, findAnnotationInTypeHierarchy, findConstructor, findField, findMethod, findNestedType, getConstructor, getConstructors, getEnclosingType, getField, getFields, getFlattenedSupertypeHierarchy, getImplementedInterfaces, getInheritableMethods, getMethod, getMethods, getName, getNestedType, getNestedTypes, getOracle, getOverloads, getOverridableMethods, getPackage, getSubtypes, getSuperclass, isAbstract, isAssignableFrom, isAssignableTo, isDefaultInstantiable, isEnhanced, isFinal, isLocalType, isMemberType, isPrivate, isProtected, isPublic, isStatic, setEnhanced
getJNISignature, getLeafType, getQualifiedBinaryName, getQualifiedSourceName, getSimpleSourceName, isAnnotation, isArray, isClass, isClassOrInterface, isEnum, isInterface, isParameterized, isPrimitive, isRawType, isTypeParameter, isWildcard
getAnnotation, getAnnotations, getDeclaredAnnotations, isAnnotationPresent
getMetaData, getMetaDataTags
public JGenericType(TypeOracle oracle, JPackage declaringPackage, String enclosingTypeName, String name, boolean isInterface, JTypeParameter[] jtypeParameters)
public JParameterizedType asParameterizedByWildcards()
asParameterizedByWildcards
in interface JGenericType
public JClassType getErasedType()
JType
getErasedType
in interface JClassType
getErasedType
in interface JType
getErasedType
in class JRealClassType
public String getParameterizedQualifiedSourceName()
JType
getParameterizedQualifiedSourceName
in interface JType
getParameterizedQualifiedSourceName
in class JClassType
public JRawType getRawType()
JGenericType
void a1(List<T>)
& void a2(List<String>)
becomes
void a1(List)
& void a2(List))
respectively.getRawType
in interface JGenericType
public JTypeParameter[] getTypeParameters()
HasTypeParameters
getTypeParameters
in interface HasTypeParameters
public JGenericType isGenericType()
JType
null
if it is not.isGenericType
in interface JType
isGenericType
in class JRealClassType
public String toString()
toString
in class JRealClassType
Copyright © 2018. All rights reserved.