Package org.fife.rsta.ac.java.rjc.lang
Class Modifiers
- java.lang.Object
-
- org.fife.rsta.ac.java.rjc.lang.Modifiers
-
public class Modifiers extends java.lang.ObjectWrapper around modifiers to a member.- Version:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.IntegerABSTRACTprivate java.util.List<Annotation>annotationsstatic java.lang.IntegerFINALstatic java.lang.IntegerINTERFACEprivate static java.util.Map<java.lang.Integer,java.lang.String>MODIFIER_TEXTprivate java.util.List<java.lang.Integer>modifiersstatic java.lang.IntegerNATIVEstatic java.lang.IntegerPRIVATEstatic java.lang.IntegerPROTECTEDstatic java.lang.IntegerPUBLICstatic java.lang.IntegerSTATICstatic java.lang.IntegerSTRICTFPstatic java.lang.IntegerSYNCHRONIZEDstatic java.lang.IntegerTRANSIENTstatic java.lang.IntegerVOLATILE
-
Constructor Summary
Constructors Constructor Description Modifiers()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAnnotation(Annotation annotation)Adds an annotation to this set of modifiers.booleanaddModifier(int tokenType)Adds a modifier to this set of modifiers.private booleancontainsModifier(java.lang.Integer modifierKey)booleanisAbstract()booleanisFinal()booleanisPrivate()booleanisProtected()booleanisPublic()booleanisStatic()java.lang.StringtoString()
-
-
-
Field Detail
-
ABSTRACT
public static final java.lang.Integer ABSTRACT
-
FINAL
public static final java.lang.Integer FINAL
-
INTERFACE
public static final java.lang.Integer INTERFACE
-
NATIVE
public static final java.lang.Integer NATIVE
-
PRIVATE
public static final java.lang.Integer PRIVATE
-
PROTECTED
public static final java.lang.Integer PROTECTED
-
PUBLIC
public static final java.lang.Integer PUBLIC
-
STATIC
public static final java.lang.Integer STATIC
-
STRICTFP
public static final java.lang.Integer STRICTFP
-
SYNCHRONIZED
public static final java.lang.Integer SYNCHRONIZED
-
TRANSIENT
public static final java.lang.Integer TRANSIENT
-
VOLATILE
public static final java.lang.Integer VOLATILE
-
modifiers
private java.util.List<java.lang.Integer> modifiers
-
annotations
private java.util.List<Annotation> annotations
-
MODIFIER_TEXT
private static final java.util.Map<java.lang.Integer,java.lang.String> MODIFIER_TEXT
-
-
Method Detail
-
addAnnotation
public void addAnnotation(Annotation annotation)
Adds an annotation to this set of modifiers.- Parameters:
annotation- The annotation to add.
-
addModifier
public boolean addModifier(int tokenType)
Adds a modifier to this set of modifiers.- Parameters:
tokenType- The modifier to add.- Returns:
- Whether the modifier was added (vs. was already known).
-
containsModifier
private boolean containsModifier(java.lang.Integer modifierKey)
-
isAbstract
public boolean isAbstract()
-
isFinal
public boolean isFinal()
-
isPrivate
public boolean isPrivate()
-
isProtected
public boolean isProtected()
-
isPublic
public boolean isPublic()
-
isStatic
public boolean isStatic()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-