Class Generator.GenBuffer

  • Enclosing class:
    Generator

    private static class Generator.GenBuffer
    extends java.lang.Object
    A class for generating codes to a buffer. Included here are some support for tracking source to Java lines mapping.
    • Constructor Detail

      • GenBuffer

        GenBuffer()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • adjustJavaLines

        public void adjustJavaLines​(int offset)
        Adjust the Java Lines. This is necessary because the Java lines stored with the nodes are relative the beginning of this buffer and need to be adjusted when this buffer is inserted into the source.
      • adjustJavaLine

        private static void adjustJavaLine​(Node n,
                                           int offset)