edu.berkeley.guir.lib.introspect
Class PrintIntrospectHandler
java.lang.Object
|
+--edu.berkeley.guir.lib.introspect.IntrospectHandler
|
+--edu.berkeley.guir.lib.introspect.DefaultIntrospectHandler
|
+--edu.berkeley.guir.lib.introspect.PrintIntrospectHandler
- All Implemented Interfaces:
- IntrospectConstants
- public class PrintIntrospectHandler
- extends DefaultIntrospectHandler
Handler for introspection debugging. See
Introspect.parseObject(Object, IntrospectHandler)
.
This software is distributed under the
Berkeley Software License.
Revisions: - GUIRLib-v1.0-1.0.0, Apr 25 2000, JH
Created class
- GUIRLib-v1.2-1.0.0, Jun 22 2000, JH
Touched for GUIRLib release
- GUIRLib-v1.3-1.0.0, Aug 11 2000, JH
Touched for GUIRLib release
- GUIRLib-v1.4-1.0.0, Aug 31 2000, JH
Touched for GUIRLib release
- Since:
- JDK1.3
- Version:
- GUIRLib-v1.4-1.0.0, Aug 31 2000
- Author:
- Jason Hong (
jasonh@cs.berkeley.edu )
Fields inherited from interface edu.berkeley.guir.lib.introspect.IntrospectConstants |
CL_BOOLEAN, CL_BOOLEAN_ARR, CL_BYTE, CL_BYTE_ARR, CL_CHAR, CL_CHAR_ARR, CL_DOUBLE, CL_DOUBLE_ARR, CL_FLOAT, CL_FLOAT_ARR, CL_INT, CL_INT_ARR, CL_LONG, CL_LONG_ARR, CL_SHORT, CL_SHORT_ARR, CL_STRING, CL_STRINGBUFFER |
Method Summary |
boolean |
acceptField(int depth,
Field f,
Object obj)
Accept this field or not? |
protected void |
output(int depth,
Field f,
String strVal)
All of the output is redirected here. |
boolean |
shouldRecurse(int depth,
Field f,
Object obj)
Should return the correct
value as to whether we should recurse on this object. |
Methods inherited from class edu.berkeley.guir.lib.introspect.DefaultIntrospectHandler |
onArray, onBoolean, onBooleanArr, onByte, onByteArr, onChar, onCharArr, onDouble, onDoubleArr, onFloat, onFloatArr, onInt, onIntArr, onLong, onLongArr, onNull, onObject, onObjectArr, onRoot, onShort, onShortArr, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrintIntrospectHandler
public PrintIntrospectHandler()
PrintIntrospectHandler
public PrintIntrospectHandler(Writer out)
PrintIntrospectHandler
public PrintIntrospectHandler(OutputStream ostream)
output
protected void output(int depth,
Field f,
String strVal)
- Description copied from class:
DefaultIntrospectHandler
- All of the output is redirected here.
- Overrides:
output
in class DefaultIntrospectHandler
acceptField
public boolean acceptField(int depth,
Field f,
Object obj)
- Description copied from class:
IntrospectHandler
- Accept this field or not?
- Overrides:
acceptField
in class IntrospectHandler
- Following copied from class:
edu.berkeley.guir.lib.introspect.IntrospectHandler
- Returns:
- true if no filter, otherwise re-dispatches to filter.
shouldRecurse
public boolean shouldRecurse(int depth,
Field f,
Object obj)
- Description copied from class:
IntrospectHandler
- Should return the correct
value as to whether we should recurse on this object.
- Overrides:
shouldRecurse
in class IntrospectHandler
- Following copied from class:
edu.berkeley.guir.lib.introspect.IntrospectHandler
- Returns:
- true if no filter, otherwise re-dispatches to filter.