Package com.rosetta.util.types
Class JavaTypeVariable
java.lang.Object
com.rosetta.util.types.JavaTypeVariable
- All Implemented Interfaces:
JavaReferenceType,JavaType,JavaTypeArgument
-
Field Summary
Fields inherited from interface com.rosetta.util.types.JavaReferenceType
NULL_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionJavaTypeVariable(JavaGenericTypeDeclaration<?> declaration, String name, JavaReferenceType... bounds) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(JavaTypeVisitor visitor) booleanstatic JavaTypeVariablefrom(JavaGenericTypeDeclaration<?> declaration, TypeVariable<?> var, Map<TypeVariable<?>, JavaTypeVariable> context) static JavaTypeVariablefrom(TypeVariable<?> var, Map<TypeVariable<?>, JavaTypeVariable> context) getName()inthashCode()booleanisSubtypeOf(JavaType other) toString()Methods 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.JavaType
getTypeErasure
-
Constructor Details
-
JavaTypeVariable
public JavaTypeVariable(JavaGenericTypeDeclaration<?> declaration, String name, JavaReferenceType... bounds)
-
-
Method Details
-
from
public static JavaTypeVariable from(JavaGenericTypeDeclaration<?> declaration, TypeVariable<?> var, Map<TypeVariable<?>, JavaTypeVariable> context) -
from
public static JavaTypeVariable from(TypeVariable<?> var, Map<TypeVariable<?>, JavaTypeVariable> context) -
getDeclaration
-
getName
-
getBounds
-
getSimpleName
- Specified by:
getSimpleNamein interfaceJavaType
-
isSubtypeOf
- Specified by:
isSubtypeOfin interfaceJavaType
-
toString
-
hashCode
public int hashCode() -
equals
-
accept
-