|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.umlv.corosol.component.impl.DefaultJMethod
public class DefaultJMethod
This is the default implementation of the JMethod interface.
| Constructor Summary | |
|---|---|
DefaultJMethod(JClass declaringClass,
JClassMember methodInfo)
Creates a new DefaultJMethod object initialized with the specified class file item that containing the method datas and with the specified declaring class. |
|
| Method Summary | |
|---|---|
byte[] |
getBytecode()
Returns an array of bytes containg the byte code of the method represented by this JMethod object. |
JClass |
getDeclaringClass()
Returns the JClass object representing the class or interface that declares the method represented by this JMethod object. |
java.lang.String |
getDescriptor()
Returns the descriptor of the method represented by this JMethod 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 method represented by this JMethod object. |
int |
getMaxLocals()
Returns the number of local variables in the local variable array allocated upon invocation of this method, including the local variables used to pass parameters to this method on its invocation. |
int |
getMaxStack()
Returns the maximum depth of the operand stack of a frame at any point during execution of this method. |
int |
getModifiers()
Returns the Java language modifiers for the method represented by this JMethod object, as an integer. |
java.lang.String |
getName()
Returns the name of the method represented by this JMethod object, as a String. |
java.lang.reflect.Method |
getNativeMethod()
Returns the java.lang.reflect.Method object equivalent to this JMethod object. |
JClass[] |
getParameterTypes()
Returns an array of JClass objects that represent the formal parameter types, in declaration order, of the method represented by this JMethod object. |
JClass |
getReturnType()
Returns a JClass object that represents the formal return type of the method represented by this JMethod object. |
void |
invoke(JMethodInvoker invoker,
JThread thread)
Invokes the methods represented by this JClassMethod via the specified method invoker and into the specified thread. |
boolean |
isAbstract()
Determines if the method specified by this JMethod object is abstract. |
boolean |
isNative()
Determines if the method specified by this JMethod object is native. |
boolean |
isStatic()
Determines if the method specified by this JMethod object is static. |
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 DefaultJMethod(JClass declaringClass,
JClassMember methodInfo)
declaringClass - the class declaring the methodmethodInfo - the class file item containing the method datas| Method Detail |
|---|
public java.lang.reflect.Method getNativeMethod()
getNativeMethod in interface JMethodMethodpublic JClass getDeclaringClass()
getDeclaringClass in interface JClassMethodpublic java.lang.String getName()
getName in interface JClassMethodpublic int getModifiers()
getModifiers in interface JClassMethodModifierpublic java.lang.String getDescriptor()
getDescriptor in interface JClassMethodpublic JClass getReturnType()
getReturnType in interface JMethodpublic 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 JClassMethodpublic boolean isStatic()
isStatic in interface JMethodpublic boolean isAbstract()
isAbstract in interface JMethodpublic boolean isNative()
isNative in interface JMethod
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 | ||||||||