Package com.rosetta.util.types
Class JavaClass<T>
java.lang.Object
com.rosetta.util.types.JavaClass<T>
- All Implemented Interfaces:
JavaReferenceType,JavaType,JavaTypeArgument,JavaTypeDeclaration<T>
- Direct Known Subclasses:
GeneratedJavaClass,JavaClass.JavaClassImpl,JavaParameterizedType
public abstract class JavaClass<T>
extends Object
implements JavaReferenceType, JavaTypeDeclaration<T>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface com.rosetta.util.types.JavaReferenceType
NULL_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(JavaTypeVisitor visitor) applySubstitution(Map<JavaTypeVariable, JavaTypeArgument> substitution) booleanstatic <T> JavaClass<T> static <T> JavaClass<T> from(Class<T> raw, Type generic, Map<TypeVariable<?>, JavaTypeVariable> context) static JavaClass<?> from(Type t, Map<TypeVariable<?>, JavaTypeVariable> context) inthashCode()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, isSubtypeOfMethods inherited from interface com.rosetta.util.types.JavaTypeDeclaration
extendsDeclaration, getCanonicalName, getInterfaceDeclarations, getNestedTypeName, getPackageName, getSuperclassDeclaration, isFinal, loadClass
-
Field Details
-
OBJECT
-
CLONEABLE
-
SERIALIZABLE
-
-
Constructor Details
-
JavaClass
public JavaClass()
-
-
Method Details
-
from
public static <T> JavaClass<T> from(Class<T> raw, Type generic, Map<TypeVariable<?>, JavaTypeVariable> context) -
from
-
from
-
getSuperclass
-
getInterfaces
-
getSimpleName
- Specified by:
getSimpleNamein interfaceJavaType- Specified by:
getSimpleNamein interfaceJavaTypeDeclaration<T>
-
applySubstitution
- Specified by:
applySubstitutionin interfaceJavaTypeDeclaration<T>
-
toString
-
hashCode
public int hashCode() -
equals
-
accept
-