org.eigenbase.sql.pretty
Class SqlPrettyWriter.FrameImpl

java.lang.Object
  extended by org.eigenbase.sql.pretty.SqlPrettyWriter.FrameImpl
All Implemented Interfaces:
SqlWriter.Frame
Enclosing class:
SqlPrettyWriter

protected class SqlPrettyWriter.FrameImpl
extends Object
implements SqlWriter.Frame

Implementation of SqlWriter.Frame.


Field Summary
(package private)  String close
           
(package private)  int extraIndent
          Indent of sub-frame with respect to this one.
(package private)  SqlWriter.FrameType frameType
           
(package private)  int itemCount
          Number of items which have been printed in this list so far.
(package private)  String keyword
           
private  boolean newlineAfterClose
           
private  boolean newlineAfterOpen
           
 boolean newlineAfterSep
          Whether to print a newline after each separator.
private  boolean newlineBeforeClose
           
 boolean newlineBeforeSep
          Whether to print a newline before each separator.
(package private)  String open
           
(package private)  int sepIndent
          Indent of separators with respect to this frame's indent.
 
Constructor Summary
SqlPrettyWriter.FrameImpl(SqlWriter.FrameType frameType, String keyword, String open, String close, int extraIndent, boolean newlineAfterOpen, boolean newlineBeforeSep, int sepIndent, boolean newlineAfterSep, boolean newlineBeforeClose, boolean newlineAfterClose)
           
 
Method Summary
protected  void after()
           
protected  void before()
           
protected  void sep(boolean printFirst, String sep)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frameType

final SqlWriter.FrameType frameType

keyword

final String keyword

open

final String open

close

final String close

extraIndent

final int extraIndent
Indent of sub-frame with respect to this one.


sepIndent

final int sepIndent
Indent of separators with respect to this frame's indent. Typically zero.


itemCount

int itemCount
Number of items which have been printed in this list so far.


newlineBeforeSep

public boolean newlineBeforeSep
Whether to print a newline before each separator.


newlineAfterSep

public boolean newlineAfterSep
Whether to print a newline after each separator.


newlineBeforeClose

private final boolean newlineBeforeClose

newlineAfterClose

private final boolean newlineAfterClose

newlineAfterOpen

private boolean newlineAfterOpen
Constructor Detail

SqlPrettyWriter.FrameImpl

SqlPrettyWriter.FrameImpl(SqlWriter.FrameType frameType,
                          String keyword,
                          String open,
                          String close,
                          int extraIndent,
                          boolean newlineAfterOpen,
                          boolean newlineBeforeSep,
                          int sepIndent,
                          boolean newlineAfterSep,
                          boolean newlineBeforeClose,
                          boolean newlineAfterClose)
Method Detail

before

protected void before()

after

protected void after()

sep

protected void sep(boolean printFirst,
                   String sep)