public abstract class LoggingCodeGenContext extends java.lang.Object implements CodeGenContext
CodeGenContext.AbortCodeGenException
Modifier | Constructor and Description |
---|---|
protected |
LoggingCodeGenContext() |
protected |
LoggingCodeGenContext(java.util.logging.Logger logger) |
protected |
LoggingCodeGenContext(java.lang.String loggerName) |
Modifier and Type | Method and Description |
---|---|
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.
|
protected LoggingCodeGenContext()
protected LoggingCodeGenContext(java.lang.String loggerName)
protected LoggingCodeGenContext(java.util.logging.Logger logger)
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 classJavaSourceWriterBuilder
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