pmp
Enum MatcherIface.State

java.lang.Object
  extended by java.lang.Enum<MatcherIface.State>
      extended by pmp.MatcherIface.State
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MatcherIface.State>
Enclosing interface:
MatcherIface

public static enum MatcherIface.State
extends java.lang.Enum<MatcherIface.State>

State of matcher.

Author:
Luděk Hlaváček

Enum Constant Summary
MATCH
          Entire input sequence matches the pattern.
MISMATCH
          Input string does not match the pattern.
OVERFEED
          Beginning of input sequence matches the pattern.
PARTIAL
          Input string matches the beginning of the pattern.
 
Method Summary
static MatcherIface.State valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MatcherIface.State[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MISMATCH

public static final MatcherIface.State MISMATCH
Input string does not match the pattern.


PARTIAL

public static final MatcherIface.State PARTIAL
Input string matches the beginning of the pattern. After processing more characters from input sequence, state may change to MISMATCH or MATCH.


OVERFEED

public static final MatcherIface.State OVERFEED
Beginning of input sequence matches the pattern. (method lookingAt() of standard Java Matcher class would return true.


MATCH

public static final MatcherIface.State MATCH
Entire input sequence matches the pattern. (method matches() of standard Java Matcher class would return true.

Method Detail

values

public static final MatcherIface.State[] 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(MatcherIface.State c : MatcherIface.State.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static MatcherIface.State 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