Package net.sourceforge.pmd.lang.ast
Interface TextAvailableNode
-
- All Superinterfaces:
Node
- All Known Subinterfaces:
JjtreeNode<N>
- All Known Implementing Classes:
AbstractJjtreeNode
public interface TextAvailableNode extends Node
Refinement ofNode
for nodes that can provide the underlying source text.- Since:
- 7.0.0
-
-
Field Summary
-
Fields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CharSequence
getText()
Returns the original source code underlying this node.-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
acceptVisitor, ancestors, ancestors, ancestorsOrSelf, asStream, children, children, compareLocation, descendants, descendants, descendantsOrSelf, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, firstChild, getAstInfo, getBeginColumn, getBeginLine, getChild, getEndColumn, getEndLine, getFirstChild, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getIndexInParent, getLastChild, getNextSibling, getNthParent, getNumChildren, getParent, getParentsOfType, getPreviousSibling, getRoot, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasDescendantOfType, hasImageEqualTo, isFindBoundary
-
-
-
-
Method Detail
-
getText
CharSequence getText()
Returns the original source code underlying this node. In particular, for aRootNode
, returns the whole text of the file.
-
-