Search in sources :

Example 1 with OverlayTypesRewriter

use of com.googlecode.gwt.test.internal.rewrite.OverlayTypesRewriter in project gwt-test-utils by gwt-test-utils.

the class GwtFactory method createOverlayRewriter.

private OverlayTypesRewriter createOverlayRewriter(CompilationState compilationState) {
    TypeOracle typeOracle = compilationState.getTypeOracle();
    JClassType jsoType = typeOracle.findType(JsValueGlue.JSO_CLASS);
    // If we couldn't find the JSO class, we don't need to do any rewrites.
    return jsoType != null ? new OverlayTypesRewriter(compilationState, jsoType) : null;
}
Also used : JClassType(com.google.gwt.core.ext.typeinfo.JClassType) TypeOracle(com.google.gwt.core.ext.typeinfo.TypeOracle) OverlayTypesRewriter(com.googlecode.gwt.test.internal.rewrite.OverlayTypesRewriter)

Aggregations

JClassType (com.google.gwt.core.ext.typeinfo.JClassType)1 TypeOracle (com.google.gwt.core.ext.typeinfo.TypeOracle)1 OverlayTypesRewriter (com.googlecode.gwt.test.internal.rewrite.OverlayTypesRewriter)1