edu.mit.csail.sdg.squander.engine.ISquander Interface Reference
[Engine]

Inherited by edu.mit.csail.sdg.squander.engine.SquanderImpl.

List of all members.

Public Member Functions

< R > R magic (Object caller, Method method, Object[] methodArgs)
< R > R magic (Object caller, JMethod method, Object[] methodArgs)
ISquanderResult getLastResult ()

Package Functions

< R > R magic (Object caller, String clsName, String methodName, Class<?>[] methodParamTypes, Object[] methodArgs)

Detailed Description

Interface to the most essential Squander functions.

Author:
Aleksandar Milicevic

Definition at line 16 of file ISquander.java.


Member Function Documentation

ISquanderResult edu.mit.csail.sdg.squander.engine.ISquander.getLastResult (  ) 

Returns the result of the last execution.

Implemented in edu.mit.csail.sdg.squander.engine.SquanderImpl.

Referenced by edu.mit.csail.sdg.squander.Squander.getLastResult().

<R> R edu.mit.csail.sdg.squander.engine.ISquander.magic ( Object  caller,
JMethod  method,
Object[]  methodArgs 
)

Executes the specification of the given JMethod

Parameters:
<R> - the return type
caller - the caller instance (null if the method is static)
method - Squander's internal representation of a method (which includes method's spec). This can be used to execute specs that are not necessarily given as annotations on a Java method
methodArgs - actual method arguments
Returns:
- the result of the method's execution (or nothing if the type is void)

Implemented in edu.mit.csail.sdg.squander.engine.SquanderImpl.

<R> R edu.mit.csail.sdg.squander.engine.ISquander.magic ( Object  caller,
Method  method,
Object[]  methodArgs 
)

Executes the specification of the given Java method

Parameters:
<R> - the return type
caller - the caller instance (null if the method is static)
method - Java method
methodArgs - actual method arguments
Returns:
- the result of the method's execution (or nothing if the type is void)

Implemented in edu.mit.csail.sdg.squander.engine.SquanderImpl.

<R> R edu.mit.csail.sdg.squander.engine.ISquander.magic ( Object  caller,
String  clsName,
String  methodName,
Class<?>[]  methodParamTypes,
Object[]  methodArgs 
) [package]

Executes the specification for the given method.

Parameters:
<R> - the return type
caller - the caller instance (null if the method is static)
clsName - name of the declaring class
methodName - method name
methodParamTypes - method parameter types
methodArgs - actual method arguments
Returns:
- the result of the method's execution (or nothing if the type is void)

Implemented in edu.mit.csail.sdg.squander.engine.SquanderImpl.

Referenced by edu.mit.csail.sdg.squander.Squander.exe().


The documentation for this interface was generated from the following file:
Generated by  doxygen 1.6.2-20100208