com.aurorasoftworks.signal.runtime.core.context.proxy
Interface IMethodHandler

All Known Implementing Classes:
AbstractMethodHandler

public interface IMethodHandler

Provides information on a class method. This is an equivalent of the Method class.

Author:
Marek

Method Summary
 java.lang.Class[] getArgumentTypes()
          Returns the types of arguments this methods accepts.
 java.lang.String getMethodName()
          Returns the name of this method object
 java.lang.Object invoke(IProxyTarget target, java.lang.Object[] args)
          Invokes a method this object represents on the provided instance.
 boolean matchesArgumentTypes(java.lang.Class[] types)
          Determines if the signature of this method object matches the provided sequence of types.
 

Method Detail

invoke

java.lang.Object invoke(IProxyTarget target,
                        java.lang.Object[] args)
                        throws java.lang.Exception
Invokes a method this object represents on the provided instance.

Parameters:
target - object instance to invoke the method on
args - method arguments
Returns:
value returned by the method (null if the return type is void)
Throws:
java.lang.Exception

getMethodName

java.lang.String getMethodName()
Returns the name of this method object

Returns:
name of this method

getArgumentTypes

java.lang.Class[] getArgumentTypes()
Returns the types of arguments this methods accepts.

Returns:
a sequence of types that matches the signature of this method object (an empty array if the method does not accept any arguments)

matchesArgumentTypes

boolean matchesArgumentTypes(java.lang.Class[] types)
Determines if the signature of this method object matches the provided sequence of types.

Parameters:
types - a sequence of types to compare the signature of this method object to
Returns:
true if a match is found, false otherwise


Copyright © 2010. All Rights Reserved.