| 3 | import java.util.Map; |
| 4 | |
| 5 | public interface AxCodeSession { |
| 6 | Object execute(String code, Map<String, Object> options); |
| 7 | default Object inspectGlobals(Map<String, Object> options) { |
| 8 | return "[runtime state inspection unavailable: runtime session does not implement inspectGlobals()]"; |
| 9 | } |
| 10 | default Object snapshotGlobals(Map<String, Object> options) { |
| 11 | throw new RuntimeException("AxCodeSession.snapshotGlobals() is required to export AxAgent state"); |
| 12 | } |
| 13 | default Object patchGlobals(Object snapshot, Map<String, Object> options) { |
| 14 | throw new RuntimeException("AxCodeSession.patchGlobals() is required to restore AxAgent state"); |
| 15 | } |
| 16 | default Object exportState(Map<String, Object> options) { return snapshotGlobals(options); } |
| 17 | default Object restoreState(Object snapshot, Map<String, Object> options) { return patchGlobals(snapshot, options); } |
| 18 | Object close(); |
| 19 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…