Class GeneratorNodeProcessor.Context

  • Enclosing class:
    GeneratorNodeProcessor

    protected static class GeneratorNodeProcessor.Context
    extends java.lang.Object
    • Constructor Detail

      • Context

        protected Context()
    • Method Detail

      • currentLineContent

        public java.lang.String currentLineContent()
      • contentLength

        public int contentLength()
      • currentLineNumber

        public int currentLineNumber()
      • getContent

        public java.lang.String getContent()
      • increaseIndent

        public void increaseIndent​(IndentNode node)
      • decreaseIndents

        public void decreaseIndents()
      • recalculateIndentLength

        protected int recalculateIndentLength()
      • appendToCurrentLine

        public void appendToCurrentLine​(java.lang.CharSequence chars)
      • isPendingIndent

        public boolean isPendingIndent()
      • addNewLine

        public void addNewLine()
      • setPendingIndent

        public void setPendingIndent​(boolean pending)
      • resetCurrentLine

        public void resetCurrentLine()
        Replace the current line with new StringBuilder
      • insertIntoCurrentLine

        public void insertIntoCurrentLine​(int i,
                                          java.lang.StringBuilder builder)
      • getCurrentIndents

        public java.util.Deque<IndentNode> getCurrentIndents()
        Returns:
        a copy of current indent nodes