org.jsesoft.ri
Class ClassInspector

java.lang.Object
  extended by org.jsesoft.ri.ClassInspector
All Implemented Interfaces:
Inspector<java.lang.Class<?>>
Direct Known Subclasses:
MMBIClassInspector

public class ClassInspector
extends java.lang.Object
implements Inspector<java.lang.Class<?>>

Provides an inspector for classes.


Constructor Summary
ClassInspector(java.lang.Class<?>... theTypes)
          Creates new ClassInspector for inspecting given class items.
ClassInspector(java.lang.Class<?> theType)
          Creates new ClassInspector for inspecting given class item.
 
Method Summary
 java.lang.Class<?>[] getTypes()
          Gets types.
 void inspectItem(java.lang.Class<?> inspected, PassBack passBack)
          Inspects the item.
 void inspectItems(PassBack passBack)
          Inspects the a list of items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassInspector

public ClassInspector(java.lang.Class<?> theType)
Creates new ClassInspector for inspecting given class item.

Parameters:
theType - the class item to inspect

ClassInspector

public ClassInspector(java.lang.Class<?>... theTypes)
Creates new ClassInspector for inspecting given class items.

Parameters:
theTypes - the class items to inspect
Method Detail

inspectItem

public void inspectItem(java.lang.Class<?> inspected,
                        PassBack passBack)
                 throws java.lang.Exception
Inspects the item.

Inspects the classe's fields, constructors, methods, and superclass (until sentinel).

Specified by:
inspectItem in interface Inspector<java.lang.Class<?>>
Parameters:
inspected - the sub-item to inspect
passBack - an object passed back by all inspect functions
Throws:
java.lang.Exception - on failure
See Also:
org.jsesoft.ri.Inspector#inspectItem(java.lang.Object)

inspectItems

public void inspectItems(PassBack passBack)
                  throws java.lang.Exception
Inspects the a list of items.

Specified by:
inspectItems in interface Inspector<java.lang.Class<?>>
Parameters:
passBack - an object passed back by all inspect functions
Throws:
java.lang.Exception - on failure
See Also:
org.jsesoft.ri.Inspector#inspectItems()

getTypes

public java.lang.Class<?>[] getTypes()
Gets types.

Returns:
the types


Copyright © 2010 JSESoft. All Rights Reserved.