Package io.ran

Class Clazz<T>

java.lang.Object
io.ran.Clazz<T>

public class Clazz<T> extends Object
  • Field Details

  • Constructor Details

    • Clazz

      public Clazz(String className)
    • Clazz

      public Clazz(Class<T> clazz, Clazz<?>... generics)
    • Clazz

      public Clazz(Class<T> clazz, List<Clazz<?>> generics)
  • Method Details

    • raw

      public static <T> Clazz<T> raw(Class<T> clazz)
    • of

      public static Clazz of(Type type)
    • of

      protected static Clazz of(Type type, Map<String,Clazz<?>> genericMap, Set<String> loopStop)
    • ofClasses

      public static <T> Clazz<T> ofClasses(Class<T> clazz, Class<?>... generics)
    • ofClazzes

      public static Clazz ofClazzes(Class clazz, Clazz<?>... generics)
    • ofClazzes

      public static Clazz ofClazzes(Class clazz, List<Clazz> generics)
    • of

      public static Clazz<?> of(Field field)
    • getVoid

      public static Clazz<?> getVoid()
    • getInt

      public static Clazz<?> getInt()
    • getShort

      public static Clazz<?> getShort()
    • of

      public static Clazz of(String s)
    • is

      public boolean is(Clazz<?> bound, Set<String> loopStop)
    • getUnBoxSignature

      public Method getUnBoxSignature()
    • getUnBoxed

      public Clazz<?> getUnBoxed()
    • getBoxed

      public Clazz<?> getBoxed()
    • getInternalName

      public String getInternalName()
    • isPrimitive

      public boolean isPrimitive()
    • isDecimal

      public boolean isDecimal()
    • isArray

      public boolean isArray()
    • getComponentType

      public Clazz<?> getComponentType()
    • getArrayType

      public Clazz<?> getArrayType()
    • size

      public int size()
    • isBoxedPrimitive

      public boolean isBoxedPrimitive()
    • getPrimitive

      public Clazz<?> getPrimitive()
    • getSuper

      public Clazz<?> getSuper()
    • getInterfaces

      public Set<Clazz<?>> getInterfaces()
      Returns:
      Set of directly implemented/extended interfaces
    • getAssignableClazzes

      public Set<Clazz<?>> getAssignableClazzes()
      Returns:
      Set of Clazzes that are assignable from this Clazz
    • getPrimitiveOffset

      public int getPrimitiveOffset()
    • getDescriptor

      public String getDescriptor()
    • getSignature

      public String getSignature()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • name

      public String name()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • classRepresentation

      public String classRepresentation()
    • representation

      public String representation()
    • isInterface

      public boolean isInterface()
    • clazzRepresentation

      public String clazzRepresentation()
    • getToken

      public Token getToken()
    • getSimpleName

      public String getSimpleName()
    • getKeys

      public KeySets getKeys()
    • getAnnotations

      public Annotations getAnnotations()
    • getAllFields

      public Property.PropertyList getAllFields()
    • getProperties

      public Property.PropertyList getProperties()
    • methods

      public ClazzMethodList methods()
    • isPropertyField

      public static boolean isPropertyField(Field field)
    • isPublicStatic

      public static boolean isPublicStatic(Field field)
    • isRelationField

      public static boolean isRelationField(Field field)
    • getFields

      public List<Field> getFields()
    • getRelationFields

      public List<Field> getRelationFields()
    • getPropertyFields

      public List<Field> getPropertyFields()
    • getDeclaredPropertyFields

      public List<Field> getDeclaredPropertyFields()
    • getDefaultValue

      public Object getDefaultValue()
    • getType

      public Type getType()
    • findGenericSuper

      public Clazz<?> findGenericSuper(Class<?> ofClazz)
      Parameters:
      ofClazz - superclass or generic interface of `this`
      Returns:
      Clazz<?> of `ofClazz` with generics set as specified by `this`
    • equalsRaw

      public boolean equalsRaw(Clazz<?> clazz)
    • declaresMethod

      public boolean declaresMethod(ClazzMethod cm)
    • isVoid

      public boolean isVoid()