Constructor provides information about, and access to, a single constructor for a class.
More...
#include <java_lang_reflect_Constructor.h>
Inheritance diagram for java::lang::reflect::Constructor:


Public Types | |
| enum | { xmogDefaultFlags = xmog_base::GLOBAL, xmogMajorVersion = 3, xmogMinorVersion = 2, xmogPatchVersion = 9, xmogBuildNumber = 2047 } |
|
typedef ::xmog_java_array_template< ::java::lang::reflect::Constructor > | array1D |
|
typedef ::xmog_java_array_template< ::xmog_java_array_template< ::java::lang::reflect::Constructor > > | array2D |
Public Member Functions | |
| Constructor (const ::java::lang::Class &declaringClass, const ::xmog_java_array_template< ::java::lang::Class > ¶meterTypes, const ::xmog_java_array_template< ::java::lang::Class > &checkedExceptions, jint modifiers, jint slot,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) | |
| Package-private constructor used by ReflectAccess to enable instantiation of these objects in Java code from the java.lang package via sun.reflect.LangReflectAccess. | |
| bool | equals (const ::java::lang::Object &obj,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Compares this Constructor against the specified object. | |
| ::java::lang::Class | getDeclaringClass (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns the Class object representing the class that declares the constructor represented by this Constructor object. | |
| ::xmog_java_array_template< ::java::lang::Class > | getExceptionTypes (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns an array of Class objects that represent the types of of exceptions declared to be thrown by the underlying constructor represented by this Constructor object. | |
| jint | getModifiers (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns the Java language modifiers for the constructor represented by this Constructor object, as an integer. | |
| ::java::lang::String | getName (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Returns the name of this constructor, as a string. | |
| ::xmog_java_array_template< ::java::lang::Class > | getParameterTypes (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns an array of Class objects that represent the formal parameter types, in declaration order, of the constructor represented by this Constructor object. | |
| jint | hashCode (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns a hashcode for this Constructor. | |
| ::java::lang::Object | newInstance (const ::xmog_java_array_template< ::java::lang::Object > &initargs,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
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. | |
| ::java::lang::String | toString (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
Returns a string describing this Constructor. | |
Constructor provides information about, and access to, a single constructor for a class.
Constructor permits widening conversions to occur when matching the actual parameters to newInstance() with the underlying constructor's formal parameters, but throws an IllegalArgumentException if a narrowing conversion would occur.
Nakul Saraiya
|
||||||||||||||||||||||||||||||||
|
Package-private constructor used by ReflectAccess to enable instantiation of these objects in Java code from the java.lang package via sun.reflect.LangReflectAccess.
|
|
||||||||||||||||
|
Compares this
Returns true if the objects are the same. Two
Reimplemented from java::lang::Object. |
|
||||||||||||
|
Returns the
Reimplemented from java::lang::reflect::Member. |
|
||||||||||||
|
Returns an array of
Returns an array of length 0 if the constructor declares no exceptions in its
|
|
||||||||||||
|
Returns the Java language modifiers for the constructor represented by this
The
Reimplemented from java::lang::reflect::Member. |
|
||||||||||||
|
Returns the name of this constructor, as a string. This is always the same as the simple name of the constructor's declaring class.
Reimplemented from java::lang::reflect::Member. |
|
||||||||||||
|
Returns an array of Returns an array of length 0 if the underlying constructor takes no parameters.
|
|
||||||||||||
|
Returns a hashcode for this The hashcode is the same as the hashcode for the underlying constructor's declaring class name.
Reimplemented from java::lang::Object. |
|
||||||||||||||||
|
Uses the constructor represented by this Individual parameters are automatically unwrapped to match primitive formal parameters, and both primitive and reference parameters are subject to method invocation conversions as necessary.
If the number of formal parameters required by the underlying constructor is 0, the supplied If the required access and argument checks succeed and the instantiation will proceed, the constructor's declaring class is initialized if it has not already been initialized. If the constructor completes normally, returns the newly created and initialized instance.
|
|
||||||||||||
|
Returns a string describing this The string is formatted as the constructor access modifiers, if any, followed by the fully-qualified name of the declaring class, followed by a parenthesized, comma-separated list of the constructor's formal parameter types. For example:
public java.util.Hashtable(int,float)
The only possible modifiers for constructors are the access modifiers
Reimplemented from java::lang::Object. |
1.4.1