Package net.sourceforge.pmd.lang
Class PlainTextLanguage.PlainTextFile
java.lang.Object
net.sourceforge.pmd.lang.ast.impl.AbstractNode<PlainTextLanguage.PlainTextFile,PlainTextLanguage.PlainTextFile>
net.sourceforge.pmd.lang.PlainTextLanguage.PlainTextFile
- All Implemented Interfaces:
GenericNode<PlainTextLanguage.PlainTextFile>,Node,RootNode,Reportable
- Enclosing class:
- PlainTextLanguage
public static class PlainTextLanguage.PlainTextFile
extends AbstractNode<PlainTextLanguage.PlainTextFile,PlainTextLanguage.PlainTextFile>
implements RootNode
The only node produced by the parser of
PlainTextLanguage.-
Field Summary
Fields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR -
Method Summary
Modifier and TypeMethodDescriptionReturns theAstInfofor this root node.getImage()Returns a string token, usually filled-in by the parser, which describes some textual characteristic of this node.Returns a region of text delimiting the node in the underlying text document.Gets the name of the node that is used to match it with XPath queries.toString()Methods inherited from class net.sourceforge.pmd.lang.ast.impl.AbstractNode
addChild, children, firstChild, getChild, getIndexInParent, getNumChildren, getParent, getUserMap, insertChild, remove, removeChildAtIndex, setChild, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNode
ancestors, ancestorsOrSelf, asStream, descendants, descendantsOrSelf, getFirstChild, getLastChild, getNextSibling, getPreviousSiblingMethods inherited from interface net.sourceforge.pmd.lang.ast.Node
acceptVisitor, ancestors, children, compareLocation, descendants, firstChild, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getIndexInParent, getLanguageVersion, getNumChildren, getReportLocation, getRoot, getTextDocument, getUserMap, getXPathAttributesIterator, hasImageEqualTo, isFindBoundary
-
Method Details
-
getTextRegion
Description copied from interface:NodeReturns a region of text delimiting the node in the underlying text document. This does not necessarily match thereport location.- Specified by:
getTextRegionin interfaceNode
-
getXPathNodeName
Description copied from interface:NodeGets the name of the node that is used to match it with XPath queries.- Specified by:
getXPathNodeNamein interfaceNode- Returns:
- The XPath node name
-
getImage
Description copied from interface:NodeReturns a string token, usually filled-in by the parser, which describes some textual characteristic of this node. This is usually an identifier, but you should check that using the Designer. On most nodes though, this method returnsnull.Note: This method will be deprecated in the future (#4787). It will be replaced with methods that have more specific names in node classes. In some cases, there are already alternatives available that should be used.
-
toString
- Overrides:
toStringin classAbstractNode<PlainTextLanguage.PlainTextFile,PlainTextLanguage.PlainTextFile>
-
getAstInfo
Description copied from interface:NodeReturns theAstInfofor this root node.- Specified by:
getAstInfoin interfaceNode- Specified by:
getAstInfoin interfaceRootNode
-