DESY ACOP Beans Home

com.cosylab.introspection
Interface MemberFilter


public interface MemberFilter

This class serves as a filter for selecting members in a Class or from an array.

Version:
@@VERSION@@
Author:
Miha Kadunc (miha.kadunc@cosylab.com)

Method Summary
 boolean areConstructorsAllowed()
          Should return true iff the filter allows constructors to be contained in the output.
 boolean areDeclaredOnly()
          If filter is used to retrieve members from a class, this method should return true iff only members that are declared in the given class are to be returned, discarding members that are declared in superclasses or superinterfaces.
 boolean areFieldsAllowed()
          Should return true iff the filter allows fields.
 boolean areMethodsAllowed()
          Should return true iff the filter allows methods.
 boolean arePublicOnly()
          Should return true iff the filter discards all the non-public members.
 boolean isAllowed(java.lang.reflect.Member member)
          When other methods in this class are not sufficient for the filter implementation, this method should be used.
 

Method Detail

areConstructorsAllowed

boolean areConstructorsAllowed()
Should return true iff the filter allows constructors to be contained in the output. Should only some of the constructors be filtered, this method should return true and specify a custom filter in the isAllowed(Member) method.

Returns:
boolean

areDeclaredOnly

boolean areDeclaredOnly()
If filter is used to retrieve members from a class, this method should return true iff only members that are declared in the given class are to be returned, discarding members that are declared in superclasses or superinterfaces.

Returns:
boolean

areFieldsAllowed

boolean areFieldsAllowed()
Should return true iff the filter allows fields.

Returns:
boolean

areMethodsAllowed

boolean areMethodsAllowed()
Should return true iff the filter allows methods.

Returns:
boolean

arePublicOnly

boolean arePublicOnly()
Should return true iff the filter discards all the non-public members.

Returns:
boolean

isAllowed

boolean isAllowed(java.lang.reflect.Member member)
When other methods in this class are not sufficient for the filter implementation, this method should be used. Members, that comply with all other requirements by this class's methods, will be passed as a parameter to this method, which decides whether a given member should be contained in the output or not.

Parameters:
member - Member
Returns:
boolean


Copyright © 2010. All Rights Reserved.