Examples of JavaSource


Examples of com.alibaba.otter.shared.common.utils.compile.model.JavaSource

        // options.add("-target");
        // options.add("1.6");
    }

    public Class compile(String sourceString) {
        JavaSource source = new JavaSource(sourceString);
        return compile(source);
    }
View Full Code Here

Examples of com.dtrules.automapping.access.JavaSource

     * No type exists at the AutoDataMapDef level.  Return a null.
     */
    public String getType() { return null; }
   
    public AutoDataMapDef(){
        dataSources.put("java",    new JavaSource(this));
        dataSources.put("xml",     new XMLSource(this));
        dataTargets.put("dtrules", new DTRulesTarget(this));
    }
View Full Code Here

Examples of com.google.gwt.dev.javac.testing.JavaSource

    assertTrue(loader.loadClass("java.lang.String").getMethods().length > 0);
  }

  private JavaSource createFakeString() {
    return new JavaSource("java.lang.String") {
      public String getSource() {
        return "package java.lang;"
             + "public class String {}";
      }
    };
View Full Code Here

Examples of com.google.gwt.dev.javac.testing.JavaSource

    }
    assertNotNull(javaSimple.getDeclaredMethod(expectedMethod));
  }

  private JavaSource createSimple() {
    return new JavaSource("com.google.gwt.inject.rebind.types.Simple") {
      public String getSource() {
        return "package com.google.gwt.inject.rebind.types;"
             + "public class Simple {"
             + "  public void b() {}"
             + "}";
View Full Code Here

Examples of com.thoughtworks.qdox.model.JavaSource

        return retVal;
    }


    protected JavaClassParent createJavaClassParent(ClassLibrary classLibrary, String packaze, String[] importz) {
        JavaSource src = new JavaSource();
        src.setClassLibrary(classLibrary);
        for (int i = 0; importz != null && i < importz.length; i++) {
            src.addImport(importz[i]);
        }
        src.setPackage(packaze);
        return src;
    }
View Full Code Here

Examples of de.java2html.javasource.JavaSource

      view.activate();
     
    } else if (source == viewJSource) {
     
      //Parse the raw text to a JavaSource object
      JavaSource jsource = null;
      try {
        String className = clazz.getCanonicalName();
        className = className.replace('.', '/');
        String sourcePath = WebappHelper.getSourcePath()+"/"+className +".java";
        jsource = new JavaSourceParser().parse(new File(sourcePath));
View Full Code Here

Examples of de.java2html.javasource.JavaSource

   * @param cl
   * @return
   * @throws IOException
   */
  public static MediaResource showjavaSource(String cl) throws IOException {
    JavaSource jsource = null;
    cl = cl.replace('.', '/');
    String javaSourcePath  = WebappHelper.getSourcePath()+"/"+cl+".java";
    File file = new File(javaSourcePath);
    if (!file.exists()) {
      javaSourcePath = WebappHelper.getBrasatoSourcePath()+"/"+cl+".java";
View Full Code Here

Examples of jetbrick.template.compiler.JavaSource

        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);
        }
View Full Code Here

Examples of net.sf.kpex.prolog.JavaSource

   */
  @Override
  public int exec(Prog p)
  {
    DataBase db = (DataBase) ((JavaObject) getArg(0)).toObject();
    Source S = new JavaSource(db.iterateAll(), p);
    return putArg(1, S, p);
  }
View Full Code Here

Examples of org.apache.servicemix.JavaSource

     *
     */
    public static Object getBody(NormalizedMessage message) throws MessagingException {
        Source content = message.getContent();
        if (content instanceof JavaSource) {
            JavaSource source = (JavaSource) content;
            return source.getObject();
        }
        if (message instanceof NormalizedMessageImpl) {
            return ((NormalizedMessageImpl) message).getBody();
        }
        return message.getProperty(PojoMarshaler.BODY);
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.