Package com.rosetta.util.types
Class JavaParameterizedType<T>
java.lang.Object
com.rosetta.util.types.JavaClass<T>
com.rosetta.util.types.JavaParameterizedType<T>
- All Implemented Interfaces:
JavaReferenceType,JavaType,JavaTypeArgument,JavaTypeDeclaration<T>
- Direct Known Subclasses:
JavaParameterizedType.JavaParameterizedTypeImpl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classNested classes/interfaces inherited from class com.rosetta.util.types.JavaClass
JavaClass.JavaClassImpl<T> -
Field Summary
Fields inherited from class com.rosetta.util.types.JavaClass
CLONEABLE, OBJECT, SERIALIZABLEFields inherited from interface com.rosetta.util.types.JavaReferenceType
NULL_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(JavaTypeVisitor visitor) voidaddTypeVariableSubstitution(Map<JavaTypeVariable, JavaTypeArgument> substitution) applySubstitution(Map<JavaTypeVariable, JavaTypeArgument> substitution) booleanbooleanextendsDeclaration(JavaTypeDeclaration<?> other) static <U> Class<U> static <T> JavaParameterizedType<T> from(com.fasterxml.jackson.core.type.TypeReference<T> typeRef, JavaTypeArgument... arguments) static <T> JavaParameterizedType<T> from(com.fasterxml.jackson.core.type.TypeReference<T> typeRef, List<JavaTypeArgument> arguments) static <T> JavaParameterizedType<T> from(JavaGenericTypeDeclaration<? super T> typeDeclaration, JavaTypeArgument... arguments) static <T> JavaParameterizedType<T> from(JavaGenericTypeDeclaration<? super T> typeDeclaration, List<JavaTypeArgument> arguments) static <T> JavaParameterizedType<T> from(Class<T> rawType, ParameterizedType t, Map<TypeVariable<?>, JavaTypeVariable> context) abstract List<JavaTypeArgument> abstract JavaGenericTypeDeclaration<? super T> List<? extends JavaTypeDeclaration<?>> JavaTypeDeclaration<? super T> inthashCode()booleanisFinal()booleanisSubtypeOf(JavaType other) booleanisSupertypeOf(JavaClass<?> other) loadClass(ClassLoader classLoader) toString()Methods inherited from class com.rosetta.util.types.JavaClass
from, from, from, getSimpleNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.rosetta.util.types.JavaReferenceType
accept, contains, toReferenceTypeMethods inherited from interface com.rosetta.util.types.JavaTypeDeclaration
getCanonicalName
-
Constructor Details
-
JavaParameterizedType
public JavaParameterizedType()
-
-
Method Details
-
from
public static <T> JavaParameterizedType<T> from(com.fasterxml.jackson.core.type.TypeReference<T> typeRef, List<JavaTypeArgument> arguments) -
from
public static <T> JavaParameterizedType<T> from(com.fasterxml.jackson.core.type.TypeReference<T> typeRef, JavaTypeArgument... arguments) -
from
public static <T> JavaParameterizedType<T> from(Class<T> rawType, ParameterizedType t, Map<TypeVariable<?>, JavaTypeVariable> context) -
from
public static <T> JavaParameterizedType<T> from(JavaGenericTypeDeclaration<? super T> typeDeclaration, JavaTypeArgument... arguments) -
from
public static <T> JavaParameterizedType<T> from(JavaGenericTypeDeclaration<? super T> typeDeclaration, List<JavaTypeArgument> arguments) -
extractRawClass
-
getGenericTypeDeclaration
-
getArguments
-
isSubtypeOf
-
isSupertypeOf
-
getTypeVariableSubstitution
-
addTypeVariableSubstitution
-
extendsDeclaration
-
getSuperclassDeclaration
-
getSuperclass
- Specified by:
getSuperclassin classJavaClass<T>
-
getInterfaceDeclarations
-
getInterfaces
- Specified by:
getInterfacesin classJavaClass<T>
-
applySubstitution
public JavaParameterizedType<T> applySubstitution(Map<JavaTypeVariable, JavaTypeArgument> substitution) - Specified by:
applySubstitutionin interfaceJavaTypeDeclaration<T>- Overrides:
applySubstitutionin classJavaClass<T>
-
loadClass
- Throws:
ClassNotFoundException
-
isFinal
public boolean isFinal() -
getNestedTypeName
-
getPackageName
-
toString
-
hashCode
public int hashCode() -
equals
-
accept
-
getTypeErasure
-