Package org.rascalmpl.interpreter.staticErrors

Examples of org.rascalmpl.interpreter.staticErrors.JavaCompilation


      JavaCompiler<T> javaCompiler = new JavaCompiler<T>(parent.getClassLoader(), fileManagerCache.get(parent), commandline);
      Class<T> result = javaCompiler.compile(className, source, null, Object.class);
      fileManagerCache.put(result, javaCompiler.getFileManager());
      return result;
    } catch (ClassCastException e) {
      throw new JavaCompilation(e.getMessage(), vf.sourceLocation(loc));
    } catch (JavaCompilerException e) {
      throw new JavaCompilation("with classpath [" + config.getRascalJavaClassPathProperty() + "]: " + e.getDiagnostics().getDiagnostics().iterator().next().getMessage(null), vf.sourceLocation(loc));
    }
  }
View Full Code Here

TOP

Related Classes of org.rascalmpl.interpreter.staticErrors.JavaCompilation

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.