Microsoft SDK for Java

getAllowedAccess

This method of the ReflectionPermission Class retrieves the types of classes that the permission object allows access to, based on a reflective access type.

Syntax

public int getAllowedAccess(int accessType);

Return Value

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.

Parameters

accessType The reflective access type. It must be either java.lang.reflect.Member.PUBLIC or java.lang.reflect.Member.DECLARED.

Exceptions

IllegalArgumentException if the accessType parameter is not equal to java.lang.reflect.Member.PUBLIC or java.lang.reflect.Member.DECLARED.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.