|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.umlv.corosol.component.impl.DefaultJConstructor
public class DefaultJConstructor
This is the default implementation of the JConstructor interface.
| Field Summary |
|---|
| Fields inherited from interface fr.umlv.corosol.component.JConstructor |
|---|
CLINIT, INIT |
| Constructor Summary | |
|---|---|
DefaultJConstructor(JClass declaringClass,
JClassMember consInfo)
Creates a new DefaultJConstructor object initialized with the specified class file item that containing the constructor datas and with the specified declaring class. |
|
| Method Summary | |
|---|---|
byte[] |
getBytecode()
Returns an array of bytes containg the byte code of the constructor represented by this JConstructor object. |
JClass |
getDeclaringClass()
Returns the JClass object representing the class that declares the constructor represented by this JConstructor object. |
java.lang.String |
getDescriptor()
Returns the descriptor of the constructor represented by this JConstructor object, as a String. |
JClass[] |
getExceptionTypes()
Returns an array of JClass objects that represent the types of the exceptions declared to be thrown by the underlying constructor represented by this JConstructor object. |
int |
getMaxLocals()
Returns the number of local variables in the local variable array allocated upon invocation of this constructor, including the local variables used to pass parameters to this constructor on its invocation. |
int |
getMaxStack()
Returns the maximum depth of the operand stack of a frame at any point during execution of this constructor. |
int |
getModifiers()
Returns the Java language modifiers for the constructor represented by this JConstructor object, as an integer. |
java.lang.String |
getName()
Returns the name of this constructor, as a string. |
java.lang.reflect.Constructor |
getNativeConstructor()
Returns the java.lang.reflect.Constructor object equivalent to this JConstructor object. |
JClass[] |
getParameterTypes()
Returns an array of JClass objects that represent the formal parameter types, in declaration order, of the constructor represented by this JConstructor object. |
void |
invoke(JMethodInvoker invoker,
JThread thread)
Invokes the methods represented by this JClassMethod via the specified method invoker and into the specified thread. |
java.lang.String |
toString()
Returns a string describing this JMethod. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultJConstructor(JClass declaringClass,
JClassMember consInfo)
declaringClass - the class declaring the methodconsInfo - the class file item containing the method datas| Method Detail |
|---|
public java.lang.reflect.Constructor getNativeConstructor()
getNativeConstructor in interface JConstructorConstructorpublic JClass getDeclaringClass()
getDeclaringClass in interface JClassMethodpublic java.lang.String getName()
getName in interface JClassMethodJConstructor.INITpublic int getModifiers()
getModifiers in interface JClassMethodModifierpublic java.lang.String getDescriptor()
getDescriptor in interface JClassMethodpublic JClass[] getParameterTypes()
getParameterTypes in interface JClassMethodpublic JClass[] getExceptionTypes()
getExceptionTypes in interface JClassMethodpublic byte[] getBytecode()
getBytecode in interface JClassMethodpublic int getMaxStack()
getMaxStack in interface JClassMethodpublic int getMaxLocals()
getMaxLocals in interface JClassMethod
public void invoke(JMethodInvoker invoker,
JThread thread)
throws java.lang.Exception
invoke in interface JClassMethodinvoker - a method invokerthread - the thread into which the method will be executed
java.lang.Exception - if the executed method throws an exceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||