|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||
java.lang.Objectjava.lang.Enum<StringType>
dk.brics.string.intermediate.StringType
public enum StringType
Denotes the type of a string-related object.
| Enum Constant Summary | |
|---|---|
COLLECTION
A mutable collection of immutable strings. |
|
IMMUTABLE
A single immutable string. |
|
MUTABLE
A single mutable string. |
|
USELESS
An object not being modelled as a string. |
|
| Method Summary | |
|---|---|
int |
getBitmask()
Returns a bitmask unique for this string-type, with exactly one 1-bit. |
boolean |
isModifiable()
Returns true if this is MUTABLE or COLLECTION. |
static StringType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static StringType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final StringType COLLECTION
public static final StringType IMMUTABLE
public static final StringType MUTABLE
public static final StringType USELESS
| Method Detail |
|---|
public int getBitmask()
public boolean isModifiable()
MUTABLE or COLLECTION.
public static StringType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static StringType[] values()
for (StringType c : StringType.values()) System.out.println(c);
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||