public class jdk.jshell.VarSnippet extends jdk.jshell.DeclarationSnippet
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.jshell.VarSnippet
super_class: jdk.jshell.DeclarationSnippet
{
final java.lang.String typeName;
descriptor: Ljava/lang/String;
flags: (0x0010) ACC_FINAL
final java.lang.String fullTypeName;
descriptor: Ljava/lang/String;
flags: (0x0010) ACC_FINAL
final java.util.Set<java.lang.String> anonymousClasses;
descriptor: Ljava/util/Set;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
void <init>(jdk.jshell.Key$VarKey, java.lang.String, jdk.jshell.Wrap, java.lang.String, jdk.jshell.Snippet$SubKind, java.lang.String, java.lang.String, java.util.Set<java.lang.String>, java.util.Collection<java.lang.String>, jdk.jshell.DiagList);
descriptor: (Ljdk/jshell/Key$VarKey;Ljava/lang/String;Ljdk/jshell/Wrap;Ljava/lang/String;Ljdk/jshell/Snippet$SubKind;Ljava/lang/String;Ljava/lang/String;Ljava/util/Set;Ljava/util/Collection;Ljdk/jshell/DiagList;)V
flags: (0x0000)
Code:
stack=10, locals=11, args_size=11
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 start local 10 0: aload 0
aload 1
aload 2
aload 3
aload 4
aload 5
aconst_null
aload 9
1: aconst_null
aload 10
invokespecial jdk.jshell.DeclarationSnippet.<init>:(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
2: aload 0
aload 6
putfield jdk.jshell.VarSnippet.typeName:Ljava/lang/String;
3: aload 0
aload 7
putfield jdk.jshell.VarSnippet.fullTypeName:Ljava/lang/String;
4: aload 0
aload 8
putfield jdk.jshell.VarSnippet.anonymousClasses:Ljava/util/Set;
5: return
end local 10 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 6 0 this Ljdk/jshell/VarSnippet;
0 6 1 key Ljdk/jshell/Key$VarKey;
0 6 2 userSource Ljava/lang/String;
0 6 3 guts Ljdk/jshell/Wrap;
0 6 4 name Ljava/lang/String;
0 6 5 subkind Ljdk/jshell/Snippet$SubKind;
0 6 6 typeName Ljava/lang/String;
0 6 7 fullTypeName Ljava/lang/String;
0 6 8 anonymousClasses Ljava/util/Set<Ljava/lang/String;>;
0 6 9 declareReferences Ljava/util/Collection<Ljava/lang/String;>;
0 6 10 syntheticDiags Ljdk/jshell/DiagList;
Signature: (Ljdk/jshell/Key$VarKey;Ljava/lang/String;Ljdk/jshell/Wrap;Ljava/lang/String;Ljdk/jshell/Snippet$SubKind;Ljava/lang/String;Ljava/lang/String;Ljava/util/Set<Ljava/lang/String;>;Ljava/util/Collection<Ljava/lang/String;>;Ljdk/jshell/DiagList;)V
MethodParameters:
Name Flags
key
userSource
guts
name
subkind
typeName
fullTypeName
anonymousClasses
declareReferences
syntheticDiags
public java.lang.String typeName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.VarSnippet.typeName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/VarSnippet;
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.VarSnippet.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.VarSnippet.name:()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;
1: aload 0
getfield jdk.jshell.VarSnippet.anonymousClasses:Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
2: aload 0
invokedynamic apply(Ljdk/jshell/VarSnippet;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
jdk/jshell/VarSnippet.lambda$0(Ljava/lang/String;)Ljava/lang/String; (7)
(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
3: invokestatic java.util.stream.Collectors.joining:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.lang.String
4: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/jshell/VarSnippet;
0 6 1 state Ljdk/jshell/JShell;
MethodParameters:
Name Flags
state
private java.lang.String lambda$0(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
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.VarSnippet.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 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "; "
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/VarSnippet;
0 1 1 c Ljava/lang/String;
}
SourceFile: "VarSnippet.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
abstract DeclarationKey = jdk.jshell.Key$DeclarationKey of jdk.jshell.Key
VarKey = jdk.jshell.Key$VarKey of jdk.jshell.Key
public final SubKind = jdk.jshell.Snippet$SubKind of jdk.jshell.Snippet