Exit the state machine with the given (indirect) result.
SMBuilder smb = new SMBuilder(); smb._return(new ObjectFunc() { public Object get(StateMachine sm) { return "Hello world!"; } }); smb.call(rp); Result: Hello world! SMBuilder smb = new SMBuilder(); smb._return(new ObjectFunc() { public Object get(StateMachine sm) { return null; } }); smb.call(rp); Result: null
|
|