Constructor - JRE Emulation | JRE Emulation
public class

Constructor

extends AccessibleObject
implements GenericDeclaration Member
java.lang.Object
   ↳ java.lang.reflect.AccessibleObject
     ↳ java.lang.reflect.Constructor<T>

Class Overview

Stub implementation of Constructor. The actual implementation is in Constructor.h and Constructor.m, so the declared methods in this class should match the actual methods implemented in order to catch unsupported API references.

See Also

Summary

[Expand]
Inherited Constants
From interface java.lang.reflect.Member
Public Constructors
Constructor()
Public Methods
<T extends Annotation> T getAnnotation(Class<T> annotationClass)
Returns this element's annotation for the specified type if such an annotation is present, else null.
Annotation[] getDeclaredAnnotations()
Returns annotations that are directly present on this element.
Class<T> getDeclaringClass()
Returns the class that declares this member.
Class[] getExceptionTypes()
Type[] getGenericExceptionTypes()
Type[] getGenericParameterTypes()
int getModifiers()
Returns the modifiers for this member.
String getName()
Returns the name of this member.
Annotation[][] getParameterAnnotations()
Class[]<?> getParameterTypes()
TypeVariable[]<Method> getTypeParameters()
Returns the declared type parameters in declaration order.
boolean isSynthetic()
Indicates whether or not this member is synthetic (artificially introduced by the compiler).
boolean isVarArgs()
T newInstance(Object... initargs)
String toGenericString()
Inherited Methods
[Expand]
From class java.lang.reflect.AccessibleObject
From class java.lang.Object
From interface java.lang.reflect.AnnotatedElement
From interface java.lang.reflect.GenericDeclaration
From interface java.lang.reflect.Member

Public Constructors

public Constructor ()

Public Methods

public T getAnnotation (Class<T> annotationClass)

Returns this element's annotation for the specified type if such an annotation is present, else null.

Parameters
annotationClass the Class object corresponding to the annotation type
Returns
  • this element's annotation for the specified annotation type if present on this element, else null

public Annotation[] getDeclaredAnnotations ()

Returns annotations that are directly present on this element. This method ignores inherited annotations. If there are no annotations directly present on this element, the return value is an array of length 0. The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers.

Returns
  • annotations directly present on this element

public Class<T> getDeclaringClass ()

Returns the class that declares this member.

Returns
  • the declaring class

public Class[] getExceptionTypes ()

public Type[] getGenericExceptionTypes ()

public Type[] getGenericParameterTypes ()

public int getModifiers ()

Returns the modifiers for this member. The Modifier class should be used to decode the result.

Returns
  • the modifiers for this member

public String getName ()

Returns the name of this member.

Returns
  • the name of this member

public Annotation[][] getParameterAnnotations ()

public Class[]<?> getParameterTypes ()

public TypeVariable[]<Method> getTypeParameters ()

Returns the declared type parameters in declaration order. If there are no type parameters, this method returns a zero length array.

Returns
  • the declared type parameters in declaration order

public boolean isSynthetic ()

Indicates whether or not this member is synthetic (artificially introduced by the compiler).

Returns
  • true if this member is synthetic, false otherwise

public boolean isVarArgs ()

public String toGenericString ()