Top Fields Constructors Methods
com.sun.javafx.reflect

public final Class ReflectUtil

extends Object
Class Inheritance
Imports
java.lang.reflect.Proxy

Field Summary

Modifier and TypeField and Description
public static final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
checkPackageAccess(Class<?> clazz)

Checks package access on the given class.

public static void
checkPackageAccess(String name)

Checks package access on the given classname.

public static boolean
isNonPublicProxyClass(Class<?> cls)

Test if the given class is a proxy class that implements non-public interface.

public static boolean
private static void
privateCheckPackageAccess(SecurityManager s, Class<?> clazz)
References Deprecated SecurityManager is deprecated or references (maybe indirectly) at least one deprecated element.

Note

should only be called if a SecurityManager is installed

private static void
privateCheckProxyPackageAccess(SecurityManager s, Class<?> clazz)
References Deprecated SecurityManager is deprecated or references (maybe indirectly) at least one deprecated element.

Note

should only be called if a SecurityManager is installed

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

PROXY_PACKAGEback to summary
public static final String PROXY_PACKAGE

Constructor Detail

ReflectUtilback to summary
private ReflectUtil()

Method Detail

checkPackageAccessback to summary
public static void checkPackageAccess(Class<?> clazz)

Checks package access on the given class. If it is a Proxy#isProxyClass(java.lang.Class) that implements a non-public interface (i.e. may be in a non-restricted package), also check the package access on the proxy interfaces.

checkPackageAccessback to summary
public static void checkPackageAccess(String name)

Checks package access on the given classname. This method is typically called when the Class instance is not available and the caller attempts to load a class on behalf the true caller (application).

isNonPublicProxyClassback to summary
public static boolean isNonPublicProxyClass(Class<?> cls)

Test if the given class is a proxy class that implements non-public interface. Such proxy class may be in a non-restricted package that bypasses checkPackageAccess.

isPackageAccessibleback to summary
public static boolean isPackageAccessible(Class<?> clazz)
privateCheckPackageAccessback to summary
private static void privateCheckPackageAccess(SecurityManager s, Class<?> clazz)

References Deprecated

SecurityManager is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Note

should only be called if a SecurityManager is installed

privateCheckProxyPackageAccessback to summary
private static void privateCheckProxyPackageAccess(SecurityManager s, Class<?> clazz)

References Deprecated

SecurityManager is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Note

should only be called if a SecurityManager is installed