Package com.google.gwt.dev

Examples of com.google.gwt.dev.CompilerContext


  protected void setUp() throws Exception {
    comparator = new MostToLeastDerivedPlaceTypeComparator();

    TreeLogger logger = createCompileLogger();
    CompilationState state =
        CompilationStateBuilder.buildFrom(logger, new CompilerContext(), getJavaResources());
    typeOracle = state.getTypeOracle();

    place = typeOracle.getType("com.google.gwt.app.place.shared.Place");
    assertNotNull(place);
    place1 = typeOracle.getType("com.google.gwt.app.place.shared.testplaces.Place1");
View Full Code Here


  @Override
  protected void setUp() throws Exception {
    super.setUp();
    CompilationState state = CompilationStateBuilder.buildFrom(
        createCompileLogger(), new CompilerContext(), getJavaResources());
    types = state.getTypeOracle();
    uiBinderCtx = new UiBinderContext();
    labelType = types.findType("com.google.gwt.user.client.ui.Label");
    buttonType = types.findType("com.google.gwt.user.client.ui.Button");
    clickEventType = types.findType("com.google.gwt.event.dom.client.ClickEvent");
View Full Code Here

      try {
         // create every gwt stuff, searching for resources in the setup
         // 'src-directories' entries in
         // META-INF/gwt-test-utils.properties files
         CompilerContext tempContext = compilerContextBuilder.build();
         moduleDef = createModuleDef(configurationLoader, tempContext);
         compilerContext = compilerContextBuilder.module(moduleDef).build();
         compilationState = createCompilationState(moduleDef, compilerContext);
         overlayRewriter = createOverlayRewriter(compilationState);
         gwtClassLoader = GwtClassLoader.createClassLoader(configurationLoader, compilationState,
View Full Code Here

         // It has to wait until now because we need to inject javascript.
         //
         Rules rules = module.getRules();
         PrecompileTaskOptionsImpl options = new PrecompileTaskOptionsImpl();
         options.setGenDir(genDir);
         CompilerContext compilerContext = new CompilerContext.Builder().module(module).options(
                  options).build();
         StandardGeneratorContext genCtx = new StandardGeneratorContext(compilerContext,
                  compilationState, new ArtifactSet(), false);

         // Only enable generator result caching if we have a valid rebindCache
View Full Code Here

  public static JProgram construct(TreeLogger logger, final CompilationState state,
      PrecompileTaskOptions options, Properties properties) throws UnableToCompleteException {

    InternalCompilerException.preload();

    CompilerContext compilerContext = new CompilerContext.Builder().options(options).build();

    RebindPermutationOracle rpo = new RebindPermutationOracle() {
      @Override
      public void clear() {
      }
View Full Code Here

TOP

Related Classes of com.google.gwt.dev.CompilerContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.