public class org.jruby.lexer.GetsLexerSource extends org.jruby.lexer.LexerSource
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.lexer.GetsLexerSource
super_class: org.jruby.lexer.LexerSource
{
private org.jruby.runtime.builtin.IRubyObject io;
descriptor: Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0002) ACC_PRIVATE
private org.jcodings.Encoding encoding;
descriptor: Lorg/jcodings/Encoding;
flags: (0x0002) ACC_PRIVATE
private int offset;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>(java.lang.String, int, org.jruby.runtime.builtin.IRubyObject, org.jruby.RubyArray, org.jcodings.Encoding);
descriptor: (Ljava/lang/String;ILorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyArray;Lorg/jcodings/Encoding;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 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
aload 3
putfield org.jruby.lexer.GetsLexerSource.io:Lorg/jruby/runtime/builtin/IRubyObject;
2: aload 0
aload 5
putfield org.jruby.lexer.GetsLexerSource.encoding:Lorg/jcodings/Encoding;
3: return
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 4 0 this Lorg/jruby/lexer/GetsLexerSource;
0 4 1 sourceName Ljava/lang/String;
0 4 2 line I
0 4 3 io Lorg/jruby/runtime/builtin/IRubyObject;
0 4 4 scriptLines Lorg/jruby/RubyArray;
0 4 5 encoding Lorg/jcodings/Encoding;
MethodParameters:
Name Flags
sourceName
line
io
scriptLines
encoding
public void <init>(java.lang.String, int, org.jruby.runtime.builtin.IRubyObject, org.jruby.RubyArray);
descriptor: (Ljava/lang/String;ILorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyArray;)V
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
iload 2
aload 3
aload 4
aload 3
invokestatic org.jruby.lexer.GetsLexerSource.frobnicateEncoding:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jcodings/Encoding;
invokespecial org.jruby.lexer.GetsLexerSource.<init>:(Ljava/lang/String;ILorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyArray;Lorg/jcodings/Encoding;)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/lexer/GetsLexerSource;
0 2 1 sourceName Ljava/lang/String;
0 2 2 line I
0 2 3 io Lorg/jruby/runtime/builtin/IRubyObject;
0 2 4 scriptLines Lorg/jruby/RubyArray;
MethodParameters:
Name Flags
sourceName
line
io
scriptLines
public static final org.jcodings.Encoding frobnicateEncoding(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jcodings/Encoding;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
ldc "encoding"
invokeinterface org.jruby.runtime.builtin.IRubyObject.respondsTo:(Ljava/lang/String;)Z
ifne 1
aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getDefaultExternalEncoding:()Lorg/jcodings/Encoding;
areturn
1: StackMap locals:
StackMap stack:
aload 0
aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
ldc "encoding"
invokeinterface org.jruby.runtime.builtin.IRubyObject.callMethod:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 1
start local 1 2: aload 1
instanceof org.jruby.RubyEncoding
ifeq 4
3: aload 1
checkcast org.jruby.RubyEncoding
invokevirtual org.jruby.RubyEncoding.getEncoding:()Lorg/jcodings/Encoding;
goto 5
StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
4: aload 0
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getDefaultExternalEncoding:()Lorg/jcodings/Encoding;
5: StackMap locals:
StackMap stack: org.jcodings.Encoding
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 io Lorg/jruby/runtime/builtin/IRubyObject;
2 6 1 encodingObject Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
io
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.GetsLexerSource.encoding:Lorg/jcodings/Encoding;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/lexer/GetsLexerSource;
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
aload 1
putfield org.jruby.lexer.GetsLexerSource.encoding:Lorg/jcodings/Encoding;
1: aload 0
aload 1
invokevirtual org.jruby.lexer.GetsLexerSource.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/GetsLexerSource;
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=3, locals=3, args_size=1
start local 0 0: aload 0
getfield org.jruby.lexer.GetsLexerSource.io:Lorg/jruby/runtime/builtin/IRubyObject;
aload 0
getfield org.jruby.lexer.GetsLexerSource.io:Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
ldc "gets"
invokeinterface org.jruby.runtime.builtin.IRubyObject.callMethod:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 1
start local 1 1: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifeq 2
aconst_null
areturn
2: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.convertToString:()Lorg/jruby/RubyString;
invokevirtual org.jruby.RubyString.getByteList:()Lorg/jruby/util/ByteList;
astore 2
start local 2 3: aload 0
dup
getfield org.jruby.lexer.GetsLexerSource.offset:I
aload 2
invokevirtual org.jruby.util.ByteList.getRealSize:()I
iadd
putfield org.jruby.lexer.GetsLexerSource.offset:I
4: aload 2
aload 0
getfield org.jruby.lexer.GetsLexerSource.encoding:Lorg/jcodings/Encoding;
invokevirtual org.jruby.util.ByteList.setEncoding:(Lorg/jcodings/Encoding;)V
5: aload 0
getfield org.jruby.lexer.GetsLexerSource.scriptLines:Lorg/jruby/RubyArray;
ifnull 6
aload 0
getfield org.jruby.lexer.GetsLexerSource.scriptLines:Lorg/jruby/RubyArray;
aload 0
getfield org.jruby.lexer.GetsLexerSource.scriptLines:Lorg/jruby/RubyArray;
invokevirtual org.jruby.RubyArray.getRuntime:()Lorg/jruby/Ruby;
aload 2
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
6: StackMap locals: org.jruby.util.ByteList
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/lexer/GetsLexerSource;
1 7 1 result Lorg/jruby/runtime/builtin/IRubyObject;
3 7 2 bytelist 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.GetsLexerSource.offset:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/lexer/GetsLexerSource;
public java.nio.channels.Channel getRemainingAsChannel();
descriptor: ()Ljava/nio/channels/Channel;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.lexer.GetsLexerSource.io:Lorg/jruby/runtime/builtin/IRubyObject;
instanceof org.jruby.RubyIO
ifeq 1
aload 0
getfield org.jruby.lexer.GetsLexerSource.io:Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyIO
invokevirtual org.jruby.RubyIO.getChannel:()Ljava/nio/channels/Channel;
areturn
1: StackMap locals:
StackMap stack:
new org.jruby.util.IOInputStream
dup
aload 0
getfield org.jruby.lexer.GetsLexerSource.io:Lorg/jruby/runtime/builtin/IRubyObject;
invokespecial org.jruby.util.IOInputStream.<init>:(Lorg/jruby/runtime/builtin/IRubyObject;)V
invokestatic org.jruby.util.io.ChannelHelper.readableChannel:(Ljava/io/InputStream;)Ljava/nio/channels/ReadableByteChannel;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/lexer/GetsLexerSource;
public org.jruby.runtime.builtin.IRubyObject getRemainingAsIO();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.lexer.GetsLexerSource.io:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/lexer/GetsLexerSource;
}
SourceFile: "GetsLexerSource.java"