public class org.jruby.lexer.ByteListLexerSource extends org.jruby.lexer.LexerSource
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.lexer.ByteListLexerSource
super_class: org.jruby.lexer.LexerSource
{
private org.jruby.util.ByteList completeSource;
descriptor: Lorg/jruby/util/ByteList;
flags: (0x0002) ACC_PRIVATE
private int offset;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>(java.lang.String, int, org.jruby.util.ByteList, org.jruby.RubyArray);
descriptor: (Ljava/lang/String;ILorg/jruby/util/ByteList;Lorg/jruby/RubyArray;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, 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
iload 2
aload 4
invokespecial org.jruby.lexer.LexerSource.<init>:(Ljava/lang/String;ILorg/jruby/RubyArray;)V
1: aload 0
iconst_0
putfield org.jruby.lexer.ByteListLexerSource.offset:I
2: aload 0
aload 3
putfield org.jruby.lexer.ByteListLexerSource.completeSource:Lorg/jruby/util/ByteList;
3: return
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/lexer/ByteListLexerSource;
0 4 1 sourceName Ljava/lang/String;
0 4 2 line I
0 4 3 in Lorg/jruby/util/ByteList;
0 4 4 list Lorg/jruby/RubyArray;
MethodParameters:
Name Flags
sourceName
line
in
list
public org.jcodings.Encoding getEncoding();
descriptor: ()Lorg/jcodings/Encoding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.lexer.ByteListLexerSource.completeSource:Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.getEncoding:()Lorg/jcodings/Encoding;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/lexer/ByteListLexerSource;
public void setEncoding(org.jcodings.Encoding);
descriptor: (Lorg/jcodings/Encoding;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.lexer.ByteListLexerSource.completeSource:Lorg/jruby/util/ByteList;
aload 1
invokevirtual org.jruby.util.ByteList.setEncoding:(Lorg/jcodings/Encoding;)V
1: aload 0
aload 1
invokevirtual org.jruby.lexer.ByteListLexerSource.encodeExistingScriptLines:(Lorg/jcodings/Encoding;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/lexer/ByteListLexerSource;
0 3 1 encoding Lorg/jcodings/Encoding;
MethodParameters:
Name Flags
encoding
public org.jruby.util.ByteList gets();
descriptor: ()Lorg/jruby/util/ByteList;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
getfield org.jruby.lexer.ByteListLexerSource.completeSource:Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.length:()I
istore 1
start local 1 1: aload 0
getfield org.jruby.lexer.ByteListLexerSource.offset:I
iload 1
if_icmplt 2
aconst_null
areturn
2: StackMap locals: int
StackMap stack:
aload 0
getfield org.jruby.lexer.ByteListLexerSource.completeSource:Lorg/jruby/util/ByteList;
bipush 10
aload 0
getfield org.jruby.lexer.ByteListLexerSource.offset:I
invokevirtual org.jruby.util.ByteList.indexOf:(II)I
iconst_1
iadd
istore 2
start local 2 3: iload 2
ifne 4
iload 1
istore 2
4: StackMap locals: int
StackMap stack:
aload 0
getfield org.jruby.lexer.ByteListLexerSource.completeSource:Lorg/jruby/util/ByteList;
aload 0
getfield org.jruby.lexer.ByteListLexerSource.offset:I
iload 2
aload 0
getfield org.jruby.lexer.ByteListLexerSource.offset:I
isub
invokevirtual org.jruby.util.ByteList.makeShared:(II)Lorg/jruby/util/ByteList;
astore 3
start local 3 5: aload 0
iload 2
putfield org.jruby.lexer.ByteListLexerSource.offset:I
6: aload 0
getfield org.jruby.lexer.ByteListLexerSource.scriptLines:Lorg/jruby/RubyArray;
ifnull 7
aload 0
getfield org.jruby.lexer.ByteListLexerSource.scriptLines:Lorg/jruby/RubyArray;
aload 0
getfield org.jruby.lexer.ByteListLexerSource.scriptLines:Lorg/jruby/RubyArray;
invokevirtual org.jruby.RubyArray.getRuntime:()Lorg/jruby/Ruby;
aload 3
invokestatic org.jruby.RubyString.newString:(Lorg/jruby/Ruby;Lorg/jruby/util/ByteList;)Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyArray.append:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
pop
7: StackMap locals: org.jruby.util.ByteList
StackMap stack:
aload 3
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/lexer/ByteListLexerSource;
1 8 1 length I
3 8 2 end I
5 8 3 line Lorg/jruby/util/ByteList;
public int getOffset();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.lexer.ByteListLexerSource.offset:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/lexer/ByteListLexerSource;
public java.nio.channels.Channel getRemainingAsChannel();
descriptor: ()Ljava/nio/channels/Channel;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: new java.io.ByteArrayInputStream
dup
aload 0
getfield org.jruby.lexer.ByteListLexerSource.completeSource:Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.unsafeBytes:()[B
aload 0
getfield org.jruby.lexer.ByteListLexerSource.completeSource:Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.begin:()I
aload 0
getfield org.jruby.lexer.ByteListLexerSource.completeSource:Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.realSize:()I
invokespecial java.io.ByteArrayInputStream.<init>:([BII)V
astore 1
start local 1 1: aload 1
aload 0
getfield org.jruby.lexer.ByteListLexerSource.offset:I
i2l
invokevirtual java.io.ByteArrayInputStream.skip:(J)J
pop2
2: aload 1
invokestatic org.jruby.util.io.ChannelHelper.readableChannel:(Ljava/io/InputStream;)Ljava/nio/channels/ReadableByteChannel;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/lexer/ByteListLexerSource;
1 3 1 bais Ljava/io/ByteArrayInputStream;
public org.jruby.runtime.builtin.IRubyObject getRemainingAsIO();
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.lexer.ByteListLexerSource.scriptLines:Lorg/jruby/RubyArray;
ifnonnull 1
aconst_null
areturn
1: StackMap locals:
StackMap stack:
new org.jruby.RubyIO
dup
aload 0
getfield org.jruby.lexer.ByteListLexerSource.scriptLines:Lorg/jruby/RubyArray;
invokevirtual org.jruby.RubyArray.getRuntime:()Lorg/jruby/Ruby;
aload 0
invokevirtual org.jruby.lexer.ByteListLexerSource.getRemainingAsChannel:()Ljava/nio/channels/Channel;
invokespecial org.jruby.RubyIO.<init>:(Lorg/jruby/Ruby;Ljava/nio/channels/Channel;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/lexer/ByteListLexerSource;
}
SourceFile: "ByteListLexerSource.java"