This method of the ReflectionPermission Class retrieves the types of classes that the permission object allows declared access to.
public int getAllowedDeclaredAccess();
Returns the types of classes that the permission object allows declared access to. This will be one of the following: SAMELOADER, DIFFERENTLOADER, SYSTEMLOADER, ALL, or NONE.