Google is committed to advancing racial equity for Black communities. See how.

java.lang.reflect

Classes

AccessibleObject

The AccessibleObject class is the base class for Field, Method and Constructor objects.

Array

The Array class provides static methods to dynamically create and access Java arrays.

Constructor

Constructor provides information about, and access to, a single constructor for a class.

Executable

A shared superclass for the common functionality of Method and Constructor.

Field

A Field provides information about, and dynamic access to, a single field of a class or an interface.

Method

A Method provides information about, and access to, a single method on a class or interface.

Modifier

The Modifier class provides static methods and constants to decode class and member access modifiers.

Parameter

Information about method parameters.

Proxy

Proxy provides static methods for creating dynamic proxy classes and instances, and it is also the superclass of all dynamic proxy classes created by those methods.

ReflectPermission

Legacy security code; do not use.

Exceptions

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.

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 the attempts to read method parameters from a class file and determines that one or more parameters are malformed.

UndeclaredThrowableException

Thrown by a method invocation on a proxy instance if its invocation handler's InvocationHandler#invoke method throws a checked exception (a Throwable that is not assignable to RuntimeException or Error) that is not assignable to any of the exception types declared in the throws clause of the method that was invoked on the proxy instance and dispatched to the invocation handler.