public class org.jruby.ir.operands.Rational extends org.jruby.ir.operands.ImmutableLiteral
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ir.operands.Rational
super_class: org.jruby.ir.operands.ImmutableLiteral
{
private final org.jruby.ir.operands.ImmutableLiteral numerator;
descriptor: Lorg/jruby/ir/operands/ImmutableLiteral;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.jruby.ir.operands.ImmutableLiteral denominator;
descriptor: Lorg/jruby/ir/operands/ImmutableLiteral;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.jruby.ir.operands.ImmutableLiteral, org.jruby.ir.operands.ImmutableLiteral);
descriptor: (Lorg/jruby/ir/operands/ImmutableLiteral;Lorg/jruby/ir/operands/ImmutableLiteral;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial org.jruby.ir.operands.ImmutableLiteral.<init>:()V
1: aload 0
aload 1
putfield org.jruby.ir.operands.Rational.numerator:Lorg/jruby/ir/operands/ImmutableLiteral;
2: aload 0
aload 2
putfield org.jruby.ir.operands.Rational.denominator:Lorg/jruby/ir/operands/ImmutableLiteral;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ir/operands/Rational;
0 4 1 numerator Lorg/jruby/ir/operands/ImmutableLiteral;
0 4 2 denominator Lorg/jruby/ir/operands/ImmutableLiteral;
MethodParameters:
Name Flags
numerator
denominator
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.RATIONAL:Lorg/jruby/ir/operands/OperandType;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/operands/Rational;
public java.lang.Object createCacheObject(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
1: aload 0
getfield org.jruby.ir.operands.Rational.numerator:Lorg/jruby/ir/operands/ImmutableLiteral;
aload 1
invokevirtual org.jruby.ir.operands.ImmutableLiteral.cachedObject:(Lorg/jruby/runtime/ThreadContext;)Ljava/lang/Object;
checkcast org.jruby.runtime.builtin.IRubyObject
aload 0
getfield org.jruby.ir.operands.Rational.denominator:Lorg/jruby/ir/operands/ImmutableLiteral;
aload 1
invokevirtual org.jruby.ir.operands.ImmutableLiteral.cachedObject:(Lorg/jruby/runtime/ThreadContext;)Ljava/lang/Object;
checkcast org.jruby.runtime.builtin.IRubyObject
2: invokestatic org.jruby.RubyRational.newRationalRaw:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyRational;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ir/operands/Rational;
0 3 1 context Lorg/jruby/runtime/ThreadContext;
MethodParameters:
Name Flags
context
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.ImmutableLiteral.encode:(Lorg/jruby/ir/persistence/IRWriterEncoder;)V
1: aload 0
getfield org.jruby.ir.operands.Rational.numerator:Lorg/jruby/ir/operands/ImmutableLiteral;
aload 1
invokevirtual org.jruby.ir.operands.ImmutableLiteral.encode:(Lorg/jruby/ir/persistence/IRWriterEncoder;)V
2: aload 0
getfield org.jruby.ir.operands.Rational.denominator:Lorg/jruby/ir/operands/ImmutableLiteral;
aload 1
invokevirtual org.jruby.ir.operands.ImmutableLiteral.encode:(Lorg/jruby/ir/persistence/IRWriterEncoder;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/ir/operands/Rational;
0 4 1 e Lorg/jruby/ir/persistence/IRWriterEncoder;
MethodParameters:
Name Flags
e
public static org.jruby.ir.operands.Rational decode(org.jruby.ir.persistence.IRReaderDecoder);
descriptor: (Lorg/jruby/ir/persistence/IRReaderDecoder;)Lorg/jruby/ir/operands/Rational;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new org.jruby.ir.operands.Rational
dup
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeOperand:()Lorg/jruby/ir/operands/Operand;
checkcast org.jruby.ir.operands.ImmutableLiteral
aload 0
invokeinterface org.jruby.ir.persistence.IRReaderDecoder.decodeOperand:()Lorg/jruby/ir/operands/Operand;
checkcast org.jruby.ir.operands.ImmutableLiteral
invokespecial org.jruby.ir.operands.Rational.<init>:(Lorg/jruby/ir/operands/ImmutableLiteral;Lorg/jruby/ir/operands/ImmutableLiteral;)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 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 "Rational:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.jruby.ir.operands.Rational.numerator:Lorg/jruby/ir/operands/ImmutableLiteral;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "/1"
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/Rational;
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.Rational:(Lorg/jruby/ir/operands/Rational;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ir/operands/Rational;
0 2 1 visitor Lorg/jruby/ir/IRVisitor;
MethodParameters:
Name Flags
visitor
public org.jruby.ir.operands.ImmutableLiteral getNumerator();
descriptor: ()Lorg/jruby/ir/operands/ImmutableLiteral;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.operands.Rational.numerator:Lorg/jruby/ir/operands/ImmutableLiteral;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/operands/Rational;
public org.jruby.ir.operands.ImmutableLiteral getDenominator();
descriptor: ()Lorg/jruby/ir/operands/ImmutableLiteral;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ir.operands.Rational.denominator:Lorg/jruby/ir/operands/ImmutableLiteral;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ir/operands/Rational;
public boolean isTruthyImmediate();
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/Rational;
}
SourceFile: "Rational.java"