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

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

Introduction

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

Prototype

public CompilationState getCompilationState() 

Source Link

Usage

From source file:com.jyavu.jytsu.core.rebind.GinBridgeClassLoader.java

License:Apache License

/**
 * Retrieves class definitions from a {@link GeneratorContext} by downcasting.
 *//*from w  ww  . j  av a  2 s . com*/
private Map<String, CompiledClass> extractClassFileMap() {
    if (context instanceof StandardGeneratorContext) {
        StandardGeneratorContext standardContext = (StandardGeneratorContext) context;
        return standardContext.getCompilationState().getClassFileMap();
    } else {
        logger.log(TreeLogger.Type.WARN, String.format("Could not load generated classes from GWT context, "
                + "encountered unexpected generator type %s.", context.getClass()));
        return null;
    }
}