Code example for GenericArrayType

Methods: getGenericComponentType

0
    *   
    * @return this returns the class type from the array type 
    */ 
   private static Class getArrayClass(Type type) {
      GenericArrayType generic = (GenericArrayType) type;
      Type array = generic.getGenericComponentType();
      Class entry = getClass(array);
       
      if(entry != null) {
         return Array.newInstance(entry, 0).getClass();
      } 
      return null; 
   } 
    
   /** 
    * This is used to acquire a bean name for a method or field name. 
    * A bean name is the name of a method or field with the first 
    * character decapitalized. An exception to this is when a method 
    * or field starts with an acronym, in such a case the name will 
    * remain unchanged from the original name. 
    *