Package org.perfectable.introspection
Class Introspections
- java.lang.Object
-
- org.perfectable.introspection.Introspections
-
public final class Introspections extends Object
Convenient entry point for introspections.Use
introspect(java.lang.Class<X>)
to start introspection for either supported type.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <X> ClassIntrospection<X>
introspect(Class<X> type)
Introspect a class.static ClassLoaderIntrospection
introspect(ClassLoader classLoader)
Introspect a classloader.static FieldIntrospection
introspect(Field field)
Introspect a field.static MethodIntrospection
introspect(Method method)
Introspect a method.
-
-
-
Method Detail
-
introspect
public static <X> ClassIntrospection<X> introspect(Class<X> type)
Introspect a class.- Type Parameters:
X
- class parameter- Parameters:
type
- class to introspect- Returns:
- class introspections
-
introspect
public static MethodIntrospection introspect(Method method)
Introspect a method.- Parameters:
method
- method to introspect- Returns:
- method introspections
-
introspect
public static FieldIntrospection introspect(Field field)
Introspect a field.- Parameters:
field
- field to introspect- Returns:
- field introspections
-
introspect
public static ClassLoaderIntrospection introspect(ClassLoader classLoader)
Introspect a classloader.- Parameters:
classLoader
- class loader to introspect- Returns:
- classloader introspections
-
-