Class Mirror<T>

java.lang.Object
org.midheaven.lang.reflection.Mirror<T>
Type Parameters:
T - type being mirrored

public class Mirror<T> extends Object
Represents Mirror.
  • Method Details

    • reflect

      public static <X> Mirror<X> reflect(Class<X> type)
      Performs reflect.
      Parameters:
      type - the type value
      Returns:
      the result of reflect
    • reflect

      public static <X> Mirror<X> reflect(ParametricTypeReference<X> type)
      Performs reflect.
      Parameters:
      type - the type value
      Returns:
      the result of reflect
    • reflect

      public static Maybe<Property> reflect(Method method)
      Performs reflect.
      Parameters:
      method - the method value
      Returns:
      the result of reflect
    • reflect

      public static Maybe<Property> reflect(Field field)
      Performs reflect.
      Parameters:
      field - the field value
      Returns:
      the result of reflect
    • isPossiblyABean

      public static boolean isPossiblyABean(Class<?> type)
      Checks whether is Possibly ABean.
      Parameters:
      type - the type value
      Returns:
      the result of isPossiblyABean
    • isPossiblyABean

      public static boolean isPossiblyABean(ParametricTypeReference<?> type)
      Checks whether is Possibly ABean.
      Parameters:
      type - the type value
      Returns:
      the result of isPossiblyABean
    • parameterizedType

      public Maybe<ParameterizedType> parameterizedType()
      Performs parameterizedType.
      Returns:
      the result of parameterizedType
    • properties

      public PropertiesMirror<T> properties()
      Performs properties.
      Returns:
      the result of properties
    • methods

      public MethodsMirror<T> methods()
      Performs methods.
      Returns:
      the result of methods
    • constructors

      public ConstructorsMirror<T> constructors()
      Performs constructors.
      Returns:
      the result of constructors
    • newInstance

      public T newInstance()
      Creates new Instance.
      Returns:
      the result of newInstance
    • newInstance

      public T newInstance(Object... parameters)
      Creates new Instance.
      Parameters:
      parameters - the parameters value
      Returns:
      the result of newInstance
    • proxy

      public T proxy(InvocationHandler handler, Class<?>... otherTypes)
      Performs proxy.
      Parameters:
      handler - the handler value
      otherTypes - the otherTypes value
      Returns:
      the result of proxy