Examples of Rules


Examples of civquest.core.rules.Rules

    performCommonSetup(registry);
   
    Registry rulesRegistry = registry.getSubRegistry("rules");
    Ruleset timeRuleset = rulesRegistry.getRuleset("time");
    timeRules = new TimeRules(timeRuleset);
    rules = new Rules(this);

    this.turnManager = new TurnManager();
    this.resourceData = new ResourceData(this);
    }
View Full Code Here

Examples of com.google.gwt.dev.cfg.Rules

        module.getProperties(), readySpace);

    // Set up the rebind oracle for the module.
    // It has to wait until now because we need to inject javascript.
    //
    Rules rules = module.getRules();
    StandardGeneratorContext genCtx = new StandardGeneratorContext(
        compilationState, module, genDir, shellDir, new ArtifactSet());
    rebindOracle = new StandardRebindOracle(propOracle, rules, genCtx);

    // Create a completely isolated class loader which owns all classes
View Full Code Here

Examples of com.google.gwt.dev.cfg.Rules

      generatorContext = new StandardGeneratorContext(compilationState, module,
          genDir, generatorResourcesDir, generatorArtifacts);
      BindingProperty[] orderedProps = perms.getOrderedProperties();
      SortedSet<ConfigurationProperty> configPropSet = module.getProperties().getConfigurationProperties();
      ConfigurationProperty[] configProps = configPropSet.toArray(new ConfigurationProperty[configPropSet.size()]);
      Rules rules = module.getRules();
      for (int i = 0; i < rebindOracles.length; ++i) {
        String[] orderedPropValues = perms.getOrderedPropertyValues(i);
        propertyOracles[i] = new StaticPropertyOracle(orderedProps,
            orderedPropValues, configProps);
        rebindOracles[i] = new StandardRebindOracle(propertyOracles[i], rules,
View Full Code Here

Examples of com.google.gwt.dev.cfg.Rules

        module.getProperties(), readySpace);

    // Set up the rebind oracle for the module.
    // It has to wait until now because we need to inject javascript.
    //
    Rules rules = module.getRules();
    StandardGeneratorContext genCtx = new StandardGeneratorContext(
        module.getCompilationState(logger), module, genDir, shellDir,
        new ArtifactSet());
    rebindOracle = new StandardRebindOracle(propOracle, rules, genCtx);
View Full Code Here

Examples of com.google.gwt.dev.cfg.Rules

      generatorContext = new StandardGeneratorContext(compilationState, module,
          genDir, generatorResourcesDir, generatorArtifacts);
      BindingProperty[] orderedProps = perms.getOrderedProperties();
      SortedSet<ConfigurationProperty> configPropSet = module.getProperties().getConfigurationProperties();
      ConfigurationProperty[] configProps = configPropSet.toArray(new ConfigurationProperty[configPropSet.size()]);
      Rules rules = module.getRules();
      for (int i = 0; i < rebindOracles.length; ++i) {
        String[] orderedPropValues = perms.getOrderedPropertyValues(i);
        propertyOracles[i] = new StaticPropertyOracle(orderedProps,
            orderedPropValues, configProps);
        rebindOracles[i] = new StandardRebindOracle(propertyOracles[i], rules,
View Full Code Here

Examples of com.google.gwt.dev.cfg.Rules

        module.getProperties(), readySpace);

    // Set up the rebind oracle for the module.
    // It has to wait until now because we need to inject javascript.
    //
    Rules rules = module.getRules();
    rebindOracle = new StandardRebindOracle(module.getCompilationState(),
        propOracle, module, rules, genDir, shellDir, new ArtifactSet());

    // Create a completely isolated class loader which owns all classes
    // associated with a particular module. This effectively builds a
View Full Code Here

Examples of com.google.gwt.dev.cfg.Rules

        module.getProperties(), readySpace);

    // Set up the rebind oracle for the module.
    // It has to wait until now because we need to inject javascript.
    //
    Rules rules = module.getRules();
    StandardGeneratorContext genCtx = new StandardGeneratorContext(
        compilationState, module, genDir, shellDir, new ArtifactSet());
    rebindOracle = new StandardRebindOracle(propOracle, rules, genCtx);

    // Create a completely isolated class loader which owns all classes
View Full Code Here

Examples of com.google.gwt.dev.cfg.Rules

    // Sets up environment.
    Set<String> allRootTypes = Sets.newHashSet();
    compiler.jprogram = new JProgram(new MinimalRebuildCache());
    Map<String, String> runtimeRebindRuleSourcesByShortName =
        RuntimeRebindRuleGenerator.RUNTIME_REBIND_RULE_SOURCES_BY_SHORT_NAME;
    Rules rules = new Rules();
    RuleFail ruleFail = new RuleFail();
    ruleFail.getRootCondition().getConditions().add(new ConditionWhenPropertyIs("foo", "bar"));
    rules.prepend(ruleFail);
    rules.prepend(new RuleGenerateWith(Generator.class));
    RuleReplaceWith ruleReplaceCanvas = new RuleReplaceWith("WebkitCanvasElement");
    ruleReplaceCanvas.getRootCondition()
        .getConditions().add(new ConditionWhenTypeIs("CanvasElement"));
    rules.prepend(ruleReplaceCanvas);
    rules.prepend(new RuleReplaceWithFallback("CanvasElement"));

    // Creates rebind rule classes for the non-generator rules in the provided list.
    precompiler.buildSimpleRuntimeRebindRules(rules);

    // Only 3 rebind rules were created because the generator rule was skipped.
View Full Code Here

Examples of com.google.gwt.dev.cfg.Rules

      propertyOracles = new StaticPropertyOracle[perms.size()];
      rebindOracles = new RebindOracle[perms.size()];
      BindingProperty[] orderedProps = perms.getOrderedProperties();
      SortedSet<ConfigurationProperty> configPropSet = module.getProperties().getConfigurationProperties();
      ConfigurationProperty[] configProps = configPropSet.toArray(new ConfigurationProperty[configPropSet.size()]);
      Rules rules = module.getRules();
      for (int i = 0; i < rebindOracles.length; ++i) {
        String[] orderedPropValues = perms.getOrderedPropertyValues(i);
        propertyOracles[i] = new StaticPropertyOracle(orderedProps,
            orderedPropValues, configProps);
        rebindOracles[i] = new StandardRebindOracle(compilationState,
View Full Code Here

Examples of com.google.gwt.dev.cfg.Rules

        module.getProperties(), readySpace);

    // Set up the rebind oracle for the module.
    // It has to wait until now because we need to inject javascript.
    //
    Rules rules = module.getRules();
    rebindOracle = new StandardRebindOracle(module.getCompilationState(logger),
        propOracle, module, rules, genDir, shellDir, new ArtifactSet());

    // Create a completely isolated class loader which owns all classes
    // associated with a particular module. This effectively builds a
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.