org.codehaus.modello.generator.java.javasource
Class JModifiers
java.lang.Object
org.codehaus.modello.generator.java.javasource.JModifiers
public class JModifiers
extends java.lang.Object
The set of modifiers for a Method or Member variable
$Revision: 149 $ $Date: 2004-09-29 18:32:16 +0100 (Wed, 29 Sep 2004) $JModifiers() - Creates a new JModifiers class, by default the
modifiers presented are public.
|
JModifiers | copy() - Creates a copy of this JModifiers
|
boolean | isAbstract() - Returns true if the abstract 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
|
String | toString() - Returns the String represetation of this JModifiers
|
JModifiers
public JModifiers()
Creates a new JModifiers class, by default the
modifiers presented are public.
copy
public JModifiers copy()
Creates a copy of this JModifiers
- the copy of this JModifiers
isAbstract
public boolean isAbstract()
Returns true if the abstract qualifier is present.
This is only applicable to methods and classes.
- true if the abstract qualifier is present
isPackage
public boolean isPackage()
Returns true if the modifier represented is package (= without qualifier).
- true if the modifier represented is package (= without qualifier).
isPrivate
public boolean isPrivate()
Returns true if the modifier represented is private.
- true if the modifier represented is private.
isProtected
public boolean isProtected()
Returns true if the modifier represented is protected.
- true if the modifier represented is protected.
isPublic
public boolean isPublic()
Returns true if the modifier represented is public.
- true if the modifier represented is public.
isStatic
public boolean isStatic()
Returns true if the modifier represented is static.
- true if the modifier represented is static.
isTransient
public boolean isTransient()
Returns true if the modifier represented is transient.
- true if the modifier represented is 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 the "abstract" qualifier is present
This applies only to methods or classes.
isAbstract
- is a boolean which when true will indicate
that the abstract qualifier should be present
setFinal
public void setFinal(boolean isFinal)
Sets whether or not the "final" qualifier is present
isFinal
- is a boolean which when true will indicate
the final qualifiter is present
setStatic
public void setStatic(boolean isStatic)
Sets whether or not the "static" qualifier is present
isStatic
- is a boolean which when true will indicate
the "static" qualifiter is present
setTransient
public void setTransient(boolean isTransient)
Sets whether or not the "transient" qualifier is present
isTransient
- is a boolean which when true will indicate
the "transient" qualifiter is present
toString
public String toString()
Returns the String represetation of this JModifiers
- the String represetation of this JModifiers