net.sf.qualitytest
Class ModifierBits

java.lang.Object
  extended by net.sf.qualitytest.ModifierBits

public final class ModifierBits
extends Object

Utility class to work with modifiers in the Java Reflection API.

Author:
Dominik Seichter

Method Summary
static boolean isModifierBitSet(int modifiers, int modifier)
          Tests if a certain modifier is set into a bitmask.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isModifierBitSet

public static boolean isModifierBitSet(int modifiers,
                                       int modifier)
Tests if a certain modifier is set into a bitmask.

Parameters:
modifiers - bitmask of modifiers
modifier - bit of the modifier to be queried
Returns:
true if the bit is set


Copyright © 2012-2013. All Rights Reserved.