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 |
Provides a public API to Squander.
Definition at line 25 of file Squander.java.
edu.mit.csail.sdg.squander.Squander.Squander | ( | ) | [private] |
Definition at line 27 of file Squander.java.
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
<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 |
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.
<R> | - the return type | |
caller | - the caller instance (null if static method) | |
clsName | - declaring class full name | |
methodName | - method name |
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.
<R> | - the return type | |
caller | - the caller instance (null if static method) | |
methodParamTypes | - method parameter types | |
methodArgs | - invocation arguments |
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.
<R> | - the return type | |
caller | - the caller instance (null if static method) | |
methodArgs | - invocation arguments |
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] |
Definition at line 152 of file Squander.java.
References edu.mit.csail.sdg.squander.Squander.getRightStackTraceElem().
Referenced by edu.mit.csail.sdg.squander.Squander.exe().
static String edu.mit.csail.sdg.squander.Squander.getCallerMethod | ( | Throwable | t | ) | [static, private] |
Definition at line 148 of file Squander.java.
References edu.mit.csail.sdg.squander.Squander.getRightStackTraceElem().
Referenced by edu.mit.csail.sdg.squander.Squander.exe().
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] |
Definition at line 156 of file Squander.java.
Referenced by edu.mit.csail.sdg.squander.Squander.getCallerClassName(), and edu.mit.csail.sdg.squander.Squander.getCallerMethod().
ISquander edu.mit.csail.sdg.squander.Squander.lastSqImpl [static, private] |
Definition at line 31 of file Squander.java.
Referenced by edu.mit.csail.sdg.squander.Squander.exe(), and edu.mit.csail.sdg.squander.Squander.getLastResult().