Package net.sourceforge.pmd.lang.ast
Interface RootNode
- All Superinterfaces:
Node
,Reportable
- All Known Implementing Classes:
PlainTextLanguage.PlainTextFile
This interface identifies the root node of an AST. Each language
implementation must ensure that every AST its parser produces has
a RootNode as its root, and that there is no other RootNode instance
in the tree.
-
Field Summary
Fields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR
-
Method Summary
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
acceptVisitor, ancestors, ancestors, ancestorsOrSelf, asStream, children, children, compareLocation, descendants, descendants, descendantsOrSelf, firstChild, getBeginColumn, getBeginLine, getChild, getEndColumn, getEndLine, getFirstChild, getImage, getIndexInParent, getLanguageVersion, getLastChild, getNextSibling, getNumChildren, getParent, getPreviousSibling, getReportLocation, getRoot, getTextDocument, getTextRegion, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasImageEqualTo, isFindBoundary
-
Method Details
-
getAstInfo
Description copied from interface:Node
Returns theAstInfo
for this root node.- Specified by:
getAstInfo
in interfaceNode
-