Package denoflionsx.denLib.Config.Annotations

Examples of denoflionsx.denLib.Config.Annotations.Tunable


        Class[] classes = c.getDeclaredClasses();
        for (Class a : classes) {
            Annotation[] annos = a.getDeclaredAnnotations();
            for (Annotation b : annos) {
                if (b instanceof Tunable) {
                    Tunable t = (Tunable) b;
                    String cat = t.category();
                    Field[] g = a.getDeclaredFields();
                    for (Field h : g) {
                        if (config1 != null) {
                            Property p;
                            if (t.category().contains("items")) {
                                p = config1.getItem(cat, h.getName(), Integer.valueOf(denLib.ReflectionHelper.getStaticField(h).toString()));
                            } else {
                                p = config1.get(cat, h.getName(), denLib.ReflectionHelper.getStaticField(h).toString());
                            }

                            denLib.ReflectionHelper.setStaticField(h, p.getString());
                            ConfigCategory a123 = config1.getCategory(cat);
                            if (!t.comment().equals("Tunable Values")) {
                                a123.setComment(t.comment());
                            }
                            Annotation[] fAnno = h.getDeclaredAnnotations();
                            for (Annotation q : fAnno) {
                                if (q instanceof Comment) {
                                    Comment comment = (Comment) q;
View Full Code Here

TOP

Related Classes of denoflionsx.denLib.Config.Annotations.Tunable

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.