Class ScalaParser

  • All Implemented Interfaces:
    net.sourceforge.pmd.lang.ast.Parser

    public final class ScalaParser
    extends Object
    implements net.sourceforge.pmd.lang.ast.Parser
    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()
    • Method Detail

      • parse

        public ASTSource parse​(net.sourceforge.pmd.lang.ast.Parser.ParserTask task)
                        throws net.sourceforge.pmd.lang.ast.ParseException
        Specified by:
        parse in interface net.sourceforge.pmd.lang.ast.Parser
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException