edu.mit.csail.sdg.squander.Squander Class Reference
[API]

Collaboration diagram for edu.mit.csail.sdg.squander.Squander:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static< R > R exe (Object caller, Object...methodArgs)
static< R > R exe (Object caller, Class<?>[] methodParamTypes, Object[] methodArgs)
static< R > R exe (Object caller, String clsName, String methodName)
static< R > R exe (Object caller, String clsName, String methodName, Class<?>[] methodParamTypes, Object[] methodArgs)
static ISquanderResult getLastResult ()

Private Member Functions

 Squander ()

Static Private Member Functions

static String getCallerMethod (Throwable t)
static String getCallerClassName (Throwable t)
static StackTraceElement getRightStackTraceElem (Throwable t)

Static Private Attributes

static ISquander lastSqImpl

Detailed Description

Provides a public API to Squander.

Author:
Aleksandar Milicevic (aleks@csail.mit.edu)

Definition at line 25 of file Squander.java.


Constructor & Destructor Documentation

edu.mit.csail.sdg.squander.Squander.Squander (  )  [private]

Definition at line 27 of file Squander.java.


Member Function Documentation

static <R> R edu.mit.csail.sdg.squander.Squander.exe ( Object  caller,
String  clsName,
String  methodName,
Class<?>[]  methodParamTypes,
Object[]  methodArgs 
) [static]

The most general form

Parameters:
<R> - the return type
caller - the caller instance (null if static method)
clsName - declaring class full name
methodName - method name
methodParamTypes - method parameter types
methodArgs - invocation arguments
Returns:
- the return value of the invocation

Definition at line 112 of file Squander.java.

References edu.mit.csail.sdg.squander.parser.JFSLParserException.column, edu.mit.csail.sdg.squander.Squander.lastSqImpl, edu.mit.csail.sdg.squander.engine.ISquander.magic(), and edu.mit.csail.sdg.squander.parser.JFSLParserException.source().

static <R> R edu.mit.csail.sdg.squander.Squander.exe ( Object  caller,
String  clsName,
String  methodName 
) [static]

Executes the given method's specification. Assumes that the method doesn't have any parameters.

Parameters:
<R> - the return type
caller - the caller instance (null if static method)
clsName - declaring class full name
methodName - method name
Returns:
- the return value of the invocation

Definition at line 96 of file Squander.java.

References edu.mit.csail.sdg.squander.Squander.exe().

static <R> R edu.mit.csail.sdg.squander.Squander.exe ( Object  caller,
Class<?>[]  methodParamTypes,
Object[]  methodArgs 
) [static]

Executes the caller method's specification.

Use this method only to invoke Squander from within the method which you want to squander an implementation for.

Parameters:
<R> - the return type
caller - the caller instance (null if static method)
methodParamTypes - method parameter types
methodArgs - invocation arguments
Returns:
- the return value of the invocation

Definition at line 78 of file Squander.java.

References edu.mit.csail.sdg.squander.Squander.exe(), edu.mit.csail.sdg.squander.Squander.getCallerClassName(), and edu.mit.csail.sdg.squander.Squander.getCallerMethod().

static <R> R edu.mit.csail.sdg.squander.Squander.exe ( Object  caller,
Object...  methodArgs 
) [static]

Executes the caller method's specification. Method parameter types are inferred from methodArgs. If there's any ambiguity about that, use Squander#exe(Object, Class[], Object[]).

Use this method only to invoke Squander from within the method which you want to squander an implementation for.

Parameters:
<R> - the return type
caller - the caller instance (null if static method)
methodArgs - invocation arguments
Returns:
- the return value of the invocation

Definition at line 53 of file Squander.java.

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

static String edu.mit.csail.sdg.squander.Squander.getCallerClassName ( Throwable  t  )  [static, private]
static String edu.mit.csail.sdg.squander.Squander.getCallerMethod ( Throwable  t  )  [static, private]
static ISquanderResult edu.mit.csail.sdg.squander.Squander.getLastResult (  )  [static]

Returns the result of the last Squander execution.

Definition at line 142 of file Squander.java.

References edu.mit.csail.sdg.squander.engine.ISquander.getLastResult(), and edu.mit.csail.sdg.squander.Squander.lastSqImpl.

static StackTraceElement edu.mit.csail.sdg.squander.Squander.getRightStackTraceElem ( Throwable  t  )  [static, private]

Member Data Documentation


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