org.thewonderlemming.c4plantuml.graphml.parse

## Class C4L1GraphParseTreeListener

- java.lang.Object
- - org.thewonderlemming.c4plantuml.graphml.parse.C4L1GraphParseTreeListener

- All Implemented Interfaces:
    org.antlr.v4.runtime.tree.ParseTreeListener, C4L1ParserListenerDecorator, org.thewonderlemming.c4plantuml.grammars.generated.C4L1ParserListener

      public class C4L1GraphParseTreeListener
      extends Object
      implements C4L1ParserListenerDecorator

  An ANTLR 4 `ParseTreeListener` that parses C4 L1 grammar and feeds the JAXB model with the retrieved information.
  Author:
    thewonderlemming

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `C4L1GraphParseTreeListener()` Default constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `enterCloud(org.thewonderlemming.c4plantuml.grammars.generated.C4L1Parser.CloudContext ctx)` Enter a parse tree produced by `C4L1Parser.cloud()`.
    `void` | `enterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)`
    `void` | `enterPerson_ext(org.thewonderlemming.c4plantuml.grammars.generated.C4L1Parser.Person_extContext ctx)` Enter a parse tree produced by `C4L1Parser.person_ext()`.
    `void` | `enterPerson(org.thewonderlemming.c4plantuml.grammars.generated.C4L1Parser.PersonContext ctx)` Enter a parse tree produced by `C4L1Parser.person()`.
    `void` | `enterRelationship(org.thewonderlemming.c4plantuml.grammars.generated.C4L1Parser.RelationshipContext ctx)` Enter a parse tree produced by `C4L1Parser.relationship()`.
    `void` | `enterSystem_ext(org.thewonderlemming.c4plantuml.grammars.generated.C4L1Parser.System_extContext ctx)` Enter a parse tree produced by `C4L1Parser.system_ext()`.
    `void` | `enterSystem(org.thewonderlemming.c4plantuml.grammars.generated.C4L1Parser.SystemContext ctx)` Enter a parse tree produced by `C4L1Parser.system()`.
    `void` | `enterTitle(org.thewonderlemming.c4plantuml.grammars.generated.C4L1Parser.TitleContext ctx)` Enter a parse tree produced by `C4L1Parser.title()`.
    `void` | `exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)`
    `org.thewonderlemming.c4plantuml.grammars.generated.C4L1ParserListener` | `getDecoratedC4L1ParserListener()` returns the instance of the `C4L1ParserListener` 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` | `visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node)`
    `void` | `visitTerminal(org.antlr.v4.runtime.tree.TerminalNode node)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.thewonderlemming.c4plantuml.grammars.C4L1ParserListenerDecorator

      `enterBoundary, enterComma, enterDiagram, enterEnterprise_boundary, enterFooter, enterInclude, enterL1_title, enterLayout, enterStatement, exitBoundary, exitCloud, exitComma, exitDiagram, exitEnterprise_boundary, exitFooter, exitInclude, exitL1_title, exitLayout, exitPerson_ext, exitPerson, exitRelationship, exitStatement, exitSystem_ext, exitSystem, exitTitle`

- - ### Constructor Detail

    - #### C4L1GraphParseTreeListener

          public C4L1GraphParseTreeListener()

      Default constructor.

  - ### Method Detail

    - #### enterCloud

          public void enterCloud(org.thewonderlemming.c4plantuml.grammars.generated.C4L1Parser.CloudContext ctx)

      Enter a parse tree produced by `C4L1Parser.cloud()`.
      Specified by:
        `enterCloud` in interface `C4L1ParserListenerDecorator`
      Specified by:
        `enterCloud` in interface `org.thewonderlemming.c4plantuml.grammars.generated.C4L1ParserListener`
      Parameters:
        `ctx` - the parse tree

    - #### enterEveryRule

          public void enterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)

      Does nothing.

      Specified by:
        `enterEveryRule` in interface `org.antlr.v4.runtime.tree.ParseTreeListener`

    - #### enterPerson

          public void enterPerson(org.thewonderlemming.c4plantuml.grammars.generated.C4L1Parser.PersonContext ctx)

      Enter a parse tree produced by `C4L1Parser.person()`.
      Specified by:
        `enterPerson` in interface `C4L1ParserListenerDecorator`
      Specified by:
        `enterPerson` in interface `org.thewonderlemming.c4plantuml.grammars.generated.C4L1ParserListener`
      Parameters:
        `ctx` - the parse tree

    - #### enterPerson_ext

          public void enterPerson_ext(org.thewonderlemming.c4plantuml.grammars.generated.C4L1Parser.Person_extContext ctx)

      Enter a parse tree produced by `C4L1Parser.person_ext()`.
      Specified by:
        `enterPerson_ext` in interface `C4L1ParserListenerDecorator`
      Specified by:
        `enterPerson_ext` in interface `org.thewonderlemming.c4plantuml.grammars.generated.C4L1ParserListener`
      Parameters:
        `ctx` - the parse tree

    - #### enterRelationship

          public void enterRelationship(org.thewonderlemming.c4plantuml.grammars.generated.C4L1Parser.RelationshipContext ctx)

      Enter a parse tree produced by `C4L1Parser.relationship()`.
      Specified by:
        `enterRelationship` in interface `C4L1ParserListenerDecorator`
      Specified by:
        `enterRelationship` in interface `org.thewonderlemming.c4plantuml.grammars.generated.C4L1ParserListener`
      Parameters:
        `ctx` - the parse tree

    - #### enterSystem

          public void enterSystem(org.thewonderlemming.c4plantuml.grammars.generated.C4L1Parser.SystemContext ctx)

      Enter a parse tree produced by `C4L1Parser.system()`.
      Specified by:
        `enterSystem` in interface `C4L1ParserListenerDecorator`
      Specified by:
        `enterSystem` in interface `org.thewonderlemming.c4plantuml.grammars.generated.C4L1ParserListener`
      Parameters:
        `ctx` - the parse tree

    - #### enterSystem_ext

          public void enterSystem_ext(org.thewonderlemming.c4plantuml.grammars.generated.C4L1Parser.System_extContext ctx)

      Enter a parse tree produced by `C4L1Parser.system_ext()`.
      Specified by:
        `enterSystem_ext` in interface `C4L1ParserListenerDecorator`
      Specified by:
        `enterSystem_ext` in interface `org.thewonderlemming.c4plantuml.grammars.generated.C4L1ParserListener`
      Parameters:
        `ctx` - the parse tree

    - #### enterTitle

          public void enterTitle(org.thewonderlemming.c4plantuml.grammars.generated.C4L1Parser.TitleContext ctx)

      Enter a parse tree produced by `C4L1Parser.title()`.
      Specified by:
        `enterTitle` in interface `C4L1ParserListenerDecorator`
      Specified by:
        `enterTitle` in interface `org.thewonderlemming.c4plantuml.grammars.generated.C4L1ParserListener`
      Parameters:
        `ctx` - the parse tree

    - #### exitEveryRule

          public void exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)

      Does nothing.

      Specified by:
        `exitEveryRule` in interface `org.antlr.v4.runtime.tree.ParseTreeListener`

    - #### getDecoratedC4L1ParserListener

          public org.thewonderlemming.c4plantuml.grammars.generated.C4L1ParserListener getDecoratedC4L1ParserListener()

      returns the instance of the `C4L1ParserListener` being decorated.
      Specified by:
        `getDecoratedC4L1ParserListener` in interface `C4L1ParserListenerDecorator`
      Returns:
        the decorated `C4L1ParserListener`.

    - #### getGraph

          public GraphModel getGraph()

      Returns the result of the parsing as a graph.
      Returns:
        the graph result.

    - #### getUnrecoverableErrors

          public List<Throwable> getUnrecoverableErrors()

      Returns any unrecoverable exceptions that could have occurred during the parsing process.
      Returns:
        the unrecoverable exceptions that happened during the parsing.

    - #### visitErrorNode

          public void visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node)

      Does nothing but logging a generic message.

      Specified by:
        `visitErrorNode` in interface `org.antlr.v4.runtime.tree.ParseTreeListener`

    - #### visitTerminal

          public void visitTerminal(org.antlr.v4.runtime.tree.TerminalNode node)

      Does nothing.

      Specified by:
        `visitTerminal` in interface `org.antlr.v4.runtime.tree.ParseTreeListener`

Copyright © 2020. All rights reserved.