public class org.jruby.ext.strscan.RubyStringScanner extends org.jruby.RubyObject
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ext.strscan.RubyStringScanner
super_class: org.jruby.RubyObject
{
private org.jruby.RubyString str;
descriptor: Lorg/jruby/RubyString;
flags: (0x0002) ACC_PRIVATE
private int pos;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int lastPos;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private org.joni.Region regs;
descriptor: Lorg/joni/Region;
flags: (0x0002) ACC_PRIVATE
private org.joni.Regex pattern;
descriptor: Lorg/joni/Regex;
flags: (0x0002) ACC_PRIVATE
private int beg;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int end;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int scannerFlags;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private static final int MATCHED_STR_SCN_F;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2048
private static org.jruby.runtime.ObjectAllocator STRINGSCANNER_ALLOCATOR;
descriptor: Lorg/jruby/runtime/ObjectAllocator;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
java.lang.ThreadLocal<org.joni.Matcher> currentMatcher;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x0000)
Signature: Ljava/lang/ThreadLocal<Lorg/joni/Matcher;>;
org.jruby.RubyThread$Task<org.jruby.ext.strscan.RubyStringScanner, java.lang.Integer> task;
descriptor: Lorg/jruby/RubyThread$Task;
flags: (0x0000)
Signature: Lorg/jruby/RubyThread$Task<Lorg/jruby/ext/strscan/RubyStringScanner;Ljava/lang/Integer;>;
private static final int INSPECT_LENGTH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 5
private static final byte[] DOT_BYTES;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lorg/jruby/ext/strscan/RubyStringScanner;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.jruby.ext.strscan.RubyStringScanner.$assertionsDisabled:Z
3: new org.jruby.ext.strscan.RubyStringScanner$1
dup
invokespecial org.jruby.ext.strscan.RubyStringScanner$1.<init>:()V
putstatic org.jruby.ext.strscan.RubyStringScanner.STRINGSCANNER_ALLOCATOR:Lorg/jruby/runtime/ObjectAllocator;
4: ldc "..."
invokevirtual java.lang.String.getBytes:()[B
putstatic org.jruby.ext.strscan.RubyStringScanner.DOT_BYTES:[B
return
LocalVariableTable:
Start End Slot Name Signature
public static org.jruby.RubyClass createScannerClass(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Lorg/jruby/RubyClass;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
ldc "StringScanner"
aload 0
invokevirtual org.jruby.Ruby.getObject:()Lorg/jruby/RubyClass;
getstatic org.jruby.ext.strscan.RubyStringScanner.STRINGSCANNER_ALLOCATOR:Lorg/jruby/runtime/ObjectAllocator;
invokevirtual org.jruby.Ruby.defineClass:(Ljava/lang/String;Lorg/jruby/RubyClass;Lorg/jruby/runtime/ObjectAllocator;)Lorg/jruby/RubyClass;
astore 1
start local 1 1: aload 1
ldc Lorg/jruby/ext/strscan/RubyStringScanner;
invokevirtual org.jruby.RubyClass.defineAnnotatedMethods:(Ljava/lang/Class;)V
2: aload 0
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
astore 2
start local 2 3: aload 1
ldc "Version"
aload 0
ldc "0.7.0"
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aload 2
invokevirtual org.jruby.RubyString.freeze:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual org.jruby.RubyClass.setConstant:(Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
4: aload 1
ldc "Id"
aload 0
ldc "$Id: strscan.c 13506 2007-09-24 08:56:24Z nobu $"
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
aload 2
invokevirtual org.jruby.RubyString.freeze:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual org.jruby.RubyClass.setConstant:(Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
5: aload 0
invokevirtual org.jruby.Ruby.getStandardError:()Lorg/jruby/RubyClass;
astore 3
start local 3 6: aload 1
7: ldc "Error"
aload 3
aload 3
invokevirtual org.jruby.RubyClass.getAllocator:()Lorg/jruby/runtime/ObjectAllocator;
8: invokevirtual org.jruby.RubyClass.defineClassUnder:(Ljava/lang/String;Lorg/jruby/RubyClass;Lorg/jruby/runtime/ObjectAllocator;)Lorg/jruby/RubyClass;
astore 4
start local 4 9: aload 0
invokevirtual org.jruby.Ruby.getObject:()Lorg/jruby/RubyClass;
astore 5
start local 5 10: aload 5
ldc "ScanError"
invokevirtual org.jruby.RubyClass.isConstantDefined:(Ljava/lang/String;)Z
ifne 12
11: aload 5
ldc "ScanError"
aload 4
invokevirtual org.jruby.RubyClass.defineConstant:(Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)V
12: StackMap locals: org.jruby.Ruby org.jruby.RubyClass org.jruby.runtime.ThreadContext org.jruby.RubyClass org.jruby.RubyClass org.jruby.RubyClass
StackMap stack:
aload 1
areturn
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 13 0 runtime Lorg/jruby/Ruby;
1 13 1 scannerClass Lorg/jruby/RubyClass;
3 13 2 context Lorg/jruby/runtime/ThreadContext;
6 13 3 standardError Lorg/jruby/RubyClass;
9 13 4 error Lorg/jruby/RubyClass;
10 13 5 objClass Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime final
private void clearMatched();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
dup
getfield org.jruby.ext.strscan.RubyStringScanner.scannerFlags:I
sipush -2049
iand
putfield org.jruby.ext.strscan.RubyStringScanner.scannerFlags:I
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
private void setMatched();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
dup
getfield org.jruby.ext.strscan.RubyStringScanner.scannerFlags:I
sipush 2048
ior
putfield org.jruby.ext.strscan.RubyStringScanner.scannerFlags:I
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
private boolean isMatched();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.scannerFlags:I
sipush 2048
iand
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
private void check();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
ifnonnull 1
aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.getRuntime:()Lorg/jruby/Ruby;
ldc "uninitialized StringScanner object"
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
1: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
protected void <init>(org.jruby.Ruby, org.jruby.RubyClass);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial org.jruby.RubyObject.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
1: aload 0
iconst_0
putfield org.jruby.ext.strscan.RubyStringScanner.pos:I
2: aload 0
iconst_m1
putfield org.jruby.ext.strscan.RubyStringScanner.lastPos:I
3: aload 0
iconst_m1
putfield org.jruby.ext.strscan.RubyStringScanner.beg:I
4: aload 0
iconst_m1
putfield org.jruby.ext.strscan.RubyStringScanner.end:I
5: aload 0
new java.lang.ThreadLocal
dup
invokespecial java.lang.ThreadLocal.<init>:()V
putfield org.jruby.ext.strscan.RubyStringScanner.currentMatcher:Ljava/lang/ThreadLocal;
6: aload 0
new org.jruby.ext.strscan.RubyStringScanner$2
dup
aload 0
invokespecial org.jruby.ext.strscan.RubyStringScanner$2.<init>:(Lorg/jruby/ext/strscan/RubyStringScanner;)V
putfield org.jruby.ext.strscan.RubyStringScanner.task:Lorg/jruby/RubyThread$Task;
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 8 1 runtime Lorg/jruby/Ruby;
0 8 2 type Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
type
public org.jruby.runtime.builtin.IRubyObject initialize(org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
descriptor: ([Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iconst_0
aaload
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
putfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
1: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 2 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 2 2 unusedBlock Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(required = 1, optional = 1, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
args
unusedBlock
public org.jruby.runtime.builtin.IRubyObject initialize_copy(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 1
aload 0
areturn
1: StackMap locals:
StackMap stack:
aload 1
instanceof org.jruby.ext.strscan.RubyStringScanner
ifne 5
2: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.getRuntime:()Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "wrong argument type "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
3: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.getMetaClass:()Lorg/jruby/RubyClass;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " (expected StringScanner)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
4: invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
5: StackMap locals:
StackMap stack:
aload 1
checkcast org.jruby.ext.strscan.RubyStringScanner
astore 2
start local 2 6: aload 0
aload 2
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
putfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
7: aload 0
aload 2
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
putfield org.jruby.ext.strscan.RubyStringScanner.pos:I
8: aload 0
aload 2
getfield org.jruby.ext.strscan.RubyStringScanner.lastPos:I
putfield org.jruby.ext.strscan.RubyStringScanner.lastPos:I
9: aload 0
aload 2
getfield org.jruby.ext.strscan.RubyStringScanner.scannerFlags:I
putfield org.jruby.ext.strscan.RubyStringScanner.scannerFlags:I
10: aload 0
aload 2
getfield org.jruby.ext.strscan.RubyStringScanner.regs:Lorg/joni/Region;
ifnull 11
aload 2
getfield org.jruby.ext.strscan.RubyStringScanner.regs:Lorg/joni/Region;
invokevirtual org.joni.Region.clone:()Lorg/joni/Region;
goto 12
StackMap locals: org.jruby.ext.strscan.RubyStringScanner org.jruby.runtime.builtin.IRubyObject org.jruby.ext.strscan.RubyStringScanner
StackMap stack: org.jruby.ext.strscan.RubyStringScanner
11: aconst_null
StackMap locals: org.jruby.ext.strscan.RubyStringScanner org.jruby.runtime.builtin.IRubyObject org.jruby.ext.strscan.RubyStringScanner
StackMap stack: org.jruby.ext.strscan.RubyStringScanner org.joni.Region
12: putfield org.jruby.ext.strscan.RubyStringScanner.regs:Lorg/joni/Region;
13: aload 0
aload 2
getfield org.jruby.ext.strscan.RubyStringScanner.pattern:Lorg/joni/Regex;
putfield org.jruby.ext.strscan.RubyStringScanner.pattern:Lorg/joni/Regex;
14: aload 0
aload 2
getfield org.jruby.ext.strscan.RubyStringScanner.beg:I
putfield org.jruby.ext.strscan.RubyStringScanner.beg:I
15: aload 0
aload 2
getfield org.jruby.ext.strscan.RubyStringScanner.end:I
putfield org.jruby.ext.strscan.RubyStringScanner.end:I
16: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 17 1 other Lorg/jruby/runtime/builtin/IRubyObject;
6 17 2 otherScanner Lorg/jruby/ext/strscan/RubyStringScanner;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
other
public org.jruby.runtime.builtin.IRubyObject reset();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.check:()V
1: aload 0
iconst_0
putfield org.jruby.ext.strscan.RubyStringScanner.pos:I
2: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.clearMatched:()V
3: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"reset"})
public org.jruby.runtime.builtin.IRubyObject terminate();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.check:()V
1: aload 0
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.getRealSize:()I
putfield org.jruby.ext.strscan.RubyStringScanner.pos:I
2: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.clearMatched:()V
3: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"terminate"})
public org.jruby.runtime.builtin.IRubyObject clear(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.check:()V
1: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 2
start local 2 2: aload 2
invokevirtual org.jruby.Ruby.isVerbose:()Z
ifeq 4
3: aload 2
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
getstatic org.jruby.common.IRubyWarnings$ID.DEPRECATED_METHOD:Lorg/jruby/common/IRubyWarnings$ID;
ldc "StringScanner#clear is obsolete; use #terminate instead"
invokevirtual org.jruby.common.RubyWarnings.warning:(Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
4: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.terminate:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 5 1 context Lorg/jruby/runtime/ThreadContext;
2 5 2 runtime Lorg/jruby/Ruby;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"clear"})
MethodParameters:
Name Flags
context
public org.jruby.RubyString string();
descriptor: ()Lorg/jruby/RubyString;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"string"})
public org.jruby.runtime.builtin.IRubyObject set_string(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
invokestatic org.jruby.RubyString.stringValue:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
putfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
1: aload 0
iconst_0
putfield org.jruby.ext.strscan.RubyStringScanner.pos:I
2: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.clearMatched:()V
3: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 4 1 context Lorg/jruby/runtime/ThreadContext;
0 4 2 str Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"string="}, required = 1)
MethodParameters:
Name Flags
context
str
public org.jruby.runtime.builtin.IRubyObject concat(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.check:()V
1: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.append:(Lorg/jruby/RubyString;)Lorg/jruby/RubyString;
pop
2: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 3 1 obj Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"concat", "<<"}, required = 1)
MethodParameters:
Name Flags
obj
public org.jruby.RubyFixnum pos();
descriptor: ()Lorg/jruby/RubyFixnum;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.check:()V
1: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.getRuntime:()Lorg/jruby/Ruby;
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
i2l
invokestatic org.jruby.RubyFixnum.newFixnum:(Lorg/jruby/Ruby;J)Lorg/jruby/RubyFixnum;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"pos", "pointer"})
public org.jruby.runtime.builtin.IRubyObject set_pos(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.check:()V
1: aload 1
invokestatic org.jruby.RubyNumeric.num2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
istore 2
start local 2 2: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.getRealSize:()I
istore 3
start local 3 3: iload 2
ifge 4
iload 2
iload 3
iadd
istore 2
4: StackMap locals: int int
StackMap stack:
iload 2
iflt 5
iload 2
iload 3
if_icmple 6
StackMap locals:
StackMap stack:
5: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.getRuntime:()Lorg/jruby/Ruby;
ldc "index out of range."
invokevirtual org.jruby.Ruby.newRangeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
6: StackMap locals:
StackMap stack:
aload 0
iload 2
putfield org.jruby.ext.strscan.RubyStringScanner.pos:I
7: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.getRuntime:()Lorg/jruby/Ruby;
iload 2
i2l
invokestatic org.jruby.RubyFixnum.newFixnum:(Lorg/jruby/Ruby;J)Lorg/jruby/RubyFixnum;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 8 1 pos Lorg/jruby/runtime/builtin/IRubyObject;
2 8 2 i I
3 8 3 size I
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"pos=", "pointer="})
MethodParameters:
Name Flags
pos
public org.jruby.runtime.builtin.IRubyObject charpos(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 1
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
ldc "byteslice"
aload 2
iconst_0
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
aload 2
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
invokestatic org.jruby.runtime.Helpers.invoke:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyString
astore 3
start local 3 2: aload 2
aload 3
invokevirtual org.jruby.RubyString.strLength:()I
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
1 3 2 runtime Lorg/jruby/Ruby;
2 3 3 sub Lorg/jruby/RubyString;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"charpos"})
MethodParameters:
Name Flags
context
private org.jruby.runtime.builtin.IRubyObject (org.jruby.Ruby, int, int);
descriptor: (Lorg/jruby/Ruby;II)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.getRealSize:()I
istore 4
start local 4 1: iload 2
iload 4
if_icmple 2
aload 1
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
2: StackMap locals: int
StackMap stack:
iload 3
iload 4
if_icmple 3
iload 4
istore 3
3: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
aload 1
iload 2
iload 3
iload 2
isub
invokevirtual org.jruby.RubyString.makeSharedString:(Lorg/jruby/Ruby;II)Lorg/jruby/RubyString;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 4 1 runtime Lorg/jruby/Ruby;
0 4 2 beg I
0 4 3 end I
1 4 4 size I
MethodParameters:
Name Flags
runtime
beg
end
private org.jruby.runtime.builtin.IRubyObject (org.jruby.Ruby, int, int);
descriptor: (Lorg/jruby/Ruby;II)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic org.jruby.ext.strscan.RubyStringScanner.$assertionsDisabled:Z
ifne 1
iload 3
ifge 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.getRealSize:()I
istore 4
start local 4 2: iload 2
iload 4
if_icmple 3
aload 1
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
3: StackMap locals: int
StackMap stack:
iload 2
iload 3
iadd
iload 4
if_icmple 4
iload 4
iload 2
isub
istore 3
4: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
aload 1
iload 2
iload 3
invokevirtual org.jruby.RubyString.makeSharedString:(Lorg/jruby/Ruby;II)Lorg/jruby/RubyString;
areturn
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 Lorg/jruby/ext/strscan/RubyStringScanner;
0 5 1 runtime Lorg/jruby/Ruby;
0 5 2 beg I
0 5 3 len I
2 5 4 size I
MethodParameters:
Name Flags
runtime
beg
len
private org.jruby.runtime.builtin.IRubyObject scan(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, boolean, boolean, boolean);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;ZZZ)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=13, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.getRuntime:()Lorg/jruby/Ruby;
astore 6
start local 6 1: aload 2
instanceof org.jruby.RubyRegexp
ifne 2
aload 6
new java.lang.StringBuilder
dup
ldc "wrong argument type "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.getMetaClass:()Lorg/jruby/RubyClass;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " (expected Regexp)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
2: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.check:()V
3: aload 0
aload 2
checkcast org.jruby.RubyRegexp
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyRegexp.preparePattern:(Lorg/jruby/RubyString;)Lorg/joni/Regex;
putfield org.jruby.ext.strscan.RubyStringScanner.pattern:Lorg/joni/Regex;
4: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.clearMatched:()V
5: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.getRealSize:()I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
isub
istore 7
start local 7 6: iload 7
ifge 7
aload 6
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
7: StackMap locals: int
StackMap stack:
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 8
start local 8 8: aload 8
invokevirtual org.jruby.util.ByteList.getBegin:()I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
iadd
istore 9
start local 9 9: aload 8
invokevirtual org.jruby.util.ByteList.getBegin:()I
aload 8
invokevirtual org.jruby.util.ByteList.getRealSize:()I
iadd
istore 10
start local 10 10: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pattern:Lorg/joni/Regex;
aload 8
invokevirtual org.jruby.util.ByteList.getUnsafeBytes:()[B
iload 9
iload 10
invokevirtual org.joni.Regex.matcher:([BII)Lorg/joni/Matcher;
astore 11
start local 11 11: iload 5
ifeq 20
12: aload 6
invokevirtual org.jruby.Ruby.getInstanceConfig:()Lorg/jruby/RubyInstanceConfig;
invokevirtual org.jruby.RubyInstanceConfig.isInterruptibleRegexps:()Z
ifeq 18
13: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.currentMatcher:Ljava/lang/ThreadLocal;
aload 11
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
14: aload 6
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
invokevirtual org.jruby.runtime.ThreadContext.getThread:()Lorg/jruby/RubyThread;
aload 1
aload 0
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.task:Lorg/jruby/RubyThread$Task;
invokevirtual org.jruby.RubyThread.executeTask:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/Object;Lorg/jruby/RubyThread$Task;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
istore 12
start local 12 15: goto 21
end local 12 StackMap locals: org.jruby.ext.strscan.RubyStringScanner org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject int int int org.jruby.Ruby int org.jruby.util.ByteList int int org.joni.Matcher
StackMap stack: java.lang.InterruptedException
16: pop
17: aload 6
ldc "Regexp Interrupted"
invokevirtual org.jruby.Ruby.newInterruptedRegexpError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
18: StackMap locals:
StackMap stack:
aload 11
iload 9
iload 10
iconst_0
invokevirtual org.joni.Matcher.match:(III)I
istore 12
start local 12 19: goto 21
end local 12 20: StackMap locals:
StackMap stack:
aload 1
aload 11
iload 9
iload 10
iconst_0
invokestatic org.jruby.RubyRegexp.matcherSearch:(Lorg/jruby/runtime/ThreadContext;Lorg/joni/Matcher;III)I
istore 12
start local 12 21: StackMap locals: int
StackMap stack:
aload 0
aload 11
invokevirtual org.joni.Matcher.getRegion:()Lorg/joni/Region;
putfield org.jruby.ext.strscan.RubyStringScanner.regs:Lorg/joni/Region;
22: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.regs:Lorg/joni/Region;
ifnonnull 26
23: aload 0
aload 11
invokevirtual org.joni.Matcher.getBegin:()I
putfield org.jruby.ext.strscan.RubyStringScanner.beg:I
24: aload 0
aload 11
invokevirtual org.joni.Matcher.getEnd:()I
putfield org.jruby.ext.strscan.RubyStringScanner.end:I
25: goto 28
26: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.regs:Lorg/joni/Region;
getfield org.joni.Region.beg:[I
iconst_0
iaload
putfield org.jruby.ext.strscan.RubyStringScanner.beg:I
27: aload 0
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.regs:Lorg/joni/Region;
getfield org.joni.Region.end:[I
iconst_0
iaload
putfield org.jruby.ext.strscan.RubyStringScanner.end:I
28: StackMap locals:
StackMap stack:
iload 12
ifge 29
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
29: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.setMatched:()V
30: aload 0
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
putfield org.jruby.ext.strscan.RubyStringScanner.lastPos:I
31: iload 3
ifeq 32
aload 0
dup
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.end:I
iadd
putfield org.jruby.ext.strscan.RubyStringScanner.pos:I
32: StackMap locals:
StackMap stack:
iload 4
ifeq 33
aload 0
aload 6
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.lastPos:I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.end:I
invokevirtual org.jruby.ext.strscan.RubyStringScanner.extractBegLen:(Lorg/jruby/Ruby;II)Lorg/jruby/runtime/builtin/IRubyObject;
goto 34
StackMap locals:
StackMap stack:
33: aload 6
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.end:I
i2l
invokestatic org.jruby.RubyFixnum.newFixnum:(Lorg/jruby/Ruby;J)Lorg/jruby/RubyFixnum;
StackMap locals:
StackMap stack: org.jruby.runtime.builtin.IRubyObject
34: areturn
end local 12 end local 11 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 35 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 35 1 context Lorg/jruby/runtime/ThreadContext;
0 35 2 regex Lorg/jruby/runtime/builtin/IRubyObject;
0 35 3 succptr Z
0 35 4 getstr Z
0 35 5 headonly Z
1 35 6 runtime Lorg/jruby/Ruby;
6 35 7 rest I
8 35 8 value Lorg/jruby/util/ByteList;
9 35 9 beg I
10 35 10 range I
11 35 11 matcher Lorg/joni/Matcher;
15 16 12 ret I
19 20 12 ret I
21 35 12 ret I
Exception table:
from to target type
14 15 16 Class java.lang.InterruptedException
MethodParameters:
Name Flags
context
regex
succptr
getstr
headonly
public org.jruby.runtime.builtin.IRubyObject scan(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_1
iconst_1
iconst_1
invokevirtual org.jruby.ext.strscan.RubyStringScanner.scan:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;ZZZ)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 regex Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"scan"}, required = 1)
MethodParameters:
Name Flags
context
regex
public org.jruby.runtime.builtin.IRubyObject match_p(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_0
iconst_0
iconst_1
invokevirtual org.jruby.ext.strscan.RubyStringScanner.scan:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;ZZZ)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 regex Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"match?"}, required = 1)
MethodParameters:
Name Flags
context
regex
public org.jruby.runtime.builtin.IRubyObject skip(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_1
iconst_0
iconst_1
invokevirtual org.jruby.ext.strscan.RubyStringScanner.scan:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;ZZZ)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 regex Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"skip"}, required = 1)
MethodParameters:
Name Flags
context
regex
public org.jruby.runtime.builtin.IRubyObject check(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_0
iconst_1
iconst_1
invokevirtual org.jruby.ext.strscan.RubyStringScanner.scan:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;ZZZ)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 regex Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"check"}, required = 1)
MethodParameters:
Name Flags
context
regex
public org.jruby.runtime.builtin.IRubyObject scan_full(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
aload 3
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
aload 4
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
iconst_1
invokevirtual org.jruby.ext.strscan.RubyStringScanner.scan:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;ZZZ)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 regex Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 s Lorg/jruby/runtime/builtin/IRubyObject;
0 1 4 f Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"scan_full"}, required = 3)
MethodParameters:
Name Flags
context
regex
s
f
public org.jruby.runtime.builtin.IRubyObject scan_until(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_1
iconst_1
iconst_0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.scan:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;ZZZ)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 regex Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"scan_until"}, required = 1)
MethodParameters:
Name Flags
context
regex
public org.jruby.runtime.builtin.IRubyObject exist_p(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_0
iconst_0
iconst_0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.scan:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;ZZZ)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 regex Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"exist?"}, required = 1)
MethodParameters:
Name Flags
context
regex
public org.jruby.runtime.builtin.IRubyObject skip_until(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_1
iconst_0
iconst_0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.scan:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;ZZZ)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 regex Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"skip_until"}, required = 1)
MethodParameters:
Name Flags
context
regex
public org.jruby.runtime.builtin.IRubyObject check_until(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_0
iconst_1
iconst_0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.scan:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;ZZZ)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 regex Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"check_until"}, required = 1)
MethodParameters:
Name Flags
context
regex
public org.jruby.runtime.builtin.IRubyObject search_full(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
aload 3
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
aload 4
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
iconst_0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.scan:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;ZZZ)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 regex Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 s Lorg/jruby/runtime/builtin/IRubyObject;
0 1 4 f Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"search_full"}, required = 3)
MethodParameters:
Name Flags
context
regex
s
f
private void adjustRegisters();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield org.jruby.ext.strscan.RubyStringScanner.beg:I
1: aload 0
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.lastPos:I
isub
putfield org.jruby.ext.strscan.RubyStringScanner.end:I
2: aload 0
aconst_null
putfield org.jruby.ext.strscan.RubyStringScanner.regs:Lorg/joni/Region;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
public org.jruby.runtime.builtin.IRubyObject getch(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.jruby.ext.strscan.RubyStringScanner.getch19:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject getch19(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokevirtual org.jruby.ext.strscan.RubyStringScanner.getchCommon:(Lorg/jruby/runtime/ThreadContext;Z)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"getch"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject getchCommon(org.jruby.runtime.ThreadContext, boolean);
descriptor: (Lorg/jruby/runtime/ThreadContext;Z)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.check:()V
1: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.clearMatched:()V
2: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 3: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 4
start local 4 4: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
aload 4
invokevirtual org.jruby.util.ByteList.getRealSize:()I
if_icmplt 5
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
5: StackMap locals: org.jruby.Ruby org.jruby.util.ByteList
StackMap stack:
iload 2
ifeq 11
6: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getEncoding:()Lorg/jcodings/Encoding;
astore 6
start local 6 7: aload 6
invokevirtual org.jcodings.Encoding.isSingleByte:()Z
ifeq 8
iconst_1
goto 9
StackMap locals: org.jruby.ext.strscan.RubyStringScanner org.jruby.runtime.ThreadContext int org.jruby.Ruby org.jruby.util.ByteList top org.jcodings.Encoding
StackMap stack:
8: aload 6
aload 4
invokevirtual org.jruby.util.ByteList.getUnsafeBytes:()[B
aload 4
invokevirtual org.jruby.util.ByteList.getBegin:()I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
iadd
aload 4
invokevirtual org.jruby.util.ByteList.getBegin:()I
aload 4
invokevirtual org.jruby.util.ByteList.getRealSize:()I
iadd
invokestatic org.jruby.util.StringSupport.length:(Lorg/jcodings/Encoding;[BII)I
StackMap locals:
StackMap stack: int
9: istore 5
end local 6 start local 5 10: goto 15
end local 5 11: StackMap locals: org.jruby.ext.strscan.RubyStringScanner org.jruby.runtime.ThreadContext int org.jruby.Ruby org.jruby.util.ByteList
StackMap stack:
aload 3
invokevirtual org.jruby.Ruby.getKCode:()Lorg/jruby/util/KCode;
invokevirtual org.jruby.util.KCode.getEncoding:()Lorg/jcodings/Encoding;
astore 6
start local 6 12: aload 6
invokevirtual org.jcodings.Encoding.isSingleByte:()Z
ifeq 13
iconst_1
goto 14
StackMap locals: org.jruby.ext.strscan.RubyStringScanner org.jruby.runtime.ThreadContext int org.jruby.Ruby org.jruby.util.ByteList top org.jcodings.Encoding
StackMap stack:
13: aload 6
aload 4
invokevirtual org.jruby.util.ByteList.getUnsafeBytes:()[B
aload 4
invokevirtual org.jruby.util.ByteList.getBegin:()I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
iadd
aload 4
invokevirtual org.jruby.util.ByteList.getBegin:()I
aload 4
invokevirtual org.jruby.util.ByteList.getRealSize:()I
iadd
invokevirtual org.jcodings.Encoding.length:([BII)I
StackMap locals:
StackMap stack: int
14: istore 5
end local 6 start local 5 15: StackMap locals: org.jruby.ext.strscan.RubyStringScanner org.jruby.runtime.ThreadContext int org.jruby.Ruby org.jruby.util.ByteList int
StackMap stack:
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
iload 5
iadd
aload 4
invokevirtual org.jruby.util.ByteList.getRealSize:()I
if_icmple 16
aload 4
invokevirtual org.jruby.util.ByteList.getRealSize:()I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
isub
istore 5
16: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
putfield org.jruby.ext.strscan.RubyStringScanner.lastPos:I
17: aload 0
dup
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
iload 5
iadd
putfield org.jruby.ext.strscan.RubyStringScanner.pos:I
18: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.setMatched:()V
19: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.adjustRegisters:()V
20: aload 0
aload 3
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.lastPos:I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.beg:I
iadd
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.lastPos:I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.end:I
iadd
invokevirtual org.jruby.ext.strscan.RubyStringScanner.extractRange:(Lorg/jruby/Ruby;II)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
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 21 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 21 1 context Lorg/jruby/runtime/ThreadContext;
0 21 2 is1_9 Z
3 21 3 runtime Lorg/jruby/Ruby;
4 21 4 value Lorg/jruby/util/ByteList;
10 11 5 len I
15 21 5 len I
7 10 6 enc Lorg/jcodings/Encoding;
12 15 6 enc Lorg/jcodings/Encoding;
MethodParameters:
Name Flags
context
is1_9
public org.jruby.runtime.builtin.IRubyObject get_byte(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.check:()V
1: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.clearMatched:()V
2: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.getRealSize:()I
if_icmplt 3
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
3: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
putfield org.jruby.ext.strscan.RubyStringScanner.lastPos:I
4: aload 0
dup
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
iconst_1
iadd
putfield org.jruby.ext.strscan.RubyStringScanner.pos:I
5: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.setMatched:()V
6: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.adjustRegisters:()V
7: aload 0
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.lastPos:I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.beg:I
iadd
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.lastPos:I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.end:I
iadd
invokevirtual org.jruby.ext.strscan.RubyStringScanner.extractRange:(Lorg/jruby/Ruby;II)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 8 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"get_byte"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject getbyte(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 2
invokevirtual org.jruby.Ruby.isVerbose:()Z
ifeq 5
2: aload 2
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
getstatic org.jruby.common.IRubyWarnings$ID.DEPRECATED_METHOD:Lorg/jruby/common/IRubyWarnings$ID;
3: ldc "StringScanner#getbyte is obsolete; use #get_byte instead"
4: invokevirtual org.jruby.common.RubyWarnings.warning:(Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
5: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 0
aload 1
invokevirtual org.jruby.ext.strscan.RubyStringScanner.get_byte:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 6 1 context Lorg/jruby/runtime/ThreadContext;
1 6 2 runtime Lorg/jruby/Ruby;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"getbyte"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject peek(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.check:()V
1: aload 2
invokestatic org.jruby.RubyNumeric.num2int:(Lorg/jruby/runtime/builtin/IRubyObject;)I
istore 3
start local 3 2: iload 3
ifge 4
3: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
ldc "negative string size (or size too big)"
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
4: StackMap locals: int
StackMap stack:
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 4
start local 4 5: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
aload 4
invokevirtual org.jruby.util.ByteList.getRealSize:()I
if_icmplt 6
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokestatic org.jruby.RubyString.newEmptyString:(Lorg/jruby/Ruby;)Lorg/jruby/RubyString;
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.infectBy:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
6: StackMap locals: org.jruby.util.ByteList
StackMap stack:
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
iload 3
iadd
aload 4
invokevirtual org.jruby.util.ByteList.getRealSize:()I
if_icmple 7
aload 4
invokevirtual org.jruby.util.ByteList.getRealSize:()I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
isub
istore 3
7: StackMap locals:
StackMap stack:
aload 0
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
iload 3
invokevirtual org.jruby.ext.strscan.RubyStringScanner.extractBegLen:(Lorg/jruby/Ruby;II)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 8 1 context Lorg/jruby/runtime/ThreadContext;
0 8 2 length Lorg/jruby/runtime/builtin/IRubyObject;
2 8 3 len I
5 8 4 value Lorg/jruby/util/ByteList;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"peek"}, required = 1)
MethodParameters:
Name Flags
context
length
public org.jruby.runtime.builtin.IRubyObject peep(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: aload 3
invokevirtual org.jruby.Ruby.isVerbose:()Z
ifeq 5
2: aload 3
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
3: getstatic org.jruby.common.IRubyWarnings$ID.DEPRECATED_METHOD:Lorg/jruby/common/IRubyWarnings$ID;
ldc "StringScanner#peep is obsolete; use #peek instead"
4: invokevirtual org.jruby.common.RubyWarnings.warning:(Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
5: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual org.jruby.ext.strscan.RubyStringScanner.peek:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 6 1 context Lorg/jruby/runtime/ThreadContext;
0 6 2 length Lorg/jruby/runtime/builtin/IRubyObject;
1 6 3 runtime Lorg/jruby/Ruby;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"peep"}, required = 1)
MethodParameters:
Name Flags
context
length
public org.jruby.runtime.builtin.IRubyObject unscan();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.check:()V
1: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.getRuntime:()Lorg/jruby/Ruby;
astore 1
start local 1 2: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.isMatched:()Z
ifne 5
3: aload 1
ldc "StringScanner"
invokevirtual org.jruby.Ruby.getClass:(Ljava/lang/String;)Lorg/jruby/RubyClass;
ldc "Error"
invokevirtual org.jruby.RubyClass.getClass:(Ljava/lang/String;)Lorg/jruby/RubyClass;
astore 2
start local 2 4: aload 1
aload 2
ldc "unscan failed: previous match had failed"
invokestatic org.jruby.exceptions.RaiseException.from:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 2 5: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 0
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.lastPos:I
putfield org.jruby.ext.strscan.RubyStringScanner.pos:I
6: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.clearMatched:()V
7: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
2 8 1 runtime Lorg/jruby/Ruby;
4 5 2 errorClass Lorg/jruby/RubyClass;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"unscan"})
public org.jruby.runtime.builtin.IRubyObject bol_p();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.check:()V
1: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.getRuntime:()Lorg/jruby/Ruby;
astore 1
start local 1 2: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 2
start local 2 3: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
aload 2
invokevirtual org.jruby.util.ByteList.getRealSize:()I
if_icmple 4
aload 1
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
4: StackMap locals: org.jruby.Ruby org.jruby.util.ByteList
StackMap stack:
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
ifne 5
aload 1
invokevirtual org.jruby.Ruby.getTrue:()Lorg/jruby/RubyBoolean;
areturn
5: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.jruby.util.ByteList.getUnsafeBytes:()[B
aload 2
invokevirtual org.jruby.util.ByteList.getBegin:()I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
iadd
iconst_1
isub
baload
bipush 10
if_icmpne 6
aload 1
invokevirtual org.jruby.Ruby.getTrue:()Lorg/jruby/RubyBoolean;
goto 7
StackMap locals:
StackMap stack:
6: aload 1
invokevirtual org.jruby.Ruby.getFalse:()Lorg/jruby/RubyBoolean;
StackMap locals:
StackMap stack: org.jruby.RubyBoolean
7: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
2 8 1 runtime Lorg/jruby/Ruby;
3 8 2 value Lorg/jruby/util/ByteList;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"beginning_of_line?"}, alias = {"bol?"})
public org.jruby.RubyBoolean eos_p(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyBoolean;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.check:()V
1: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.getRealSize:()I
if_icmplt 2
aload 1
getfield org.jruby.runtime.ThreadContext.tru:Lorg/jruby/RubyBoolean;
goto 3
StackMap locals:
StackMap stack:
2: aload 1
getfield org.jruby.runtime.ThreadContext.fals:Lorg/jruby/RubyBoolean;
StackMap locals:
StackMap stack: org.jruby.RubyBoolean
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 4 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"eos?"})
MethodParameters:
Name Flags
context
public org.jruby.RubyBoolean empty_p(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyBoolean;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 2
invokevirtual org.jruby.Ruby.isVerbose:()Z
ifeq 3
2: aload 2
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
getstatic org.jruby.common.IRubyWarnings$ID.DEPRECATED_METHOD:Lorg/jruby/common/IRubyWarnings$ID;
ldc "StringScanner#empty? is obsolete; use #eos? instead"
invokevirtual org.jruby.common.RubyWarnings.warning:(Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
3: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 0
aload 1
invokevirtual org.jruby.ext.strscan.RubyStringScanner.eos_p:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyBoolean;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 4 1 context Lorg/jruby/runtime/ThreadContext;
1 4 2 runtime Lorg/jruby/Ruby;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"empty?"})
MethodParameters:
Name Flags
context
public org.jruby.RubyBoolean rest_p(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyBoolean;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.check:()V
1: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.getRealSize:()I
if_icmplt 2
aload 1
getfield org.jruby.runtime.ThreadContext.fals:Lorg/jruby/RubyBoolean;
goto 3
StackMap locals:
StackMap stack:
2: aload 1
getfield org.jruby.runtime.ThreadContext.tru:Lorg/jruby/RubyBoolean;
StackMap locals:
StackMap stack: org.jruby.RubyBoolean
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 4 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"rest?"})
MethodParameters:
Name Flags
context
public org.jruby.RubyBoolean matched_p(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyBoolean;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.check:()V
1: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.isMatched:()Z
ifeq 2
aload 1
getfield org.jruby.runtime.ThreadContext.tru:Lorg/jruby/RubyBoolean;
goto 3
StackMap locals:
StackMap stack:
2: aload 1
getfield org.jruby.runtime.ThreadContext.fals:Lorg/jruby/RubyBoolean;
StackMap locals:
StackMap stack: org.jruby.RubyBoolean
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 4 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"matched?"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject matched(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.check:()V
1: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.isMatched:()Z
ifne 2
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.lastPos:I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.beg:I
iadd
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.lastPos:I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.end:I
iadd
invokevirtual org.jruby.ext.strscan.RubyStringScanner.extractRange:(Lorg/jruby/Ruby;II)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"matched"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject matched_size();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.check:()V
1: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.isMatched:()Z
ifne 2
aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.getRuntime:()Lorg/jruby/Ruby;
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.end:I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.beg:I
isub
i2l
invokestatic org.jruby.RubyFixnum.newFixnum:(Lorg/jruby/Ruby;J)Lorg/jruby/RubyFixnum;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"matched_size"})
public org.jruby.runtime.builtin.IRubyObject matchedsize(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 2
invokevirtual org.jruby.Ruby.isVerbose:()Z
ifeq 3
2: aload 2
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
getstatic org.jruby.common.IRubyWarnings$ID.DEPRECATED_METHOD:Lorg/jruby/common/IRubyWarnings$ID;
ldc "StringScanner#matchedsize is obsolete; use #matched_size instead"
invokevirtual org.jruby.common.RubyWarnings.warning:(Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
3: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.matched_size:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 4 1 context Lorg/jruby/runtime/ThreadContext;
1 4 2 runtime Lorg/jruby/Ruby;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"matchedsize"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject op_aref(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.check:()V
2: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.isMatched:()Z
ifne 4
3: aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
4: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 2
instanceof org.jruby.RubySymbol
ifne 5
aload 2
instanceof org.jruby.RubyString
ifeq 6
5: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pattern:Lorg/joni/Regex;
ifnonnull 6
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
6: StackMap locals:
StackMap stack:
aload 3
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pattern:Lorg/joni/Regex;
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.regs:Lorg/joni/Region;
aload 2
invokestatic org.jruby.RubyMatchData.backrefNumber:(Lorg/jruby/Ruby;Lorg/joni/Regex;Lorg/joni/Region;Lorg/jruby/runtime/builtin/IRubyObject;)I
istore 4
start local 4 7: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.regs:Lorg/joni/Region;
ifnonnull 8
iconst_1
goto 9
StackMap locals: int
StackMap stack:
8: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.regs:Lorg/joni/Region;
getfield org.joni.Region.numRegs:I
StackMap locals:
StackMap stack: int
9: istore 5
start local 5 10: iload 4
ifge 11
iload 4
iload 5
iadd
istore 4
11: StackMap locals: int
StackMap stack:
iload 4
iflt 12
iload 4
iload 5
if_icmplt 13
12: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
13: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.regs:Lorg/joni/Region;
ifnonnull 17
14: getstatic org.jruby.ext.strscan.RubyStringScanner.$assertionsDisabled:Z
ifne 15
iload 4
ifeq 15
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
15: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.beg:I
iconst_m1
if_icmpne 16
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
16: StackMap locals:
StackMap stack:
aload 0
aload 3
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.lastPos:I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.beg:I
iadd
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.lastPos:I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.end:I
iadd
invokevirtual org.jruby.ext.strscan.RubyStringScanner.extractRange:(Lorg/jruby/Ruby;II)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
17: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.regs:Lorg/joni/Region;
getfield org.joni.Region.beg:[I
iload 4
iaload
iconst_m1
if_icmpne 18
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
18: StackMap locals:
StackMap stack:
aload 0
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.lastPos:I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.regs:Lorg/joni/Region;
getfield org.joni.Region.beg:[I
iload 4
iaload
iadd
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.lastPos:I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.regs:Lorg/joni/Region;
getfield org.joni.Region.end:[I
iload 4
iaload
iadd
invokevirtual org.jruby.ext.strscan.RubyStringScanner.extractRange:(Lorg/jruby/Ruby;II)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
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 19 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 19 1 context Lorg/jruby/runtime/ThreadContext;
0 19 2 idx Lorg/jruby/runtime/builtin/IRubyObject;
1 19 3 runtime Lorg/jruby/Ruby;
7 19 4 i I
10 19 5 numRegs I
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"[]"}, required = 1)
MethodParameters:
Name Flags
context
idx
public org.jruby.runtime.builtin.IRubyObject pre_match(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.check:()V
1: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.isMatched:()Z
ifne 3
2: aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
3: StackMap locals:
StackMap stack:
aload 0
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
iconst_0
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.lastPos:I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.beg:I
iadd
invokevirtual org.jruby.ext.strscan.RubyStringScanner.extractRange:(Lorg/jruby/Ruby;II)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 4 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"pre_match"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject post_match(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.check:()V
1: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.isMatched:()Z
ifne 3
2: aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
3: StackMap locals:
StackMap stack:
aload 0
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.lastPos:I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.end:I
iadd
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.getRealSize:()I
invokevirtual org.jruby.ext.strscan.RubyStringScanner.extractRange:(Lorg/jruby/Ruby;II)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 4 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"post_match"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject rest(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.check:()V
1: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 2
start local 2 2: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
aload 2
invokevirtual org.jruby.util.ByteList.getRealSize:()I
if_icmplt 4
3: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokestatic org.jruby.RubyString.newEmptyString:(Lorg/jruby/Ruby;)Lorg/jruby/RubyString;
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.infectBy:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
4: StackMap locals: org.jruby.util.ByteList
StackMap stack:
aload 0
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
aload 2
invokevirtual org.jruby.util.ByteList.getRealSize:()I
invokevirtual org.jruby.ext.strscan.RubyStringScanner.extractRange:(Lorg/jruby/Ruby;II)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 5 1 context Lorg/jruby/runtime/ThreadContext;
2 5 2 value Lorg/jruby/util/ByteList;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"rest"})
MethodParameters:
Name Flags
context
public org.jruby.RubyFixnum rest_size();
descriptor: ()Lorg/jruby/RubyFixnum;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.check:()V
1: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 1
start local 1 2: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
aload 1
invokevirtual org.jruby.util.ByteList.getRealSize:()I
if_icmplt 3
aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.getRuntime:()Lorg/jruby/Ruby;
invokestatic org.jruby.RubyFixnum.zero:(Lorg/jruby/Ruby;)Lorg/jruby/RubyFixnum;
areturn
3: StackMap locals: org.jruby.util.ByteList
StackMap stack:
aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.getRuntime:()Lorg/jruby/Ruby;
aload 1
invokevirtual org.jruby.util.ByteList.getRealSize:()I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
isub
i2l
invokestatic org.jruby.RubyFixnum.newFixnum:(Lorg/jruby/Ruby;J)Lorg/jruby/RubyFixnum;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
2 4 1 value Lorg/jruby/util/ByteList;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"rest_size"})
public org.jruby.RubyFixnum restsize(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyFixnum;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 2
start local 2 1: aload 2
invokevirtual org.jruby.Ruby.isVerbose:()Z
ifeq 3
2: aload 2
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
getstatic org.jruby.common.IRubyWarnings$ID.DEPRECATED_METHOD:Lorg/jruby/common/IRubyWarnings$ID;
ldc "StringScanner#restsize is obsolete; use #rest_size instead"
invokevirtual org.jruby.common.RubyWarnings.warning:(Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
3: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.rest_size:()Lorg/jruby/RubyFixnum;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 4 1 context Lorg/jruby/runtime/ThreadContext;
1 4 2 runtime Lorg/jruby/Ruby;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"restsize"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject inspect();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
ifnonnull 1
aload 0
ldc "(uninitialized)"
invokevirtual org.jruby.ext.strscan.RubyStringScanner.inspect:(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
1: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.getRealSize:()I
if_icmplt 2
aload 0
ldc "fin"
invokevirtual org.jruby.ext.strscan.RubyStringScanner.inspect:(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
ifne 3
aload 0
new java.lang.StringBuilder
dup
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.getRealSize:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " @ "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.inspect2:()Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.ext.strscan.RubyStringScanner.inspect:(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
3: StackMap locals:
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.getRealSize:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.inspect1:()Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " @ "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.inspect2:()Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.ext.strscan.RubyStringScanner.inspect:(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"inspect"})
private org.jruby.runtime.builtin.IRubyObject inspect(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.getRuntime:()Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "#<"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.getMetaClass:()Lorg/jruby/RubyClass;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)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;
invokevirtual org.jruby.Ruby.newString:(Ljava/lang/String;)Lorg/jruby/RubyString;
astore 2
start local 2 1: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
ifnull 2
aload 2
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.infectBy:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
2: StackMap locals: org.jruby.RubyString
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 3 1 msg Ljava/lang/String;
1 3 2 result Lorg/jruby/RubyString;
MethodParameters:
Name Flags
msg
private org.jruby.runtime.builtin.IRubyObject inspect1();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.getRuntime:()Lorg/jruby/Ruby;
astore 1
start local 1 1: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
ifne 2
aload 1
invokestatic org.jruby.RubyString.newEmptyString:(Lorg/jruby/Ruby;)Lorg/jruby/RubyString;
areturn
2: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
iconst_5
if_icmple 6
3: aload 1
getstatic org.jruby.ext.strscan.RubyStringScanner.DOT_BYTES:[B
invokestatic org.jruby.RubyString.newStringNoCopy:(Lorg/jruby/Ruby;[B)Lorg/jruby/RubyString;
4: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
aload 1
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
iconst_5
isub
iconst_5
invokevirtual org.jruby.RubyString.substr:(Lorg/jruby/Ruby;II)Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual org.jruby.RubyString.append:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.inspect:()Lorg/jruby/RubyString;
5: areturn
6: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
aload 1
iconst_0
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
invokevirtual org.jruby.RubyString.substr:(Lorg/jruby/Ruby;II)Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.inspect:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
1 7 1 runtime Lorg/jruby/Ruby;
private org.jruby.runtime.builtin.IRubyObject inspect2();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.getRuntime:()Lorg/jruby/Ruby;
astore 1
start local 1 1: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.getRealSize:()I
if_icmplt 2
aload 1
invokestatic org.jruby.RubyString.newEmptyString:(Lorg/jruby/Ruby;)Lorg/jruby/RubyString;
areturn
2: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.getRealSize:()I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
isub
istore 2
start local 2 3: iload 2
iconst_5
if_icmple 5
4: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
aload 1
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
iconst_5
invokevirtual org.jruby.RubyString.substr:(Lorg/jruby/Ruby;II)Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyString
getstatic org.jruby.ext.strscan.RubyStringScanner.DOT_BYTES:[B
invokevirtual org.jruby.RubyString.cat:([B)Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.inspect:()Lorg/jruby/RubyString;
areturn
5: StackMap locals: int
StackMap stack:
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.str:Lorg/jruby/RubyString;
aload 1
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.pos:I
iload 2
invokevirtual org.jruby.RubyString.substr:(Lorg/jruby/Ruby;II)Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.inspect:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
1 6 1 runtime Lorg/jruby/Ruby;
3 6 2 len I
public static org.jruby.runtime.builtin.IRubyObject mustCversion(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 recv Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"must_C_version"}, meta = true)
MethodParameters:
Name Flags
recv
public org.jruby.runtime.builtin.IRubyObject size(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.isMatched:()Z
ifne 1
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
1: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.regs:Lorg/joni/Region;
getfield org.joni.Region.numRegs:I
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"size"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject captures(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.isMatched:()Z
ifne 1
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
1: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 5
start local 5 2: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.regs:Lorg/joni/Region;
getfield org.joni.Region.numRegs:I
istore 3
start local 3 3: aload 5
iload 3
invokestatic org.jruby.RubyArray.newArray:(Lorg/jruby/Ruby;I)Lorg/jruby/RubyArray;
astore 4
start local 4 4: iconst_1
istore 2
start local 2 5: goto 11
6: StackMap locals: org.jruby.ext.strscan.RubyStringScanner org.jruby.runtime.ThreadContext int int org.jruby.RubyArray org.jruby.Ruby
StackMap stack:
aload 0
aload 5
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.lastPos:I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.regs:Lorg/joni/Region;
getfield org.joni.Region.beg:[I
iload 2
iaload
iadd
7: aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.lastPos:I
aload 0
getfield org.jruby.ext.strscan.RubyStringScanner.regs:Lorg/joni/Region;
getfield org.joni.Region.end:[I
iload 2
iaload
iadd
8: invokevirtual org.jruby.ext.strscan.RubyStringScanner.extractRange:(Lorg/jruby/Ruby;II)Lorg/jruby/runtime/builtin/IRubyObject;
astore 6
start local 6 9: aload 4
aload 6
invokevirtual org.jruby.RubyArray.push:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
pop
end local 6 10: iinc 2 1
StackMap locals:
StackMap stack:
11: iload 2
iload 3
if_icmplt 6
12: aload 4
areturn
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 13 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 13 1 context Lorg/jruby/runtime/ThreadContext;
5 13 2 i I
3 13 3 numRegs I
4 13 4 newAry Lorg/jruby/RubyArray;
2 13 5 runtime Lorg/jruby/Ruby;
9 10 6 str Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"captures"})
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject values_at(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.ext.strscan.RubyStringScanner.isMatched:()Z
ifne 1
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
1: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 5
start local 5 2: aload 5
aload 2
arraylength
invokestatic org.jruby.RubyArray.newArray:(Lorg/jruby/Ruby;I)Lorg/jruby/RubyArray;
astore 4
start local 4 3: iconst_0
istore 3
start local 3 4: goto 7
5: StackMap locals: int org.jruby.RubyArray org.jruby.Ruby
StackMap stack:
aload 4
aload 0
aload 1
aload 2
iload 3
aaload
invokevirtual org.jruby.ext.strscan.RubyStringScanner.op_aref:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual org.jruby.RubyArray.push:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
pop
6: iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
aload 2
arraylength
if_icmplt 5
8: aload 4
areturn
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 9 0 this Lorg/jruby/ext/strscan/RubyStringScanner;
0 9 1 context Lorg/jruby/runtime/ThreadContext;
0 9 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
4 9 3 i I
3 9 4 newAry Lorg/jruby/RubyArray;
2 9 5 runtime Lorg/jruby/Ruby;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"values_at"}, rest = true)
MethodParameters:
Name Flags
context
args
}
SourceFile: "RubyStringScanner.java"
NestMembers:
org.jruby.ext.strscan.RubyStringScanner$1 org.jruby.ext.strscan.RubyStringScanner$2
InnerClasses:
public abstract Task = org.jruby.RubyThread$Task of org.jruby.RubyThread
public final ID = org.jruby.common.IRubyWarnings$ID of org.jruby.common.IRubyWarnings
org.jruby.ext.strscan.RubyStringScanner$1
org.jruby.ext.strscan.RubyStringScanner$2
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyClass(name = {"StringScanner"})