Stub properties/methods are added lazily to the iteration, i.e. not before they actually appear the first time; this avoids iteration over unused ones.
Static Public Member Functions | |
void | start () |
Initialize iteration. | |
bool | next () |
Iterate to next alternative of input values. | |
Object | stubInput (Ref r) |
Return the current value of the stub input field referenced by r. | |
void | stubOutput (Ref r, Object val) |
Output value val to stub output field referenced by r. | |
Object | call (Ref r, List args) |
Call stub method (given as a Ref) and return the current return value. | |
Static Private Attributes | |
IList | transitionState = new List() |
Stack of transition states; contains Stub(Input/Output/Call)State. | |
Hashtable | stubInputs = new Hashtable() |
Map transition name (string) to StubInputState for fast lookup. | |
Hashtable | stubOutputs = new Hashtable() |
Map stub output field (Ref) to StubOutputState for fast lookup. | |
Hashtable | stubCalls = new Hashtable() |
Map transition name (string) to StubCallState for fast lookup. |
|
Call stub method (given as a Ref) and return the current return value. Append a MethodCallNode to the current process, if necessary. |
|
Iterate to next alternative of input values. Always call this until false is returned.
|
|
Initialize iteration.
|
|
Return the current value of the stub input field referenced by r. Append a ValueInNode to the current process, if necessary. |
|
Output value val to stub output field referenced by r. Append a ValueOutNode to the current process, if necessary. |
|
Map transition name (string) to StubCallState for fast lookup.
|
|
Map transition name (string) to StubInputState for fast lookup.
|
|
Map stub output field (Ref) to StubOutputState for fast lookup.
|
|
Stack of transition states; contains Stub(Input/Output/Call)State.
|