public static final @NotNull String |
DROPPED_DESC |
"The snippet is inactive because of an explicit call to the JShell.drop(Snippet).\nThe snippet is not visible to other snippets (isDefined() == false) and thus cannot be referenced or executed.\nThe snippet will not update as dependents change (isActive() == false), its Status will never change again." |
public static final @NotNull String |
NONEXISTENT_DESC |
"The snippet is inactive because it does not yet exist. Used only in SnippetEvent.previousStatus for new snippets. JShell.status(Snippet) will never return this Status.\nVacuously, isDefined() and isActive() are both defined false." |
public static final @NotNull String |
OVERWRITTEN_DESC |
"The snippet is inactive because it has been replaced by a new snippet. This occurs when the new snippet added with JShell.eval matches a previous snippet. A TypeDeclSnippet will match another TypeDeclSnippet if the names match. For example class X { } will overwrite class X { int ii; } or interface X { }. A MethodSnippet will match another MethodSnippet if the names and parameter types match. For example void m(int a) { } will overwrite int m(int a) { return a+a; }. A VarSnippet will match another VarSnippet if the names match. For example double z; will overwrite long z = 2L;. Only a PersistentSnippet can have this Status.\nThe snippet is not visible to other snippets (isDefined() == false) and thus cannot be referenced or executed.\nThe snippet will not update as dependents change (isActive() == false), its Status will never change again." |
public static final @NotNull String |
REC_DEF_DESC |
"The snippet is a declaration snippet with potentially recoverable unresolved references or other issues in its body (in the context of current JShell state). Only a DeclarationSnippet can have this Status.\nThe snippet has a valid signature and it is visible to other snippets (isDefined() == true) and thus can be referenced in existing or new snippets but the snippet cannot be executed. An UnresolvedReferenceException will be thrown on an attempt to execute it.\nThe snippet will update as dependents change (isActive() == true), its status could become VALID, RECOVERABLE_NOT_DEFINED, DROPPED, or OVERWRITTEN.\nNote: both RECOVERABLE_DEFINED and RECOVERABLE_NOT_DEFINED indicate potentially recoverable errors, they differ in that, for RECOVERABLE_DEFINED, the snippet is defined." |
public static final @NotNull String |
REC_NOT_DEF_DESC |
"The snippet is a declaration snippet with potentially recoverable unresolved references or other issues (in the context of current JShell state). Only a DeclarationSnippet can have this Status.\nThe snippet has an invalid signature or the implementation is otherwise unable to define it. The snippet it is not visible to other snippets (isDefined() == false) and thus cannot be referenced or executed.\nThe snippet will update as dependents change (isActive() == true), its status could become VALID, RECOVERABLE_DEFINED, DROPPED, or OVERWRITTEN.\nNote: both RECOVERABLE_DEFINED and RECOVERABLE_NOT_DEFINED indicate potentially recoverable errors, they differ in that, for RECOVERABLE_DEFINED, the snippet is defined." |
public static final @NotNull String |
REJECTED_DESC |
"The snippet is inactive because it failed compilation on initial evaluation and it is not capable of becoming valid with further changes to the JShell state.\nThe snippet is not visible to other snippets (isDefined() == false) and thus cannot be referenced or executed.\nThe snippet will not update as dependents change (isActive() == false), its Status will never change again." |