org.exolab.javasource
Class JModifiers
java.lang.Object
org.exolab.javasource.JModifiers
public final class JModifiers
extends java.lang.Object
Represents the set of modifiers for a Method or Member variable.
$Revision: 6324 $ $Date: 2005-02-26 17:30:28 -0700 (Sat, 26 Feb 2005) $
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.
|
JModifiers
public JModifiers()
Creates a new JModifiers class. By default the only modifier present is
public.
copy
public JModifiers copy()
Creates a copy of this JModifiers instance.
- a copy of this JModifiers.
isAbstract
public boolean isAbstract()
Returns true if this JModifiers includes the qualifier "abstract". This
is only applicable to methods and classes.
- true if this JModifiers includes the qualifier "abstract". This
is only applicable to methods and classes.
isFinal
public boolean isFinal()
Returns true if this JModifiers includes the qualifier "final". This
is only applicable to methods and classes.
- true if this JModifiers includes the qualifier "final". This
is only applicable to methods and classes.
isPackage
public boolean isPackage()
Returns true if the visibility modifier for this JModifier is package
(i.e., without qualifier).
- true if the visibility modifier for this JModifier is package
(i.e., without qualifier).
isPrivate
public boolean isPrivate()
Returns true if the visibility modifier for this JModifier is "private".
- true if the visibility modifier for this JModifier is "private".
isProtected
public boolean isProtected()
Returns true if the visibility modifier for this JModifier is "protected".
- true if the visibility modifier for this JModifier is "protected".
isPublic
public boolean isPublic()
Returns true if the visibility modifier for this JModifier is "public".
- true if the visibility modifier for this JModifier is "public".
isStatic
public boolean isStatic()
Returns true if this JModifier includes the qualifier "static".
- true if this JModifier includes the qualifier "static".
isTransient
public boolean isTransient()
Returns true if this JModifier includes the qualifier "transient".
- true if this JModifier includes the qualifier "transient".
makePackage
public void makePackage()
Changes the visibility qualifier to package (= without qualifier).
makePrivate
public void makePrivate()
Changes the visibility qualifier to "private".
makeProtected
public void makeProtected()
Changes the visibility qualifier to "protected".
makePublic
public void makePublic()
Changes the visibility qualifier to "public".
setAbstract
public void setAbstract(boolean isAbstract)
Sets whether or not this JModifiers includes the qualifier "abstract".
This applies only to methods or classes.
isAbstract
- if true, indicates that this JModifier should include
the qualifier "abstract"
setFinal
public void setFinal(boolean isFinal)
Sets whether or not this JModifiers includes the qualifier "final".
isFinal
- if true, indicates that this JModifier should include the
qualifier "final"
setStatic
public void setStatic(boolean isStatic)
Sets whether or not this JModifiers includes the qualifier "static".
isStatic
- if true, indicates that this JModifier should include the
qualifier "static"
setTransient
public void setTransient(boolean isTransient)
Sets whether or not this JModifiers includes the qualifier "transient".
isTransient
- is a boolean which when true indicates that this
JModifier should include the qualifier "transient"
toString
public String toString()
Returns the String represetation of this JModifiers, in the order
recommended by the Java Language Specification.
- the String represetation of this JModifiers.
Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com