Class TypeClazz

java.lang.Object
dev.quantumfusion.hyphen.scan.type.Clazz
dev.quantumfusion.hyphen.scan.type.TypeClazz

public class TypeClazz extends Clazz
  • Field Details

    • defined

      public final Clazz defined
    • typeName

      public final String typeName
  • Constructor Details

  • Method Details

    • create

      public static TypeClazz create(SerializerHandler<?,​?> handler, AnnotatedType typeVariable, @Nullable @Nullable Clazz ctx)
    • getDefinedClass

      public Class<?> getDefinedClass()
      Description copied from class: Clazz
      Gets the class that may have been tracked across parameters and types. This is the class you want to encode/decode.
      Overrides:
      getDefinedClass in class Clazz
      Returns:
      The Defined class
    • getBytecodeClass

      public Class<?> getBytecodeClass()
      Description copied from class: Clazz
      Gets the class that is in actual bytecode. In the case of types it may be Object but it may also be the bound.
      Overrides:
      getBytecodeClass in class Clazz
      Returns:
      The Bytecode class
    • define

      public Clazz define(String typeName)
      Description copied from class: Clazz
      Tries to define a type.
      Overrides:
      define in class Clazz
      Parameters:
      typeName - The Class Type name
      Returns:
      The Possible Clazz. Else UnknownClazz.UNKNOWN
    • asSub

      public Clazz asSub(Class<?> sub)
      Overrides:
      asSub in class Clazz
    • getFields

      public List<FieldEntry> getFields()
      Overrides:
      getFields in class Clazz
    • defined

      public int defined()
      Overrides:
      defined in class Clazz
    • toString

      public String toString()
      Overrides:
      toString in class Clazz
    • getDefined

      public Clazz getDefined()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Clazz
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Clazz