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(String pkgName,
String className)
Begin generating a new class.
|
JavaSourceWriterBuilder |
addClass(String superPath,
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.
|
JavaSourceWriterBuilder addClass(String pkgName, String className)
pkgName
- className
- JavaSourceWriterBuilder
for the requested class or null if it
could not be created, such as if it already existsJavaSourceWriterBuilder addClass(String superPath, String pkgName, 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(String msg)
msg
- void error(String msg, Throwable cause)
msg
- cause
- void error(Throwable cause)
cause
- void warn(String msg)
msg
- void warn(String msg, Throwable cause)
msg
- cause
- void warn(Throwable cause)
cause
- Copyright © 2018. All rights reserved.