UC Berkeley Group for User Interface Research
Updated November 17, 2000

edu.berkeley.guir.lib.introspect
Interface IntrospectFilter

All Superinterfaces:
IntrospectConstants

public interface IntrospectFilter
extends IntrospectConstants

Tell me which fields I should look at, and tell me which fields I should not.

This software is distributed under the Berkeley Software License.

 Revisions:  - GUIRLib-v1.0-1.0.0, May 17 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 )
See Also:
Introspect.parseObject(Object, IntrospectHandler)

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?
 boolean shouldRecurse(int depth, Field f, Object obj)
          Recurse on this object?
 

Method Detail

shouldRecurse

public boolean shouldRecurse(int depth,
                             Field f,
                             Object obj)
Recurse on this object?
Parameters:
depth - is the current recurse depth.
f - is the current field.
obj - is the current object.
Returns:
true if we should recurse, false otherwise.

acceptField

public boolean acceptField(int depth,
                           Field f,
                           Object obj)
Accept this field?
Parameters:
depth - is the current recurse depth.
f - is the current field.
obj - is the current object.
Returns:
true if we should accept, false otherwise.

Copyright Information