morfologik.fsa
Enum FSAFlags
java.lang.Object
java.lang.Enum<FSAFlags>
morfologik.fsa.FSAFlags
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<FSAFlags>
public enum FSAFlags
- extends java.lang.Enum<FSAFlags>
FSA automaton flags.
Field Summary |
int |
bits
Bit mask for the corresponding flag. |
Method Summary |
static boolean |
isSet(int flags,
FSAFlags flag)
Returns true if the corresponding flag is set in the
bit set. |
static FSAFlags |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static FSAFlags[] |
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 |
FLEXIBLE
public static final FSAFlags FLEXIBLE
STOPBIT
public static final FSAFlags STOPBIT
NEXTBIT
public static final FSAFlags NEXTBIT
TAILS
public static final FSAFlags TAILS
WEIGHTED
public static final FSAFlags WEIGHTED
LARGE_DICTIONARIES
public static final FSAFlags LARGE_DICTIONARIES
bits
public final int bits
- Bit mask for the corresponding flag.
values
public static FSAFlags[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (FSAFlags c : FSAFlags.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static FSAFlags valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
isSet
public static boolean isSet(int flags,
FSAFlags flag)
- Returns
true
if the corresponding flag is set in the
bit set.