org.exolab.javasource
public final class JModifiers extends Object
Version: $Revision: 6324 $ $Date: 2005-02-26 17:30:28 -0700 (Sat, 26 Feb 2005) $
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".
|
String | toString()
Returns the String represetation of this JModifiers, in the order
recommended by the Java Language Specification.
|
Returns: a copy of this JModifiers.
Returns: true if this JModifiers includes the qualifier "abstract". This is only applicable to methods and classes.
Returns: true if this JModifiers includes the qualifier "final". This is only applicable to methods and classes.
Returns: true if the visibility modifier for this JModifier is package (i.e., without qualifier).
Returns: true if the visibility modifier for this JModifier is "private".
Returns: true if the visibility modifier for this JModifier is "protected".
Returns: true if the visibility modifier for this JModifier is "public".
Returns: true if this JModifier includes the qualifier "static".
Returns: true if this JModifier includes the qualifier "transient".
Parameters: isAbstract if true, indicates that this JModifier should include the qualifier "abstract"
Parameters: isFinal if true, indicates that this JModifier should include the qualifier "final"
Parameters: isStatic if true, indicates that this JModifier should include the qualifier "static"
Parameters: isTransient is a boolean which when true indicates that this JModifier should include the qualifier "transient"
Returns: the String represetation of this JModifiers.