public final class org.jruby.util.SafeFloatParser extends org.jruby.util.SafeDecimalParser
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.jruby.util.SafeFloatParser
super_class: org.jruby.util.SafeDecimalParser
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.jruby.util.SafeDecimalParser.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/SafeFloatParser;
public static java.lang.Float valueOf(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Float;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
invokestatic org.jruby.util.SafeFloatParser.decimalValueOf:(Ljava/lang/String;)Ljava/lang/Double;
astore 2
start local 2 2: aload 2
ifnull 4
3: aload 2
invokevirtual java.lang.Double.floatValue:()F
invokestatic java.lang.Float.valueOf:(F)Ljava/lang/Float;
astore 1
4: StackMap locals: java.lang.Float java.lang.Double
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 s Ljava/lang/String;
1 5 1 result Ljava/lang/Float;
2 5 2 decimalValue Ljava/lang/Double;
MethodParameters:
Name Flags
s
public static java.lang.Float parseFloat(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Float;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.jruby.util.SafeFloatParser.valueOf:(Ljava/lang/String;)Ljava/lang/Float;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Ljava/lang/String;
MethodParameters:
Name Flags
s
public static float floatValue(java.lang.Number);
descriptor: (Ljava/lang/Number;)F
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.jruby.util.SafeFloatParser.decimalValue:(Ljava/lang/Number;)D
d2f
invokestatic java.lang.Float.valueOf:(F)Ljava/lang/Float;
invokevirtual java.lang.Float.floatValue:()F
freturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 number Ljava/lang/Number;
MethodParameters:
Name Flags
number
public static float floatValue(java.math.BigDecimal);
descriptor: (Ljava/math/BigDecimal;)F
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.jruby.util.SafeFloatParser.decimalValue:(Ljava/math/BigDecimal;)D
d2f
invokestatic java.lang.Float.valueOf:(F)Ljava/lang/Float;
invokevirtual java.lang.Float.floatValue:()F
freturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 bigDecimal Ljava/math/BigDecimal;
MethodParameters:
Name Flags
bigDecimal
}
SourceFile: "SafeFloatParser.java"