public class org.jruby.ir.operands.StringLiteral extends org.jruby.ir.operands.Operand implements org.jruby.ir.operands.Stringable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ir.operands.StringLiteral
super_class: org.jruby.ir.operands.Operand
{
public static final org.jruby.ir.operands.StringLiteral EMPTY_STRING;
descriptor: Lorg/jruby/ir/operands/StringLiteral;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public final org.jruby.ir.operands.FrozenString frozenString;
descriptor: Lorg/jruby/ir/operands/FrozenString;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new org.jruby.ir.operands.StringLiteral
dup
ldc ""
invokespecial org.jruby.ir.operands.StringLiteral.<init>:(Ljava/lang/String;)V
putstatic org.jruby.ir.operands.StringLiteral.EMPTY_STRING:Lorg/jruby/ir/operands/StringLiteral;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.jruby.util.ByteList, int, java.lang.String, int);
descriptor: (Lorg/jruby/util/ByteList;ILjava/lang/String;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial org.jruby.ir.operands.Operand.<init>:()V
1: aload 0
new org.jruby.ir.operands.FrozenString
dup
aload 1
iload 2
aload 3
iload 4
invokespecial org.jruby.ir.operands.FrozenString.<init>:(Lorg/jruby/util/ByteList;ILjava/lang/String;I)V
putfield org.jruby.ir.operands.StringLiteral.frozenString:Lorg/jruby/ir/operands/FrozenString;
2: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ir/operands/StringLiteral;
0 3 1 val Lorg/jruby/util/ByteList;
0 3 2 coderange I
0 3 3 file Ljava/lang/String;
0 3 4 line I
MethodParameters:
Name Flags
val
coderange
file
line
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.jruby.ir.operands.Operand.<init>:()V
1: aload 0
new org.jruby.ir.operands.FrozenString
dup
aload 1
invokespecial org.jruby.ir.operands.FrozenString.<init>:(Ljava/lang/String;)V
putfield org.jruby.ir.operands.StringLiteral.frozenString:Lorg/jruby/ir/operands/FrozenString;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ir/operands/StringLiteral;
0 3 1 s Ljava/lang/String;
MethodParameters:
Name Flags
s
public void <init>(org.jruby.RubySymbol);
descriptor: (Lorg/jruby/RubySymbol;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.jruby.ir.operands.Operand.<init>:()V
1: aload 0
new org.jruby.ir.operands.FrozenString
dup
aload 1
invokespecial org.jruby.ir.operands.FrozenString.<init>:(Lorg/jruby/RubySymbol;)V
putfield org.jruby.ir.operands.StringLiteral.frozenString:Lorg/jruby/ir/operands/FrozenString;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ir/operands/StringLiteral;
0 3 1 symbol Lorg/jruby/RubySymbol;
MethodParameters:
Name Flags
symbol
private void <init>(org.jruby.ir.operands.FrozenString);
descriptor: (Lorg/jruby/ir/operands/FrozenString;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.jruby.ir.operands.Operand.<init>:()V
1: aload 0
aload 1
putfield org.jruby.ir.operands.StringLiteral.frozenString:Lorg/jruby/ir/operands/FrozenString;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ir/operands/StringLiteral;
0 3 1 frozenString Lorg/jruby/ir/operands/FrozenString;
MethodParameters:
Name Flags
frozenString
public org.jruby.ir.operands.OperandType getOperandType();
descriptor: ()Lorg/jruby/ir/operands/OperandType;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic org.jruby.ir.operands.OperandType.STRING_LITERAL:Lorg/jruby/ir/operands/OperandType;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/operands/StringLiteral;
public boolean hasKnownValue();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/operands/StringLiteral;
public void addUsedVariables(java.util.List<org.jruby.ir.operands.Variable>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/operands/StringLiteral;
0 1 1 l Ljava/util/List<Lorg/jruby/ir/operands/Variable;>;
Signature: (Ljava/util/List<Lorg/jruby/ir/operands/Variable;>;)V
MethodParameters:
Name Flags
l
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.operands.StringLiteral.frozenString:Lorg/jruby/ir/operands/FrozenString;
invokevirtual org.jruby.ir.operands.FrozenString.hashCode:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/operands/StringLiteral;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.jruby.ir.operands.StringLiteral
ifeq 1
aload 0
getfield org.jruby.ir.operands.StringLiteral.frozenString:Lorg/jruby/ir/operands/FrozenString;
aload 1
checkcast org.jruby.ir.operands.StringLiteral
getfield org.jruby.ir.operands.StringLiteral.frozenString:Lorg/jruby/ir/operands/FrozenString;
invokevirtual org.jruby.ir.operands.FrozenString.equals:(Ljava/lang/Object;)Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ir/operands/StringLiteral;
0 2 1 other Ljava/lang/Object;
MethodParameters:
Name Flags
other
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "strdup("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.jruby.ir.operands.StringLiteral.frozenString:Lorg/jruby/ir/operands/FrozenString;
invokevirtual org.jruby.ir.operands.FrozenString.toString:()Ljava/lang/String;
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;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/operands/StringLiteral;
public org.jruby.ir.operands.Operand cloneForInlining(org.jruby.ir.transformations.inlining.CloneInfo);
descriptor: (Lorg/jruby/ir/transformations/inlining/CloneInfo;)Lorg/jruby/ir/operands/Operand;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/operands/StringLiteral;
0 1 1 ii Lorg/jruby/ir/transformations/inlining/CloneInfo;
MethodParameters:
Name Flags
ii
public java.lang.Object retrieve(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.parser.StaticScope, org.jruby.runtime.DynamicScope, java.lang.Object[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/parser/StaticScope;Lorg/jruby/runtime/DynamicScope;[Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, 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
getfield org.jruby.ir.operands.StringLiteral.frozenString:Lorg/jruby/ir/operands/FrozenString;
aload 1
aload 2
aload 3
aload 4
aload 5
invokevirtual org.jruby.ir.operands.FrozenString.retrieve:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/parser/StaticScope;Lorg/jruby/runtime/DynamicScope;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jruby.RubyString
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.RubyString.strDup:(Lorg/jruby/Ruby;)Lorg/jruby/RubyString;
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 1 0 this Lorg/jruby/ir/operands/StringLiteral;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 self Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 currScope Lorg/jruby/parser/StaticScope;
0 1 4 currDynScope Lorg/jruby/runtime/DynamicScope;
0 1 5 temp [Ljava/lang/Object;
MethodParameters:
Name Flags
context
self
currScope
currDynScope
temp
public void visit(org.jruby.ir.IRVisitor);
descriptor: (Lorg/jruby/ir/IRVisitor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual org.jruby.ir.IRVisitor.StringLiteral:(Lorg/jruby/ir/operands/StringLiteral;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ir/operands/StringLiteral;
0 2 1 visitor Lorg/jruby/ir/IRVisitor;
MethodParameters:
Name Flags
visitor
public org.jruby.util.ByteList getByteList();
descriptor: ()Lorg/jruby/util/ByteList;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.operands.StringLiteral.frozenString:Lorg/jruby/ir/operands/FrozenString;
invokevirtual org.jruby.ir.operands.FrozenString.getByteList:()Lorg/jruby/util/ByteList;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/operands/StringLiteral;
public java.lang.String getString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.operands.StringLiteral.frozenString:Lorg/jruby/ir/operands/FrozenString;
invokevirtual org.jruby.ir.operands.FrozenString.getString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/operands/StringLiteral;
public void encode(org.jruby.ir.persistence.IRWriterEncoder);
descriptor: (Lorg/jruby/ir/persistence/IRWriterEncoder;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.jruby.ir.operands.Operand.encode:(Lorg/jruby/ir/persistence/IRWriterEncoder;)V
1: aload 1
aload 0
getfield org.jruby.ir.operands.StringLiteral.frozenString:Lorg/jruby/ir/operands/FrozenString;
invokeinterface org.jruby.ir.persistence.IRWriterEncoder.encode:(Lorg/jruby/ir/operands/Operand;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ir/operands/StringLiteral;
0 3 1 e Lorg/jruby/ir/persistence/IRWriterEncoder;
MethodParameters:
Name Flags
e
public static org.jruby.ir.operands.StringLiteral decode(org.jruby.ir.persistence.IRReaderDecoder);
descriptor: (Lorg/jruby/ir/persistence/IRReaderDecoder;)Lorg/jruby/ir/operands/StringLiteral;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.jruby.ir.operands.StringLiteral
dup
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeOperand:()Lorg/jruby/ir/operands/Operand;
checkcast org.jruby.ir.operands.FrozenString
invokespecial org.jruby.ir.operands.StringLiteral.<init>:(Lorg/jruby/ir/operands/FrozenString;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 d Lorg/jruby/ir/persistence/IRReaderDecoder;
MethodParameters:
Name Flags
d
public int getCodeRange();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.operands.StringLiteral.frozenString:Lorg/jruby/ir/operands/FrozenString;
invokevirtual org.jruby.ir.operands.FrozenString.getCodeRange:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/operands/StringLiteral;
}
SourceFile: "StringLiteral.java"