|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.javasource.JModifiers
public final class JModifiers
Represents the set of modifiers for a Method or Member variable.
Constructor Summary | |
---|---|
JModifiers()
Creates a new JModifiers class. |
Method Summary | |
---|---|
JModifiers |
copy()
Creates a copy of this JModifiers instance. |
boolean |
isAbstract()
Returns true if this JModifiers includes the qualifier "abstract". |
boolean |
isFinal()
Returns true if this JModifiers includes the qualifier "final". |
boolean |
isPackage()
Returns true if the visibility modifier for this JModifier is package (i.e., without qualifier). |
boolean |
isPrivate()
Returns true if the visibility modifier for this JModifier is "private". |
boolean |
isProtected()
Returns true if the visibility modifier for this JModifier is "protected". |
boolean |
isPublic()
Returns true if the visibility modifier for this JModifier is "public". |
boolean |
isStatic()
Returns true if this JModifier includes the qualifier "static". |
boolean |
isTransient()
Returns true if this JModifier includes the qualifier "transient". |
void |
makePackage()
Changes the visibility qualifier to package (= without qualifier). |
void |
makePrivate()
Changes the visibility qualifier to "private". |
void |
makeProtected()
Changes the visibility qualifier to "protected". |
void |
makePublic()
Changes the visibility qualifier to "public". |
void |
setAbstract(boolean isAbstract)
Sets whether or not this JModifiers includes the qualifier "abstract". |
void |
setFinal(boolean isFinal)
Sets whether or not this JModifiers includes the qualifier "final". |
void |
setStatic(boolean isStatic)
Sets whether or not this JModifiers includes the qualifier "static". |
void |
setTransient(boolean isTransient)
Sets whether or not this JModifiers includes the qualifier "transient". |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JModifiers()
Method Detail |
---|
public JModifiers copy()
public void makePrivate()
public void makeProtected()
public void makePublic()
public void makePackage()
public boolean isFinal()
public boolean isAbstract()
public boolean isPrivate()
public boolean isProtected()
public boolean isPublic()
public boolean isPackage()
public boolean isStatic()
public boolean isTransient()
public void setAbstract(boolean isAbstract)
isAbstract
- If true, indicates that this JModifier should include
the qualifier "abstract".public void setFinal(boolean isFinal)
isFinal
- If true, indicates that this JModifier should include the
qualifier "final".public void setStatic(boolean isStatic)
isStatic
- If true, indicates that this JModifier should include the
qualifier "static".public void setTransient(boolean isTransient)
isTransient
- Is a boolean which when true indicates that this
JModifier should include the qualifier "transient".public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |