Uses of Class
java.lang.reflect.Constructor
Packages that use 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
Methods in java.lang that return ConstructorModifier and TypeMethodDescriptionClass.getConstructor(Class<?>... parameterTypes) Returns aConstructorobject that reflects the specified public constructor of the class represented by thisClassobject.Constructor<?>[]Class.getConstructors()Returns an array containingConstructorobjects reflecting all the public constructors of the class represented by thisClassobject.Class.getDeclaredConstructor(Class<?>... parameterTypes) Returns aConstructorobject that reflects the specified constructor of the class or interface represented by thisClassobject.Constructor<?>[]Class.getDeclaredConstructors()Returns an array ofConstructorobjects reflecting all the constructors declared by the class represented by thisClassobject.Constructor<?>Class.getEnclosingConstructor()If thisClassobject represents a local or anonymous class within a constructor, returns aConstructorobject representing the immediately enclosing constructor of the underlying class. -
Uses of Constructor in java.lang.invoke
Methods in java.lang.invoke with parameters of type ConstructorModifier and TypeMethodDescriptionMethodHandles.Lookup.unreflectConstructor(Constructor<?> c) Produces a method handle for a reflected constructor. -
Uses of Constructor in java.lang.reflect
Methods in java.lang.reflect that return types with arguments of type ConstructorModifier and TypeMethodDescriptionTypeVariable<Constructor<T>>[]Constructor.getTypeParameters()Returns an array ofTypeVariableobjects that represent the type variables declared by the generic declaration represented by thisGenericDeclarationobject, in declaration order. -
Uses of Constructor in javax.management
Constructors in javax.management with parameters of type ConstructorModifierConstructorDescriptionMBeanConstructorInfo(String description, Constructor<?> constructor) Constructs anMBeanConstructorInfoobject. -
Uses of Constructor in javax.management.modelmbean
Constructors in javax.management.modelmbean with parameters of type ConstructorModifierConstructorDescriptionModelMBeanConstructorInfo(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
Methods in jdk.dynalink.linker.support with parameters of type ConstructorModifier and TypeMethodDescriptionstatic MethodHandleLookup.unreflectConstructor(MethodHandles.Lookup lookup, Constructor<?> c) Performs aMethodHandles.Lookup.unreflectConstructor(Constructor), converting any encounteredIllegalAccessExceptioninto anIllegalAccessError.Lookup.unreflectConstructor(Constructor<?> c) Performs aMethodHandles.Lookup.unreflectConstructor(Constructor), converting any encounteredIllegalAccessExceptioninto anIllegalAccessError.