Package chaschev.lang.reflect

Examples of chaschev.lang.reflect.ClassDesc


            return true;
        }
    };

    public static void copyFields(Object dest, Map<String, ?> src, final CustomCopyHandler handler) {
        final ClassDesc destClassDesc = getClassDesc(dest.getClass());

        try {
            for (Map.Entry entry : src.entrySet()) {
                final String name = (String) entry.getKey();
                final Field destField = destClassDesc.getField(name);

                if (destField == null) {
                    continue;
                }
View Full Code Here


            throw Exceptions.runtime(e);
        }
    }

    public static void copyFields(Object dest, Object src, final CustomCopyHandler handler) {
        final ClassDesc destClassDesc = getClassDesc(dest.getClass());
        final ClassDesc srcClassDesc = getClassDesc(src.getClass());

        int i1 = 0, i2 = 0;

        final int l1 = destClassDesc.fields.length;
        final int l2 = srcClassDesc.fields.length;
View Full Code Here

TOP

Related Classes of chaschev.lang.reflect.ClassDesc

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.