Class TypeWrap<T>

java.lang.Object
studio.mevera.imperat.util.TypeWrap<T>

public abstract class TypeWrap<T> extends Object
  • Constructor Details

    • TypeWrap

      protected TypeWrap()
  • Method Details

    • of

      public static TypeWrap<?> of(Type type)
    • of

      public static <T> TypeWrap<T> of(Class<T> type)
    • ofParameterized

      public static <S extends Source> TypeWrap<?> ofParameterized(Type rawClass, List<ParameterType<S,?>> genericParamTypes)
    • ofArray

      public static TypeWrap<?> ofArray(Type type)
    • getParameterizedTypes

      public Type[] getParameterizedTypes()
    • getType

      public Type getType()
    • getRawType

      public Class<? super T> getRawType()
    • isPrimitive

      public final boolean isPrimitive()
    • isWrapped

      public final boolean isWrapped()
    • wrap

      public TypeWrap<?> wrap()
    • unwrap

      public TypeWrap<?> unwrap()
    • isArray

      public final boolean isArray()
    • getComponentType

      public TypeWrap<?> getComponentType()
    • isSupertypeOf

      public final boolean isSupertypeOf(TypeWrap<?> type)
    • isSupertypeOf

      public final boolean isSupertypeOf(Type type)
    • isSubtypeOf

      public final boolean isSubtypeOf(TypeWrap<?> type)
    • isSubtypeOf

      public final boolean isSubtypeOf(Type supertype)