public abstract class LoggingCodeGenContext extends Object implements CodeGenContext
CodeGenContext.AbortCodeGenException
Modifier | Constructor and Description |
---|---|
protected |
LoggingCodeGenContext() |
protected |
LoggingCodeGenContext(Logger logger) |
protected |
LoggingCodeGenContext(String loggerName) |
Modifier and Type | Method and Description |
---|---|
JavaSourceWriterBuilder |
addClass(String pkgName,
String className)
Begin generating a new class.
|
abstract JavaSourceWriterBuilder |
addClass(String superPkg,
String pkgName,
String className)
Begin generating a new class, possibly using GWT super-source.
|
void |
error(String msg)
Log a fatal error during code generation.
|
void |
error(String msg,
Throwable cause)
Log a fatal error during code generation.
|
void |
error(Throwable cause)
Log a fatal error during code generation.
|
void |
warn(String msg)
Log a non-fatal warning during code generation.
|
void |
warn(String msg,
Throwable cause)
Log a non-fatal warning during code generation.
|
void |
warn(Throwable cause)
Log a non-fatal warning during code generation.
|
protected LoggingCodeGenContext()
protected LoggingCodeGenContext(String loggerName)
protected LoggingCodeGenContext(Logger logger)
public JavaSourceWriterBuilder addClass(String pkgName, 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(String superPkg, String pkgName, 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(String msg)
CodeGenContext
error
in interface CodeGenContext
public void error(String msg, Throwable cause)
CodeGenContext
error
in interface CodeGenContext
public void error(Throwable cause)
CodeGenContext
error
in interface CodeGenContext
public void warn(String msg)
CodeGenContext
warn
in interface CodeGenContext
public void warn(String msg, Throwable cause)
CodeGenContext
warn
in interface CodeGenContext
public void warn(Throwable cause)
CodeGenContext
warn
in interface CodeGenContext
Copyright © 2018. All rights reserved.