Package ghidra.sleigh.grammar

# Class ANTLRUtil

java.lang.Object
ghidra.sleigh.grammar.ANTLRUtil

public class ANTLRUtil extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ANTLRUtil()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `debugNodeStream(org.antlr.runtime.tree.BufferedTreeNodeStream nodes, PrintStream out)`
  `static void`
  `debugTokenStream(org.antlr.runtime.CommonTokenStream tokens, PrintStream out)`
  `static void`
  `debugTree(org.antlr.runtime.tree.Tree tree, PrintStream out)`
  `static String`
  `generateArrow(int charPositionInLine)`
  `static String`
  `getLine(LineArrayListWriter writer, int lineno)`
  `static String`
  `getLine(Reader reader, int lineno)`
  `static int`
  `tabCompensate(String line, int charPositionInLine)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ANTLRUtil

    public ANTLRUtil()

- ## Method Details

  - ### debugNodeStream

    public static void debugNodeStream(org.antlr.runtime.tree.BufferedTreeNodeStream nodes, PrintStream out)

  - ### debugTokenStream

    public static void debugTokenStream(org.antlr.runtime.CommonTokenStream tokens, PrintStream out)

  - ### debugTree

    public static void debugTree(org.antlr.runtime.tree.Tree tree, PrintStream out)

  - ### getLine

    public static String getLine(Reader reader, int lineno) throws IOException
    Throws:
      `IOException`

  - ### getLine

    public static String getLine(LineArrayListWriter writer, int lineno) throws IOException
    Throws:
      `IOException`

  - ### generateArrow

    public static String generateArrow(int charPositionInLine)

  - ### tabCompensate

    public static int tabCompensate(String line, int charPositionInLine)