public class C4L3GraphParseTreeListener extends Object implements C4L3ParserListenerDecorator
ParseTreeListener that parses C4 L3 grammar and feeds the JAXB model with the retrieved
information.| Constructor and Description |
|---|
C4L3GraphParseTreeListener()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enterCloud(org.thewonderlemming.c4plantuml.grammars.generated.C4L3Parser.CloudContext ctx)
Enter a parse tree produced by
C4L3Parser.cloud(). |
void |
enterComponent(org.thewonderlemming.c4plantuml.grammars.generated.C4L3Parser.ComponentContext ctx)
Enter a parse tree produced by
C4L3Parser.component(). |
void |
enterContainer_boundary(org.thewonderlemming.c4plantuml.grammars.generated.C4L3Parser.Container_boundaryContext ctx)
Enter a parse tree produced by
C4L3Parser.container_boundary(). |
void |
enterContainer(org.thewonderlemming.c4plantuml.grammars.generated.C4L3Parser.ContainerContext ctx)
Enter a parse tree produced by
C4L3Parser.container(). |
void |
enterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx) |
void |
enterPerson_ext(org.thewonderlemming.c4plantuml.grammars.generated.C4L3Parser.Person_extContext ctx)
Enter a parse tree produced by
C4L3Parser.person_ext(). |
void |
enterPerson(org.thewonderlemming.c4plantuml.grammars.generated.C4L3Parser.PersonContext ctx)
Enter a parse tree produced by
C4L3Parser.person(). |
void |
enterRelationship(org.thewonderlemming.c4plantuml.grammars.generated.C4L3Parser.RelationshipContext ctx)
Enter a parse tree produced by
C4L3Parser.relationship(). |
void |
enterSystem_ext(org.thewonderlemming.c4plantuml.grammars.generated.C4L3Parser.System_extContext ctx)
Enter a parse tree produced by
C4L3Parser.system_ext(). |
void |
enterSystem(org.thewonderlemming.c4plantuml.grammars.generated.C4L3Parser.SystemContext ctx)
Enter a parse tree produced by
C4L3Parser.system(). |
void |
enterTitle(org.thewonderlemming.c4plantuml.grammars.generated.C4L3Parser.TitleContext ctx)
Enter a parse tree produced by
C4L3Parser.title(). |
void |
exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx) |
org.thewonderlemming.c4plantuml.grammars.generated.C4L3ParserListener |
getDecoratedC4L3ParserListener()
returns the instance of the
C4L3ParserListener being decorated. |
GraphModel |
getGraph()
Returns the result of the parsing as a graph.
|
List<Throwable> |
getUnrecoverableErrors()
Returns any unrecoverable exceptions that could have occurred during the parsing process.
|
void |
reset(int parentNodeId)
Resets the current listener so that it can be reused for the next C4 L3 source file.
|
void |
visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node) |
void |
visitTerminal(org.antlr.v4.runtime.tree.TerminalNode node) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenterBoundary, enterComma, enterDiagram, enterEnterprise_boundary, enterFooter, enterInclude, enterL3_title, enterLayout, enterStatement, exitBoundary, exitCloud, exitComma, exitComponent, exitContainer_boundary, exitContainer, exitDiagram, exitEnterprise_boundary, exitFooter, exitInclude, exitL3_title, exitLayout, exitPerson_ext, exitPerson, exitRelationship, exitStatement, exitSystem_ext, exitSystem, exitTitlepublic C4L3GraphParseTreeListener()
public void enterCloud(org.thewonderlemming.c4plantuml.grammars.generated.C4L3Parser.CloudContext ctx)
C4L3Parser.cloud().enterCloud in interface C4L3ParserListenerDecoratorenterCloud in interface org.thewonderlemming.c4plantuml.grammars.generated.C4L3ParserListenerctx - the parse treepublic void enterComponent(org.thewonderlemming.c4plantuml.grammars.generated.C4L3Parser.ComponentContext ctx)
C4L3Parser.component().enterComponent in interface C4L3ParserListenerDecoratorenterComponent in interface org.thewonderlemming.c4plantuml.grammars.generated.C4L3ParserListenerctx - the parse treepublic void enterContainer(org.thewonderlemming.c4plantuml.grammars.generated.C4L3Parser.ContainerContext ctx)
C4L3Parser.container().enterContainer in interface C4L3ParserListenerDecoratorenterContainer in interface org.thewonderlemming.c4plantuml.grammars.generated.C4L3ParserListenerctx - the parse treepublic void enterContainer_boundary(org.thewonderlemming.c4plantuml.grammars.generated.C4L3Parser.Container_boundaryContext ctx)
C4L3Parser.container_boundary().enterContainer_boundary in interface C4L3ParserListenerDecoratorenterContainer_boundary in interface org.thewonderlemming.c4plantuml.grammars.generated.C4L3ParserListenerctx - the parse treepublic void enterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
Does nothing.
enterEveryRule in interface org.antlr.v4.runtime.tree.ParseTreeListenerpublic void enterPerson(org.thewonderlemming.c4plantuml.grammars.generated.C4L3Parser.PersonContext ctx)
C4L3Parser.person().enterPerson in interface C4L3ParserListenerDecoratorenterPerson in interface org.thewonderlemming.c4plantuml.grammars.generated.C4L3ParserListenerctx - the parse treepublic void enterPerson_ext(org.thewonderlemming.c4plantuml.grammars.generated.C4L3Parser.Person_extContext ctx)
C4L3Parser.person_ext().enterPerson_ext in interface C4L3ParserListenerDecoratorenterPerson_ext in interface org.thewonderlemming.c4plantuml.grammars.generated.C4L3ParserListenerctx - the parse treepublic void enterRelationship(org.thewonderlemming.c4plantuml.grammars.generated.C4L3Parser.RelationshipContext ctx)
C4L3Parser.relationship().enterRelationship in interface C4L3ParserListenerDecoratorenterRelationship in interface org.thewonderlemming.c4plantuml.grammars.generated.C4L3ParserListenerctx - the parse treepublic void enterSystem(org.thewonderlemming.c4plantuml.grammars.generated.C4L3Parser.SystemContext ctx)
C4L3Parser.system().enterSystem in interface C4L3ParserListenerDecoratorenterSystem in interface org.thewonderlemming.c4plantuml.grammars.generated.C4L3ParserListenerctx - the parse treepublic void enterSystem_ext(org.thewonderlemming.c4plantuml.grammars.generated.C4L3Parser.System_extContext ctx)
C4L3Parser.system_ext().enterSystem_ext in interface C4L3ParserListenerDecoratorenterSystem_ext in interface org.thewonderlemming.c4plantuml.grammars.generated.C4L3ParserListenerctx - the parse treepublic void enterTitle(org.thewonderlemming.c4plantuml.grammars.generated.C4L3Parser.TitleContext ctx)
C4L3Parser.title().enterTitle in interface C4L3ParserListenerDecoratorenterTitle in interface org.thewonderlemming.c4plantuml.grammars.generated.C4L3ParserListenerctx - the parse treepublic void exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
Does nothing.
exitEveryRule in interface org.antlr.v4.runtime.tree.ParseTreeListenerpublic org.thewonderlemming.c4plantuml.grammars.generated.C4L3ParserListener getDecoratedC4L3ParserListener()
C4L3ParserListener being decorated.getDecoratedC4L3ParserListener in interface C4L3ParserListenerDecoratorC4L3ParserListener.public GraphModel getGraph()
public List<Throwable> getUnrecoverableErrors()
public void reset(int parentNodeId)
parentNodeId - the NodeModel ID the current graph should be tied to.public void visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node)
Does nothing.
visitErrorNode in interface org.antlr.v4.runtime.tree.ParseTreeListenerpublic void visitTerminal(org.antlr.v4.runtime.tree.TerminalNode node)
Does nothing.
visitTerminal in interface org.antlr.v4.runtime.tree.ParseTreeListenerCopyright © 2020. All rights reserved.