|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModifierHolder
Holds a description of the modifiers for a field or a class
Field Summary | |
---|---|
static int |
ABSTRACT
The int value representing the abstract
modifier. |
static int |
EXPLICIT
Description of the Field |
static int |
FINAL
The int value representing the final
modifier. |
static int |
INTERFACE
The int value representing the interface
modifier. |
static java.lang.String[] |
names
Description of the Field |
static int |
NATIVE
The int value representing the native
modifier. |
static int |
PRIVATE
The int value representing the private
modifier. |
static int |
PROTECTED
The int value representing the protected
modifier. |
static int |
PUBLIC
The int value representing the public
modifier. |
static int |
STATIC
The int value representing the static
modifier. |
static int |
STRICTFP
The int value representing the strictfp
modifier. |
static int |
SYNCHRONIZED
The int value representing the synchronized
modifier. |
static int |
TRANSIENT
The int value representing the transient
modifier. |
static int |
VOLATILE
The int value representing the volatile
modifier. |
Method Summary | |
---|---|
void |
addModifier(java.lang.String mod)
Add a modifier |
void |
copyModifiers(ModifierHolder source)
|
int |
getModifiers()
Gets the modifier bits |
boolean |
isAbstract()
Determine if the node is abstract |
boolean |
isExplicit()
Determine if the node is explicit |
boolean |
isFinal()
Determine if the node is final |
boolean |
isInterface()
Determine if the node is interface |
boolean |
isNative()
Determine if the node is native |
boolean |
isPackage()
Determines if this has package scope |
boolean |
isPrivate()
Determine if the node is private |
boolean |
isProtected()
Determine if the node is protected |
boolean |
isPublic()
Determine if the node is public |
boolean |
isStatic()
Determine if the node is static |
boolean |
isStrictFP()
Determine if the node is strictFP |
boolean |
isSynchronized()
Determine if the node is synchronized |
boolean |
isTransient()
Determine if the node is transient |
boolean |
isVolatile()
Determine if the node is volatile |
void |
setAbstract()
Sets the abstract bit (to true) in the modifiers |
void |
setAbstract(boolean value)
Sets the abstract bit in the modifiers |
void |
setFinal()
Sets the Final bit (to true) of the in the modifiers |
void |
setModifiers(int modifiers)
Sets the modifier bits |
void |
setPrivate()
Sets the private bit (to true) in the modifiers |
void |
setPrivate(boolean value)
Sets the private bit in the modifiers |
void |
setProtected()
Sets the protected bit (to true) in the modifiers |
void |
setProtected(boolean value)
Sets the protected bit in the modifiers |
void |
setPublic()
Sets the public bit (to true) in the modifiers |
void |
setPublic(boolean value)
Sets the public bit in the modifiers |
void |
setStatic()
Sets the Static bit (to true) of the in the modifiers |
void |
setStatic(boolean value)
Sets the Static bit of the in the modifiers |
void |
setStrict()
Sets the StrictFP bit (to true) of the in the modifiers |
void |
setSynchronized()
Sets the Synchronized bit (to true) in the modifiers |
void |
setSynchronized(boolean value)
Sets the Synchronized bit of the in the modifiers |
Field Detail |
---|
static final int PUBLIC
int
value representing the public
modifier.
static final int PRIVATE
int
value representing the private
modifier.
static final int PROTECTED
int
value representing the protected
modifier.
static final int STATIC
int
value representing the static
modifier.
static final int FINAL
int
value representing the final
modifier.
static final int SYNCHRONIZED
int
value representing the synchronized
modifier.
static final int VOLATILE
int
value representing the volatile
modifier.
static final int TRANSIENT
int
value representing the transient
modifier.
static final int NATIVE
int
value representing the native
modifier.
static final int INTERFACE
int
value representing the interface
modifier.
static final int ABSTRACT
int
value representing the abstract
modifier.
static final int STRICTFP
int
value representing the strictfp
modifier.
static final int EXPLICIT
static final java.lang.String[] names
Method Detail |
---|
int getModifiers()
void setModifiers(int modifiers)
modifiers
- the modifier bitsvoid setPrivate(boolean value)
value
- true if we are setting the private modifiervoid setPrivate()
void setProtected(boolean value)
value
- true if we are setting the protected modifiervoid setProtected()
void setPublic(boolean value)
value
- true if we are setting the public modifiervoid setPublic()
void setAbstract(boolean value)
value
- true if we are setting the modifiervoid setAbstract()
void setSynchronized(boolean value)
value
- The new Synchronized valuevoid setSynchronized()
void setStatic(boolean value)
value
- The new Static valuevoid setStatic()
void setFinal()
void setStrict()
boolean isAbstract()
boolean isExplicit()
boolean isFinal()
boolean isInterface()
boolean isNative()
boolean isPrivate()
boolean isProtected()
boolean isPublic()
boolean isStatic()
boolean isStrictFP()
boolean isSynchronized()
boolean isTransient()
boolean isVolatile()
boolean isPackage()
void addModifier(java.lang.String mod)
mod
- the new modifiervoid copyModifiers(ModifierHolder source)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |