Пример #1
0
 public static void main(String[] args) {
   if (args.length < 1) {
     System.err.print("Usesage: Java SayHello yourname");
     System.exit(1);
   }
   String yourname = args[0];
   Map<String, Object> env = new HashMap<String, Object>();
   env.put("yourname", yourname);
   String result = (String) AviatorEvaluator.execute(" 'hello ' + yourname ", env);
   System.out.println(result);
 }
Пример #2
0
 public OptimizeCodeGenerator(
     ClassLoader classLoader, OutputStream traceOutStream, boolean trace) {
   this.asmCodeGenerator =
       new ASMCodeGenerator(AviatorEvaluator.getAviatorClassLoader(), traceOutStream, trace);
   this.trace = trace;
 }