|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jeffpalm.javaparser.ModifierAdapter
public class ModifierAdapter
Description of the Class
Field Summary | |
---|---|
protected int |
modifiers
Description of the Field |
Fields inherited from interface com.jeffpalm.javaparser.ModifierHolder |
---|
ABSTRACT, EXPLICIT, FINAL, INTERFACE, names, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICTFP, SYNCHRONIZED, TRANSIENT, VOLATILE |
Constructor Summary | |
---|---|
ModifierAdapter()
|
Method Summary | |
---|---|
void |
addModifier(java.lang.String mod)
Add a modifier |
void |
copyModifiers(ModifierHolder source)
Copies the modifiers from another 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 |
protected void |
setCode(boolean value,
int code)
Sets or resets a single bit in the modifiers |
void |
setFinal()
Sets the Final bit (to true) of the in the modifiers |
void |
setInterface()
Sets the Final bit (to true) of the in the modifiers |
void |
setModifiers(int modifiers)
Sets the modifier bits |
void |
setNative()
Sets the Final bit (to true) of the in the modifiers |
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) in the modifiers |
void |
setStatic(boolean value)
Sets the Static bit 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 in the modifiers |
void |
setTransient()
Sets the Final bit (to true) of the in the modifiers |
void |
setVolatile()
Sets the Final bit (to true) of the in the modifiers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int modifiers
Constructor Detail |
---|
public ModifierAdapter()
Method Detail |
---|
public void setPrivate(boolean value)
setPrivate
in interface ModifierHolder
value
- true if we are setting the private modifierpublic void setPrivate()
setPrivate
in interface ModifierHolder
public void setProtected(boolean value)
setProtected
in interface ModifierHolder
value
- true if we are setting the protected modifierpublic void setProtected()
setProtected
in interface ModifierHolder
public void setPublic(boolean value)
setPublic
in interface ModifierHolder
value
- true if we are setting the public modifierpublic void setPublic()
setPublic
in interface ModifierHolder
public void setAbstract(boolean value)
setAbstract
in interface ModifierHolder
value
- true if we are setting the modifierpublic void setAbstract()
setAbstract
in interface ModifierHolder
public void setSynchronized(boolean value)
setSynchronized
in interface ModifierHolder
value
- The new Synchronized valuepublic void setSynchronized()
setSynchronized
in interface ModifierHolder
public void setStatic(boolean value)
setStatic
in interface ModifierHolder
value
- The new Static valuepublic void setStatic()
setStatic
in interface ModifierHolder
public void setFinal()
setFinal
in interface ModifierHolder
public void setVolatile()
public void setTransient()
public void setNative()
public void setInterface()
public void setStrict()
setStrict
in interface ModifierHolder
public void setModifiers(int modifiers)
setModifiers
in interface ModifierHolder
modifiers
- the modifier bitspublic boolean isAbstract()
isAbstract
in interface ModifierHolder
public boolean isExplicit()
isExplicit
in interface ModifierHolder
public boolean isFinal()
isFinal
in interface ModifierHolder
public boolean isInterface()
isInterface
in interface ModifierHolder
public boolean isNative()
isNative
in interface ModifierHolder
public boolean isPrivate()
isPrivate
in interface ModifierHolder
public boolean isProtected()
isProtected
in interface ModifierHolder
public boolean isPublic()
isPublic
in interface ModifierHolder
public boolean isStatic()
isStatic
in interface ModifierHolder
public boolean isStrictFP()
isStrictFP
in interface ModifierHolder
public boolean isSynchronized()
isSynchronized
in interface ModifierHolder
public boolean isTransient()
isTransient
in interface ModifierHolder
public boolean isVolatile()
isVolatile
in interface ModifierHolder
public boolean isPackage()
isPackage
in interface ModifierHolder
public int getModifiers()
getModifiers
in interface ModifierHolder
public void copyModifiers(ModifierHolder source)
copyModifiers
in interface ModifierHolder
source
- the sourcepublic void addModifier(java.lang.String mod)
addModifier
in interface ModifierHolder
mod
- the new modifierprotected void setCode(boolean value, int code)
value
- true if we are setting the bitcode
- The new Code value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |