public interface CodeGenContext
Experimental API - subject to change.
Modifier and Type | Interface and Description |
---|---|
static class |
CodeGenContext.AbortCodeGenException
An exception which can be thrown by a code generator to abort - callers of
code generators should catch this exception.
|
Modifier and Type | Method and Description |
---|---|
JavaSourceWriterBuilder |
addClass(java.lang.String pkgName,
java.lang.String className)
Begin generating a new class.
|
JavaSourceWriterBuilder |
addClass(java.lang.String superPath,
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.
|
JavaSourceWriterBuilder addClass(java.lang.String pkgName, java.lang.String className)
pkgName
- className
- JavaSourceWriterBuilder
for the requested class or null if it
could not be created, such as if it already existsJavaSourceWriterBuilder addClass(java.lang.String superPath, java.lang.String pkgName, java.lang.String className)
superPath
- super-source prefix, or null if a regular classpkgName
- className
- JavaSourceWriterBuilder
for the requested class or null if it
could not be created, such as if it already existsvoid error(java.lang.String msg)
msg
- void error(java.lang.String msg, java.lang.Throwable cause)
msg
- cause
- void error(java.lang.Throwable cause)
cause
- void warn(java.lang.String msg)
msg
- void warn(java.lang.String msg, java.lang.Throwable cause)
msg
- cause
- void warn(java.lang.Throwable cause)
cause
-