APIdia Launch Partner
Top Description Constructors Methods
jdk.dynalink.beans

pack-priv Class CheckRestrictedPackage

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

A utility class to check whether a given class is in a package with restricted access e.g. "sun.*" etc.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static boolean

Returns:

true if the class is either not public, or it resides in a package with restricted access.
isRestrictedClass
(final Class<?>
the class to test
clazz
)

Returns true if the class is either not public, or it resides in a package with restricted access.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CheckRestrictedPackageback to summary
pack-priv CheckRestrictedPackage()

Method Detail

isRestrictedClassback to summary
pack-priv static boolean isRestrictedClass(final Class<?> clazz)

Returns true if the class is either not public, or it resides in a package with restricted access.

Parameters
clazz:Class<?>

the class to test

Returns:boolean

true if the class is either not public, or it resides in a package with restricted access.