Module jdk.jshell
Package jdk.jshell

Interface SourceCodeAnalysis.SnippetWrapper

Enclosing class:
SourceCodeAnalysis

public static interface SourceCodeAnalysis.SnippetWrapper
The wrapping of a snippet of Java source into valid top-level Java source. The wrapping will always either be an import or include a synthetic class at the top-level. If a synthetic class is generated, it will be proceeded by the package and import declarations, and may contain synthetic class members.

This interface, in addition to the mapped form, provides the context and position mapping information.