|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The required interface for all parsers. All parsers should implement this interface to facilitate pluggability. While a parser must implement the entire interface, it can opt to throw an UnimplementedFeature exception if it does not support parsing of a particular nonterminal. Minimally, a parser should support the Unit nonterminal.
UnimplementedFeatureException
Method Summary | |
Concept |
Concept()
Attempts to parse a concept from the input stream. |
java.lang.Class |
getUnitClass()
Returns a Class object that indicates what class the Unit parse method will return. |
Graph |
Graph()
Attempts to parse a graph from the input stream. |
void |
initializeParser(java.io.Reader reader,
KnowledgeBase kBase,
TranslationContext tContext)
Initializes the parser to parse the specified character reader. |
Relation |
Relation()
Attempts to parse a relation from the input stream. |
java.lang.Object |
Unit()
Attempts to parse the default unit from the input stream. |
Method Detail |
public void initializeParser(java.io.Reader reader, KnowledgeBase kBase, TranslationContext tContext) throws ParserException
reader
- the reader whose contents are to be parsed.kBase
- the knowledge base to be used while parsing.tContext
- the translation context to be used while parsing.public java.lang.Class getUnitClass()
Unit()
public java.lang.Object Unit() throws ParserException
public Graph Graph() throws ParserException
public Concept Concept() throws ParserException
public Relation Relation() throws ParserException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |