Class JavaParser

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

    public class JavaParser
    extends net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeParserAdapter<ASTCompilationUnit>
    Adapter for the JavaParser, using the specified grammar version.
    Author:
    Pieter_Van_Raemdonck - Application Engineers NV/SA - www.ae.be, Andreas Dangel
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface net.sourceforge.pmd.lang.ast.Parser

        net.sourceforge.pmd.lang.ast.Parser.ParserTask
    • Constructor Summary

      Constructors 
      Constructor Description
      JavaParser​(String suppressMarker, net.sourceforge.pmd.lang.java.internal.JavaLanguageProcessor javaProcessor, boolean postProcess)  
    • Constructor Detail

      • JavaParser

        public JavaParser​(String suppressMarker,
                          net.sourceforge.pmd.lang.java.internal.JavaLanguageProcessor javaProcessor,
                          boolean postProcess)
    • Method Detail

      • tokenBehavior

        protected net.sourceforge.pmd.lang.ast.impl.javacc.JavaccTokenDocument.TokenDocumentBehavior tokenBehavior()
        Specified by:
        tokenBehavior in class net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeParserAdapter<ASTCompilationUnit>
      • parseImpl

        protected ASTCompilationUnit parseImpl​(net.sourceforge.pmd.lang.ast.impl.javacc.CharStream cs,
                                               net.sourceforge.pmd.lang.ast.Parser.ParserTask task)
                                        throws net.sourceforge.pmd.lang.ast.ParseException
        Specified by:
        parseImpl in class net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeParserAdapter<ASTCompilationUnit>
        Throws:
        net.sourceforge.pmd.lang.ast.ParseException