|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.hunsicker.jalopy.language.ModifierType
Represents a Java modifier.
Field Summary | |
static ModifierType |
ABSTRACT
Represents the abstract modifier. |
static ModifierType |
FINAL
Represents the final modifier. |
static int |
MASK
|
static ModifierType |
NATIVE
Represents the native modifier. |
static ModifierType |
PRIVATE
Represents the private modifier. |
static ModifierType |
PROTECTED
Represents the protected modifier. |
static ModifierType |
PUBLIC
Represents the public modifier. |
static ModifierType |
STATIC
Represents the static modifier. |
static ModifierType |
STRICTFP
Represents the strictfp modifier. |
static ModifierType |
SYNCHRONIZED
Represents the synchronized modifier. |
static ModifierType |
TRANSIENT
Represents the transient modifier. |
static ModifierType |
VOLATILE
Represents the volatile modifier. |
Method Summary | |
int |
compareTo(java.lang.Object other)
Compares this object with the specified object for order. |
java.lang.String |
getName()
Returns the name of this type. |
static java.lang.String |
getOrder()
Returns a string representation of the current sort order. |
boolean |
getSort()
|
static void |
setOrder(java.lang.String str)
Sets the order to use as the natural order. |
boolean |
shouldSort(int mod)
|
java.lang.String |
toString()
Returns a string representation of this modifier type. |
static ModifierType |
valueOf(int mod)
|
static ModifierType |
valueOf(java.lang.String name)
Returns the modifier type for the given name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final ModifierType PUBLIC
public static final ModifierType PROTECTED
public static final ModifierType PRIVATE
public static final ModifierType STATIC
public static final ModifierType FINAL
public static final ModifierType TRANSIENT
public static final ModifierType NATIVE
public static final ModifierType ABSTRACT
public static final ModifierType SYNCHRONIZED
public static final ModifierType VOLATILE
public static final ModifierType STRICTFP
public static final int MASK
Method Detail |
public java.lang.String getName()
public static void setOrder(java.lang.String str)
str
- a string representing the new order. The string must consist of exactly
elevene different, comma delimited strings which represents a modifier
type.
java.lang.IllegalArgumentException
- if the given string is invalid.public boolean getSort()
public static java.lang.String getOrder()
public,protected,private,abstract,static,final,synchronized,transient,volatile,native,strictfpor any combination thereof.
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
other
- the object to be compared.
java.lang.ClassCastException
- if the specified object's type prevents it from being
compared to this object.public java.lang.String toString()
toString
in class java.lang.Object
public boolean shouldSort(int mod)
public static final ModifierType valueOf(int mod)
public static ModifierType valueOf(java.lang.String name)
name
- a modifier.
java.lang.IllegalArgumentException
- if no valid modifier was given.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |