JML

org.multijava.util.compiler
Interface ModifierUtility

All Known Implementing Classes:
CModifier

public interface ModifierUtility

This type provides utilities for operating on modifier bit masks.


Method Summary
 String asString(long modifiers)
          Returns a string with the names of all the modifiers in the preferred order.
 String[] asStrings(long modifiers)
          Returns an array of the names of all the modifiers in the preferred order.
 boolean inPreferredOrder(long previousMods, long newMod)
          Returns true if no modifiers in previousMods are supposed to come after the modifier in newMod.
 String nameOf(long mod)
          Returns the name of the given modifier.
 

Method Detail

asString

public String asString(long modifiers)
Returns a string with the names of all the modifiers in the preferred order.


asStrings

public String[] asStrings(long modifiers)
Returns an array of the names of all the modifiers in the preferred order.


inPreferredOrder

public boolean inPreferredOrder(long previousMods,
                                long newMod)
Returns true if no modifiers in previousMods are supposed to come after the modifier in newMod.


nameOf

public String nameOf(long mod)
Returns the name of the given modifier.


JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.