Package org.midheaven.lang.reflection
Class Mirror<T>
java.lang.Object
org.midheaven.lang.reflection.Mirror<T>
- Type Parameters:
T- type being mirrored
Represents Mirror.
-
Method Summary
Modifier and TypeMethodDescriptionPerforms constructors.static booleanisPossiblyABean(Class<?> type) Checks whether is Possibly ABean.static booleanisPossiblyABean(ParametricTypeReference<?> type) Checks whether is Possibly ABean.methods()Performs methods.Creates new Instance.newInstance(Object... parameters) Creates new Instance.Performs parameterizedType.Performs properties.proxy(InvocationHandler handler, Class<?>... otherTypes) Performs proxy.static <X> Mirror<X> Performs reflect.Performs reflect.Performs reflect.static <X> Mirror<X> reflect(ParametricTypeReference<X> type) Performs reflect.
-
Method Details
-
reflect
Performs reflect.- Parameters:
type- the type value- Returns:
- the result of reflect
-
reflect
Performs reflect.- Parameters:
type- the type value- Returns:
- the result of reflect
-
reflect
Performs reflect.- Parameters:
method- the method value- Returns:
- the result of reflect
-
reflect
Performs reflect.- Parameters:
field- the field value- Returns:
- the result of reflect
-
isPossiblyABean
Checks whether is Possibly ABean.- Parameters:
type- the type value- Returns:
- the result of isPossiblyABean
-
isPossiblyABean
Checks whether is Possibly ABean.- Parameters:
type- the type value- Returns:
- the result of isPossiblyABean
-
parameterizedType
Performs parameterizedType.- Returns:
- the result of parameterizedType
-
properties
Performs properties.- Returns:
- the result of properties
-
methods
Performs methods.- Returns:
- the result of methods
-
constructors
Performs constructors.- Returns:
- the result of constructors
-
newInstance
Creates new Instance.- Returns:
- the result of newInstance
-
newInstance
Creates new Instance.- Parameters:
parameters- the parameters value- Returns:
- the result of newInstance
-
proxy
Performs proxy.- Parameters:
handler- the handler valueotherTypes- the otherTypes value- Returns:
- the result of proxy
-