This method of the ReflectionPermission Class retrieves the types of classes that the permission object allows access to, based on a reflective access type.
public int getAllowedAccess(int accessType);
Returns the types of classes that the permission object allows access to. This will be one of the following: SAMELOADER, DIFFERENTLOADER, SYSTEMLOADER, ALL, or NONE.
accessType | The reflective access type. It must be either java.lang.reflect.Member.PUBLIC or java.lang.reflect.Member.DECLARED. |
IllegalArgumentException if the accessType parameter is not equal to java.lang.reflect.Member.PUBLIC or java.lang.reflect.Member.DECLARED.