Package ghidra.sleigh.grammar

# Class LineArrayListWriter

java.lang.Object
java.io.Writer
ghidra.sleigh.grammar.LineArrayListWriter

All Implemented Interfaces:
  `Closeable`, `Flushable`, `Appendable`, `AutoCloseable`

public class LineArrayListWriter extends Writer

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected static final String`
  `LINE_SEPARATOR`
  `protected int`
  `lineno`
  `protected ArrayList<StringBuilder>`
  `lines`

  ### Fields inherited from class java.io.Writer

  `lock`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `LineArrayListWriter()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `void`
  `flush()`
  `ArrayList<String>`
  `getLines()`
  `void`
  `newLine()`
  `String`
  `toString()`
  `void`
  `write(char[] cbuf, int off, int len)`

  ### Methods inherited from class java.io.Writer

  `append, append, append, nullWriter, write, write, write, write`

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

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

- ## Field Details

  - ### lines

    protected ArrayList<StringBuilder> lines

  - ### lineno

    protected int lineno

  - ### LINE_SEPARATOR

    protected static final String LINE_SEPARATOR

- ## Constructor Details

  - ### LineArrayListWriter

    public LineArrayListWriter()

- ## Method Details

  - ### newLine

    public void newLine()

  - ### close

    public void close() throws IOException
    Specified by:
      `close` in interface `AutoCloseable`
    Specified by:
      `close` in interface `Closeable`
    Specified by:
      `close` in class `Writer`
    Throws:
      `IOException`

  - ### flush

    public void flush() throws IOException
    Specified by:
      `flush` in interface `Flushable`
    Specified by:
      `flush` in class `Writer`
    Throws:
      `IOException`

  - ### write

    public void write(char[] cbuf, int off, int len) throws IOException
    Specified by:
      `write` in class `Writer`
    Throws:
      `IOException`

  - ### getLines

    public ArrayList<String> getLines()

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`