Package org.fusesource.hawtjni.generator.model

Examples of org.fusesource.hawtjni.generator.model.ReflectClass


        } catch (Exception e) {
            throw new RuntimeException(e);
        }
       
        for (Class<?> clazz : jniClasses) {
            ReflectClass rc = new ReflectClass(clazz);
            if( rc.getFlag(ClassFlag.STRUCT) ) {
                structs.add(rc);
            }
            if( !rc.getNativeMethods().isEmpty() ) {
                jni.add(rc);
            }
        }
    }
View Full Code Here


        }
        try {
            ConstantsGenerator gen = new ConstantsGenerator();
            for (String clazzName : args) {
                Class<?> clazz = Class.forName(clazzName);
                gen.generate(new ReflectClass(clazz));
            }
        } catch (Exception e) {
            System.out.println("Problem");
            e.printStackTrace(System.out);
        }
View Full Code Here

            String[] sourcePath = new String[args.length - 2];
            System.arraycopy(args, 2, sourcePath, 0, sourcePath.length);
            Class<?> clazz = Class.forName(clazzName);
            gen.setSourcePath(sourcePath);
            gen.setClassSourcePath(classSource);
            gen.generate(new ReflectClass(clazz));
        } catch (Exception e) {
            System.out.println("Problem");
            e.printStackTrace(System.out);
        }
    }
View Full Code Here

        try {
            SizeofGenerator gen = new SizeofGenerator();
            for (int i = 0; i < args.length; i++) {
                String clazzName = args[i];
                Class<?> clazz = Class.forName(clazzName);
                gen.generate(new ReflectClass(clazz));
            }
        } catch (Exception e) {
            System.out.println("Problem");
            e.printStackTrace(System.out);
        }
View Full Code Here

            LockGenerator gen = new LockGenerator();
            String clazzName = args[0];
            String classSource = args[1];
            Class<?> clazz = Class.forName(clazzName);
            gen.setClassSourcePath(classSource);
            gen.generate(new ReflectClass(clazz));
        } catch (Exception e) {
            System.out.println("Problem");
            e.printStackTrace(System.out);
        }
    }
View Full Code Here

            String[] sourcePath = new String[args.length - 2];
            System.arraycopy(args, 2, sourcePath, 0, sourcePath.length);
            Class<?> clazz = Class.forName(clazzName);
            gen.setSourcePath(sourcePath);
            gen.setClassSourcePath(classSource);
            gen.generate(new ReflectClass(clazz));
        } catch (Exception e) {
            System.out.println("Problem");
            e.printStackTrace(System.out);
        }
    }
View Full Code Here

TOP

Related Classes of org.fusesource.hawtjni.generator.model.ReflectClass

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.