All Implemented Interfaces:

public class AST extends org.antlr.runtime.tree.CommonTree
  • Field Details

    • uri

      protected URI uri
    • line

      protected Integer line
    • column

      protected Integer column
    • region

      protected Region region
    • annotations

      protected AST annotations
    • imaginary

      protected boolean imaginary
    • extraTokens

      protected List<org.antlr.runtime.Token> extraTokens
    • commentTokens

      protected List<org.antlr.runtime.Token> commentTokens
    • descendants

      protected List<AST> descendants
    • module

      protected IModule module
    • properties

      protected HashMap<String,Object> properties
  • Constructor Details

    • AST

      public AST()
    • AST

      public AST(org.antlr.runtime.tree.CommonTree commontree)
    • AST

      public AST(org.antlr.runtime.Token token, AST real)
    • AST

      public AST(org.antlr.runtime.Token token)
    • AST

      public AST(org.antlr.runtime.Token token, URI uri)
    • AST

      public AST(org.antlr.runtime.Token token, URI uri, IModule module)
  • Method Details

    • build

      public void build()
    • getModule

      public IModule getModule()
    • setModule

      public void setModule(IModule module)
    • setUri

      public void setUri(URI uri)
    • setAnnotationsAst

      public AST setAnnotationsAst(AST annotations)
    • getAnnotationsAst

      public AST getAnnotationsAst()
    • getProperties

      public HashMap<String,Object> getProperties()
    • getBasename

      public String getBasename()
      Returns the basename of the URI of this AST, which is the last segment of its URI. getFile() returns null for non- file:/// URIs, which is correct in its own regard, but may produce NPEs in our case.
    • getFile

      public File getFile()
    • getUri

      public URI getUri()
    • getChildren

      public List<AST> getChildren()
      getChildren in class org.antlr.runtime.tree.BaseTree
    • getParent

      public AST getParent()
      Specified by:
      getParent in interface org.antlr.runtime.tree.Tree
      getParent in class org.antlr.runtime.tree.CommonTree
    • setLine

      public AST setLine(int line)
    • getLine

      public int getLine()
      Specified by:
      getLine in interface org.antlr.runtime.tree.Tree
      getLine in class org.antlr.runtime.tree.CommonTree
    • setColumn

      public AST setColumn(int column)
    • getColumn

      public int getColumn()
    • getNextSibling

      public AST getNextSibling()
    • setNextSibling

      public AST setNextSibling(AST sibling)
    • hasChildren

      public boolean hasChildren()
    • getChild

      public AST getChild(int i)
      Specified by:
      getChild in interface org.antlr.runtime.tree.Tree
      getChild in class org.antlr.runtime.tree.BaseTree
    • getNumberOfChildren

      public int getNumberOfChildren()
    • getFirstChild

      public AST getFirstChild()
    • setFirstChild

      public AST setFirstChild(AST child)
    • getSecondChild

      public AST getSecondChild()
    • getThirdChild

      public AST getThirdChild()
    • getFourthChild

      public AST getFourthChild()
    • getLastChild

      public AST getLastChild()
    • getRegion

      public Region getRegion()
    • setToken

      public void setToken(org.antlr.runtime.Token token)
    • getDescendants

      public List<AST> getDescendants()
    • collectDescendants

      protected void collectDescendants(AST ast, List<AST> descendants, boolean addAst)
    • setRegion

      public void setRegion(Region region)
    • setImaginary

      public void setImaginary(boolean imaginary)
    • isImaginary

      public boolean isImaginary()
    • getExtraTokens

      public List<org.antlr.runtime.Token> getExtraTokens()
    • setExtraTokens

      public void setExtraTokens(List<org.antlr.runtime.Token> extraTokens)
    • getCommentTokens

      public List<org.antlr.runtime.Token> getCommentTokens()
    • setCommentTokens

      public void setCommentTokens(List<org.antlr.runtime.Token> comments)
    • toExtendedStringTreeItem

      public String toExtendedStringTreeItem()
    • toExtendedStringTree

      public String toExtendedStringTree()
    • toExtendedStringTree

      protected String toExtendedStringTree(int indent)