Package java.lang.reflect
Provides classes and interfaces for obtaining reflective information about classes and objects.
See: Description
Interface | Description |
---|---|
AnnotatedArrayType |
|
AnnotatedElement | Represents an annotated element of the program currently running in this VM. |
AnnotatedParameterizedType |
|
AnnotatedType |
|
AnnotatedTypeVariable |
|
AnnotatedWildcardType |
|
GenericArrayType |
|
GenericDeclaration | A common interface for all entities that declare type variables. |
InvocationHandler |
|
Member | Member is an interface that reflects identifying information about a single member (a field or a method) or a constructor. |
ParameterizedType | ParameterizedType represents a parameterized type such as Collection<String>. |
Type | Type is the common superinterface for all types in the Java programming language. |
TypeVariable<D extends GenericDeclaration> | TypeVariable is the common superinterface for type variables of kinds. |
WildcardType | WildcardType represents a wildcard type expression, such as |
Class | Description |
---|---|
AccessibleObject | The AccessibleObject class is the base class for Field, Method and Constructor objects. |
Array | The |
Constructor<T> |
|
Executable | A shared superclass for the common functionality of |
Field | A |
Method | A |
Modifier | The Modifier class provides |
Parameter | Information about method parameters. |
Proxy |
|
ReflectPermission | The Permission class for reflective operations. |
Exception | Description |
---|---|
InvocationTargetException | InvocationTargetException is a checked exception that wraps an exception thrown by an invoked method or constructor. |
MalformedParameterizedTypeException | Thrown when a semantically malformed parameterized type is encountered by a reflective method that needs to instantiate it. |
MalformedParametersException | Thrown when |
UndeclaredThrowableException | Thrown by a method invocation on a proxy instance if its invocation handler's |
Error | Description |
---|---|
GenericSignatureFormatError | Thrown when a syntactically malformed signature attribute is encountered by a reflective method that needs to interpret the generic signature information for a type, method or constructor. |
Package java.lang.reflect Description
Provides classes and interfaces for obtaining reflective information about classes and objects. Reflection allows programmatic access to information about the fields, methods and constructors of loaded classes, and the use of reflected fields, methods, and constructors to operate on their underlying counterparts, within security restrictions.
AccessibleObject
allows suppression of access checks if the necessary ReflectPermission
is available.
Array
provides static methods to dynamically create and access arrays.
Classes in this package, along with java.lang.Class
accommodate applications such as debuggers, interpreters, object inspectors, class browsers, and services such as Object Serialization and JavaBeans that need access to either the public members of a target object (based on its runtime class) or the members declared by a given class.
- Since:
- JDK1.1
© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/package-summary.html