org.objectweb.proactive.core.mop
Class ConstructorCallImpl

java.lang.Object
  |
  +--org.objectweb.proactive.core.mop.ConstructorCallImpl
All Implemented Interfaces:
ConstructorCall, java.io.Serializable

public class ConstructorCallImpl
extends java.lang.Object
implements ConstructorCall, java.io.Serializable

A reified constructor call.

See Also:
Serialized Form

Field Summary
 java.lang.Object[] effectiveArguments
          The array holding the arguments og the constructor
 java.lang.reflect.Constructor reifiedConstructor
          The corresponding constructor object
 
Constructor Summary
ConstructorCallImpl(java.lang.reflect.Constructor reifiedConstructor, java.lang.Object[] effectiveArguments)
          Effective constructor
 
Method Summary
 java.lang.Object execute()
          Performs the object construction that is reified vy this object
protected  java.lang.Class getReifiedClass()
          Returns a Class object representing the type of the object this reified constructor will build when reflected
 java.lang.String getTargetClassName()
          Return the name of the target class that constructor is for
 void makeDeepCopyOfArguments()
          Make a deep copy of all arguments of the constructor
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

effectiveArguments

public java.lang.Object[] effectiveArguments
The array holding the arguments og the constructor


reifiedConstructor

public java.lang.reflect.Constructor reifiedConstructor
The corresponding constructor object

Constructor Detail

ConstructorCallImpl

public ConstructorCallImpl(java.lang.reflect.Constructor reifiedConstructor,
                           java.lang.Object[] effectiveArguments)
Effective constructor

Parameters:
reifiedConstructor - the constructor object which is called
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

makeDeepCopyOfArguments

public void makeDeepCopyOfArguments()
                             throws java.io.IOException
Make a deep copy of all arguments of the constructor

Specified by:
makeDeepCopyOfArguments in interface ConstructorCall
java.io.IOException

getTargetClassName

public java.lang.String getTargetClassName()
Return the name of the target class that constructor is for

Specified by:
getTargetClassName in interface ConstructorCall

execute

public java.lang.Object execute()
                         throws java.lang.reflect.InvocationTargetException,
                                ConstructorCallExecutionFailedException
Performs the object construction that is reified vy this object

Specified by:
execute in interface ConstructorCall
Throws:
java.lang.reflect.InvocationTargetException
ConstructorCallExecutionFailedException

getReifiedClass

protected java.lang.Class getReifiedClass()
Returns a Class object representing the type of the object this reified constructor will build when reflected



Copyright © April 2004 INRIA All Rights Reserved.