|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GeneratorContext
Provides metadata to deferred binding generators.
Method Summary | |
---|---|
void |
commit(TreeLogger logger,
java.io.PrintWriter pw)
Commits source generation begun with tryCreate(TreeLogger, String, String) . |
PropertyOracle |
getPropertyOracle()
Gets the property oracle for the current generator context. |
TypeOracle |
getTypeOracle()
Gets the type oracle for the current generator context. |
java.io.PrintWriter |
tryCreate(TreeLogger logger,
java.lang.String packageName,
java.lang.String simpleName)
Attempts to get a PrintWriter so that the caller can
generate the source code for the named type. |
Method Detail |
---|
void commit(TreeLogger logger, java.io.PrintWriter pw)
tryCreate(TreeLogger, String, String)
.
PropertyOracle getPropertyOracle()
TypeOracle getTypeOracle()
java.io.PrintWriter tryCreate(TreeLogger logger, java.lang.String packageName, java.lang.String simpleName)
PrintWriter
so that the caller can
generate the source code for the named type. If the named types already
exists, null
is returned to indicate that no work needs to
be done.
logger
- a logger; normally the logger passed into
Generator.generate(TreeLogger, GeneratorContext, String)
or a branch thereofpackageName
- the name of the package to which the create type belongssimpleName
- the unqualified source name of the type being generated
PrintWriter
is returned.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |