|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.codegen.server.LoggingCodeGenContext
public abstract class LoggingCodeGenContext
Base implementation of CodeGenContext
which logs via
Logger
.
Experimental API - subject to change.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.google.gwt.codegen.server.CodeGenContext |
---|
CodeGenContext.AbortCodeGenException |
Constructor Summary | |
---|---|
protected |
LoggingCodeGenContext()
|
protected |
LoggingCodeGenContext(java.util.logging.Logger logger)
|
protected |
LoggingCodeGenContext(java.lang.String loggerName)
|
Method Summary | |
---|---|
JavaSourceWriterBuilder |
addClass(java.lang.String pkgName,
java.lang.String className)
Begin generating a new class. |
abstract JavaSourceWriterBuilder |
addClass(java.lang.String superPkg,
java.lang.String pkgName,
java.lang.String className)
Begin generating a new class, possibly using GWT super-source. |
void |
error(java.lang.String msg)
Log a fatal error during code generation. |
void |
error(java.lang.String msg,
java.lang.Throwable cause)
Log a fatal error during code generation. |
void |
error(java.lang.Throwable cause)
Log a fatal error during code generation. |
void |
warn(java.lang.String msg)
Log a non-fatal warning during code generation. |
void |
warn(java.lang.String msg,
java.lang.Throwable cause)
Log a non-fatal warning during code generation. |
void |
warn(java.lang.Throwable cause)
Log a non-fatal warning during code generation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LoggingCodeGenContext()
protected LoggingCodeGenContext(java.lang.String loggerName)
protected LoggingCodeGenContext(java.util.logging.Logger logger)
Method Detail |
---|
public JavaSourceWriterBuilder addClass(java.lang.String pkgName, java.lang.String className)
CodeGenContext
addClass
in interface CodeGenContext
JavaSourceWriterBuilder
for the requested class or null if it
could not be created, such as if it already existspublic abstract JavaSourceWriterBuilder addClass(java.lang.String superPkg, java.lang.String pkgName, java.lang.String className)
CodeGenContext
addClass
in interface CodeGenContext
superPkg
- super-source prefix, or null if a regular class
JavaSourceWriterBuilder
for the requested class or null if it
could not be created, such as if it already existspublic void error(java.lang.String msg)
CodeGenContext
error
in interface CodeGenContext
public void error(java.lang.String msg, java.lang.Throwable cause)
CodeGenContext
error
in interface CodeGenContext
public void error(java.lang.Throwable cause)
CodeGenContext
error
in interface CodeGenContext
public void warn(java.lang.String msg)
CodeGenContext
warn
in interface CodeGenContext
public void warn(java.lang.String msg, java.lang.Throwable cause)
CodeGenContext
warn
in interface CodeGenContext
public void warn(java.lang.Throwable cause)
CodeGenContext
warn
in interface CodeGenContext
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |