public class ModifierType extends java.lang.Object implements java.lang.Comparable, Type
Modifier and Type | Field and Description |
---|---|
static ModifierType |
ABSTRACT
Represents the abstract modifier.
|
static ModifierType |
FINAL
Represents the final modifier.
|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
static void |
setOrder(java.lang.String str)
Sets the order to use as the natural order.
|
java.lang.String |
toString()
Returns a string representation of this modifier type.
|
static ModifierType |
valueOf(java.lang.String name)
Returns the modifier type for the given name.
|
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 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 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 static ModifierType valueOf(java.lang.String name)
name
- a modifier.java.lang.IllegalArgumentException
- if no valid modifier was given.
Submit a bug or feature.
For further information and documentation, visit the official Jalopy website.
This page generated: March 30 2013