|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.javasource.JModifiers
public class JModifiers
The set of modifiers for a Method or Member variable
Constructor Summary | |
---|---|
JModifiers()
Creates a new JModifiers class, by default the modifiers presented are public. |
Method Summary | |
---|---|
JModifiers |
copy()
Creates a copy of this JModifiers |
boolean |
isAbstract()
Returns true if the abstract qualifier is present. |
boolean |
isFinal()
Returns true if the final qualifier is present. |
boolean |
isPackage()
Returns true if the modifier represented is package (= without qualifier). |
boolean |
isPrivate()
Returns true if the modifier represented is private. |
boolean |
isProtected()
Returns true if the modifier represented is protected. |
boolean |
isPublic()
Returns true if the modifier represented is public. |
boolean |
isStatic()
Returns true if the modifier represented is static. |
boolean |
isTransient()
Returns true if the modifier represented is 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 the "abstract" qualifier is present This applies only to methods or classes. |
void |
setFinal(boolean isFinal)
Sets whether or not the "final" qualifier is present |
void |
setStatic(boolean isStatic)
Sets whether or not the "static" qualifier is present |
void |
setTransient(boolean isTransient)
Sets whether or not the "transient" qualifier is present |
java.lang.String |
toString()
Returns the String represetation of this JModifiers |
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
- is a boolean which when true will indicate
that the abstract qualifier should be presentpublic void setFinal(boolean isFinal)
isFinal
- is a boolean which when true will indicate
the final qualifiter is presentpublic void setStatic(boolean isStatic)
isStatic
- is a boolean which when true will indicate
the "static" qualifiter is presentpublic void setTransient(boolean isTransient)
isTransient
- is a boolean which when true will indicate
the "transient" qualifiter is presentpublic 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 |