public class JModifiers extends Object
Constructor and Description |
---|
JModifiers()
Creates a new JModifiers class, by default the
modifiers presented are public.
|
Modifier and Type | Method and Description |
---|---|
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
|
String |
toString()
Returns the String represetation of this JModifiers
|
public JModifiers()
public JModifiers copy()
public void makePrivate()
public void makeProtected()
public void makePublic()
public void makePackage()
public boolean isAbstract()
public boolean isFinal()
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 presentCopyright © 2001–2022 Codehaus Plexus. All rights reserved.