Class JjtreeParserAdapter<R extends RootNode>
java.lang.Object
net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeParserAdapter<R>
- Type Parameters:
R- Type of the root node of this language
- All Implemented Interfaces:
Parser
Base implementation of the
Parser interface for JavaCC language
implementations. This wraps a parser generated by JavaCC, it's not meant
as a base class for the generated parser.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.sourceforge.pmd.lang.ast.Parser
Parser.ParserTask -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Rparse(Parser.ParserTask task) Parses an entire tree for this language.protected abstract RparseImpl(CharStream cs, Parser.ParserTask task) protected abstract JavaccTokenDocument.TokenDocumentBehaviortoString()
-
Constructor Details
-
JjtreeParserAdapter
protected JjtreeParserAdapter()
-
-
Method Details
-
tokenBehavior
-
parse
Description copied from interface:ParserParses an entire tree for this language. This may perform some semantic analysis, like name resolution.- Specified by:
parsein interfaceParser- Parameters:
task- Description of the parsing task- Returns:
- The root of the tree corresponding to the source code.
- Throws:
ParseException
-
parseImpl
- Throws:
ParseException
-
toString
-