Pep 0.4 API Documentation

edu.osu.ling.pep
Enum Status

java.lang.Object
  extended by java.lang.Enum<Status>
      extended by edu.osu.ling.pep.Status
All Implemented Interfaces:
Serializable, Comparable<Status>

public enum Status
extends Enum<Status>

Reflects the status of a parse completed by an Earley parser.

Version:
$LastChangedRevision: 305 $
Author:
Scott Martin
See Also:
Parse, EarleyParser

Enum Constant Summary
ACCEPT
          Means that a string is a valid string of a given grammar, as determined by parsing.
ERROR
          Used for parses where an error occurs during processing.
REJECT
          Signals that a string is rejected after parsing.
 
Method Summary
static Status valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Status[] 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

ACCEPT

public static final Status ACCEPT
Means that a string is a valid string of a given grammar, as determined by parsing.


ERROR

public static final Status ERROR
Used for parses where an error occurs during processing.


REJECT

public static final Status REJECT
Signals that a string is rejected after parsing.

Method Detail

valueOf

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

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

Pep: Pep is an Earley parser

Pep API Documentation, Copyright © 2007 Scott Martin

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the overview file.