# Uses of Class
java.lang.IllegalAccessException

Packages that use IllegalAccessException
Package | Description
--- | ---
java.lang | Provides classes that are fundamental to the design of the Java programming language.
java.lang.invoke | The `java.lang.invoke` package provides low-level primitives for interacting with the Java Virtual Machine.
java.lang.reflect | Provides classes and interfaces for obtaining reflective information about classes and objects.
java.util | Contains the collections framework, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes.
javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
org.w3c.dom.bootstrap | Provides a factory for obtaining instances of `DOMImplementation`.
org.xml.sax.helpers | Provides helper classes, including support for bootstrapping SAX-based applications.

## Uses of IllegalAccessException in java.lang

Methods in java.lang that throw IllegalAccessException
Modifier and Type | Method | Description
--- | --- | ---
`T` | Class.`newInstance()` | Deprecated. This method propagates any exception thrown by the nullary constructor, including a checked exception.

## Uses of IllegalAccessException in java.lang.invoke

Methods in java.lang.invoke that throw IllegalAccessException
Modifier and Type | Method | Description
--- | --- | ---
`Class<?>` | MethodHandles.Lookup.`accessClass​(Class<?> targetClass)` | Determines if a class can be accessed from the lookup context defined by this `Lookup` object.
`MethodHandle` | MethodHandles.Lookup.`bind​(Object receiver, String name, MethodType type)` | Produces an early-bound method handle for a non-static method.
`Class<?>` | MethodHandles.Lookup.`defineClass​(byte[] bytes)` | Defines a class to the same class loader and in the same runtime package and protection domain as this lookup's lookup class.
`Class<?>` | MethodHandles.Lookup.`findClass​(String targetName)` | Looks up a class by name from the lookup context defined by this `Lookup` object.
`MethodHandle` | MethodHandles.Lookup.`findConstructor​(Class<?> refc, MethodType type)` | Produces a method handle which creates an object and initializes it, using the constructor of the specified type.
`MethodHandle` | MethodHandles.Lookup.`findGetter​(Class<?> refc, String name, Class<?> type)` | Produces a method handle giving read access to a non-static field.
`MethodHandle` | MethodHandles.Lookup.`findSetter​(Class<?> refc, String name, Class<?> type)` | Produces a method handle giving write access to a non-static field.
`MethodHandle` | MethodHandles.Lookup.`findSpecial​(Class<?> refc, String name, MethodType type, Class<?> specialCaller)` | Produces an early-bound method handle for a virtual method.
`MethodHandle` | MethodHandles.Lookup.`findStatic​(Class<?> refc, String name, MethodType type)` | Produces a method handle for a static method.
`MethodHandle` | MethodHandles.Lookup.`findStaticGetter​(Class<?> refc, String name, Class<?> type)` | Produces a method handle giving read access to a static field.
`MethodHandle` | MethodHandles.Lookup.`findStaticSetter​(Class<?> refc, String name, Class<?> type)` | Produces a method handle giving write access to a static field.
`VarHandle` | MethodHandles.Lookup.`findStaticVarHandle​(Class<?> decl, String name, Class<?> type)` | Produces a VarHandle giving access to a static field `name` of type `type` declared in a class of type `decl`.
`VarHandle` | MethodHandles.Lookup.`findVarHandle​(Class<?> recv, String name, Class<?> type)` | Produces a VarHandle giving access to a non-static field `name` of type `type` declared in a class of type `recv`.
`MethodHandle` | MethodHandles.Lookup.`findVirtual​(Class<?> refc, String name, MethodType type)` | Produces a method handle for a virtual method.
`static MethodHandles.Lookup` | MethodHandles.`privateLookupIn​(Class<?> targetClass, MethodHandles.Lookup lookup)` | Returns a `lookup object` with full capabilities to emulate all supported bytecode behaviors, including private access, on a target class.
`MethodHandle` | MethodHandles.Lookup.`unreflect​(Method m)` | Makes a direct method handle to m, if the lookup class has permission.
`MethodHandle` | MethodHandles.Lookup.`unreflectConstructor​(Constructor<?> c)` | Produces a method handle for a reflected constructor.
`MethodHandle` | MethodHandles.Lookup.`unreflectGetter​(Field f)` | Produces a method handle giving read access to a reflected field.
`MethodHandle` | MethodHandles.Lookup.`unreflectSetter​(Field f)` | Produces a method handle giving write access to a reflected field.
`MethodHandle` | MethodHandles.Lookup.`unreflectSpecial​(Method m, Class<?> specialCaller)` | Produces a method handle for a reflected method.
`VarHandle` | MethodHandles.Lookup.`unreflectVarHandle​(Field f)` | Produces a VarHandle giving access to a reflected field `f` of type `T` declared in a class of type `R`.

## Uses of IllegalAccessException in java.lang.reflect

Methods in java.lang.reflect that throw IllegalAccessException
Modifier and Type | Method | Description
--- | --- | ---
`Object` | Field.`get​(Object obj)` | Returns the value of the field represented by this `Field`, on the specified object.
`boolean` | Field.`getBoolean​(Object obj)` | Gets the value of a static or instance `boolean` field.
`byte` | Field.`getByte​(Object obj)` | Gets the value of a static or instance `byte` field.
`char` | Field.`getChar​(Object obj)` | Gets the value of a static or instance field of type `char` or of another primitive type convertible to type `char` via a widening conversion.
`double` | Field.`getDouble​(Object obj)` | Gets the value of a static or instance field of type `double` or of another primitive type convertible to type `double` via a widening conversion.
`float` | Field.`getFloat​(Object obj)` | Gets the value of a static or instance field of type `float` or of another primitive type convertible to type `float` via a widening conversion.
`int` | Field.`getInt​(Object obj)` | Gets the value of a static or instance field of type `int` or of another primitive type convertible to type `int` via a widening conversion.
`long` | Field.`getLong​(Object obj)` | Gets the value of a static or instance field of type `long` or of another primitive type convertible to type `long` via a widening conversion.
`short` | Field.`getShort​(Object obj)` | Gets the value of a static or instance field of type `short` or of another primitive type convertible to type `short` via a widening conversion.
`Object` | Method.`invoke​(Object obj, Object... args)` | Invokes the underlying method represented by this `Method` object, on the specified object with the specified parameters.
`T` | Constructor.`newInstance​(Object... initargs)` | Uses the constructor represented by this `Constructor` object to create and initialize a new instance of the constructor's declaring class, with the specified initialization parameters.
`void` | Field.`set​(Object obj, Object value)` | Sets the field represented by this `Field` object on the specified object argument to the specified new value.
`void` | Field.`setBoolean​(Object obj, boolean z)` | Sets the value of a field as a `boolean` on the specified object.
`void` | Field.`setByte​(Object obj, byte b)` | Sets the value of a field as a `byte` on the specified object.
`void` | Field.`setChar​(Object obj, char c)` | Sets the value of a field as a `char` on the specified object.
`void` | Field.`setDouble​(Object obj, double d)` | Sets the value of a field as a `double` on the specified object.
`void` | Field.`setFloat​(Object obj, float f)` | Sets the value of a field as a `float` on the specified object.
`void` | Field.`setInt​(Object obj, int i)` | Sets the value of a field as an `int` on the specified object.
`void` | Field.`setLong​(Object obj, long l)` | Sets the value of a field as a `long` on the specified object.
`void` | Field.`setShort​(Object obj, short s)` | Sets the value of a field as a `short` on the specified object.

## Uses of IllegalAccessException in java.util

Methods in java.util that throw IllegalAccessException
Modifier and Type | Method | Description
--- | --- | ---
`ResourceBundle` | ResourceBundle.Control.`newBundle​(String baseName, Locale locale, String format, ClassLoader loader, boolean reload)` | Instantiates a resource bundle for the given bundle name of the given format and locale, using the given class loader if necessary.

## Uses of IllegalAccessException in javax.swing

Methods in javax.swing that throw IllegalAccessException
Modifier and Type | Method | Description
--- | --- | ---
`static void` | UIManager.`setLookAndFeel​(String className)` | Loads the `LookAndFeel` specified by the given class name, using the current thread's context class loader, and passes it to `setLookAndFeel(LookAndFeel)`.

## Uses of IllegalAccessException in org.w3c.dom.bootstrap

Methods in org.w3c.dom.bootstrap that throw IllegalAccessException
Modifier and Type | Method | Description
--- | --- | ---
`static DOMImplementationRegistry` | DOMImplementationRegistry.`newInstance()` | Obtain a new instance of a `DOMImplementationRegistry`.

## Uses of IllegalAccessException in org.xml.sax.helpers

Methods in org.xml.sax.helpers that throw IllegalAccessException
Modifier and Type | Method | Description
--- | --- | ---
`static Parser` | ParserFactory.`makeParser()` | Deprecated. Create a new SAX parser using the `org.xml.sax.parser' system property.
`static Parser` | ParserFactory.`makeParser​(String className)` | Deprecated. Create a new SAX parser object using the class name provided.