Examples of generateClass()


Examples of com.caucho.config.gen.PojoBean.generateClass()

          ApiClass apiClass = new ApiClass(_beanType, true);

          PojoBean bean = new PojoBean(apiClass);
          bean.introspect();

          instanceClass = (Class<X>) bean.generateClass();
        }

        if (instanceClass == getTargetClass() && isSerializeHandle()) {
          instanceClass = SerializationAdapter.gen(instanceClass);
        }
View Full Code Here

Examples of com.google.code.vimsztool.compiler.JDTCompiler.generateClass()

        srcFileList.add(sourceFile);
      }
      allSrcFiles = srcFileList.toArray(new String[]{});
    }
   
    CompileResultInfo resultInfo =compiler.generateClass(allSrcFiles);
    List<String> problemList = resultInfo.getProblemInfoList();
    StringBuilder sb = new StringBuilder();
    for (String srcFile : allSrcFiles) {
      sb.append(srcFile).append("\n");
    }
View Full Code Here

Examples of gargl.generators.Generator.generateClass()

      System.out.println("ERROR: Language '" + jct.language + "' has no associated generator.");
      System.out.println("Valid generator languages: " + GeneratorFactory.getValidGeneratorTypes().toString());
    }
    else {
      generator.setModule(mod);
      generator.generateClass(jct.outputDirectory);
    }
  }
}
View Full Code Here

Examples of net.sf.cglib.core.ClassGenerator.generateClass()

/* 32 */       if (t == null)
/* 33 */         return abyte;
/* 34 */       ClassWriter w = new DebuggingClassWriter(true);
/* 35 */       ClassGenerator gen = new ClassReaderGenerator(new ClassReader(abyte), false);
/* 36 */       gen = new TransformingClassGenerator(gen, t);
/* 37 */       gen.generateClass(w);
/* 38 */       return w.toByteArray(); } catch (Exception e) {
/*    */     }
/* 40 */     throw new CodeGenerationException(e);
/*    */   }
/*    */
View Full Code Here

Examples of net.sf.cglib.transform.ClassReaderGenerator.generateClass()

/* 32 */       if (t == null)
/* 33 */         return abyte;
/* 34 */       ClassWriter w = new DebuggingClassWriter(true);
/* 35 */       ClassGenerator gen = new ClassReaderGenerator(new ClassReader(abyte), false);
/* 36 */       gen = new TransformingClassGenerator(gen, t);
/* 37 */       gen.generateClass(w);
/* 38 */       return w.toByteArray(); } catch (Exception e) {
/*    */     }
/* 40 */     throw new CodeGenerationException(e);
/*    */   }
/*    */
View Full Code Here

Examples of org.aspectj.ajdt.internal.compiler.lookup.HelperInterfaceBinding.generateClass()

    UnresolvedType interfaceTypeX = AjcMemberMaker.perObjectInterfaceType(typeX);
    HelperInterfaceBinding interfaceType = new HelperInterfaceBinding(this.binding, interfaceTypeX);
    world.addTypeBindingAndStoreInWorld(interfaceType);
    interfaceType.addMethod(world, AjcMemberMaker.perObjectInterfaceGet(typeX));
    interfaceType.addMethod(world, AjcMemberMaker.perObjectInterfaceSet(typeX));
    interfaceType.generateClass(compilationResult, classFile);
    return interfaceType;
  }

  /*
   * private void generatePerTypeWithinGetWithinTypeMethod(ClassFile classFile) { final EclipseFactory world =
View Full Code Here

Examples of org.aspectj.ajdt.internal.compiler.lookup.HelperInterfaceBinding.generateClass()

    HelperInterfaceBinding interfaceType =
      new HelperInterfaceBinding(this.binding, interfaceTypeX);
    world.addTypeBinding(interfaceType);
    interfaceType.addMethod(world, AjcMemberMaker.perObjectInterfaceGet(typeX));
    interfaceType.addMethod(world, AjcMemberMaker.perObjectInterfaceSet(typeX));
    interfaceType.generateClass(compilationResult, classFile);
    return interfaceType;
  }
 
 
  // PTWIMPL Generate aspectOf() method
View Full Code Here

Examples of org.eclipse.persistence.internal.jaxb.JaxbClassLoader.generateClass()

        return generateClassFromBytes(qualifiedClassName, classBytes);
    }

    private Class generateClassFromBytes(String className, byte[] classBytes) {
        JaxbClassLoader loader = (JaxbClassLoader) helper.getClassLoader();
        Class generatedClass = loader.generateClass(className, classBytes);
        return generatedClass;

    }

    /**
 
View Full Code Here

Examples of org.eclipse.persistence.internal.jaxb.JaxbClassLoader.generateClass()

    classWriter.visitEnd();
   
    byte[] classBytes = classWriter.toByteArray();
   
    JaxbClassLoader loader = (JaxbClassLoader)helper.getClassLoader();
    Class generatedClass = loader.generateClass(className, classBytes);
    return generatedClass;
    }     
}
View Full Code Here

Examples of org.eclipse.persistence.internal.jaxb.JaxbClassLoader.generateClass()

        mv.visitEnd();
    }

    private Class generateClassFromBytes(String className, byte[] classBytes) {
        JaxbClassLoader loader = (JaxbClassLoader) helper.getClassLoader();
        Class generatedClass = loader.generateClass(className, classBytes);
        return generatedClass;
    }

    /**
     * Inner class used for ordering a list of Properties alphabetically by
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.