Class ScalaParser

  • All Implemented Interfaces:
    Parser

    public class ScalaParser
    extends AbstractParser
    Scala's Parser implementation. Defers parsing to the scala compiler via Scalameta. This parser then wraps all of ScalaMeta's Nodes in Java versions for compatibility.
    • Constructor Detail

      • ScalaParser

        public ScalaParser​(scala.meta.Dialect scalaDialect,
                           ParserOptions parserOptions)
        Create a parser using the given Scala Dialect and set of parser options.
        Parameters:
        scalaDialect - the Scala Dialect for this parser
        parserOptions - any additional options for this parser