Java java.lang.reflect Constructor fields, constructors, methods, implement or subclass

Example usage for Java java.lang.reflect Constructor fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.lang.reflect Constructor.

The text is from its open source code.

Method

booleanequals(Object obj)
Compares this Constructor against the specified object.
TgetAnnotation(Class annotationClass)
Annotation[]getAnnotations()
ClassgetClass()
Returns the runtime class of this Object .
Annotation[]getDeclaredAnnotations()
ClassgetDeclaringClass()
Returns the Class object representing the class that declares the constructor represented by this object.
Class[]getExceptionTypes()
Type[]getGenericExceptionTypes()
Type[]getGenericParameterTypes()
intgetModifiers()
StringgetName()
Returns the name of this constructor, as a string.
Annotation[][]getParameterAnnotations()
intgetParameterCount()
Parameter[]getParameters()
Returns an array of Parameter objects that represent all the parameters to the underlying executable represented by this object.
Class[]getParameterTypes()
TypeVariable>[]getTypeParameters()
inthashCode()
Returns a hashcode for this Constructor .
booleanisAccessible()
Get the value of the accessible flag for this reflected object.
booleanisAnnotationPresent(Class annotationClass)
booleanisSynthetic()
booleanisVarArgs()
TnewInstance(Object... initargs)
Uses the constructor represented by this Constructor object to create and initialize a new instance of the constructor's declaring class, with the specified initialization parameters.
voidsetAccessible(boolean flag)

A SecurityException is also thrown if this object is a Constructor object for the class Class and flag is true.

StringtoGenericString()
Returns a string describing this Constructor , including type parameters.
StringtoString()
Returns a string describing this Constructor .