AccessibleObject allows suppression of access checks if
ReflectPermission is available.
Array provides static methods to dynamically create and
Classes in this package, along with
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.
Interface Summary Interface Description AnnotatedArrayType
AnnotatedArrayTyperepresents the potentially annotated use of an array type, whose component type may itself represent the annotated use of a type.
AnnotatedElementRepresents an annotated element of the program currently running in this VM. AnnotatedParameterizedType
AnnotatedParameterizedTyperepresents the potentially annotated use of a parameterized type, whose type arguments may themselves represent annotated uses of types.
AnnotatedTyperepresents the potentially annotated use of a type in the program currently running in this VM.
AnnotatedTypeVariablerepresents the potentially annotated use of a type variable, whose declaration may have bounds which themselves represent annotated uses of types.
AnnotatedWildcardTyperepresents the potentially annotated use of a wildcard type argument, whose upper or lower bounds may themselves represent annotated uses of types.
GenericArrayTyperepresents an array type whose component type is either a parameterized type or a type variable.
GenericDeclarationA common interface for all entities that declare type variables. InvocationHandler
InvocationHandleris the interface implemented by the invocation handler of a proxy instance.
MemberMember is an interface that reflects identifying information about a single member (a field or a method) or a constructor. ParameterizedTypeParameterizedType represents a parameterized type such as Collection<String>. TypeType 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. WildcardTypeWildcardType represents a wildcard type expression, such as
? extends Number, or
? super Integer.
Class Summary Class Description AccessibleObjectThe
AccessibleObjectclass is the base class for
Constructorobjects (known as reflected objects).
Arrayclass provides static methods to dynamically create and access Java arrays.
Constructorprovides information about, and access to, a single constructor for a class.
Fieldprovides information about, and dynamic access to, a single field of a class or an interface.
Methodprovides information about, and access to, a single method on a class or interface.
ModifierThe Modifier class provides
staticmethods and constants to decode class and member access modifiers.
ParameterInformation about method parameters. Proxy
Proxyprovides static methods for creating objects that act like instances of interfaces but allow for customized method invocation.
RecordComponentAssociated with records, a preview feature of the Java language.
RecordComponentprovides information about, and dynamic access to, a component of a record class.
ReflectPermissionThe Permission class for reflective operations.
Exception Summary Exception Description InaccessibleObjectExceptionThrown when Java language access checks cannot be suppressed. InvocationTargetExceptionInvocationTargetException is a checked exception that wraps an exception thrown by an invoked method or constructor. MalformedParameterizedTypeExceptionThrown when a semantically malformed parameterized type is encountered by a reflective method that needs to instantiate it. MalformedParametersExceptionThrown when
the java.lang.reflect packageattempts to read method parameters from a class file and determines that one or more parameters are malformed.
UndeclaredThrowableExceptionThrown by a method invocation on a proxy instance if its invocation handler's
invokemethod throws a checked exception (a
Throwablethat is not assignable to
Error) that is not assignable to any of the exception types declared in the
throwsclause of the method that was invoked on the proxy instance and dispatched to the invocation handler.
Error Summary Error Description GenericSignatureFormatErrorThrown 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.