|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CodeGenContext
Context for code generators.
Experimental API - subject to change.
Nested Class Summary | |
---|---|
static class |
CodeGenContext.AbortCodeGenException
An exception which can be thrown by a code generator to abort - callers of code generators should catch this exception. |
Method Summary | |
---|---|
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. |
Method Detail |
---|
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
-
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |