Interface JjtreeNode<N extends JjtreeNode<N>>
-
- Type Parameters:
N
- Self type
- All Superinterfaces:
GenericNode<N>
,Node
,Reportable
,TextAvailableNode
- All Known Implementing Classes:
AbstractJjtreeNode
public interface JjtreeNode<N extends JjtreeNode<N>> extends GenericNode<N>, TextAvailableNode
Base interface for nodes that are produced by a JJTree parser. Our JJTree implementation givesTextAvailableNode
for free, access to tokens is also guaranteed.
-
-
Field Summary
-
Fields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description JavaccToken
getFirstToken()
JavaccToken
getLastToken()
default 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, getPreviousSibling
-
Methods 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, isFindBoundary
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.TextAvailableNode
getOriginalText, getText, getTextRegion
-
-
-
-
Method Detail
-
getFirstToken
JavaccToken getFirstToken()
-
getLastToken
JavaccToken getLastToken()
-
tokens
default Iterable<JavaccToken> tokens()
Returns a token range, that includes the first and last token.
-
-