|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| 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 ModifierHoldervalue - true if we are setting the private modifierpublic void setPrivate()
setPrivate in interface ModifierHolderpublic void setProtected(boolean value)
setProtected in interface ModifierHoldervalue - true if we are setting the protected modifierpublic void setProtected()
setProtected in interface ModifierHolderpublic void setPublic(boolean value)
setPublic in interface ModifierHoldervalue - true if we are setting the public modifierpublic void setPublic()
setPublic in interface ModifierHolderpublic void setAbstract(boolean value)
setAbstract in interface ModifierHoldervalue - true if we are setting the modifierpublic void setAbstract()
setAbstract in interface ModifierHolderpublic void setSynchronized(boolean value)
setSynchronized in interface ModifierHoldervalue - The new Synchronized valuepublic void setSynchronized()
setSynchronized in interface ModifierHolderpublic void setStatic(boolean value)
setStatic in interface ModifierHoldervalue - The new Static valuepublic void setStatic()
setStatic in interface ModifierHolderpublic void setFinal()
setFinal in interface ModifierHolderpublic void setVolatile()
public void setTransient()
public void setNative()
public void setInterface()
public void setStrict()
setStrict in interface ModifierHolderpublic void setModifiers(int modifiers)
setModifiers in interface ModifierHoldermodifiers - the modifier bitspublic boolean isAbstract()
isAbstract in interface ModifierHolderpublic boolean isExplicit()
isExplicit in interface ModifierHolderpublic boolean isFinal()
isFinal in interface ModifierHolderpublic boolean isInterface()
isInterface in interface ModifierHolderpublic boolean isNative()
isNative in interface ModifierHolderpublic boolean isPrivate()
isPrivate in interface ModifierHolderpublic boolean isProtected()
isProtected in interface ModifierHolderpublic boolean isPublic()
isPublic in interface ModifierHolderpublic boolean isStatic()
isStatic in interface ModifierHolderpublic boolean isStrictFP()
isStrictFP in interface ModifierHolderpublic boolean isSynchronized()
isSynchronized in interface ModifierHolderpublic boolean isTransient()
isTransient in interface ModifierHolderpublic boolean isVolatile()
isVolatile in interface ModifierHolderpublic boolean isPackage()
isPackage in interface ModifierHolderpublic int getModifiers()
getModifiers in interface ModifierHolderpublic void copyModifiers(ModifierHolder source)
copyModifiers in interface ModifierHoldersource - the sourcepublic void addModifier(java.lang.String mod)
addModifier in interface ModifierHoldermod - the new modifier
protected 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 | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||