Interface JjtreeNode<N extends JjtreeNode<N>>
- Type Parameters:
N- Self type
- All Superinterfaces:
GenericNode<N>,Node,Reportable,TextAvailableNode
- All Known Implementing Classes:
AbstractJjtreeNode
Base interface for nodes that are produced by a JJTree parser. Our
JJTree implementation gives
TextAvailableNode for free, access
to tokens is also guaranteed.-
Field Summary
Fields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR -
Method Summary
Modifier and TypeMethodDescriptiondefault Iterable<JavaccToken>tokens()Returns a token range, that includes the first and last token.Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNode
ancestors, ancestorsOrSelf, asStream, children, descendants, descendantsOrSelf, getChild, getFirstChild, getLastChild, getNextSibling, getParent, getPreviousSiblingMethods inherited from interface net.sourceforge.pmd.lang.ast.Node
acceptVisitor, ancestors, children, compareLocation, descendants, firstChild, getAstInfo, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getImage, getIndexInParent, getLanguageVersion, getNumChildren, getReportLocation, getRoot, getTextDocument, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasImageEqualTo, isFindBoundaryMethods inherited from interface net.sourceforge.pmd.lang.ast.TextAvailableNode
getOriginalText, getText, getTextRegion
-
Method Details
-
getFirstToken
JavaccToken getFirstToken() -
getLastToken
JavaccToken getLastToken() -
tokens
Returns a token range, that includes the first and last token.
-