Package | Description |
---|---|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
Modifier and Type | Method and Description |
---|---|
java.lang.reflect.Constructor<T> |
Class.getConstructor(Class<?>... parameterTypes)
Returns a
Constructor object that reflects the specified
public constructor of the class represented by this Class
object. |
java.lang.reflect.Constructor<?>[] |
Class.getConstructors()
Returns an array containing
Constructor objects reflecting
all the public constructors of the class represented by this
Class object. |
Class<?>[] |
Class.getDeclaredClasses()
Returns an array of
Class objects reflecting all the
classes and interfaces declared as members of the class represented by
this Class object. |
java.lang.reflect.Constructor<T> |
Class.getDeclaredConstructor(Class<?>... parameterTypes)
Returns a
Constructor object that reflects the specified
constructor of the class or interface represented by this
Class object. |
java.lang.reflect.Constructor<?>[] |
Class.getDeclaredConstructors()
Returns an array of
Constructor objects reflecting all the
constructors declared by the class represented by this
Class object. |
java.lang.reflect.Field |
Class.getDeclaredField(String name)
Returns a
Field object that reflects the specified declared
field of the class or interface represented by this Class
object. |
java.lang.reflect.Field[] |
Class.getDeclaredFields()
Returns an array of
Field objects reflecting all the fields
declared by the class or interface represented by this
Class object. |
java.lang.reflect.Method |
Class.getDeclaredMethod(String name,
Class<?>... parameterTypes)
Returns a
Method object that reflects the specified
declared method of the class or interface represented by this
Class object. |
java.lang.reflect.Method[] |
Class.getDeclaredMethods()
Returns an array of
Method objects reflecting all the
methods declared by the class or interface represented by this
Class object. |
java.lang.reflect.Field |
Class.getField(String name)
Returns a
Field object that reflects the specified public
member field of the class or interface represented by this
Class object. |
java.lang.reflect.Field[] |
Class.getFields()
Returns an array containing
Field objects reflecting all
the accessible public fields of the class or interface represented by
this Class object. |
java.lang.reflect.Method |
Class.getMethod(String name,
Class<?>... parameterTypes)
Returns a
Method object that reflects the specified public
member method of the class or interface represented by this
Class object. |
java.lang.reflect.Method[] |
Class.getMethods()
Returns an array containing
Method objects reflecting all
the public member methods of the class or interface represented
by this Class object, including those declared by the class
or interface and those inherited from superclasses and
superinterfaces. |