|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JClassMethod
This interface represents a class method (static or not) or a constructor.
| Method Summary | |
|---|---|
byte[] |
getBytecode()
Returns an array of bytes containg the byte code of the method or the constructor represented by this JClassMethod object. |
JClass |
getDeclaringClass()
Returns the JClass object representing the class or interface that declares the method or the constructor represented by this JClassMethod object. |
java.lang.String |
getDescriptor()
Returns the descriptor of the method or the constructor represented by this JClassMethod 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 JClassMethod 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 or the constructor represented by this JClassMethod object, as an integer. |
java.lang.String |
getName()
Returns the name of the method or the constructor represented by this JClassMethod object, as a String. |
JClass[] |
getParameterTypes()
Returns an array of JClass objects that represent the formal parameter types, in declaration order, of the method or the constructor represented by this JClassMethod object. |
void |
invoke(JMethodInvoker invoker,
JThread thread)
Invokes the methods represented by this JClassMethod via the specified method invoker and into the specified thread. |
| Method Detail |
|---|
JClass getDeclaringClass()
java.lang.String getName()
int getModifiers()
Modifierjava.lang.String getDescriptor()
JClass[] getParameterTypes()
JClass[] getExceptionTypes()
byte[] getBytecode()
int getMaxStack()
int getMaxLocals()
void invoke(JMethodInvoker invoker,
JThread thread)
throws java.lang.Exception
invoker - a method invokerthread - the thread into which the method will be executed
java.lang.Exception - if the executed method throws an exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||