|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--openjava.mop.OJModifier
The class OJModifier
extends
java.lang.relfect.Modifier
to support user defined
keywords.
Modifier
Field Summary | |
private static OJModifier |
_constantEmpty
|
static int |
ABSTRACT
|
private static int |
ACCESS
|
static int |
FINAL
|
private static int |
INHERIT
|
static int |
INTERFACE
|
private int |
javaModifier
|
static int |
NATIVE
|
static int |
PRIVATE
|
static int |
PROTECTED
|
static int |
PUBLIC
|
static int |
STATIC
|
static int |
SYNCHRONIZED
|
static int |
TRANSIENT
|
private String[] |
userModifiers
|
static int |
VOLATILE
|
Constructor Summary | |
(package private) |
OJModifier(int mod)
|
(package private) |
OJModifier(int mod,
String[] user_modifs)
|
Method Summary | |
OJModifier |
add(int mods)
|
static OJModifier |
constantEmpty()
|
static OJModifier |
forModifier(int mod)
|
static OJModifier |
forParseTree(ModifierList ptree)
|
boolean |
has(String str)
|
boolean |
isAbstract()
Returns true if this modifier includes the abstract modifier. |
boolean |
isFinal()
Returns true if this modifier includes the final modifier. |
boolean |
isInterface()
Returns true if this modifier includes the interface modifier. |
boolean |
isNative()
Returns true if this modifier includes the native modifier. |
boolean |
isPrivate()
Returns true if this modifier includes the private modifier. |
boolean |
isProtected()
Returns true if this modifier includes the protected modifier. |
boolean |
isPublic()
Returns true if this modifier includes the public modifier. |
boolean |
isStatic()
Returns true if this modifier includes the static modifier. |
boolean |
isSynchronized()
Returns true if this modifier includes the synchronized modifier. |
boolean |
isTransient()
Returns true if this modifier includes the transient modifier. |
boolean |
isVolatile()
Returns true if this modifier includes the volatile modifier. |
OJModifier |
remove(int mods)
|
private int |
removedModifier(int mods)
|
OJModifier |
setAbstract()
|
OJModifier |
setFinal()
|
OJModifier |
setPackaged()
|
OJModifier |
setPrivate()
|
OJModifier |
setProtected()
|
OJModifier |
setPublic()
|
int |
toModifier()
Returns the specifier int for modifiers in regular Java. |
String |
toString()
Generates a string describing the access modifier flags without user modifiers. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int PUBLIC
public static final int PRIVATE
public static final int PROTECTED
public static final int STATIC
public static final int FINAL
public static final int SYNCHRONIZED
public static final int VOLATILE
public static final int TRANSIENT
public static final int NATIVE
public static final int INTERFACE
public static final int ABSTRACT
private int javaModifier
private String[] userModifiers
private static OJModifier _constantEmpty
private static final int ACCESS
private static final int INHERIT
Constructor Detail |
OJModifier(int mod)
OJModifier(int mod, String[] user_modifs)
Method Detail |
public static final OJModifier constantEmpty()
public int toModifier()
Modifier
public static OJModifier forModifier(int mod)
public static OJModifier forParseTree(ModifierList ptree)
public final boolean isPublic()
public final boolean isPrivate()
public final boolean isProtected()
public final boolean isStatic()
public final boolean isFinal()
public final boolean isSynchronized()
public final boolean isVolatile()
public final boolean isTransient()
public final boolean isNative()
public final boolean isInterface()
public final boolean isAbstract()
public final boolean has(String str)
public String toString()
public final synchronized private transient volatileThe modifier names are return in canonical order, as specified by The Java Language Specification.
toString
in class Object
public OJModifier add(int mods)
public OJModifier remove(int mods)
private final int removedModifier(int mods)
public OJModifier setPublic()
public OJModifier setProtected()
public OJModifier setPrivate()
public OJModifier setPackaged()
public OJModifier setAbstract()
public OJModifier setFinal()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |