Uses of Class
java.lang.reflect.Constructor
-
Packages that use Constructor Package Description java.lang Provides classes that are fundamental to the design of the Java programming language.java.lang.invoke Thejava.lang.invoke
package contains dynamic language support provided directly by the Java core class libraries and virtual machine.javax.management Provides the core classes for the Java Management Extensions.javax.management.modelmbean Provides the definition of the ModelMBean classes. -
-
Uses of Constructor in java.lang
Methods in java.lang that return Constructor Modifier and Type Method and Description Constructor<T>
Class. 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.Constructor<T>
Class. getDeclaredConstructor(Class<?>... parameterTypes)
Returns aConstructor
object that reflects the specified constructor of the class or interface represented by thisClass
object.Constructor<?>[]
Class. getDeclaredConstructors()
Returns an array ofConstructor
objects reflecting all the constructors 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
Methods in java.lang.invoke with parameters of type Constructor Modifier and Type Method and Description MethodHandle
MethodHandles.Lookup. unreflectConstructor(Constructor<?> c)
Produces a method handle for a reflected constructor. -
Uses of Constructor in javax.management
Constructors in javax.management with parameters of type Constructor Constructor and Description MBeanConstructorInfo(String description, Constructor<?> constructor)
Constructs anMBeanConstructorInfo
object. -
Uses of Constructor in javax.management.modelmbean
Constructors in javax.management.modelmbean with parameters of type Constructor Constructor and Description ModelMBeanConstructorInfo(String description, Constructor<?> constructorMethod)
Constructs a ModelMBeanConstructorInfo object with a default descriptor.ModelMBeanConstructorInfo(String description, Constructor<?> constructorMethod, Descriptor descriptor)
Constructs a ModelMBeanConstructorInfo object.
-
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.