jfun.parsec

Class ParsingFrame

public class ParsingFrame extends Object

This class represents an error frame during parsing.

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

Constructor Summary
ParsingFrame(String module, int ind, Pos pos, Parser parser)
To create a ParsingFrame object.
Method Summary
booleanequals(Object obj)
intgetIndex()
Get the index of the character within the source.
StringgetModule()
Get the module name.
ParsergetParser()
Get the Parser object executed.
PosgetPosition()
Get the position within the source.
inthashCode()
StringtoString()

Constructor Detail

ParsingFrame

public ParsingFrame(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

equals

public boolean equals(Object obj)

getIndex

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

getModule

public 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.

hashCode

public int hashCode()

toString

public String toString()