public class GwtCodeGenContext extends Object implements CodeGenContext
CodeGenContext.AbortCodeGenException
Constructor and Description |
---|
GwtCodeGenContext(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.GeneratorContext ctx) |
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.
|
public GwtCodeGenContext(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.GeneratorContext ctx)
logger
- ctx
- public JavaSourceWriterBuilder addClass(String pkgName, String className)
CodeGenContext
addClass
in interface CodeGenContext
JavaSourceWriterBuilder
for the requested class or null if it
could not be created, such as if it already existspublic JavaSourceWriterBuilder addClass(String superPath, String pkgName, String className)
CodeGenContext
addClass
in interface CodeGenContext
superPath
- super-source prefix, or null if a regular classJavaSourceWriterBuilder
for the requested class or null if it
could not be created, such as if it already existspublic void error(String msg)
CodeGenContext
error
in interface CodeGenContext
public void error(String msg, Throwable cause)
CodeGenContext
error
in interface CodeGenContext
public void error(Throwable cause)
CodeGenContext
error
in interface CodeGenContext
public void warn(String msg)
CodeGenContext
warn
in interface CodeGenContext
public void warn(String msg, Throwable cause)
CodeGenContext
warn
in interface CodeGenContext
public void warn(Throwable cause)
CodeGenContext
warn
in interface CodeGenContext
Copyright © 2016. All rights reserved.