| | |
| | import com.whitemagicsoftware.rxm.grammar.QueryBaseListener; |
| | -import com.whitemagicsoftware.rxm.grammar.QueryParser; |
| | - |
| | -import org.antlr.v4.runtime.tree.TerminalNode; |
| | |
| | /** |
 |
| | protected String getIndent( int spaces ) { |
| | return CharBuffer.allocate( spaces ).toString().replace( '\0', ' ' ); |
| | - } |
| | - |
| | - /** |
| | - * Returns the default amount of spaces. |
| | - * |
| | - * @return " " (by default) |
| | - */ |
| | - protected String getDefaultIndent() { |
| | - return getIndent( getIndentBy() ); |
| | } |
| | |
 |
| | protected String getNewline() { |
| | return beautify() ? System.lineSeparator() : " "; |
| | + } |
| | + |
| | + /** |
| | + * Returns the default amount of spaces. |
| | + * |
| | + * @return " " (by default) |
| | + */ |
| | + protected String getDefaultIndent() { |
| | + return getIndent( getIndentBy() ); |
| | } |
| | |