A description of a change to a Snippet. These are generated by direct changes to state with
JShell.eval(String)
or
JShell.drop(Snippet)
, or indirectly by these same methods as dependencies change or Snippets are overwritten. For direct changes, the
causeSnippet()
is
null
.
SnippetEvent
is immutable: an access to any of its methods will always return the same result. and thus is thread-safe.
Either the snippet whose change caused this update or null
.
boolean
Indicates whether the signature has changed.
The status before the transition.
The Snippet which has changed
Return a string representation of the event
The result value of successful run.
The Snippet which has changed
Status
has changed.
The status before the transition. If this event describes a Snippet creation return
NONEXISTENT
.
The after status. Note: this may be the same as the previous status (not all changes cause a Status
change.
public boolean isSignatureChange()
Indicates whether the signature has changed. Coming in or out of
definitionis always a signature change. An overwritten Snippet
(status == OVERWRITTEN)
is always
false
as responsibility for the definition has passed to the overwriting definition.
true
if the signature changed; otherwise false
Either the snippet whose change caused this update or
null
. This returns
null
if this change is the creation of a new Snippet via
eval
or it is the explicit drop of a Snippet with
drop
.
null
if directly caused by an API action.
null
.
The result value of successful run. The value is null if not executed or an exception was thrown.
null
.
Return a string representation of the event
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4