Examples of exec()


Examples of com.bramosystems.oss.player.util.client.RegExp.exec()

     * @throws com.bramosystems.oss.player.util.client.RegExp.RegexException if {@code version} is not in the required format
     * @since 1.3
     */
    public static PluginVersion get(String version) throws RegexException {
        RegExp r = RegExp.getRegExp("(\\d+).(\\d+).(\\d+)", "");
        RegExp.RegexResult res = r.exec(version);
        return new PluginVersion(Integer.parseInt(res.getMatch(1)),
                Integer.parseInt(res.getMatch(2)),
                Integer.parseInt(res.getMatch(3)));
    }

View Full Code Here

Examples of com.dtolabs.rundeck.core.cli.Action.exec()

            "-o", "-p", PROJECT,
        };
        setup.parseArgs(args);
        Action create = setup.createAction(ProjectTool.ACTION_CREATE);
        assertTrue(create instanceof CreateAction);
        create.exec();

    }

    public void testCreateActionProperties() throws Throwable {
View Full Code Here

Examples of com.eclipsesource.json.performancetest.caliper.CaliperRunner.exec()

  public static void main( String[] args ) throws IOException {
    CaliperRunner runner = new CaliperRunner( BufferedReaderBenchmark.class );
    runner.addParameter( "parser", "null", "gson", "jackson", "minimal-json" );
    runner.addParameter( "input", "rap", "caliper", "long-string", "numbers-array" );
    runner.exec();
  }

}
View Full Code Here

Examples of com.getperka.flatpack.policy.visitors.IdentResolver.exec()

    // Move top-level and package-level allow declarations into the individual type blocks
    new ScopeHoister().traverse(policy);

    IdentResolver resolver = resolvers.get();
    resolver.exec(policy);
    if (!resolver.getErrors().isEmpty()) {
      StringBuilder sb = new StringBuilder("Could not resolve name(s):");
      for (String error : resolver.getErrors()) {
        sb.append("\n").append(error);
      }
View Full Code Here

Examples of com.google.gwt.dev.jjs.impl.JsAbstractTextTransformer.exec()

      if (!sourceMapsEnabled
          && options.isAggressivelyOptimize()
          // only cluster for obfuscated mode
          && options.getOutput() == JsOutputOption.OBFUSCATED) {
        transformer = new JsFunctionClusterer(transformer);
        transformer.exec();
      }
      functionClusterEvent.end();

      // rewrite top-level blocks to limit the number of statements
      if (!sourceMapsEnabled && splitBlocks) {
View Full Code Here

Examples of com.google.gwt.dev.jjs.impl.JsFunctionClusterer.exec()

       */
      JsFunctionClusterer clusterer = new JsFunctionClusterer(out.toString(),
          v.getStatementRanges());
      // only cluster for obfuscated mode
      if (options.getOutput() == JsOutputOption.OBFUSCATED) {
        clusterer.exec();
      }
      // rewrite top-level blocks to limit the number of statements
      JsIEBlockTextTransformer ieXformer = new JsIEBlockTextTransformer(
          clusterer);
      if (splitBlocks) {
View Full Code Here

Examples of com.google.gwt.dev.jjs.impl.JsIEBlockTextTransformer.exec()

      }
      // rewrite top-level blocks to limit the number of statements
      JsIEBlockTextTransformer ieXformer = new JsIEBlockTextTransformer(
          clusterer);
      if (splitBlocks) {
        ieXformer.exec();
      }
      js[i] = ieXformer.getJs();
      if (sizeBreakdowns != null) {
        sizeBreakdowns[i] = v.getSizeBreakdown();
      }
View Full Code Here

Examples of com.google.gwt.dev.jjs.impl.JsNoopTransformer.exec()

         * source from previous compiles, thus making it possible to perform partial recompiles).
         */
        if (options.isIncrementalCompileEnabled()) {
          transformer = new JsTypeLinker(logger, transformer, v.getClassRanges(),
              v.getProgramClassRange(), getMinimalRebuildCache(), jprogram.typeOracle);
          transformer.exec();
        }

        /**
         * Reorder function decls to improve compression ratios. Also restructures the top level
         * blocks into sub-blocks if they exceed 32767 statements.
View Full Code Here

Examples of com.google.gwt.dev.jjs.impl.UnifyAst.exec()

      // (2) Assemble the Java AST.
      UnifyAst unifyAst = new UnifyAst(jprogram, jsProgram, options, rpo);
      unifyAst.addRootTypes(allRootTypes);
      // TODO: move this into UnifyAst?
      findEntryPoints(logger, rpo, declEntryPts, jprogram);
      unifyAst.exec(logger);

      List<String> finalTypeOracleTypes = Lists.create();
      if (precompilationMetrics != null) {
        for (com.google.gwt.core.ext.typeinfo.JClassType type : typeOracle.getTypes()) {
          finalTypeOracleTypes =
View Full Code Here

Examples of com.google.gwt.query.client.js.JsRegexp.exec()

  protected static Sequence getSequence(String expression) {
    int start = 0, add = 2, max = -1, modVal = -1;
    JsRegexp expressionRegExp = new JsRegexp(
        "^((odd|even)|([1-9]\\d*)|((([1-9]\\d*)?)n((\\+|\\-)(\\d+))?)|(\\-(([1-9]\\d*)?)n\\+(\\d+)))$");
    JsObjectArray<String> pseudoValue = expressionRegExp.exec(expression);
    if (!truth(pseudoValue)) {
      return null;
    } else {
      if (truth(pseudoValue.get(2))) {        // odd or even
        start = (eq(pseudoValue.get(2), "odd")) ? 1 : 2;
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.