public class Inspector extends Object
The Inspector provides a unified access to an object's information that can be determined by introspection.
Modifiers | Name | Description |
---|---|---|
static class |
Inspector.MemberComparator |
|
static class |
Inspector.MemberComparatorWithValue |
Modifiers | Name | Description |
---|---|---|
static int |
CLASS_CLASS_IDX |
|
static int |
CLASS_INTERFACE_IDX |
|
static int |
CLASS_OTHER_IDX |
|
static int |
CLASS_PACKAGE_IDX |
|
static int |
CLASS_SUPERCLASS_IDX |
|
static String |
GROOVY |
|
static String |
JAVA |
|
static int |
MEMBER_DECLARER_IDX |
|
static int |
MEMBER_EXCEPTIONS_IDX |
|
static int |
MEMBER_MODIFIER_IDX |
|
static int |
MEMBER_NAME_IDX |
|
static int |
MEMBER_ORIGIN_IDX |
|
static int |
MEMBER_PARAMS_IDX |
|
static int |
MEMBER_TYPE_IDX |
|
static int |
MEMBER_VALUE_IDX |
|
static String |
NOT_APPLICABLE |
Type Params | Return Type | Name and description |
---|---|---|
|
public String[] |
getClassProps() Get the Class Properties of the object under inspection. |
|
public Object[] |
getMetaMethods() Get info about instance and class Methods that are dynamically added through Groovy. |
|
public Tuple2[] |
getMetaMethodsWithInfo() Get info about instance and class Methods that are dynamically added through Groovy. |
|
public Object[] |
getMethods() Get info about usual Java instance and class Methods as well as Constructors. |
|
public Tuple2[] |
getMethodsWithInfo() Get info about usual Java instance and class Methods as well as Constructors. |
|
public Object |
getObject() Gets the object being inspected. |
|
public Object[] |
getPropertiesWithInfo() |
|
public Object[] |
getPropertyInfo() Get info about Properties (Java and Groovy alike). |
|
public Object[] |
getPublicFields() Get info about usual Java public fields incl. constants. |
|
public boolean |
isGroovy() |
|
public static void |
print(Object[] memberInfo) |
|
public static String |
shortName(Class clazz) |
|
public static Collection |
sort(List<Object> memberInfo) |
|
public static Collection |
sort(List<Object> memberInfo, Comparator<Object> comparator) |
objectUnderInspection
- must not be nullGet the Class Properties of the object under inspection.
Get info about instance and class Methods that are dynamically added through Groovy.
Get info about instance and class Methods that are dynamically added through Groovy.
Get info about usual Java instance and class Methods as well as Constructors.
Get info about usual Java instance and class Methods as well as Constructors.
Gets the object being inspected.
Get info about Properties (Java and Groovy alike).
Get info about usual Java public fields incl. constants.
Copyright © 2003-2022 The Apache Software Foundation. All rights reserved.