edu.osu.ling.pep
Class ParseEvent
java.lang.Object
java.util.EventObject
edu.osu.ling.pep.ParserEvent
edu.osu.ling.pep.ParseEvent
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ParseErrorEvent
public class ParseEvent
- extends ParserEvent
An event generated by an Earley parser
having to do
with a completed parse
.
- Version:
- $LastChangedRevision: 1807 $
- Author:
- Scott Martin
- See Also:
- Serialized Form
Method Summary |
Integer |
getIndex()
Gets the string index where this event occurred. |
Parse |
getParse()
Gets the parse associated with this event. |
ParseEvent
protected ParseEvent(EarleyParser earleyParser,
Integer index,
Parse parse)
- Creates a new event concerning the specified parse.
- Parameters:
parse
- The parse in question.
getIndex
public Integer getIndex()
- Gets the string index where this event occurred.
getParse
public Parse getParse()
- Gets the parse associated with this event.
- Returns:
- The parse that was specified when this event was created.
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.