|
|||||||||
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.
UnimplementedFeatureException
Method Summary | |
void |
generateActor(Actor actor)
Generates the specified actor. |
void |
generateConcept(Concept concept)
Generates the specified concept. |
void |
generateGraph(Graph graph)
Generates the specified graph. |
void |
generateOutermostContext(Graph graph)
Generates the specified graph which is treated as the outermost context for purposes for scoping. |
void |
generateRelation(Relation relation)
Generates the specified relation. |
void |
generateUnit(java.lang.Object unit)
Generates the specified unit object. |
java.lang.Class |
getUnitClass()
Returns a Class object that indicates what class the Unit generate method requires. |
void |
initializeGenerator(java.io.Writer writer,
KnowledgeBase kBase,
TranslationContext tContext)
Initializes the generator to generate into the specified writer. |
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()
generateUnit(java.lang.Object)
public void generateUnit(java.lang.Object unit) throws GeneratorException
unit
- the unit to be generated.public void generateOutermostContext(Graph graph) throws GeneratorException
graph
- the graph to be generated.public void generateGraph(Graph graph) throws GeneratorException
graph
- the graph to be generated.public void generateConcept(Concept concept) throws GeneratorException
concept
- the concept to be generated.public void generateRelation(Relation relation) throws GeneratorException
relation
- the relation to be generated.public void generateActor(Actor actor) throws GeneratorException
actor
- the actor to be generated.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |