fr.umlv.corosol.component
Interface JMethod

All Superinterfaces:
JClassMethod, JObject
All Known Implementing Classes:
DefaultJMethod

public interface JMethod
extends JClassMethod

This interface represents a class method (static or not) and contains methods which permit to retrieve all informations about this method.

Author:
Christophe Deleray

Method Summary
 java.lang.reflect.Method getNativeMethod()
          Returns the java.lang.reflect.Method object equivalent to this JMethod object.
 JClass getReturnType()
          Returns a JClass object that represents the formal return type of the method represented by this JClassMethod object.
 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.
 
Methods inherited from interface fr.umlv.corosol.component.JClassMethod
getBytecode, getDeclaringClass, getDescriptor, getExceptionTypes, getMaxLocals, getMaxStack, getModifiers, getName, getParameterTypes, invoke
 

Method Detail

isStatic

boolean isStatic()
Determines if the method specified by this JMethod object is static.

Returns:
true if and only if this method is static; false otherwise.

isAbstract

boolean isAbstract()
Determines if the method specified by this JMethod object is abstract.

Returns:
true if and only if this method is abstract; false otherwise.

isNative

boolean isNative()
Determines if the method specified by this JMethod object is native.

Returns:
true if and only if this method is native; false otherwise.

getReturnType

JClass getReturnType()
Returns a JClass object that represents the formal return type of the method represented by this JClassMethod object.

Returns:
the return type for the method or the constructor this object represents

getNativeMethod

java.lang.reflect.Method getNativeMethod()
Returns the java.lang.reflect.Method object equivalent to this JMethod object.

Returns:
the java.lang.reflect.Method object equivalent to this JMethod object
See Also:
Method