001 002package gudusoft.gsqlparser.pp.print; 003 004import gudusoft.gsqlparser.TSourceToken; 005import gudusoft.gsqlparser.TSourceTokenList; 006import gudusoft.gsqlparser.pp.output.OutputConfig; 007 008import java.io.OutputStream; 009 010public interface IPrinter 011{ 012 013 /** 014 * print the source token list 015 * 016 * @param t 017 */ 018 void print( TSourceTokenList t ); 019 020 /** 021 * print the source token 022 * 023 * @param t 024 */ 025 void print( TSourceToken t ); 026 027 /** 028 * get the output stream 029 * 030 * @return 031 */ 032 OutputStream getOut( ); 033 034 /** 035 * set the output stream 036 * 037 * @param out 038 */ 039 void setOut( OutputStream out ); 040 041 void setOutputConfig( OutputConfig outputConfig ); 042}