クラス jdk.jshell.DeclarationSnippetの
使用
-
DeclarationSnippetを使用するパッケージ パッケージ 説明 jdk.jshell Javaプログラミング言語コードの"snippets"をインタラクティブに評価するRead-Eval-Printループ(REPL)などのツールを作成するためのインタフェースを提供します。 -
-
jdk.jshellでのDeclarationSnippetの使用
jdk.jshellのDeclarationSnippetのサブクラス 修飾子と型 クラス 説明 class
MethodSnippet
メソッド定義用のスニペット。class
TypeDeclSnippet
型定義のスニペット(クラス、インタフェース、enum、または注釈インタフェースの定義)。class
VarSnippet
変数定義のスニペット。DeclarationSnippetを戻すjdk.jshellのメソッド 修飾子と型 メソッド 説明 DeclarationSnippet
UnresolvedReferenceException. getSnippet()
未解決の参照があるスニペットを返します。型DeclarationSnippetのパラメータを持つjdk.jshellのメソッド 修飾子と型 メソッド 説明 Stream<String>
JShell. unresolvedDependencies(DeclarationSnippet snippet)
RECOVERABLE_DEFINED
またはRECOVERABLE_NOT_DEFINED
宣言の場合、スニペットの現在の未解決の依存関係の名前。
-