public class Modifiers
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Integer |
ABSTRACT |
static java.lang.Integer |
FINAL |
static java.lang.Integer |
INTERFACE |
static java.lang.Integer |
NATIVE |
static java.lang.Integer |
PRIVATE |
static java.lang.Integer |
PROTECTED |
static java.lang.Integer |
PUBLIC |
static java.lang.Integer |
STATIC |
static java.lang.Integer |
STRICTFP |
static java.lang.Integer |
SYNCHRONIZED |
static java.lang.Integer |
TRANSIENT |
static java.lang.Integer |
VOLATILE |
| Constructor and Description |
|---|
Modifiers() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotation(Annotation annotation)
Adds an annotation to this set of modifiers.
|
boolean |
addModifier(int tokenType)
Adds a modifier to this set of modifiers.
|
boolean |
isAbstract() |
boolean |
isFinal() |
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
boolean |
isStatic() |
java.lang.String |
toString() |
public static final java.lang.Integer ABSTRACT
public static final java.lang.Integer FINAL
public static final java.lang.Integer INTERFACE
public static final java.lang.Integer NATIVE
public static final java.lang.Integer PRIVATE
public static final java.lang.Integer PROTECTED
public static final java.lang.Integer PUBLIC
public static final java.lang.Integer STATIC
public static final java.lang.Integer STRICTFP
public static final java.lang.Integer SYNCHRONIZED
public static final java.lang.Integer TRANSIENT
public static final java.lang.Integer VOLATILE
public void addAnnotation(Annotation annotation)
annotation - The annotation to add.public boolean addModifier(int tokenType)
tokenType - The modifier to add.public boolean isAbstract()
public boolean isFinal()
public boolean isPrivate()
public boolean isProtected()
public boolean isPublic()
public boolean isStatic()
public java.lang.String toString()
toString in class java.lang.Object