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=2, locals=2, 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 2
1: iconst_0
ireturn
2: 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 4
3: aload 0
getfield jdk.jshell.Wrap$RangeWrap.range:Ljdk/jshell/Wrap$Range;
invokevirtual jdk.jshell.Wrap$Range.length:()I
ireturn
4: 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
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jshell/Wrap$RangeWrap;
0 5 1 sni I
MethodParameters:
Name Flags
sni
public int wrapIndexToSnippetIndex(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.range:Ljdk/jshell/Wrap$Range;
invokevirtual jdk.jshell.Wrap$Range.length:()I
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.range:Ljdk/jshell/Wrap$Range;
getfield jdk.jshell.Wrap$Range.begin: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 wi I
3 6 2 max 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
private RangeWrap = jdk.jshell.Wrap$RangeWrap of jdk.jshell.Wrap