Example usage for com.google.gwt.dev.javac StandardGeneratorContext StandardGeneratorContext

List of usage examples for com.google.gwt.dev.javac StandardGeneratorContext StandardGeneratorContext

Introduction

In this page you can find the example usage for com.google.gwt.dev.javac StandardGeneratorContext StandardGeneratorContext.

Prototype

public StandardGeneratorContext(CompilationState compilationState, ModuleDef module, File genDir,
        ArtifactSet allGeneratedArtifacts, boolean isProdMode) 

Source Link

Document

Normally, the compiler host would be aware of the same types that are available in the supplied type oracle although it isn't strictly required.

Usage

From source file:com.google.gwt.dev.javac.testing.GeneratorContextBuilder.java

License:Apache License

/**
 * Returns a newly created {@link GeneratorContext} based on the sources
 * added to this builder./*from   w ww  .j  a va2s. c o m*/
 */
public GeneratorContext buildGeneratorContext() {
    // TODO: Add ability to add property values later and add them to this
    // context.
    return new StandardGeneratorContext(buildCompilationState(), null, null, null, false);
}

From source file:org.hibernate.jsr303.tck.util.TckGeneratorTestUtils.java

License:Apache License

private static StandardGeneratorContext createGeneratorContext(String fullyQaulifiedModuleName,
        TreeLogger logger) throws UnableToCompleteException {
    ModuleDef module = ModuleDefLoader.loadFromClassPath(logger, fullyQaulifiedModuleName);
    File genDir = new File(System.getProperty("java.io.tmpdir"));

    ArtifactSet allGenreatedArtifacts = new ArtifactSet();
    boolean isProd = false;
    StandardGeneratorContext context = new StandardGeneratorContext(module.getCompilationState(logger), module,
            genDir, allGenreatedArtifacts, isProd);
    return context;
}