Package com.rosetta.util.types
Interface JavaType
- All Known Subinterfaces:
JavaReferenceType
- All Known Implementing Classes:
GeneratedJavaClass,JavaArrayType,JavaClass,JavaClass.JavaClassImpl,JavaParameterizedType,JavaParameterizedType.JavaParameterizedTypeImpl,JavaPrimitiveType,JavaTypeVariable
public interface JavaType
A simplified model of types in Java, based on the Java specification:
https://docs.oracle.com/javase/specs/jls/se11/html/jls-4.html
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(JavaTypeVisitor visitor) static JavaTypestatic JavaTypefrom(Object obj, Map<TypeVariable<?>, JavaTypeVariable> context) static <T> JavaTypestatic <T> JavaTypefrom(Type t, Map<TypeVariable<?>, JavaTypeVariable> context) default JavaTypebooleanisSubtypeOf(JavaType other)
-
Method Details
-
from
-
from
-
from
-
from
-
isSubtypeOf
-
toReferenceType
JavaReferenceType toReferenceType() -
getSimpleName
String getSimpleName() -
accept
-
getTypeErasure
-