|
Buju 0.4 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object biz.bbeans.util.BClassInspector
Utility to inspect a class using Java reflection.
Constructor Summary | |
BClassInspector(Class cls)
Create a new BClassInspector to inspect the given class. |
|
BClassInspector(Object obj)
Create a new BClassInspector to inspect the class of the given object. |
Method Summary | |
static ArrayList |
getSuperclasses(Class cls,
ArrayList supers)
Get all of the super classes. |
static void |
main(String[] args)
Usage: biz.bbeans.util.BClassInspector className |
void |
printConstructors()
Print all constructors of the inspected class. |
void |
printDeclaredConstructors()
Print all declared constructors of the inspected class. |
void |
printDeclaredFields()
Print all declared fields of the inspected class. |
void |
printDeclaredMethods()
Print all declared methods of the inspected class. |
void |
printInterfaces()
Print all interfaces of the inspected class. |
void |
printSuperclasses()
Print all of the super classes. |
void |
setInputStream(InputStream in)
Set the InputStream. |
void |
setPrintStream(PrintStream out)
Set the PrintStream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BClassInspector(Class cls)
cls
- Class to inspect.public BClassInspector(Object obj)
obj
- Object whose class is to be inspected.Method Detail |
public void setInputStream(InputStream in)
in
- InputStream to use to communicate with
this object.public void setPrintStream(PrintStream out)
out
- PrintStream to use for output.public void printSuperclasses() throws IOException
IOException
public static ArrayList getSuperclasses(Class cls, ArrayList supers)
cls
- Class to inspect.supers
- List of super Class objects.
public void printInterfaces() throws IOException
IOException
- If I/O exception occurs.public void printConstructors() throws IOException
IOException
- If I/O exception occurs.public void printDeclaredConstructors() throws IOException
IOException
- If I/O exception occurs.public void printDeclaredMethods() throws IOException
IOException
- If I/O exception occurs.public void printDeclaredFields() throws IOException
IOException
- If I/O exception occurs.public static void main(String[] args)
|
Buju 0.4 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |