Uses of Class
jdk.jshell.DeclarationSnippet
Package
Description
Provides interfaces for creating tools, such as a Read-Eval-Print Loop (REPL),
which interactively evaluate "snippets" of Java programming language code.
-
Uses of DeclarationSnippet in jdk.jshell
Modifier and TypeClassDescriptionclass
Snippet for a method definition.class
Snippet for a type definition (a class, interface, enum, or annotation interface definition).class
Snippet for a variable definition.Modifier and TypeMethodDescriptionUnresolvedReferenceException.getSnippet()
Return the Snippet which has the unresolved reference(s).Modifier and TypeMethodDescriptionJShell.unresolvedDependencies
(DeclarationSnippet snippet) ForRECOVERABLE_DEFINED
orRECOVERABLE_NOT_DEFINED
declarations, the names of current unresolved dependencies for the snippet.