X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fsrc%2Forg%2Fsimantics%2Fdataboard%2Funits%2FClassUtil.java;h=2468243470b3a4d843bc5d2e1fb2942cc61e58b4;hb=refs%2Fchanges%2F22%2F2422%2F4;hp=cc2dc822cd2fce57a7d109744a3fa066f9671964;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/src/org/simantics/databoard/units/ClassUtil.java b/bundles/org.simantics.databoard/src/org/simantics/databoard/units/ClassUtil.java index cc2dc822c..246824347 100644 --- a/bundles/org.simantics.databoard/src/org/simantics/databoard/units/ClassUtil.java +++ b/bundles/org.simantics.databoard/src/org/simantics/databoard/units/ClassUtil.java @@ -1,33 +1,33 @@ -package org.simantics.databoard.units; - -import org.objectweb.asm.ClassReader; -import org.objectweb.asm.ClassWriter; - -public class ClassUtil { - - /** - * Compile multiple classes into one class. - * - * The resulted class will: - * Implemented all the interfaces as the source classes. - * Have same static fields - * Run all the source classes' static {} blocks - * Contain all the same methods - * Inherit the super-type from the first class (1st index) - * Include methods of all super-types of other classes (2nd and further indices) - * - * @param className - * @param classes - * @return assembly - */ - public static Class assembleClasses(String className, Class...classes) - { - //ClassReader cr = new ClassReader(); - ClassWriter cw = new ClassWriter(0); - - //cw.visit(V1_6, ACC_PUBLIC + ACC_SUPER, classSig, null, superType, null); - - return null; - } - -} +package org.simantics.databoard.units; + +import org.objectweb.asm.ClassReader; +import org.objectweb.asm.ClassWriter; + +public class ClassUtil { + + /** + * Compile multiple classes into one class. + * + * The resulted class will: + * Implemented all the interfaces as the source classes. + * Have same static fields + * Run all the source classes' static {} blocks + * Contain all the same methods + * Inherit the super-type from the first class (1st index) + * Include methods of all super-types of other classes (2nd and further indices) + * + * @param className + * @param classes + * @return assembly + */ + public static Class assembleClasses(String className, Class...classes) + { + //ClassReader cr = new ClassReader(); + ClassWriter cw = new ClassWriter(0); + + //cw.visit(V1_6, ACC_PUBLIC + ACC_SUPER, classSig, null, superType, null); + + return null; + } + +}