Package net.sourceforge.javautil.bytecode.api

Examples of net.sourceforge.javautil.bytecode.api.TypeDescriptor.compareTo()


    TypeDescriptor pt = TypeDescriptor.getFor(value.getClass());
   
    if (type.compareTo(pt) != 0) {
      if (pt.isArray() && type.compareTo(pt.getComponentType()) == 0) {
        value = Array.get(value, 0);
      } else if (type.isArray() && pt.compareTo(type.getComponentType()) == 0) {
        Object array = Array.newInstance(value.getClass(), 1);
        Array.set(array, 0, value);
        value = array;
      } else {
        throw new IllegalArgumentException(value + " is not of the expected annotation value type: " + type);
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.