Package httl.util

Examples of httl.util.ParameterizedTypeImpl


      if (returnClass != null) {
        if (returnClass.isArray()) {
          type = returnClass.getComponentType();
        } else if (Map.class.isAssignableFrom(returnClass)) {
          if (returnType instanceof ParameterizedType) {
            type = new ParameterizedTypeImpl(Map.Entry.class, ((ParameterizedType) returnType).getActualTypeArguments());
          } else {
            type = Map.Entry.class;
          }
        } else if (Collection.class.isAssignableFrom(returnClass)) {
          type = findGenericType(returnType, 0); // Collection<T>泛型
View Full Code Here


    if (genericTypes != null && genericTypes.size() > 0) {
      Type[] types = new Type[genericTypes.size()];
      for (int k = 0; k < genericTypes.size(); k ++) {
        types[k] = parseGenericType(genericTypes.get(k), genericOffsets.get(k));
      }
      return new ParameterizedTypeImpl(raw, types);
    }
    return raw;
  }
View Full Code Here

TOP

Related Classes of httl.util.ParameterizedTypeImpl

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.