class jdk.jshell.Wrap$RangeWrap extends jdk.jshell.Wrap
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.jshell.Wrap$RangeWrap
super_class: jdk.jshell.Wrap
{
final jdk.jshell.Wrap$Range range;
descriptor: Ljdk/jshell/Wrap$Range;
flags: (0x0010) ACC_FINAL
final java.lang.String wrapped;
descriptor: Ljava/lang/String;
flags: (0x0010) ACC_FINAL
final int firstSnline;
descriptor: I
flags: (0x0010) ACC_FINAL
final int lastSnline;
descriptor: I
flags: (0x0010) ACC_FINAL
void <init>(java.lang.String, jdk.jshell.Wrap$Range);
descriptor: (Ljava/lang/String;Ljdk/jshell/Wrap$Range;)V
flags: (0x0000)
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial jdk.jshell.Wrap.<init>:()V
1: aload 0
aload 2
putfield jdk.jshell.Wrap$RangeWrap.range:Ljdk/jshell/Wrap$Range;
2: aload 0
aload 2
aload 1
invokevirtual jdk.jshell.Wrap$Range.part:(Ljava/lang/String;)Ljava/lang/String;
putfield jdk.jshell.Wrap$RangeWrap.wrapped:Ljava/lang/String;
3: aload 2
aload 1
invokevirtual jdk.jshell.Wrap$Range.verify:(Ljava/lang/String;)V
4: aload 0
aload 1
iconst_0
aload 0
getfield jdk.jshell.Wrap$RangeWrap.range:Ljdk/jshell/Wrap$Range;
getfield jdk.jshell.Wrap$Range.begin:I
invokestatic jdk.jshell.Wrap.countLines:(Ljava/lang/String;II)I
putfield jdk.jshell.Wrap$RangeWrap.firstSnline:I
5: aload 0
aload 0
getfield jdk.jshell.Wrap$RangeWrap.firstSnline:I
aload 1
aload 0
getfield jdk.jshell.Wrap$RangeWrap.range:Ljdk/jshell/Wrap$Range;
getfield jdk.jshell.Wrap$Range.begin:I
aload 0
getfield jdk.jshell.Wrap$RangeWrap.range:Ljdk/jshell/Wrap$Range;
getfield jdk.jshell.Wrap$Range.end:I
invokestatic jdk.jshell.Wrap.countLines:(Ljava/lang/String;II)I
iadd
putfield jdk.jshell.Wrap$RangeWrap.lastSnline:I
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/jshell/Wrap$RangeWrap;
0 7 1 snippetSource Ljava/lang/String;
0 7 2 usedWithinSnippet Ljdk/jshell/Wrap$Range;
MethodParameters:
Name Flags
snippetSource
usedWithinSnippet
public java.lang.String wrapped();
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.Wrap$RangeWrap.wrapped:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/Wrap$RangeWrap;
public int snippetIndexToWrapIndex(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield jdk.jshell.Wrap$RangeWrap.range:Ljdk/jshell/Wrap$Range;
getfield jdk.jshell.Wrap$Range.begin:I
if_icmpge 5
1: aload 0
ldc "\nRangeWrap.snippetIndexToWrapIndex: ERR before SnippetIndex(%d) -> WrapIndex(%d + %d = %d)\n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
2: iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
iconst_0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
3: invokevirtual jdk.jshell.Wrap$RangeWrap.debugWrap:(Ljava/lang/String;[Ljava/lang/Object;)V
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield jdk.jshell.Wrap$RangeWrap.range:Ljdk/jshell/Wrap$Range;
getfield jdk.jshell.Wrap$Range.end:I
if_icmple 10
6: aload 0
ldc "\nRangeWrap.snippetIndexToWrapIndex: ERR after SnippetIndex(%d) -> WrapIndex(%d + %d = %d)\n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
7: iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 0
getfield jdk.jshell.Wrap$RangeWrap.range:Ljdk/jshell/Wrap$Range;
invokevirtual jdk.jshell.Wrap$Range.length:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
8: invokevirtual jdk.jshell.Wrap$RangeWrap.debugWrap:(Ljava/lang/String;[Ljava/lang/Object;)V
9: aload 0
getfield jdk.jshell.Wrap$RangeWrap.range:Ljdk/jshell/Wrap$Range;
invokevirtual jdk.jshell.Wrap$Range.length:()I
ireturn
10: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield jdk.jshell.Wrap$RangeWrap.range:Ljdk/jshell/Wrap$Range;
getfield jdk.jshell.Wrap$Range.begin:I
isub
istore 2
start local 2 11: aload 0
ldc "\nRangeWrap.snippetIndexToWrapIndex: SnippetIndex(%d) -> WrapIndex(%d + %d = %d)\n === %s"
iconst_5
anewarray java.lang.Object
dup
iconst_0
12: iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 0
getfield jdk.jshell.Wrap$RangeWrap.range:Ljdk/jshell/Wrap$Range;
getfield jdk.jshell.Wrap$Range.begin:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_3
iload 1
aload 0
getfield jdk.jshell.Wrap$RangeWrap.range:Ljdk/jshell/Wrap$Range;
getfield jdk.jshell.Wrap$Range.begin:I
isub
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_4
aload 0
invokevirtual jdk.jshell.Wrap$RangeWrap.wrapped:()Ljava/lang/String;
aastore
13: invokevirtual jdk.jshell.Wrap$RangeWrap.debugWrap:(Ljava/lang/String;[Ljava/lang/Object;)V
14: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/jshell/Wrap$RangeWrap;
0 15 1 sni I
11 15 2 wi I
MethodParameters:
Name Flags
sni
public int wrapIndexToSnippetIndex(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: iload 1
ifge 5
1: aload 0
ldc "\nRangeWrap.wrapIndexToSnippetIndex: ERR before WrapIndex(%d) -> SnippetIndex(%d)\n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
2: iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
iconst_0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
3: invokevirtual jdk.jshell.Wrap$RangeWrap.debugWrap:(Ljava/lang/String;[Ljava/lang/Object;)V
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jshell.Wrap$RangeWrap.range:Ljdk/jshell/Wrap$Range;
invokevirtual jdk.jshell.Wrap$Range.length:()I
istore 2
start local 2 6: iload 1
iload 2
if_icmple 11
7: aload 0
ldc "\nRangeWrap.wrapIndexToSnippetIndex: ERR after WrapIndex(%d) -> SnippetIndex(%d)\n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
8: iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
iload 2
aload 0
getfield jdk.jshell.Wrap$RangeWrap.range:Ljdk/jshell/Wrap$Range;
getfield jdk.jshell.Wrap$Range.begin:I
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
9: invokevirtual jdk.jshell.Wrap$RangeWrap.debugWrap:(Ljava/lang/String;[Ljava/lang/Object;)V
10: iload 2
aload 0
getfield jdk.jshell.Wrap$RangeWrap.range:Ljdk/jshell/Wrap$Range;
getfield jdk.jshell.Wrap$Range.begin:I
iadd
ireturn
11: StackMap locals: int
StackMap stack:
iload 1
aload 0
getfield jdk.jshell.Wrap$RangeWrap.range:Ljdk/jshell/Wrap$Range;
getfield jdk.jshell.Wrap$Range.begin:I
iadd
istore 3
start local 3 12: aload 0
ldc "\nRangeWrap.wrapIndexToSnippetIndex: WrapIndex(%d) -> SnippetIndex(%d)\n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
13: iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
14: invokevirtual jdk.jshell.Wrap$RangeWrap.debugWrap:(Ljava/lang/String;[Ljava/lang/Object;)V
15: iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/jshell/Wrap$RangeWrap;
0 16 1 wi I
6 16 2 max I
12 16 3 sni I
MethodParameters:
Name Flags
wi
public int firstSnippetIndex();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.Wrap$RangeWrap.range:Ljdk/jshell/Wrap$Range;
getfield jdk.jshell.Wrap$Range.begin:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/Wrap$RangeWrap;
public int lastSnippetIndex();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.Wrap$RangeWrap.range:Ljdk/jshell/Wrap$Range;
getfield jdk.jshell.Wrap$Range.end:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/Wrap$RangeWrap;
public int snippetLineToWrapLine(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield jdk.jshell.Wrap$RangeWrap.firstSnline:I
if_icmpge 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield jdk.jshell.Wrap$RangeWrap.lastSnline:I
if_icmplt 4
3: aload 0
getfield jdk.jshell.Wrap$RangeWrap.lastSnline:I
aload 0
getfield jdk.jshell.Wrap$RangeWrap.firstSnline:I
isub
ireturn
4: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield jdk.jshell.Wrap$RangeWrap.firstSnline:I
isub
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jshell/Wrap$RangeWrap;
0 5 1 snline I
MethodParameters:
Name Flags
snline
public int wrapLineToSnippetLine(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: iload 1
ifge 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jshell.Wrap$RangeWrap.lastSnline:I
aload 0
getfield jdk.jshell.Wrap$RangeWrap.firstSnline:I
isub
istore 2
start local 2 3: iload 1
iload 2
if_icmple 5
4: iload 2
istore 1
5: StackMap locals: int
StackMap stack:
iload 1
aload 0
getfield jdk.jshell.Wrap$RangeWrap.firstSnline:I
iadd
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/jshell/Wrap$RangeWrap;
0 6 1 wline I
3 6 2 max I
MethodParameters:
Name Flags
wline
public int firstSnippetLine();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.Wrap$RangeWrap.firstSnline:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/Wrap$RangeWrap;
public int lastSnippetLine();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.Wrap$RangeWrap.lastSnline:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/Wrap$RangeWrap;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "RangeWrap("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.jshell.Wrap$RangeWrap.range:Ljdk/jshell/Wrap$Range;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)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 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/Wrap$RangeWrap;
}
SourceFile: "Wrap.java"
NestHost: jdk.jshell.Wrap
InnerClasses:
public final Range = jdk.jshell.Wrap$Range of jdk.jshell.Wrap
RangeWrap = jdk.jshell.Wrap$RangeWrap of jdk.jshell.Wrap