|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.event.MouseAdapter
org.pf.joi.Inspector
public abstract class Inspector
This is the default inspector, which can display all normal java objects.
Currently it opens a window on the object to inspect and displays all
of its fields that are not static and not final,
which means no class variables and no constants, but all instance variables
(including inherited attributes).
For arrays it lists up all elements from 0 to n.
For deeper inspection it is possible to open a new inspector on each
attribute.
Here is an example how to use the inspector:
panel = new JPanel() ;
Inspector.inspect( panel ) ;
Field Summary | |
---|---|
static java.lang.String |
EXPORTER_MAPPING_FILENAME
The filename that will be looked up in each classpath element to load exporter classes ( implementors of ExportProvider ) automatically into the registry of JOI. |
static java.lang.String |
EXPORTER_MAPPING_FILENAME_ALL
|
static java.lang.String |
EXPORTER_MAPPING_FILENAME_CLASSLOADER
|
static java.lang.String |
INSPECTOR_MAPPING_FILENAME
The filename that will be looked up in each classpath element to load inspector classes ( subclasses of BasicInspector ) automatically into the registry of JOI. |
static java.lang.String |
INSPECTOR_MAPPING_FILENAME_ALL
|
static java.lang.String |
INSPECTOR_MAPPING_FILENAME_CLASSLOADER
|
Method Summary | |
---|---|
static Inspector |
basicInspect(java.lang.Object obj)
Inspect the given object. |
static Inspector |
basicInspect(java.lang.String name,
java.lang.Object obj)
Inspect the given object. |
static void |
basicInspectWait(java.lang.Object obj)
Inspect the given object like in basicInspect(). |
static void |
basicInspectWait(java.lang.String name,
java.lang.Object obj)
Inspect the given object like in basicInspect(). |
static void |
bindInspector(java.lang.String className,
java.lang.String inspectorName)
Bind a specific class or interface to a special inspector class. |
static void |
deactivateHalt()
Continues the current process. |
static java.lang.String |
fullIdentification()
Returns the component's long name and current version |
static AbstractObjectSpy |
getBasicObjectSpy(java.lang.Object obj)
Returns the object spy wrapper for the given object. |
static AbstractObjectSpy |
getBasicObjectSpy(java.lang.String name,
java.lang.Object obj)
Returns the object spy wrapper for the given object. |
static AbstractObjectSpy |
getObjectSpy(java.lang.Object obj)
Returns the object spy wrapper for the given object. |
static AbstractObjectSpy |
getObjectSpy(java.lang.String name,
java.lang.Object obj)
Returns the object spy wrapper for the given object. |
static java.lang.String |
getProgSignature()
Returns the name and current version of this component. |
static void |
halt()
Halts the current process. |
static Inspector |
inspect(java.lang.Object obj)
Inspect the given object. |
static Inspector |
inspect(java.lang.String name,
java.lang.Object obj)
Inspect the given object. |
static void |
inspectWait(java.lang.Object obj)
Inspect the given object like in inspect(). |
static void |
inspectWait(java.lang.String name,
java.lang.Object obj)
Inspect the given object like in inspect(). |
static void |
main(java.lang.String[] args)
|
static java.lang.String |
shortIdentification()
Returns the component's short name and current version |
Methods inherited from class java.awt.event.MouseAdapter |
---|
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String INSPECTOR_MAPPING_FILENAME
public static final java.lang.String INSPECTOR_MAPPING_FILENAME_CLASSLOADER
public static final java.lang.String INSPECTOR_MAPPING_FILENAME_ALL
public static final java.lang.String EXPORTER_MAPPING_FILENAME
public static final java.lang.String EXPORTER_MAPPING_FILENAME_CLASSLOADER
public static final java.lang.String EXPORTER_MAPPING_FILENAME_ALL
Method Detail |
---|
public static Inspector basicInspect(java.lang.Object obj)
obj
- The object to look insidepublic static Inspector basicInspect(java.lang.String name, java.lang.Object obj)
name
- The name of the object in its program contextobj
- The object to look insidepublic static Inspector inspect(java.lang.Object obj)
obj
- The object to look insidepublic static Inspector inspect(java.lang.String name, java.lang.Object obj)
obj
- The object to look insidepublic static void basicInspectWait(java.lang.Object obj)
obj
- The object to look insidepublic static void basicInspectWait(java.lang.String name, java.lang.Object obj)
name
- The name of the object in its program contextobj
- The object to look insidepublic static void inspectWait(java.lang.Object obj)
obj
- The object to look insidepublic static void inspectWait(java.lang.String name, java.lang.Object obj)
name
- The name of the object in its program contextobj
- The object to look insidepublic static void bindInspector(java.lang.String className, java.lang.String inspectorName)
className
- The fully qualified name of the class or interfaceinspectorName
- The fully qualified class name of the associated inspectorpublic static AbstractObjectSpy getBasicObjectSpy(java.lang.Object obj)
obj
- The object to look insidepublic static AbstractObjectSpy getBasicObjectSpy(java.lang.String name, java.lang.Object obj)
name
- The name of the object in its program contextobj
- The object to look insidepublic static AbstractObjectSpy getObjectSpy(java.lang.Object obj)
obj
- The object to look insidepublic static AbstractObjectSpy getObjectSpy(java.lang.String name, java.lang.Object obj)
name
- The name the object has in the program contextobj
- The object to look insidepublic static java.lang.String fullIdentification()
public static java.lang.String shortIdentification()
public static void deactivateHalt()
public static void halt()
public static java.lang.String getProgSignature()
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |