- java.lang.Object
-
- jdk.jshell.Snippet
-
- jdk.jshell.PersistentSnippet
-
- jdk.jshell.DeclarationSnippet
-
- jdk.jshell.VarSnippet
-
public class VarSnippet extends DeclarationSnippet
- 从以下版本开始:
- 9
- See The Java™ Language Specification:
- 8.3:FieldDeclaration。
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jdk.jshell.Snippet
Snippet.Kind, Snippet.Status, Snippet.SubKind
-
-
-
-
方法详细信息
-
typeName
public String typeName()
变量类型的字符串表示形式。- 结果
- 变量类型为String。
-
-