Class TypeClazz
java.lang.Object
dev.quantumfusion.hyphen.scan.type.Clazz
dev.quantumfusion.hyphen.scan.type.TypeClazz
-
Field Summary
FieldsFields inherited from class dev.quantumfusion.hyphen.scan.type.Clazz
aClass, annotations, handler -
Constructor Summary
ConstructorsConstructorDescriptionTypeClazz(SerializerHandler<?,?> handler, Map<Class<? extends Annotation>,Object> annotations, Clazz defined, Class<?> bytecodeBound, String typeName) -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeClazzcreate(SerializerHandler<?,?> handler, AnnotatedType typeVariable, @Nullable Clazz ctx)Tries to define a type.intdefined()booleanClass<?>Gets the class that is in actual bytecode.Class<?>Gets the class that may have been tracked across parameters and types.inthashCode()toString()Methods inherited from class dev.quantumfusion.hyphen.scan.type.Clazz
containsAnnotation, getAnnotationValue
-
Field Details
-
defined
-
typeName
-
-
Constructor Details
-
TypeClazz
public TypeClazz(SerializerHandler<?,?> handler, Map<Class<? extends Annotation>,Object> annotations, Clazz defined, Class<?> bytecodeBound, String typeName)
-
-
Method Details
-
create
public static TypeClazz create(SerializerHandler<?,?> handler, AnnotatedType typeVariable, @Nullable @Nullable Clazz ctx) -
getDefinedClass
Description copied from class:ClazzGets the class that may have been tracked across parameters and types. This is the class you want to encode/decode.- Overrides:
getDefinedClassin classClazz- Returns:
- The Defined class
-
getBytecodeClass
Description copied from class:ClazzGets the class that is in actual bytecode. In the case of types it may beObjectbut it may also be the bound.- Overrides:
getBytecodeClassin classClazz- Returns:
- The Bytecode class
-
define
Description copied from class:ClazzTries to define a type.- Overrides:
definein classClazz- Parameters:
typeName- The Class Type name- Returns:
- The Possible Clazz. Else
UnknownClazz.UNKNOWN
-
asSub
-
getFields
-
defined
public int defined() -
toString
-
getDefined
-
equals
-
hashCode
public int hashCode()
-