|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.Utils
org.multijava.mjc.CModifier
org.jmlspecs.jmlrac.JmlModifier
A class providing utilities for operating on modifier bit masks.
JML-specific modifiers such as non_null can be returned
in string forms either with or without the JML annotation markers,
e.g., non_null or
/*@ non_null @*/, by setting a flag
using the method setWithoutMarkers.
RacPrettyPrinter| Field Summary | |
private boolean |
withoutMarkers
Indicates whether the methods like asString should return
JML modifier strings without JML annotation markers, e.g.,
non_null instead of normal
/*@ non_null @*/. |
| Fields inherited from class org.multijava.mjc.CModifier |
codes, names |
| Fields inherited from class org.multijava.util.Utils |
DBG_LEVEL_HIGH, DBG_LEVEL_LOW, DBG_LEVEL_NO |
| Constructor Summary | |
JmlModifier()
Instantiate the modifier utilities for the default modifier bit-masks and names. |
|
JmlModifier(long[] codes,
String[] names)
Instantiate the modifier utilities for the given modifier bit-masks and names. |
|
| Method Summary | |
String[] |
asStrings(long modifiers)
Returns an array of the names of all the modifiers in the preferred order. |
protected boolean |
isJmlModifier(long modifiers)
Returns true if arguments are JML modifiers. |
void |
setWithoutMarkers(boolean flag)
Set whether the methods like asString should return
JML modifier strings without JML annotation markers, e.g.,
non_null instead of
/*@ non_null @*/. |
boolean |
withoutMarkers()
Returns true if JML modifiers such as non_null
are returned by the methods like asString without
the JML annotation markers, e.g., non_null instead of
/*@ non_null @*/;
otherwise, return false. |
| Methods inherited from class org.multijava.mjc.CModifier |
asString, codes, inPreferredOrder, nameOf, names |
| Methods inherited from class org.multijava.util.Utils |
assertTrue, assertTrue, combineArrays, escapeString, escapeString, fail, fail, getFilePath, hasFlag, hasOtherFlags, parsePathParts, relativePathTo, splitQualifiedName, splitQualifiedName, stripJavaModifiers, stripNonJavaModifiers, stripPrivateModifier, unescapeString, vectorToArray, vectorToIntArray |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private boolean withoutMarkers
asString should return
JML modifier strings without JML annotation markers, e.g.,
non_null instead of normal
/*@ non_null @*/.
| Constructor Detail |
public JmlModifier()
public JmlModifier(long[] codes,
String[] names)
codes - an array of modifier bit-masks, typically from the
ACCESS_FLAG_ARRAY field of the
appropriate Constants interface.names - an array of modifier names, typically from the
ACCESS_FLAG_NAMES field of the
appropriate Constants interface.Constants,
Constants.ACCESS_FLAG_ARRAY,
Constants.ACCESS_FLAG_NAMES| Method Detail |
public String[] asStrings(long modifiers)
asStrings in interface ModifierUtilityasStrings in class CModifierpublic boolean withoutMarkers()
true if JML modifiers such as non_null
are returned by the methods like asString without
the JML annotation markers, e.g., non_null instead of
/*@ non_null @*/;
otherwise, return false.
setWithoutMarkers(boolean)public void setWithoutMarkers(boolean flag)
asString should return
JML modifier strings without JML annotation markers, e.g.,
non_null instead of
/*@ non_null @*/.
withoutMarkers()protected boolean isJmlModifier(long modifiers)
true if arguments are JML modifiers.
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||