class jdk.internal.jshell.tool.JShellTool$SaveHandler implements java.util.function.Consumer<java.lang.String>
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: jdk.internal.jshell.tool.JShellTool$SaveHandler
  super_class: java.lang.Object
{
  java.lang.String src;
    descriptor: Ljava/lang/String;
    flags: (0x0000) 

  java.util.Set<java.lang.String> currSrcs;
    descriptor: Ljava/util/Set;
    flags: (0x0000) 
    Signature: Ljava/util/Set<Ljava/lang/String;>;

  final jdk.internal.jshell.tool.JShellTool this$0;
    descriptor: Ljdk/internal/jshell/tool/JShellTool;
    flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC

  void <init>(java.lang.String, java.util.Set<java.lang.String>);
    descriptor: (Ljdk/internal/jshell/tool/JShellTool;Ljava/lang/String;Ljava/util/Set;)V
    flags: (0x0000) 
    Code:
      stack=2, locals=4, args_size=4
        start local 0 // jdk.internal.jshell.tool.JShellTool$SaveHandler this
        start local 2 // java.lang.String src
        start local 3 // java.util.Set ss
         0: .line 2966
            aload 0 /* this */
            aload 1
            putfield jdk.internal.jshell.tool.JShellTool$SaveHandler.this$0:Ljdk/internal/jshell/tool/JShellTool;
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 2967
            aload 0 /* this */
            aload 2 /* src */
            putfield jdk.internal.jshell.tool.JShellTool$SaveHandler.src:Ljava/lang/String;
         2: .line 2968
            aload 0 /* this */
            aload 3 /* ss */
            putfield jdk.internal.jshell.tool.JShellTool$SaveHandler.currSrcs:Ljava/util/Set;
         3: .line 2969
            return
        end local 3 // java.util.Set ss
        end local 2 // java.lang.String src
        end local 0 // jdk.internal.jshell.tool.JShellTool$SaveHandler this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Ljdk/internal/jshell/tool/JShellTool$SaveHandler;
            0    4     2   src  Ljava/lang/String;
            0    4     3    ss  Ljava/util/Set<Ljava/lang/String;>;
    Signature: (Ljava/lang/String;Ljava/util/Set<Ljava/lang/String;>;)V
    MethodParameters:
        Name  Flags
      this$0  final
      src     
      ss      

  public void accept(java.lang.String);
    descriptor: (Ljava/lang/String;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=6, args_size=2
        start local 0 // jdk.internal.jshell.tool.JShellTool$SaveHandler this
        start local 1 // java.lang.String s
         0: .line 2973
            aload 1 /* s */
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.JShellTool$SaveHandler.src:Ljava/lang/String;
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 23
         1: .line 2974
            aload 0 /* this */
            aload 1 /* s */
            putfield jdk.internal.jshell.tool.JShellTool$SaveHandler.src:Ljava/lang/String;
         2: .line 2976
            new java.util.LinkedHashSet
            dup
            invokespecial java.util.LinkedHashSet.<init>:()V
            astore 2 /* nextSrcs */
        start local 2 // java.util.Set nextSrcs
         3: .line 2977
            iconst_0
            istore 3 /* failed */
        start local 3 // boolean failed
         4: .line 2979
      StackMap locals: java.util.Set int
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.JShellTool$SaveHandler.this$0:Ljdk/internal/jshell/tool/JShellTool;
            getfield jdk.internal.jshell.tool.JShellTool.analysis:Ljdk/jshell/SourceCodeAnalysis;
            aload 1 /* s */
            invokevirtual jdk.jshell.SourceCodeAnalysis.analyzeCompletion:(Ljava/lang/String;)Ljdk/jshell/SourceCodeAnalysis$CompletionInfo;
            astore 4 /* an */
        start local 4 // jdk.jshell.SourceCodeAnalysis$CompletionInfo an
         5: .line 2980
            aload 4 /* an */
            invokeinterface jdk.jshell.SourceCodeAnalysis$CompletionInfo.completeness:()Ljdk/jshell/SourceCodeAnalysis$Completeness;
            invokevirtual jdk.jshell.SourceCodeAnalysis$Completeness.isComplete:()Z
            ifne 7
         6: .line 2981
            goto 17
         7: .line 2983
      StackMap locals: jdk.jshell.SourceCodeAnalysis$CompletionInfo
      StackMap stack:
            aload 0 /* this */
            aload 4 /* an */
            invokeinterface jdk.jshell.SourceCodeAnalysis$CompletionInfo.source:()Ljava/lang/String;
            invokevirtual jdk.internal.jshell.tool.JShellTool$SaveHandler.trimNewlines:(Ljava/lang/String;)Ljava/lang/String;
            astore 5 /* tsrc */
        start local 5 // java.lang.String tsrc
         8: .line 2984
            iload 3 /* failed */
            ifne 12
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.JShellTool$SaveHandler.currSrcs:Ljava/util/Set;
            aload 5 /* tsrc */
            invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
            ifne 12
         9: .line 2985
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.JShellTool$SaveHandler.this$0:Ljdk/internal/jshell/tool/JShellTool;
            aload 5 /* tsrc */
            invokevirtual jdk.internal.jshell.tool.JShellTool.processSource:(Ljava/lang/String;)Z
            ifeq 10
            iconst_0
            goto 11
      StackMap locals: java.lang.String
      StackMap stack:
        10: iconst_1
      StackMap locals:
      StackMap stack: int
        11: istore 3 /* failed */
        12: .line 2987
      StackMap locals:
      StackMap stack:
            aload 2 /* nextSrcs */
            aload 5 /* tsrc */
            invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
            pop
        13: .line 2988
            aload 4 /* an */
            invokeinterface jdk.jshell.SourceCodeAnalysis$CompletionInfo.remaining:()Ljava/lang/String;
            invokevirtual java.lang.String.isEmpty:()Z
            ifeq 15
        14: .line 2989
            goto 17
        15: .line 2991
      StackMap locals:
      StackMap stack:
            aload 4 /* an */
            invokeinterface jdk.jshell.SourceCodeAnalysis$CompletionInfo.remaining:()Ljava/lang/String;
            astore 1 /* s */
        end local 5 // java.lang.String tsrc
        end local 4 // jdk.jshell.SourceCodeAnalysis$CompletionInfo an
        16: .line 2978
            goto 4
        17: .line 2993
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 2 /* nextSrcs */
            putfield jdk.internal.jshell.tool.JShellTool$SaveHandler.currSrcs:Ljava/util/Set;
        end local 3 // boolean failed
        end local 2 // java.util.Set nextSrcs
        18: .line 2994
            goto 23
      StackMap locals: jdk.internal.jshell.tool.JShellTool$SaveHandler java.lang.String
      StackMap stack: java.lang.IllegalStateException
        19: pop
        20: .line 2995
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.JShellTool$SaveHandler.this$0:Ljdk/internal/jshell/tool/JShellTool;
            ldc "jshell.msg.resetting"
            iconst_0
            anewarray java.lang.Object
            invokevirtual jdk.internal.jshell.tool.JShellTool.errormsg:(Ljava/lang/String;[Ljava/lang/Object;)V
        21: .line 2996
            aload 0 /* this */
            getfield jdk.internal.jshell.tool.JShellTool$SaveHandler.this$0:Ljdk/internal/jshell/tool/JShellTool;
            invokevirtual jdk.internal.jshell.tool.JShellTool.resetState:()V
        22: .line 2997
            aload 0 /* this */
            new java.util.LinkedHashSet
            dup
            invokespecial java.util.LinkedHashSet.<init>:()V
            putfield jdk.internal.jshell.tool.JShellTool$SaveHandler.currSrcs:Ljava/util/Set;
        23: .line 3000
      StackMap locals:
      StackMap stack:
            return
        end local 1 // java.lang.String s
        end local 0 // jdk.internal.jshell.tool.JShellTool$SaveHandler this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   24     0      this  Ljdk/internal/jshell/tool/JShellTool$SaveHandler;
            0   24     1         s  Ljava/lang/String;
            3   18     2  nextSrcs  Ljava/util/Set<Ljava/lang/String;>;
            4   18     3    failed  Z
            5   16     4        an  Ljdk/jshell/SourceCodeAnalysis$CompletionInfo;
            8   16     5      tsrc  Ljava/lang/String;
      Exception table:
        from    to  target  type
           2    18      19  Class java.lang.IllegalStateException
    MethodParameters:
      Name  Flags
      s     

  private java.lang.String trimNewlines(java.lang.String);
    descriptor: (Ljava/lang/String;)Ljava/lang/String;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=4, args_size=2
        start local 0 // jdk.internal.jshell.tool.JShellTool$SaveHandler this
        start local 1 // java.lang.String s
         0: .line 3003
            iconst_0
            istore 2 /* b */
        start local 2 // int b
         1: .line 3004
            goto 3
         2: .line 3005
      StackMap locals: int
      StackMap stack:
            iinc 2 /* b */ 1
         3: .line 3004
      StackMap locals:
      StackMap stack:
            iload 2 /* b */
            aload 1 /* s */
            invokevirtual java.lang.String.length:()I
            if_icmpge 4
            aload 1 /* s */
            iload 2 /* b */
            invokevirtual java.lang.String.charAt:(I)C
            bipush 10
            if_icmpeq 2
         4: .line 3007
      StackMap locals:
      StackMap stack:
            aload 1 /* s */
            invokevirtual java.lang.String.length:()I
            iconst_1
            isub
            istore 3 /* e */
        start local 3 // int e
         5: .line 3008
            goto 7
         6: .line 3009
      StackMap locals: int
      StackMap stack:
            iinc 3 /* e */ -1
         7: .line 3008
      StackMap locals:
      StackMap stack:
            iload 3 /* e */
            iflt 8
            aload 1 /* s */
            iload 3 /* e */
            invokevirtual java.lang.String.charAt:(I)C
            bipush 10
            if_icmpeq 6
         8: .line 3011
      StackMap locals:
      StackMap stack:
            aload 1 /* s */
            iload 2 /* b */
            iload 3 /* e */
            iconst_1
            iadd
            invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
            areturn
        end local 3 // int e
        end local 2 // int b
        end local 1 // java.lang.String s
        end local 0 // jdk.internal.jshell.tool.JShellTool$SaveHandler this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    9     0  this  Ljdk/internal/jshell/tool/JShellTool$SaveHandler;
            0    9     1     s  Ljava/lang/String;
            1    9     2     b  I
            5    9     3     e  I
    MethodParameters:
      Name  Flags
      s     

  public void accept(java.lang.Object);
    descriptor: (Ljava/lang/Object;)V
    flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
    Code:
      stack=2, locals=2, args_size=2
         0: .line 1
            aload 0
            aload 1
            checkcast java.lang.String
            invokevirtual jdk.internal.jshell.tool.JShellTool$SaveHandler.accept:(Ljava/lang/String;)V
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature
}
Signature: Ljava/lang/Object;Ljava/util/function/Consumer<Ljava/lang/String;>;
SourceFile: "JShellTool.java"
NestHost: jdk.internal.jshell.tool.JShellTool
InnerClasses:
  private SaveHandler = jdk.internal.jshell.tool.JShellTool$SaveHandler of jdk.internal.jshell.tool.JShellTool
  public final Completeness = jdk.jshell.SourceCodeAnalysis$Completeness of jdk.jshell.SourceCodeAnalysis
  public abstract CompletionInfo = jdk.jshell.SourceCodeAnalysis$CompletionInfo of jdk.jshell.SourceCodeAnalysis