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 ofPlainTextLanguage.
-
-
Field Summary
-
Fields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AstInfo<? extends RootNode>getAstInfo()Returns theAstInfofor this root node.StringgetImage()Returns a string token, usually filled-in by the parser, which describes some textual characteristic of this node.TextRegiongetTextRegion()Returns a region of text delimiting the node in the underlying text document.StringgetXPathNodeName()Gets the name of the node that is used to match it with XPath queries.StringtoString()-
Methods inherited from class net.sourceforge.pmd.lang.ast.impl.AbstractNode
addChild, children, firstChild, getChild, getIndexInParent, getNumChildren, getParent, getUserMap, insertChild, remove, removeChildAtIndex, setChild, setParent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNode
ancestors, ancestorsOrSelf, asStream, descendants, descendantsOrSelf, getFirstChild, getLastChild, getNextSibling, getNthParent, getPreviousSibling
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
acceptVisitor, ancestors, children, compareLocation, descendants, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, firstChild, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getIndexInParent, getLanguageVersion, getNumChildren, getParentsOfType, getReportLocation, getRoot, getTextDocument, getUserMap, getXPathAttributesIterator, hasDescendantOfType, hasImageEqualTo, isFindBoundary
-
-
-
-
Method Detail
-
getTextRegion
public TextRegion 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
public String 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
public String 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.
-
toString
public String toString()
- Overrides:
toStringin classAbstractNode<PlainTextLanguage.PlainTextFile,PlainTextLanguage.PlainTextFile>
-
getAstInfo
public AstInfo<? extends RootNode> getAstInfo()
Description copied from interface:NodeReturns theAstInfofor this root node.- Specified by:
getAstInfoin interfaceNode- Specified by:
getAstInfoin interfaceRootNode
-
-