dk.brics.servletvalidator.balancing.pimages
Enum ParenthesisType
java.lang.Object
java.lang.Enum<ParenthesisType>
dk.brics.servletvalidator.balancing.pimages.ParenthesisType
- All Implemented Interfaces:
- Serializable, Comparable<ParenthesisType>
public enum ParenthesisType
- extends Enum<ParenthesisType>
The two types of parenthesis in the system, namely left and right parenthesis are
enumerated by this enum. Many classes are used to represent parenthesis throughout
the system and they can declare their parenthesistype using the ParenthesisTypeInfo
interface
|
Method Summary |
static ParenthesisType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ParenthesisType[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
LEFT
public static final ParenthesisType LEFT
RIGHT
public static final ParenthesisType RIGHT
valueOf
public static ParenthesisType valueOf(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:
IllegalArgumentException - if this enum type has no constant
with the specified name
values
public static final ParenthesisType[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(ParenthesisType c : ParenthesisType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
Copyright © 2008 Mathias Schwarz.