Code example for Field

Methods: get, setAccessible

0
    @SuppressWarnings("unchecked") 
    private HashMap<String, Class<?> > getPrivateClassCache()
            throws SecurityException, NoSuchFieldException, 
                IllegalArgumentException, IllegalAccessException { 
        Field field = AndroidJarLoader.class.getDeclaredField("mClassCache");  //$NON-NLS-1$
        field.setAccessible(true);
        return (HashMap<String, Class<?>>) field.get(mFrameworkClassLoader);
    } 
 
    /** 
     * Retrieves the private mFrameworkClassLoader.mEntryCache field using reflection. 
     *  
     * @throws NoSuchFieldException  
     * @throws SecurityException  
     * @throws IllegalAccessException  
     * @throws IllegalArgumentException  
     */ 
    @SuppressWarnings("unchecked") 
    private HashMap<String,byte[]> getPrivateEntryCache()
            throws SecurityException, NoSuchFieldException, 
                IllegalArgumentException, IllegalAccessException {