Package java.lang.reflect
See: Description
-
Interface Summary Interface Description AnnotatedElement Represents an annotated element of the program currently running in this VM.GenericArrayType GenericArrayType
represents an array type whose component type is either a parameterized type or a type variable.GenericDeclaration A common interface for all entities that declare type variables.InvocationHandler InvocationHandler
is the interface implemented by the invocation handler of a proxy instance.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?
,? extends Number
, or? super Integer
. -
Class Summary Class Description AccessibleObject The AccessibleObject class is the base class for Field, Method and Constructor objects.Array TheArray
class provides static methods to dynamically create and access Java arrays.Constructor<T> Constructor
provides information about, and access to, a single constructor for a class.Field AField
provides information about, and dynamic access to, a single field of a class or an interface.Method AMethod
provides information about, and access to, a single method on a class or interface.Modifier The Modifier class providesstatic
methods and constants to decode class and member access modifiers.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 The Permission class for reflective operations. -
Exception Summary 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.UndeclaredThrowableException Thrown by a method invocation on a proxy instance if its invocation handler'sinvoke
method throws a checked exception (aThrowable
that is not assignable toRuntimeException
orError
) that is not assignable to any of the exception types declared in thethrows
clause of the method that was invoked on the proxy instance and dispatched to the invocation handler. -
Error Summary 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
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
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-java/lang/reflect/package-summary.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.