public class org.jruby.util.RubyTimeOutputFormatter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.util.RubyTimeOutputFormatter
super_class: java.lang.Object
{
final java.lang.String flags;
descriptor: Ljava/lang/String;
flags: (0x0010) ACC_FINAL
final int width;
descriptor: I
flags: (0x0010) ACC_FINAL
public static final org.jruby.util.RubyTimeOutputFormatter DEFAULT_FORMATTER;
descriptor: Lorg/jruby/util/RubyTimeOutputFormatter;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private static final int SMALLBUF;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 100
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: new org.jruby.util.RubyTimeOutputFormatter
dup
ldc ""
iconst_0
invokespecial org.jruby.util.RubyTimeOutputFormatter.<init>:(Ljava/lang/String;I)V
putstatic org.jruby.util.RubyTimeOutputFormatter.DEFAULT_FORMATTER:Lorg/jruby/util/RubyTimeOutputFormatter;
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.String, int);
descriptor: (Ljava/lang/String;I)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 java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.jruby.util.RubyTimeOutputFormatter.flags:Ljava/lang/String;
2: aload 0
iload 2
putfield org.jruby.util.RubyTimeOutputFormatter.width:I
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/util/RubyTimeOutputFormatter;
0 4 1 flags Ljava/lang/String;
0 4 2 width I
MethodParameters:
Name Flags
flags
width
public int getWidth(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.util.RubyTimeOutputFormatter.flags:Ljava/lang/String;
bipush 45
invokevirtual java.lang.String.indexOf:(I)I
iconst_m1
if_icmpeq 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.util.RubyTimeOutputFormatter.width:I
ifeq 3
aload 0
getfield org.jruby.util.RubyTimeOutputFormatter.width:I
goto 4
StackMap locals:
StackMap stack:
3: iload 1
StackMap locals:
StackMap stack: int
4: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/util/RubyTimeOutputFormatter;
0 5 1 defaultWidth I
MethodParameters:
Name Flags
defaultWidth
public char getPadder(char);
descriptor: (C)C
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: iload 1
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 10
3: StackMap locals: int int
StackMap stack:
aload 0
getfield org.jruby.util.RubyTimeOutputFormatter.flags:Ljava/lang/String;
iload 3
invokevirtual java.lang.String.charAt:(I)C
lookupswitch { // 3
45: 8
48: 6
95: 4
default: 9
}
4: StackMap locals:
StackMap stack:
bipush 32
istore 2
5: goto 9
6: StackMap locals:
StackMap stack:
bipush 48
istore 2
7: goto 9
8: StackMap locals:
StackMap stack:
iconst_0
istore 2
9: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
10: iload 3
aload 0
getfield org.jruby.util.RubyTimeOutputFormatter.flags:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
if_icmplt 3
end local 3 11: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/jruby/util/RubyTimeOutputFormatter;
0 12 1 defaultPadder C
1 12 2 padder C
2 11 3 i I
MethodParameters:
Name Flags
defaultPadder
public java.lang.String format(java.lang.CharSequence, long, org.jruby.util.RubyDateFormatter$FieldType);
descriptor: (Ljava/lang/CharSequence;JLorg/jruby/util/RubyDateFormatter$FieldType;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 4 0: aload 0
aload 4
getfield org.jruby.util.RubyDateFormatter$FieldType.defaultWidth:I
invokevirtual org.jruby.util.RubyTimeOutputFormatter.getWidth:(I)I
istore 5
start local 5 1: aload 0
aload 4
getfield org.jruby.util.RubyDateFormatter$FieldType.defaultPadder:C
invokevirtual org.jruby.util.RubyTimeOutputFormatter.getPadder:(C)C
istore 6
start local 6 2: aload 1
ifnonnull 5
3: lload 2
iload 5
iload 6
invokestatic org.jruby.util.RubyTimeOutputFormatter.formatNumber:(JIC)Ljava/lang/CharSequence;
astore 1
4: goto 6
5: StackMap locals: int int
StackMap stack:
aload 1
iload 5
iload 6
invokestatic org.jruby.util.RubyTimeOutputFormatter.padding:(Ljava/lang/CharSequence;IC)Ljava/lang/CharSequence;
astore 1
6: StackMap locals:
StackMap stack:
iconst_0
istore 7
start local 7 7: goto 17
8: StackMap locals: int
StackMap stack:
aload 0
getfield org.jruby.util.RubyTimeOutputFormatter.flags:Ljava/lang/String;
iload 7
invokevirtual java.lang.String.charAt:(I)C
lookupswitch { // 2
35: 11
94: 9
default: 16
}
9: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.lang.CharSequence.toString:()Ljava/lang/String;
invokevirtual java.lang.String.toUpperCase:()Ljava/lang/String;
astore 1
10: goto 16
11: StackMap locals:
StackMap stack:
aload 1
aload 1
invokeinterface java.lang.CharSequence.length:()I
iconst_1
isub
invokeinterface java.lang.CharSequence.charAt:(I)C
istore 8
start local 8 12: iload 8
invokestatic java.lang.Character.isLowerCase:(C)Z
ifeq 15
13: aload 1
invokeinterface java.lang.CharSequence.toString:()Ljava/lang/String;
invokevirtual java.lang.String.toUpperCase:()Ljava/lang/String;
astore 1
14: goto 16
15: StackMap locals: int
StackMap stack:
aload 1
invokeinterface java.lang.CharSequence.toString:()Ljava/lang/String;
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
astore 1
end local 8 16: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
17: iload 7
aload 0
getfield org.jruby.util.RubyTimeOutputFormatter.flags:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
if_icmplt 8
end local 7 18: aload 1
invokeinterface java.lang.CharSequence.toString:()Ljava/lang/String;
areturn
end local 6 end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/jruby/util/RubyTimeOutputFormatter;
0 19 1 sequence Ljava/lang/CharSequence;
0 19 2 value J
0 19 4 type Lorg/jruby/util/RubyDateFormatter$FieldType;
1 19 5 width I
2 19 6 padder C
7 18 7 i I
12 16 8 last C
MethodParameters:
Name Flags
sequence
value
type
static java.lang.CharSequence formatNumber(long, int, char);
descriptor: (JIC)Ljava/lang/CharSequence;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 2 start local 3 0: lload 0
lconst_0
lcmp
ifge 1
iload 3
bipush 48
if_icmpeq 2
1: StackMap locals:
StackMap stack:
lload 0
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
iload 2
iload 3
invokestatic org.jruby.util.RubyTimeOutputFormatter.padding:(Ljava/lang/CharSequence;IC)Ljava/lang/CharSequence;
areturn
2: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
bipush 45
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
lload 0
lneg
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
iload 2
iconst_1
isub
iload 3
invokestatic org.jruby.util.RubyTimeOutputFormatter.padding:(Ljava/lang/StringBuilder;Ljava/lang/CharSequence;IC)Ljava/lang/StringBuilder;
areturn
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 value J
0 3 2 width I
0 3 3 padder C
MethodParameters:
Name Flags
value
width
padder
static java.lang.StringBuilder formatSignedNumber(long, int, char);
descriptor: (JIC)Ljava/lang/StringBuilder;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 2 start local 3 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 4
start local 4 1: iload 3
bipush 48
if_icmpne 5
2: lload 0
lconst_0
lcmp
iflt 4
3: aload 4
bipush 43
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
lload 0
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
iload 2
iconst_1
isub
iload 3
invokestatic org.jruby.util.RubyTimeOutputFormatter.padding:(Ljava/lang/StringBuilder;Ljava/lang/CharSequence;IC)Ljava/lang/StringBuilder;
areturn
4: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 4
bipush 45
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
lload 0
lneg
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
iload 2
iconst_1
isub
iload 3
invokestatic org.jruby.util.RubyTimeOutputFormatter.padding:(Ljava/lang/StringBuilder;Ljava/lang/CharSequence;IC)Ljava/lang/StringBuilder;
areturn
5: StackMap locals:
StackMap stack:
lload 0
lconst_0
lcmp
iflt 8
6: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
bipush 43
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
lload 0
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
astore 5
start local 5 7: aload 4
aload 5
iload 2
iload 3
invokestatic org.jruby.util.RubyTimeOutputFormatter.padding:(Ljava/lang/StringBuilder;Ljava/lang/CharSequence;IC)Ljava/lang/StringBuilder;
areturn
end local 5 8: StackMap locals:
StackMap stack:
aload 4
lload 0
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
iload 2
iload 3
invokestatic org.jruby.util.RubyTimeOutputFormatter.padding:(Ljava/lang/StringBuilder;Ljava/lang/CharSequence;IC)Ljava/lang/StringBuilder;
areturn
end local 4 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 value J
0 9 2 width I
0 9 3 padder C
1 9 4 out Ljava/lang/StringBuilder;
7 8 5 str Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
value
width
padder
private static java.lang.CharSequence padding(java.lang.CharSequence, int, char);
descriptor: (Ljava/lang/CharSequence;IC)Ljava/lang/CharSequence;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokeinterface java.lang.CharSequence.length:()I
istore 3
start local 3 1: iload 3
iload 1
if_icmplt 2
aload 0
areturn
2: StackMap locals: int
StackMap stack:
iload 1
bipush 100
if_icmple 3
new java.lang.IndexOutOfBoundsException
dup
new java.lang.StringBuilder
dup
ldc "padding width "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " too large"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
iload 1
iload 3
iadd
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 4
start local 4 4: iload 3
istore 5
start local 5 5: goto 7
StackMap locals: java.lang.StringBuilder int
StackMap stack:
6: aload 4
iload 2
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
iinc 5 1
StackMap locals:
StackMap stack:
7: iload 5
iload 1
if_icmplt 6
end local 5 8: aload 4
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
pop
9: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 sequence Ljava/lang/CharSequence;
0 10 1 width I
0 10 2 padder C
1 10 3 len I
4 10 4 out Ljava/lang/StringBuilder;
5 8 5 i I
MethodParameters:
Name Flags
sequence
width
padder
private static java.lang.StringBuilder padding(java.lang.StringBuilder, java.lang.CharSequence, int, char);
descriptor: (Ljava/lang/StringBuilder;Ljava/lang/CharSequence;IC)Ljava/lang/StringBuilder;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokeinterface java.lang.CharSequence.length:()I
istore 4
start local 4 1: iload 4
iload 2
if_icmplt 2
aload 0
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
areturn
2: StackMap locals: int
StackMap stack:
iload 2
bipush 100
if_icmple 3
new java.lang.IndexOutOfBoundsException
dup
new java.lang.StringBuilder
dup
ldc "padding width "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " too large"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
iload 2
iload 4
iadd
invokevirtual java.lang.StringBuilder.ensureCapacity:(I)V
4: iload 4
istore 5
start local 5 5: goto 7
StackMap locals: int
StackMap stack:
6: aload 0
iload 3
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
iinc 5 1
StackMap locals:
StackMap stack:
7: iload 5
iload 2
if_icmplt 6
end local 5 8: aload 0
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 out Ljava/lang/StringBuilder;
0 9 1 sequence Ljava/lang/CharSequence;
0 9 2 width I
0 9 3 padder C
1 9 4 len I
5 8 5 i I
MethodParameters:
Name Flags
out final
sequence
width final
padder final
}
SourceFile: "RubyTimeOutputFormatter.java"
InnerClasses:
final FieldType = org.jruby.util.RubyDateFormatter$FieldType of org.jruby.util.RubyDateFormatter