Uses of Class
java.lang.reflect.Constructor
Package
Description
Provides classes that are fundamental to the design of the Java
programming language.
The
java.lang.invoke
package provides low-level primitives for interacting
with the Java Virtual Machine.Provides classes and interfaces for obtaining reflective information about
classes and objects.
Provides the core classes for the Java Management Extensions.
Provides the definition of the ModelMBean classes.
Contains classes that make it more convenient for language runtimes to
implement their own language-specific object models and type conversions
by providing basic implementations of some classes as well as various
utilities.
-
Uses of Constructor in java.lang
Modifier and TypeMethodDescriptionClass.getConstructor
(Class<?>... parameterTypes) Returns aConstructor
object that reflects the specified public constructor of the class represented by thisClass
object.Constructor<?>[]
Class.getConstructors()
Returns an array containingConstructor
objects reflecting all the public constructors of the class represented by thisClass
object.Class.getDeclaredConstructor
(Class<?>... parameterTypes) Returns aConstructor
object that reflects the specified constructor of the class represented by thisClass
object.Constructor<?>[]
Class.getDeclaredConstructors()
Returns an array ofConstructor
objects reflecting all the constructors implicitly or explicitly declared by the class represented by thisClass
object.Constructor<?>
Class.getEnclosingConstructor()
If thisClass
object represents a local or anonymous class within a constructor, returns aConstructor
object representing the immediately enclosing constructor of the underlying class. -
Uses of Constructor in java.lang.invoke
Modifier and TypeMethodDescriptionMethodHandles.Lookup.unreflectConstructor
(Constructor<?> c) Produces a method handle for a reflected constructor. -
Uses of Constructor in java.lang.reflect
Modifier and TypeMethodDescriptionTypeVariable<Constructor<T>>[]
Constructor.getTypeParameters()
Returns an array ofTypeVariable
objects that represent the type variables declared by the generic declaration represented by thisGenericDeclaration
object, in declaration order. -
Uses of Constructor in javax.management
ModifierConstructorDescriptionMBeanConstructorInfo
(String description, Constructor<?> constructor) Constructs anMBeanConstructorInfo
object. -
Uses of Constructor in javax.management.modelmbean
ModifierConstructorDescriptionModelMBeanConstructorInfo
(String description, Constructor<?> constructorMethod) Constructs a ModelMBeanConstructorInfo object with a default descriptor.ModelMBeanConstructorInfo
(String description, Constructor<?> constructorMethod, Descriptor descriptor) Constructs a ModelMBeanConstructorInfo object. -
Uses of Constructor in jdk.dynalink.linker.support
Modifier and TypeMethodDescriptionstatic MethodHandle
Lookup.unreflectConstructor
(MethodHandles.Lookup lookup, Constructor<?> c) Performs aMethodHandles.Lookup.unreflectConstructor(Constructor)
, converting any encounteredIllegalAccessException
into anIllegalAccessError
.Lookup.unreflectConstructor
(Constructor<?> c) Performs aMethodHandles.Lookup.unreflectConstructor(Constructor)
, converting any encounteredIllegalAccessException
into anIllegalAccessError
.