Class 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.
  • Method Details

    • getTextRegion

      public TextRegion getTextRegion()
      Description copied from interface: Node
      Returns a region of text delimiting the node in the underlying text document. This does not necessarily match the report location.
      Specified by:
      getTextRegion in interface Node
    • getXPathNodeName

      public String getXPathNodeName()
      Description copied from interface: Node
      Gets the name of the node that is used to match it with XPath queries.
      Specified by:
      getXPathNodeName in interface Node
      Returns:
      The XPath node name
    • getImage

      public String getImage()
      Description copied from interface: Node
      Returns 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 returns null.

      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.

      Specified by:
      getImage in interface Node
    • toString

      public String toString()
      Overrides:
      toString in class AbstractNode<PlainTextLanguage.PlainTextFile,PlainTextLanguage.PlainTextFile>
    • getAstInfo

      public AstInfo<? extends RootNode> getAstInfo()
      Description copied from interface: Node
      Returns the AstInfo for this root node.
      Specified by:
      getAstInfo in interface Node
      Specified by:
      getAstInfo in interface RootNode