java.lang.reflect - JRE Emulation | JRE Emulation


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.


AnnotatedElement Represents an annotated element of the program currently running in this VM. 
AnnotatedType Stub implementation of java.lang.reflect.AnnotatedType. 
GenericArrayType This interface represents an array type with a component type that is either a parameterized type or a type variable. 
GenericDeclaration Common interface for language constructs that declare type parameters. 
InvocationHandler Implementors of this interface dispatch methods invoked on proxy instances. 
Member Common interface providing access to reflective information on class members. 
ParameterizedType This interface represents a parameterized type such as 'Set<String>'
Type Type is the common superinterface for all types in the Java programming language. 
TypeVariable<D extends GenericDeclaration> This interface represents a type variables such as 'T' in 'public interface Comparable<T>', the bounded 'T' in 'public interface A<T extends Number>' or the multiple bounded 'T' in 'public interface B<T extends Number & Cloneable>'
WildcardType A pattern type, such as the upper bounded wildcard ? extends Closeable or the lower bounded wildcard ? super String


AccessibleObject Stub implementation of AccessibleObject. 
Array Provides static methods to create and access arrays dynamically. 
Constructor<T> Stub implementation of Constructor. 
Executable Stub implementation of Executable. 
Field Stub implementation of Field. 
Method Stub implementation of Method. 
Modifier The Modifier class provides static methods and constants to decode class and member access modifiers. 
Proxy Proxy defines methods for creating dynamic proxy classes and instances. 
ReflectPermission Legacy security code; do not use. 


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's 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. 


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.