Examples of compile()


Examples of javassist.compiler.Javac.compile()

    public static CtField make(String src, CtClass declaring)
        throws CannotCompileException
    {
        Javac compiler = new Javac(declaring);
        try {
            CtMember obj = compiler.compile(src);
            if (obj instanceof CtField)
                return (CtField)obj; // an instance of Javac.CtFieldWithInit
        }
        catch (CompileError e) {
            throw new CannotCompileException(e);
View Full Code Here

Examples of javax.jdo.Query.compile()

            Query query = pm.newQuery();
            query.setClass(PCPoint.class);
            query.setCandidates(pm.getExtent(PCPoint.class, false));
            query.setFilter("x == 3");
            query.compile();

            ObjectOutputStream oos = null;
            try {
                if (debug)
                    logger.debug("Attempting to serialize Query object.");
View Full Code Here

Examples of javax.media.j3d.BranchGroup.compile()

    BranchGroup theScene = new BranchGroup();

    //Add the tetrahedron to the scene.
    theScene.addChild(tgTetrahedron);

    theScene.compile();

    //Add everything to the universe.
    su.addBranchGraph(theScene);

  }
View Full Code Here

Examples of javax.script.Compilable.compile()

        when(socketFactory.createSocket(any(InetAddress.class),
            anyInt())).thenReturn(socket);

        ScriptEngine engine = new ScriptEngineManager().getEngineByName("python");
        Compilable compilable = (Compilable) engine;
        unpickleScript = compilable.compile(UNPICKLER_SCRIPT);
    }

    @Test
    public void disconnectsFromGraphite() throws Exception {
        graphite.connect();
View Full Code Here

Examples of javax.xml.xpath.XPath.compile()

        String to = assignment.getTo();
       
        XPathFactory factory = XPathFactory.newInstance();
        XPath xpathFrom = factory.newXPath();

        XPathExpression exprFrom = xpathFrom.compile(from);

        XPath xpathTo = factory.newXPath();

        XPathExpression exprTo = xpathTo.compile(to);
View Full Code Here

Examples of jetbrick.template.compiler.JavaCompiler.compile()

        JavaCompiler javaCompiler = engine.getJavaCompiler();

        // compile
        long ts = System.currentTimeMillis();
        JavaSource javaSource = new JavaSource(resource.getQualifiedClassName(), source, javaCompiler.getOutputdir());
        Class<?> cls = javaCompiler.compile(javaSource);
        if (notPrecompileThread) {
            ts = System.currentTimeMillis() - ts;
            log.info("generateJavaClass: {}, {}ms", javaClassFile.getAbsolutePath(), ts);
        }
        try {
View Full Code Here

Examples of juzu.impl.compiler.Compiler.compile()

            sourcePath(sourcePath).
            sourceOutput(classOutput).
            classOutput(classOutput).
            addClassPath(classPath).build();
        compiler.addAnnotationProcessor(new MainProcessor());
        compiler.compile();

        // Copy everything that is not a java source and not already present
        sourcePath.copy(new Filter.Default<S>() {
          @Override
          public boolean acceptFile(S file, String name) throws IOException {
View Full Code Here

Examples of juzu.plugin.less.impl.lesser.Lesser.compile()

          //
          Lesser lesser;
          Result result;
          try {
            lesser = new Lesser(JSContext.create());
            result = lesser.compile(clc, resource, Boolean.TRUE.equals(minify));
          }
          catch (Exception e) {
            log.info("Unexpected exception", e);
            throw new UnsupportedOperationException(e);
          }
View Full Code Here

Examples of loop.Executable.compile()

        toLoadFile.close();
      } catch (IOException e) {
        // Ignore.
      }

      executable.compile();
      executables.add(executable);
    }

    List<Executable> other = loadedModules.putIfAbsent(moduleName, executables);
View Full Code Here

Examples of ma.glasnost.orika.impl.generator.EclipseJdtCompiler.compile()

    File projectRoot = MavenProjectUtil.findProjectRoot();
   
    ClassLoader threadContextLoader = Thread.currentThread().getContextClassLoader();
   
    EclipseJdtCompiler complier = new EclipseJdtCompiler(threadContextLoader);
    ClassLoader childLoader = complier.compile(new File(projectRoot, "src/main/java-hidden"),threadContextLoader);
   
   
    @SuppressWarnings("unchecked")
    Class<? extends Author> hiddenAuthorType = (Class<? extends Author>)childLoader.loadClass("types.AuthorHidden");
    @SuppressWarnings("unchecked")
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.