438 return paren >= 0 |
438 return paren >= 0 |
439 ? signature.substring(0, paren + 1) |
439 ? signature.substring(0, paren + 1) |
440 : msi.parameterTypes(); |
440 : msi.parameterTypes(); |
441 } |
441 } |
442 |
442 |
443 SnippetEvent event(String value, Exception exception) { |
443 SnippetEvent event(String value, JShellException exception) { |
444 boolean wasSignatureChanged = sigChanged(); |
444 boolean wasSignatureChanged = sigChanged(); |
445 state.debug(DBG_EVNT, "Snippet: %s id: %s before: %s status: %s sig: %b cause: %s\n", |
445 state.debug(DBG_EVNT, "Snippet: %s id: %s before: %s status: %s sig: %b cause: %s\n", |
446 si, si.id(), prevStatus, si.status(), wasSignatureChanged, causalSnippet); |
446 si, si.id(), prevStatus, si.status(), wasSignatureChanged, causalSnippet); |
447 return new SnippetEvent(si, prevStatus, si.status(), |
447 return new SnippetEvent(si, prevStatus, si.status(), |
448 wasSignatureChanged, causalSnippet, value, exception); |
448 wasSignatureChanged, causalSnippet, value, exception); |