org.cruxframework.crux.core.rebind
Class AbstractProxyCreator.SourcePrinter

java.lang.Object
  extended by org.cruxframework.crux.core.rebind.AbstractProxyCreator.SourcePrinter
Enclosing class:
AbstractProxyCreator

public static class AbstractProxyCreator.SourcePrinter
extends Object

Printer for screen creation codes.

Author:
Thiago da Rosa de Bustamante

Constructor Summary
AbstractProxyCreator.SourcePrinter(com.google.gwt.user.rebind.SourceWriter srcWriter, com.google.gwt.core.ext.TreeLogger logger)
          Constructor
 
Method Summary
 void commit()
          Flushes the printed code into a real output (file).
 void indent()
          Indents the next line to be printed
 void outdent()
          Outdents the next line to be printed
 void print(String s)
          Prints an in-line code.
 void println()
           
 void println(String s)
          Prints a line of code into the output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractProxyCreator.SourcePrinter

public AbstractProxyCreator.SourcePrinter(com.google.gwt.user.rebind.SourceWriter srcWriter,
                                          com.google.gwt.core.ext.TreeLogger logger)
Constructor

Parameters:
srcWriter -
logger -
Method Detail

commit

public void commit()
Flushes the printed code into a real output (file).


indent

public void indent()
Indents the next line to be printed


outdent

public void outdent()
Outdents the next line to be printed


print

public void print(String s)
Prints an in-line code.

Parameters:
s -

println

public void println(String s)
Prints a line of code into the output.
  • If the line ends with "{", indents the next line.
  • If the line ends with "}", "};" or "});", outdents the next line.
  • Parameters:
    s -

    println

    public void println()


    Copyright © 2014. All rights reserved.