|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Generator interface. All generators should implement this interface to facilitate pluggability. While a generator must implement the entire interface, it can opt to throw an UnimplementedFeature exception if it does not support generating of a particular nonterminal. Minimally, a generator should support the Unit nonterminal.
Method Summary | |
void |
Concept(Concept concept)
Generates the specified concept. |
java.lang.Class |
getUnitClass()
Returns a Class object that indicates what class the Unit generate method requires. |
void |
Graph(Graph graph)
Generates the specified graph. |
void |
initializeGenerator(java.io.Writer writer,
KnowledgeBase kBase,
TranslationContext tContext)
Initializes the generator to generate into the specified writer. |
void |
Relation(Relation relation)
Generates the specified relation. |
void |
Unit(java.lang.Object unit)
Generates the specified unit object. |
Method Detail |
public void initializeGenerator(java.io.Writer writer, KnowledgeBase kBase, TranslationContext tContext) throws GeneratorException
writer
- the writer to be generated into.kBase
- the knowledge base to be used while parsing.tContext
- the translation context to be used while parsing.public java.lang.Class getUnitClass()
Unit(java.lang.Object)
public void Unit(java.lang.Object unit) throws GeneratorException
unit
- the unit to be generated.public void Graph(Graph graph) throws GeneratorException
graph
- the graph to be generated.public void Concept(Concept concept) throws GeneratorException
concept
- the concept to be generated.public void Relation(Relation relation) throws GeneratorException
relation
- the relation to be generated.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |