Examples of compile()


Examples of com.volantis.styling.impl.compiler.ValueCompilerImpl.compile()

                StylePropertyDetails.MCS_CONTAINER,
                "foo(bar())");

        ValueCompiler compiler = new ValueCompilerImpl(functionResolverMock);
        StyleCompiledExpression compiledValue = (StyleCompiledExpression)
                compiler.compile(value);
        StyleValue evaluatedValue =
                compiledValue.evaluate(evaluationContextMock);
        assertSame(fooResult, evaluatedValue);
    }
}
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.CPSCompilerMain.compile()

    }
    
    //for hasAgressiveBehavior == true
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( AggressiveBehavior_net +
                   "defineEvidence( hasAggressiveBehavior, True );"+
                   "run(LW, " + sizeOfTrue + ");" );
       
      int i = 0;
     for (ShipEntity ship : se){
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.jt.prs.bn.ProbabilisticNetwork.compile()

        }
      } 
     }
    
        try {
      rede.compile();
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
   
    
View Full Code Here

Examples of edu.stanford.nlp.trees.tregex.TregexPatternCompiler.compile()

    Macros.addAllMacros(tpc, getBufferedReader(macroStr));
    try {
      BufferedReader br = getBufferedReader(editStr);
      List<TsurgeonPattern> tsp = new ArrayList<TsurgeonPattern>();
      for (String line; (line = br.readLine()) != null; ) {
        TregexPattern matchPattern = tpc.compile(line);
        tsp.clear();
        if (DEBUG) System.err.println("Pattern is " + line + " [" + matchPattern + ']');
        while (continuing(line = br.readLine())) {
          TsurgeonPattern p = Tsurgeon.parseOperation(line);
          if (DEBUG) System.err.println("Operation is " + line + " [" + p + ']');
View Full Code Here

Examples of eu.stratosphere.compiler.PactCompiler.compile()

   
    private OptimizedPlan compileProgram(String jobName) {
      Plan p = createProgramPlan(jobName);
     
      PactCompiler pc = new PactCompiler(new DataStatistics());
      return pc.compile(p);
    }
   
    private void setAsContext() {
      initializeContextEnvironment(this);
    }
View Full Code Here

Examples of gov.nasa.arc.mct.evaluator.enums.EnumEvaluator.compile()

   * @param value the string value.
   * @return the evaluated result.
   */
  public String evaluate(String value){
    EnumEvaluator e = new EnumEvaluator();
    e.compile(ec.getData().getCode());
    return e.evaluate(value);
  }
 
  /**
   * Expressions table model.
View Full Code Here

Examples of gov.nasa.arc.mct.evaluator.enums.MultiEvaluator.compile()

   * @param value the string value.
   * @return the evaluated result.
   */
  public String evaluate(String value){
    MultiEvaluator e = new MultiEvaluator();
    e.compile(multiComponent.getData().getCode());
    return null;
  }
 
  /**
   * Expressions table model.
View Full Code Here

Examples of gov.nasa.arc.mct.evaluator.spi.EvaluatorProvider.compile()

    e = ec.getCapability(Evaluator.class);
    registry.addProvider(ep);
    Executor executor = Mockito.mock(Executor.class);
    Mockito.when(executor.evaluate(Mockito.anyMap(), Mockito.anyList())).thenReturn(expectedRenderingInfo);
    Mockito.when(ep.getLanguage()).thenReturn(language);
    Mockito.when(ep.compile(Mockito.anyString())).thenReturn(executor);
   
    Assert.assertSame(expectedRenderingInfo, e.evaluate(Collections.<String,List<Map<String,String>>>emptyMap(), Collections.<FeedProvider>emptyList()));
  }
 
  @Test
View Full Code Here

Examples of gov.nasa.arc.mct.evaluator.spi.MultiProvider.compile()

    e = mc.getCapability(Evaluator.class);
    registry.addProvider(mp);
    Executor executor = Mockito.mock(Executor.class);
    Mockito.when(executor.evaluate(Mockito.anyMap(), Mockito.anyList())).thenReturn(expectedRenderingInfo);
    Mockito.when(mp.getLanguage()).thenReturn(language);
    Mockito.when(mp.compile(Mockito.anyString())).thenReturn(executor);
   
    Assert.assertSame(expectedRenderingInfo, e.evaluate(Collections.<String,List<Map<String,String>>>emptyMap(), Collections.<FeedProvider>emptyList()));
  }
}
View Full Code Here

Examples of httl.spi.translators.templates.CompiledVisitor.compile()

      visitor.setTextInClass(textInClass);
      visitor.setValueFilterSwitcher(valueFilterSwitcher);
      visitor.setCompiler(compiler);
      visitor.init();
      root.accept(visitor);
      return visitor.compile();
    }
  }

}
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.