Class JavaParser
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeParserAdapter<ASTCompilationUnit>
-
- net.sourceforge.pmd.lang.java.ast.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
-
-
Constructor Summary
Constructors Constructor Description JavaParser(String suppressMarker, net.sourceforge.pmd.lang.java.internal.JavaLanguageProcessor javaProcessor, boolean postProcess)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ASTCompilationUnit
parseImpl(net.sourceforge.pmd.lang.ast.impl.javacc.CharStream cs, net.sourceforge.pmd.lang.ast.Parser.ParserTask task)
protected net.sourceforge.pmd.lang.ast.impl.javacc.JavaccTokenDocument.TokenDocumentBehavior
tokenBehavior()
-
-
-
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 classnet.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 classnet.sourceforge.pmd.lang.ast.impl.javacc.JjtreeParserAdapter<ASTCompilationUnit>
- Throws:
net.sourceforge.pmd.lang.ast.ParseException
-
-