jfun.parsec
Class ParsingFrame

java.lang.Object
  extended by jfun.parsec.ParsingFrame

public class ParsingFrame
extends java.lang.Object

This class represents an error frame during parsing.

Author:
Ben Yu Dec 4, 2005 2:25:47 PM

Constructor Summary
ParsingFrame(java.lang.String module, int ind, Pos pos, Parser parser)
          To create a ParsingFrame object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int getIndex()
          Get the index of the character within the source.
 java.lang.String getModule()
          Get the module name.
 Parser getParser()
          Get the Parser object executed.
 Pos getPosition()
          Get the position within the source.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParsingFrame

public ParsingFrame(java.lang.String module,
                    int ind,
                    Pos pos,
                    Parser parser)
To create a ParsingFrame object.

Parameters:
module - the module name.
ind - the index of the character within the source.
pos - the position of the character.
parser - the parser executed.
Method Detail

getIndex

public int getIndex()
Get the index of the character within the source.


getModule

public java.lang.String getModule()
Get the module name.


getParser

public Parser getParser()
Get the Parser object executed.


getPosition

public Pos getPosition()
Get the position within the source.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object