org.pf.joi
Class ElementFilter

java.lang.Object
  extended by org.pf.joi.ElementFilter

public class ElementFilter
extends java.lang.Object

With instances of this object filters for the elements to be displayed can be defined.

Version:
1.2
Author:
Manfred Duchrow

Field Summary
static int DEFAULT
           
static int FINAL
           
static int PRIVATE
           
static int PROTECTED
           
static int PUBLIC
           
static int STATIC
           
static int TRANSIENT
           
 
Constructor Summary
ElementFilter(int initialFilter)
          Initialize the new instance with default values.
ElementFilter(int initialFilter, boolean defFlag)
          Initialize the new instance with default values.
 
Method Summary
 ElementFilter copy()
          Returns a copy of this element filter
 boolean isDefaultSet()
          Returns whether or not the switch to filter default visibility is set
 boolean isFinalSet()
          Returns whether or not the switch for 'final' is set
 boolean isPrivateSet()
          Returns whether or not the switch to filter private visibility is set
 boolean isProtectedSet()
          Returns whether or not the switch to filter protected visibility is set
 boolean isPublicSet()
          Returns whether or not the switch to filter public visibility is set
 boolean isStaticSet()
          Returns whether or not the switch for 'static' is set
 boolean isTransientSet()
          Returns whether or not the switch for 'transient' is set
 boolean matchesAny(int mod)
          Returns true, if any bit in the given mod is also set in this element filter.
 void toggleSwitch(int filterFlag)
          Toggle the filter flag specified by the given value
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final int DEFAULT
See Also:
Constant Field Values

STATIC

public static final int STATIC
See Also:
Constant Field Values

FINAL

public static final int FINAL
See Also:
Constant Field Values

TRANSIENT

public static final int TRANSIENT
See Also:
Constant Field Values

PUBLIC

public static final int PUBLIC
See Also:
Constant Field Values

PRIVATE

public static final int PRIVATE
See Also:
Constant Field Values

PROTECTED

public static final int PROTECTED
See Also:
Constant Field Values
Constructor Detail

ElementFilter

public ElementFilter(int initialFilter)
Initialize the new instance with default values.


ElementFilter

public ElementFilter(int initialFilter,
                     boolean defFlag)
Initialize the new instance with default values.

Method Detail

matchesAny

public boolean matchesAny(int mod)
Returns true, if any bit in the given mod is also set in this element filter.


toggleSwitch

public void toggleSwitch(int filterFlag)
Toggle the filter flag specified by the given value


isTransientSet

public boolean isTransientSet()
Returns whether or not the switch for 'transient' is set


isStaticSet

public boolean isStaticSet()
Returns whether or not the switch for 'static' is set


isFinalSet

public boolean isFinalSet()
Returns whether or not the switch for 'final' is set


isDefaultSet

public boolean isDefaultSet()
Returns whether or not the switch to filter default visibility is set


isPublicSet

public boolean isPublicSet()
Returns whether or not the switch to filter public visibility is set


isProtectedSet

public boolean isProtectedSet()
Returns whether or not the switch to filter protected visibility is set


isPrivateSet

public boolean isPrivateSet()
Returns whether or not the switch to filter private visibility is set


copy

public ElementFilter copy()
Returns a copy of this element filter