public abstract class jdk.jshell.DeclarationSnippet extends jdk.jshell.PersistentSnippet
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: jdk.jshell.DeclarationSnippet
super_class: jdk.jshell.PersistentSnippet
{
private final jdk.jshell.Wrap corralled;
descriptor: Ljdk/jshell/Wrap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Collection<java.lang.String> declareReferences;
descriptor: Ljava/util/Collection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Collection<Ljava/lang/String;>;
private final java.util.Collection<java.lang.String> bodyReferences;
descriptor: Ljava/util/Collection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Collection<Ljava/lang/String;>;
void <init>(jdk.jshell.Key$DeclarationKey, java.lang.String, jdk.jshell.Wrap, java.lang.String, jdk.jshell.Snippet$SubKind, jdk.jshell.Wrap, java.util.Collection<java.lang.String>, java.util.Collection<java.lang.String>, jdk.jshell.DiagList);
descriptor: (Ljdk/jshell/Key$DeclarationKey;Ljava/lang/String;Ljdk/jshell/Wrap;Ljava/lang/String;Ljdk/jshell/Snippet$SubKind;Ljdk/jshell/Wrap;Ljava/util/Collection;Ljava/util/Collection;Ljdk/jshell/DiagList;)V
flags: (0x0000)
Code:
stack=7, locals=10, args_size=10
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 start local 8 start local 9 0: aload 0
aload 1
aload 2
aload 3
aload 4
aload 5
aload 9
invokespecial jdk.jshell.PersistentSnippet.<init>:(Ljdk/jshell/Key;Ljava/lang/String;Ljdk/jshell/Wrap;Ljava/lang/String;Ljdk/jshell/Snippet$SubKind;Ljdk/jshell/DiagList;)V
1: aload 0
aload 6
putfield jdk.jshell.DeclarationSnippet.corralled:Ljdk/jshell/Wrap;
2: aload 0
aload 7
putfield jdk.jshell.DeclarationSnippet.declareReferences:Ljava/util/Collection;
3: aload 0
aload 8
putfield jdk.jshell.DeclarationSnippet.bodyReferences:Ljava/util/Collection;
4: return
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jshell/DeclarationSnippet;
0 5 1 key Ljdk/jshell/Key$DeclarationKey;
0 5 2 userSource Ljava/lang/String;
0 5 3 guts Ljdk/jshell/Wrap;
0 5 4 unitName Ljava/lang/String;
0 5 5 subkind Ljdk/jshell/Snippet$SubKind;
0 5 6 corralled Ljdk/jshell/Wrap;
0 5 7 declareReferences Ljava/util/Collection<Ljava/lang/String;>;
0 5 8 bodyReferences Ljava/util/Collection<Ljava/lang/String;>;
0 5 9 syntheticDiags Ljdk/jshell/DiagList;
Signature: (Ljdk/jshell/Key$DeclarationKey;Ljava/lang/String;Ljdk/jshell/Wrap;Ljava/lang/String;Ljdk/jshell/Snippet$SubKind;Ljdk/jshell/Wrap;Ljava/util/Collection<Ljava/lang/String;>;Ljava/util/Collection<Ljava/lang/String;>;Ljdk/jshell/DiagList;)V
MethodParameters:
Name Flags
key
userSource
guts
unitName
subkind
corralled
declareReferences
bodyReferences
syntheticDiags
jdk.jshell.Wrap corralled();
descriptor: ()Ljdk/jshell/Wrap;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.DeclarationSnippet.corralled:Ljdk/jshell/Wrap;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/DeclarationSnippet;
java.util.Collection<java.lang.String> declareReferences();
descriptor: ()Ljava/util/Collection;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.DeclarationSnippet.declareReferences:Ljava/util/Collection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/DeclarationSnippet;
Signature: ()Ljava/util/Collection<Ljava/lang/String;>;
java.util.Collection<java.lang.String> bodyReferences();
descriptor: ()Ljava/util/Collection;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.DeclarationSnippet.bodyReferences:Ljava/util/Collection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/DeclarationSnippet;
Signature: ()Ljava/util/Collection<Ljava/lang/String;>;
java.lang.String importLine(jdk.jshell.JShell);
descriptor: (Ljdk/jshell/JShell;)Ljava/lang/String;
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
ldc "import static "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual jdk.jshell.DeclarationSnippet.classFullName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual jdk.jshell.DeclarationSnippet.name:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ";\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/DeclarationSnippet;
0 1 1 state Ljdk/jshell/JShell;
MethodParameters:
Name Flags
state
}
SourceFile: "DeclarationSnippet.java"
InnerClasses:
abstract DeclarationKey = jdk.jshell.Key$DeclarationKey of jdk.jshell.Key
public final SubKind = jdk.jshell.Snippet$SubKind of jdk.jshell.Snippet