|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--notio.translators.SimpleGenerator | +--notio.translators.LFGenerator
A LF Generator class.
Constructor Summary | |
LFGenerator()
|
Method Summary | |
void |
Actor(Actor actor)
Generates an actor to the output stream. |
void |
ActorComment(java.lang.String comment)
Generates a actor comment to output stream. |
void |
ConceptComment(java.lang.String comment)
Generates a concept comment to output stream. |
void |
ConceptType(ConceptType conType)
Generates a concept type to the output stream. |
void |
decreaseIndent()
Decreases the current indent level. |
void |
Designator(Designator designator)
Generates a designator to the output stream. |
static java.lang.String |
escapeCharactersInString(java.lang.String in,
java.lang.String chars,
char escapeSequence)
Adds escape sequences for specified characters whenever they occur within the specified string. |
void |
generateActor(Actor actor)
Generates the specified actor. |
void |
generateCGStream(java.util.Vector graphs)
LFGenerator does not support the CGStream construct. |
void |
generateConcept(Concept concept)
Generates a concept to the output stream. |
void |
generateGraph(Graph graph)
Generates a graph to the output stream. |
void |
generateOutermostContext(Graph graph)
Generates the specified graph which is treated as the outermost context for purposes for scoping. |
void |
generateRelation(Relation relation)
Generates a relation to the output stream. |
void |
generateUnit(java.lang.Object unit)
Generates a graph to the output stream. |
java.lang.Class |
getUnitClass()
Returns a Class object that indicates what class the Unit parse method will return. |
void |
GraphComment(java.lang.String comment)
Generates a graph comment to output stream. |
void |
increaseIndent()
Increases the current indent level. |
void |
initializeGenerator(java.io.Writer newWriter,
KnowledgeBase newKnowledgeBase,
TranslationContext newTranslationContext)
Initializes the generator to write to the specified writer using the specified TranslationContext and KnowledgeBase. |
void |
LiteralDesignator(LiteralDesignator designator)
Generates a literal designator to output stream. |
void |
MarkerDesignator(MarkerDesignator designator)
Generates a marker designator to output stream. |
void |
NameDesignator(NameDesignator designator)
Generates a name designator to output stream. |
void |
Quantifier(Macro quantifier)
Generates a quantifier to the output stream. |
void |
Referent(Referent referent)
Generates a referent to the output stream. |
void |
RelationComment(java.lang.String comment)
Generates a relation comment to output stream. |
void |
RelationType(RelationType relType)
Generates a relation type to the output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface notio.Generator |
generateUnit, getUnitClass |
Constructor Detail |
public LFGenerator()
Method Detail |
public void initializeGenerator(java.io.Writer newWriter, KnowledgeBase newKnowledgeBase, TranslationContext newTranslationContext) throws GeneratorException
initializeGenerator
in interface Generator
initializeGenerator
in class notio.translators.SimpleGenerator
newWriter
- the writer to be generated to.newKnowledgeBase
- the knowledge base to be used while generating.newTranslationContext
- the translationContext to be used while
generating.public void generateCGStream(java.util.Vector graphs) throws GeneratorException
generateCGStream
in interface Generator
graphsa
- the vector of graphs to be generated.GeneratorException
- if an error occurs while generating.UnimplementedFeatureException
- if this generator does not support this
generation method.public void generateActor(Actor actor) throws GeneratorException
generateActor
in interface Generator
actor
- the actor to be generated.GeneratorException
- if an error occurs while generating.UnimplementedFeatureException
- if this generator does not support this
generation method.public void generateOutermostContext(Graph graph) throws GeneratorException
generateOutermostContext
in interface Generator
graph
- the graph to be generated.GeneratorException
- if an error occurs while generating.UnimplementedFeatureException
- if this generator does not support this
generation method.public void generateGraph(Graph graph) throws GeneratorException
generateGraph
in interface Generator
graph
- the graph to be generated.GeneratorException
- if an error occurs while generating.public void GraphComment(java.lang.String comment) throws GeneratorException
comment
- the graph comment to be generated.GeneratorException
- if an error occurs while generating.public void generateConcept(Concept concept) throws GeneratorException
generateConcept
in interface Generator
concept
- the concept to be generated.GeneratorException
- if an error occurs while generating.public void ConceptType(ConceptType conType) throws GeneratorException
conType
- the concept type to be generated.GeneratorException
- if an IO error occurs.public void Referent(Referent referent) throws GeneratorException
referent
- the referent to be generated.GeneratorException
- if an IO error occurs.public void Quantifier(Macro quantifier) throws GeneratorException
quantifier
- the quantifier to be generated.GeneratorException
- if an IO error occurs.public void Designator(Designator designator) throws GeneratorException
designator
- the designator to be generated.GeneratorException
- if an error occurs while generating.public void LiteralDesignator(LiteralDesignator designator) throws GeneratorException
designator
- the designator to be generated.GeneratorException
- if an error occurs while generating.public void MarkerDesignator(MarkerDesignator designator) throws GeneratorException
designator
- the designator to be generated.GeneratorException
- if an error occurs while generating.public void NameDesignator(NameDesignator designator) throws GeneratorException
designator
- the designator to be generated.GeneratorException
- if an error occurs while generating.public void ConceptComment(java.lang.String comment) throws GeneratorException
comment
- the concept comment to be generated.GeneratorException
- if an error occurs while generating.public void generateRelation(Relation relation) throws GeneratorException
generateRelation
in interface Generator
relation
- the relation to be generated.GeneratorException
- if an error occurs while generating.public void RelationType(RelationType relType) throws GeneratorException
relType
- the relation type to be generated.GeneratorException
- if an IO error occurs.public void RelationComment(java.lang.String comment) throws GeneratorException
comment
- the relation comment to be generated.GeneratorException
- if an error occurs while generating.public void Actor(Actor actor) throws GeneratorException
actor
- the actor to be generated.GeneratorException
- if an error occurs while generating.public void ActorComment(java.lang.String comment) throws GeneratorException
comment
- the actor comment to be generated.GeneratorException
- if an error occurs while generating.public void increaseIndent()
public void decreaseIndent()
public java.lang.Class getUnitClass()
getUnitClass
in interface Generator
Generator.generateUnit(java.lang.Object)
public void generateUnit(java.lang.Object unit) throws GeneratorException
generateUnit
in interface Generator
unit
- the unit object to be generated.GeneratorException
- if an error occurs while generating.public static java.lang.String escapeCharactersInString(java.lang.String in, java.lang.String chars, char escapeSequence)
in
- the string to be modified.chars
- a string containing all characters that need to be
escaped.escapeSequence
- the character that should prefix characters that
need escaping (e.g. backslash).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |