Package net.sourceforge.pmd.lang.ast
-
Interface Summary Interface Description AstVisitor<P,R> Root interface for AST visitors.CharStream PMD flavour of character streams used by JavaCC parsers.GenericToken<T extends GenericToken<T>> Represents a language-independent token such as constants, values language reserved keywords, or comments.Node Root interface for all AST nodes.NodeStream<T extends Node> A sequence of AST nodes.NodeStream.DescendantNodeStream<T extends Node> A specialization ofNodeStream
that allows configuring tree traversal behaviour when traversing the descendants of a node.Parser Produces an AST from a source file.RootNode This interface identifies the root node of an AST.SemanticErrorReporter Reports errors that occur after parsing.TextAvailableNode Refinement ofNode
for nodes that can provide the underlying source text. -
Class Summary Class Description AbstractTokenManager A base class for the token managers generated by JavaCC.AstInfo<T extends RootNode> The output ofParser.parse(ParserTask)
.AstVisitorBase<P,R> Base implementation ofAstVisitor
, that performs a top-down (preorder) visit and may accumulate a result.Parser.ParserTask Parameters passed to a parsing task.SourceCodePositioner Calculates from an absolute offset in the source file the line/column coordinate. -
Exception Summary Exception Description FileAnalysisException An exception that occurs while processing a file.ParseException SemanticException An error that occurs after validating a file.TokenMgrError An error thrown during lexical analysis of a file.