|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Parser
This parser eats graphs which are created by AGG. A parser needs a host graph and a stop graph. The graph grammar for parsing must contain reducing rules.
createParser(...)
Method Summary | |
---|---|
void |
addParserEventListener(ParserEventListener l)
Register a ParserEventListener. |
Graph |
getGraph()
Returns the host graph from the parser. |
Graph |
getHostGraph()
Returns the host graph from the parser. |
Graph |
getStopGraph()
Returns the current stop graph of the parser. |
boolean |
parse()
Starts the parser. |
void |
removeParserEventListener(ParserEventListener l)
Removes a ParserEventListener. |
void |
setCriticalPairs(PairContainer pairs)
Sets the critical pairs for the parser. |
void |
setDelayAfterApplyRule(int miliseconds)
|
void |
setGrammar(GraGra grammar)
Sets the grammar for the parser. |
void |
setHostGraph(Graph hostGraph)
Sets the host graph for the parser. |
void |
setStopGraph(Graph stopGraph)
Sets the stop graph for the parser. |
Method Detail |
---|
void setHostGraph(Graph hostGraph)
hostGraph
- The host graph.void setStopGraph(Graph stopGraph)
stopGraph
- The stop graph.void setCriticalPairs(PairContainer pairs)
pairs
- The critical pairs are holded in a container.void setGrammar(GraGra grammar)
grammar
- The grammar for the parser.Graph getHostGraph()
Graph getStopGraph()
boolean parse()
Graph getGraph()
void addParserEventListener(ParserEventListener l)
l
- The listenervoid removeParserEventListener(ParserEventListener l)
l
- The listener.void setDelayAfterApplyRule(int miliseconds)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |