Uses of Class
java.lang.IllegalAccessException
Package
Description
Provides classes that are fundamental to the design of the Java
programming language.
The
java.lang.invoke
package provides low-level primitives for interacting
with the Java Virtual Machine.Provides classes and interfaces for obtaining reflective information about
classes and objects.
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.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides a factory for obtaining instances of
DOMImplementation
.Provides helper classes, including
support for bootstrapping SAX-based applications.
-
Uses of IllegalAccessException in java.lang
Modifier and TypeMethodDescriptionClass.newInstance()
Deprecated.This method propagates any exception thrown by the nullary constructor, including a checked exception. -
Uses of IllegalAccessException in java.lang.invoke
Modifier and TypeMethodDescriptionClass<?>
MethodHandles.Lookup.accessClass
(Class<?> targetClass) Determines if a class can be accessed from the lookup context defined by thisLookup
object.MethodHandles.Lookup.bind
(Object receiver, String name, MethodType type) Produces an early-bound method handle for a non-static method.static <T> T
MethodHandles.classData
(MethodHandles.Lookup caller, String name, Class<T> type) Returns the class data associated with the lookup class of the givencaller
lookup object, ornull
.static <T> T
MethodHandles.classDataAt
(MethodHandles.Lookup caller, String name, Class<T> type, int index) Returns the element at the specified index in the class data, if the class data associated with the lookup class of the givencaller
lookup object is aList
.Class<?>
MethodHandles.Lookup.defineClass
(byte[] bytes) Creates and links a class or interface frombytes
with the same class loader and in the same runtime package and protection domain as this lookup's lookup class as if callingClassLoader::defineClass
.MethodHandles.Lookup.defineHiddenClass
(byte[] bytes, boolean initialize, MethodHandles.Lookup.ClassOption... options) Creates a hidden class or interface frombytes
, returning aLookup
on the newly created class or interface.MethodHandles.Lookup.defineHiddenClassWithClassData
(byte[] bytes, Object classData, boolean initialize, MethodHandles.Lookup.ClassOption... options) Creates a hidden class or interface frombytes
with associated class data, returning aLookup
on the newly created class or interface.Class<?>
MethodHandles.Lookup.ensureInitialized
(Class<?> targetClass) Ensures thattargetClass
has been initialized.Class<?>
Looks up a class by name from the lookup context defined by thisLookup
object, as if resolved by anldc
instruction.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.MethodHandles.Lookup.findGetter
(Class<?> refc, String name, Class<?> type) Produces a method handle giving read access to a non-static field.MethodHandles.Lookup.findSetter
(Class<?> refc, String name, Class<?> type) Produces a method handle giving write access to a non-static field.MethodHandles.Lookup.findSpecial
(Class<?> refc, String name, MethodType type, Class<?> specialCaller) Produces an early-bound method handle for a virtual method.MethodHandles.Lookup.findStatic
(Class<?> refc, String name, MethodType type) Produces a method handle for a static method.MethodHandles.Lookup.findStaticGetter
(Class<?> refc, String name, Class<?> type) Produces a method handle giving read access to a static field.MethodHandles.Lookup.findStaticSetter
(Class<?> refc, String name, Class<?> type) Produces a method handle giving write access to a static field.MethodHandles.Lookup.findStaticVarHandle
(Class<?> decl, String name, Class<?> type) Produces a VarHandle giving access to a static fieldname
of typetype
declared in a class of typedecl
.MethodHandles.Lookup.findVarHandle
(Class<?> recv, String name, Class<?> type) Produces a VarHandle giving access to a non-static fieldname
of typetype
declared in a class of typerecv
.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 caller) Returns alookup
object on a target class to emulate all supported bytecode behaviors, including private access.Makes a direct method handle to m, if the lookup class has permission.MethodHandles.Lookup.unreflectConstructor
(Constructor<?> c) Produces a method handle for a reflected constructor.MethodHandles.Lookup.unreflectGetter
(Field f) Produces a method handle giving read access to a reflected field.MethodHandles.Lookup.unreflectSetter
(Field f) Produces a method handle giving write access to a reflected field.MethodHandles.Lookup.unreflectSpecial
(Method m, Class<?> specialCaller) Produces a method handle for a reflected method.MethodHandles.Lookup.unreflectVarHandle
(Field f) Produces a VarHandle giving access to a reflected fieldf
of typeT
declared in a class of typeR
. -
Uses of IllegalAccessException in java.lang.reflect
Modifier and TypeMethodDescriptionReturns the value of the field represented by thisField
, on the specified object.boolean
Field.getBoolean
(Object obj) Gets the value of a static or instanceboolean
field.byte
Gets the value of a static or instancebyte
field.char
Gets the value of a static or instance field of typechar
or of another primitive type convertible to typechar
via a widening conversion.double
Gets the value of a static or instance field of typedouble
or of another primitive type convertible to typedouble
via a widening conversion.float
Gets the value of a static or instance field of typefloat
or of another primitive type convertible to typefloat
via a widening conversion.int
Gets the value of a static or instance field of typeint
or of another primitive type convertible to typeint
via a widening conversion.long
Gets the value of a static or instance field of typelong
or of another primitive type convertible to typelong
via a widening conversion.short
Gets the value of a static or instance field of typeshort
or of another primitive type convertible to typeshort
via a widening conversion.Invokes the underlying method represented by thisMethod
object, on the specified object with the specified parameters.Constructor.newInstance
(Object... initargs) Uses the constructor represented by thisConstructor
object to create and initialize a new instance of the constructor's declaring class, with the specified initialization parameters.void
Sets the field represented by thisField
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 aboolean
on the specified object.void
Sets the value of a field as abyte
on the specified object.void
Sets the value of a field as achar
on the specified object.void
Sets the value of a field as adouble
on the specified object.void
Sets the value of a field as afloat
on the specified object.void
Sets the value of a field as anint
on the specified object.void
Sets the value of a field as along
on the specified object.void
Sets the value of a field as ashort
on the specified object. -
Uses of IllegalAccessException in java.util
Modifier and TypeMethodDescriptionResourceBundle.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
Modifier and TypeMethodDescriptionstatic void
UIManager.setLookAndFeel
(String className) Loads theLookAndFeel
specified by the given class name, using the current thread's context class loader, and passes it tosetLookAndFeel(LookAndFeel)
. -
Uses of IllegalAccessException in org.w3c.dom.bootstrap
Modifier and TypeMethodDescriptionstatic DOMImplementationRegistry
DOMImplementationRegistry.newInstance()
Obtain a new instance of aDOMImplementationRegistry
. -
Uses of IllegalAccessException in org.xml.sax.helpers
Modifier and TypeMethodDescriptionstatic 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.