|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Inspector provides a unified access to an object's information that can be determined by introspection.
Field Summary | |
---|---|
int |
CLASS_CLASS_IDX
|
int |
CLASS_INTERFACE_IDX
|
int |
CLASS_OTHER_IDX
|
int |
CLASS_PACKAGE_IDX
|
int |
CLASS_SUPERCLASS_IDX
|
String |
GROOVY
|
String |
JAVA
|
int |
MEMBER_DECLARER_IDX
|
int |
MEMBER_EXCEPTIONS_IDX
|
int |
MEMBER_MODIFIER_IDX
|
int |
MEMBER_NAME_IDX
|
int |
MEMBER_ORIGIN_IDX
|
int |
MEMBER_PARAMS_IDX
|
int |
MEMBER_TYPE_IDX
|
int |
MEMBER_VALUE_IDX
|
String |
NOT_APPLICABLE
|
Object |
objectUnderInspection
|
Constructor Summary | |
Inspector(Object objectUnderInspection)
|
Method Summary | |
---|---|
def |
fieldInfo(Field field)
|
def |
fieldInfo(PropertyValue pv)
|
def |
getClassProps()
Get the Class Properties of the object under inspection. |
Class |
getClassUnderInspection()
|
def |
getMetaMethods()
Get info about instance and class Methods that are dynamically added through Groovy. |
def |
getMethods()
Get info about usual Java instance and class Methods as well as Constructors. |
Object |
getObject()
Gets the object being inspected. |
def |
getPropertyInfo()
Get info about Properties (Java and Groovy alike). |
def |
getPublicFields()
Get info about usual Java public fields incl. constants. |
boolean |
isGroovy()
|
def |
methodInfo(Method method)
|
def |
methodInfo(Constructor ctor)
|
def |
methodInfo(MetaMethod method)
|
static void |
print(def memberInfo)
|
static void |
print(PrintStream out, def memberInfo)
|
static String |
shortName(Class clazz)
|
static Collection |
sort(List memberInfo)
|
def |
withoutNulls(def toNormalize)
|
Constructor Detail |
---|
public Inspector(Object objectUnderInspection)
Method Detail |
---|
def fieldInfo(Field field)
def fieldInfo(PropertyValue pv)
public def getClassProps()
Class getClassUnderInspection()
public def getMetaMethods()
public def getMethods()
public Object getObject()
public def getPropertyInfo()
public def getPublicFields()
public boolean isGroovy()
def methodInfo(Method method)
def methodInfo(Constructor ctor)
def methodInfo(MetaMethod method)
public static void print(def memberInfo)
public static void print(PrintStream out, def memberInfo)
public static String shortName(Class clazz)
public static Collection sort(List memberInfo)
def withoutNulls(def toNormalize)