public final class JModifiers
extends java.lang.Object
Constructor | Description |
---|---|
JModifiers() |
Creates a new JModifiers class.
|
Modifier and Type | Method | Description |
---|---|---|
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".
|
java.lang.String |
toString() |
public JModifiers()
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
- If true, indicates that this JModifier should include
the qualifier "abstract".public void setFinal(boolean isFinal)
isFinal
- If true, indicates that this JModifier should include the
qualifier "final".public void setStatic(boolean isStatic)
isStatic
- If true, indicates that this JModifier should include the
qualifier "static".public void setTransient(boolean isTransient)
isTransient
- Is a boolean which when true indicates that this
JModifier should include the qualifier "transient".public java.lang.String toString()
toString
in class java.lang.Object
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com