Package com.google.gwt.codegen.server
Class LoggingCodeGenContext
java.lang.Object
com.google.gwt.codegen.server.LoggingCodeGenContext
- All Implemented Interfaces:
CodeGenContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.gwt.codegen.server.CodeGenContext
CodeGenContext.AbortCodeGenException
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
LoggingCodeGenContext
(String loggerName) protected
LoggingCodeGenContext
(Logger logger) -
Method Summary
Modifier and TypeMethodDescriptionBegin generating a new class.abstract JavaSourceWriterBuilder
Begin generating a new class, possibly using GWT super-source.void
Log a fatal error during code generation.void
Log a fatal error during code generation.void
Log a fatal error during code generation.void
Log a non-fatal warning during code generation.void
Log a non-fatal warning during code generation.void
Log a non-fatal warning during code generation.
-
Constructor Details
-
LoggingCodeGenContext
protected LoggingCodeGenContext() -
LoggingCodeGenContext
-
LoggingCodeGenContext
-
-
Method Details
-
addClass
Description copied from interface:CodeGenContext
Begin generating a new class.- Specified by:
addClass
in interfaceCodeGenContext
- Parameters:
pkgName
-className
-- Returns:
- a
JavaSourceWriterBuilder
for the requested class or null if it could not be created, such as if it already exists
-
addClass
Description copied from interface:CodeGenContext
Begin generating a new class, possibly using GWT super-source.- Specified by:
addClass
in interfaceCodeGenContext
- Parameters:
superPkg
- super-source prefix, or null if a regular classpkgName
-className
-- Returns:
- a
JavaSourceWriterBuilder
for the requested class or null if it could not be created, such as if it already exists
-
error
Description copied from interface:CodeGenContext
Log a fatal error during code generation.- Specified by:
error
in interfaceCodeGenContext
- Parameters:
msg
-
-
error
Description copied from interface:CodeGenContext
Log a fatal error during code generation.- Specified by:
error
in interfaceCodeGenContext
- Parameters:
msg
-cause
-
-
error
Description copied from interface:CodeGenContext
Log a fatal error during code generation.- Specified by:
error
in interfaceCodeGenContext
- Parameters:
cause
-
-
warn
Description copied from interface:CodeGenContext
Log a non-fatal warning during code generation.- Specified by:
warn
in interfaceCodeGenContext
- Parameters:
msg
-
-
warn
Description copied from interface:CodeGenContext
Log a non-fatal warning during code generation.- Specified by:
warn
in interfaceCodeGenContext
- Parameters:
msg
-cause
-
-
warn
Description copied from interface:CodeGenContext
Log a non-fatal warning during code generation.- Specified by:
warn
in interfaceCodeGenContext
- Parameters:
cause
-
-