Package com.google.gwt.codegen.server
Interface CodeGenContext
- All Known Implementing Classes:
LoggingCodeGenContext
public interface CodeGenContext
Context for code generators.
Experimental API - subject to change.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAn exception which can be thrown by a code generator to abort - callers of code generators should catch this exception. -
Method Summary
Modifier and TypeMethodDescriptionBegin generating a new class.Begin generating a new class, possibly using GWT super-source.voidLog a fatal error during code generation.voidLog a fatal error during code generation.voidLog a fatal error during code generation.voidLog a non-fatal warning during code generation.voidLog a non-fatal warning during code generation.voidLog a non-fatal warning during code generation.
-
Method Details
-
addClass
Begin generating a new class.- Parameters:
pkgName-className-- Returns:
- a
JavaSourceWriterBuilderfor the requested class or null if it could not be created, such as if it already exists
-
addClass
Begin generating a new class, possibly using GWT super-source.- Parameters:
superPath- super-source prefix, or null if a regular classpkgName-className-- Returns:
- a
JavaSourceWriterBuilderfor the requested class or null if it could not be created, such as if it already exists
-
error
Log a fatal error during code generation.- Parameters:
msg-
-
error
Log a fatal error during code generation.- Parameters:
msg-cause-
-
error
Log a fatal error during code generation.- Parameters:
cause-
-
warn
Log a non-fatal warning during code generation.- Parameters:
msg-
-
warn
Log a non-fatal warning during code generation.- Parameters:
msg-cause-
-
warn
Log a non-fatal warning during code generation.- Parameters:
cause-
-