org.thewonderlemming.c4plantuml.syntaxchecker

## Class SyntaxChecker

- java.lang.Object
- - org.thewonderlemming.c4plantuml.syntaxchecker.SyntaxChecker

-     public class SyntaxChecker
      extends Object

  An ANTLR4 based tool to analyse C4 PlantUML source files syntax.
  Author:
    thewonderlemming

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SyntaxChecker(org.thewonderlemming.c4plantuml.commons.Reporter reporter)` Default constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `check(Path c4SourceFile)` Parses a given file and checks its syntax for errors, using `UTF-8` encoding.
    `void` | `check(Path c4SourceFile, Charset charset)` Parses a given file and checks its syntax for errors.

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

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

- - ### Constructor Detail

    - #### SyntaxChecker

          public SyntaxChecker(org.thewonderlemming.c4plantuml.commons.Reporter reporter)

      Default constructor.
      Parameters:
        `reporter` - the `Reporter` to report to.

  - ### Method Detail

    - #### check

          public void check(Path c4SourceFile)

      Parses a given file and checks its syntax for errors, using `UTF-8` encoding.
      Parameters:
        `c4SourceFile` - the given file to parse.

    - #### check

          public void check(Path c4SourceFile,
                            Charset charset)

      Parses a given file and checks its syntax for errors.
      Parameters:
        `c4SourceFile` - the given file to parse.
        `charset` - the `Charset` to use while parsing the file.

Copyright © 2020. All rights reserved.