public class org.apache.commons.lang3.time.DurationFormatUtils
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.commons.lang3.time.DurationFormatUtils
super_class: java.lang.Object
{
public static final java.lang.String ISO_EXTENDED_FORMAT_PATTERN;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "'P'yyyy'Y'M'M'd'DT'H'H'm'M's.SSS'S'"
static final java.lang.Object y;
descriptor: Ljava/lang/Object;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final java.lang.Object M;
descriptor: Ljava/lang/Object;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final java.lang.Object d;
descriptor: Ljava/lang/Object;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final java.lang.Object H;
descriptor: Ljava/lang/Object;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final java.lang.Object m;
descriptor: Ljava/lang/Object;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final java.lang.Object s;
descriptor: Ljava/lang/Object;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final java.lang.Object S;
descriptor: Ljava/lang/Object;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "y"
putstatic org.apache.commons.lang3.time.DurationFormatUtils.y:Ljava/lang/Object;
1: ldc "M"
putstatic org.apache.commons.lang3.time.DurationFormatUtils.M:Ljava/lang/Object;
2: ldc "d"
putstatic org.apache.commons.lang3.time.DurationFormatUtils.d:Ljava/lang/Object;
3: ldc "H"
putstatic org.apache.commons.lang3.time.DurationFormatUtils.H:Ljava/lang/Object;
4: ldc "m"
putstatic org.apache.commons.lang3.time.DurationFormatUtils.m:Ljava/lang/Object;
5: ldc "s"
putstatic org.apache.commons.lang3.time.DurationFormatUtils.s:Ljava/lang/Object;
6: ldc "S"
putstatic org.apache.commons.lang3.time.DurationFormatUtils.S:Ljava/lang/Object;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/lang3/time/DurationFormatUtils;
public static java.lang.String formatDurationHMS(long);
descriptor: (J)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: lload 0
ldc "HH:mm:ss.SSS"
invokestatic org.apache.commons.lang3.time.DurationFormatUtils.formatDuration:(JLjava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 durationMillis J
MethodParameters:
Name Flags
durationMillis final
public static java.lang.String formatDurationISO(long);
descriptor: (J)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: lload 0
ldc "'P'yyyy'Y'M'M'd'DT'H'H'm'M's.SSS'S'"
iconst_0
invokestatic org.apache.commons.lang3.time.DurationFormatUtils.formatDuration:(JLjava/lang/String;Z)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 durationMillis J
MethodParameters:
Name Flags
durationMillis final
public static java.lang.String formatDuration(long, java.lang.String);
descriptor: (JLjava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 2 0: lload 0
aload 2
iconst_1
invokestatic org.apache.commons.lang3.time.DurationFormatUtils.formatDuration:(JLjava/lang/String;Z)Ljava/lang/String;
areturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 durationMillis J
0 1 2 format Ljava/lang/String;
MethodParameters:
Name Flags
durationMillis final
format final
public static java.lang.String formatDuration(long, java.lang.String, boolean);
descriptor: (JLjava/lang/String;Z)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=16, locals=15, args_size=3
start local 0 start local 2 start local 3 0: lconst_0
ldc 9223372036854775807
lload 0
ldc "durationMillis must not be negative"
invokestatic org.apache.commons.lang3.Validate.inclusiveBetween:(JJJLjava/lang/String;)V
1: aload 2
invokestatic org.apache.commons.lang3.time.DurationFormatUtils.lexx:(Ljava/lang/String;)[Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;
astore 4
start local 4 2: lconst_0
lstore 5
start local 5 3: lconst_0
lstore 7
start local 7 4: lconst_0
lstore 9
start local 9 5: lconst_0
lstore 11
start local 11 6: lload 0
lstore 13
start local 13 7: aload 4
getstatic org.apache.commons.lang3.time.DurationFormatUtils.d:Ljava/lang/Object;
invokestatic org.apache.commons.lang3.time.DurationFormatUtils$Token.containsTokenWithValue:([Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;Ljava/lang/Object;)Z
ifeq 10
8: lload 13
ldc 86400000
ldiv
lstore 5
9: lload 13
lload 5
ldc 86400000
lmul
lsub
lstore 13
10: StackMap locals: long java.lang.String int org.apache.commons.lang3.time.DurationFormatUtils$Token[] long long long long long
StackMap stack:
aload 4
getstatic org.apache.commons.lang3.time.DurationFormatUtils.H:Ljava/lang/Object;
invokestatic org.apache.commons.lang3.time.DurationFormatUtils$Token.containsTokenWithValue:([Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;Ljava/lang/Object;)Z
ifeq 13
11: lload 13
ldc 3600000
ldiv
lstore 7
12: lload 13
lload 7
ldc 3600000
lmul
lsub
lstore 13
13: StackMap locals:
StackMap stack:
aload 4
getstatic org.apache.commons.lang3.time.DurationFormatUtils.m:Ljava/lang/Object;
invokestatic org.apache.commons.lang3.time.DurationFormatUtils$Token.containsTokenWithValue:([Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;Ljava/lang/Object;)Z
ifeq 16
14: lload 13
ldc 60000
ldiv
lstore 9
15: lload 13
lload 9
ldc 60000
lmul
lsub
lstore 13
16: StackMap locals:
StackMap stack:
aload 4
getstatic org.apache.commons.lang3.time.DurationFormatUtils.s:Ljava/lang/Object;
invokestatic org.apache.commons.lang3.time.DurationFormatUtils$Token.containsTokenWithValue:([Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;Ljava/lang/Object;)Z
ifeq 19
17: lload 13
ldc 1000
ldiv
lstore 11
18: lload 13
lload 11
ldc 1000
lmul
lsub
lstore 13
19: StackMap locals:
StackMap stack:
aload 4
lconst_0
lconst_0
lload 5
lload 7
lload 9
lload 11
lload 13
iload 3
invokestatic org.apache.commons.lang3.time.DurationFormatUtils.format:([Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;JJJJJJJZ)Ljava/lang/String;
areturn
end local 13 end local 11 end local 9 end local 7 end local 5 end local 4 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 durationMillis J
0 20 2 format Ljava/lang/String;
0 20 3 padWithZeros Z
2 20 4 tokens [Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;
3 20 5 days J
4 20 7 hours J
5 20 9 minutes J
6 20 11 seconds J
7 20 13 milliseconds J
MethodParameters:
Name Flags
durationMillis final
format final
padWithZeros final
public static java.lang.String formatDurationWords(long, boolean, boolean);
descriptor: (JZZ)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 2 start local 3 0: lload 0
ldc "d' days 'H' hours 'm' minutes 's' seconds'"
invokestatic org.apache.commons.lang3.time.DurationFormatUtils.formatDuration:(JLjava/lang/String;)Ljava/lang/String;
astore 4
start local 4 1: iload 2
ifeq 15
2: new java.lang.StringBuilder
dup
ldc " "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
3: aload 4
ldc " 0 days"
ldc ""
invokestatic org.apache.commons.lang3.StringUtils.replaceOnce:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 4: aload 5
invokevirtual java.lang.String.length:()I
aload 4
invokevirtual java.lang.String.length:()I
if_icmpeq 13
5: aload 5
astore 4
6: aload 4
ldc " 0 hours"
ldc ""
invokestatic org.apache.commons.lang3.StringUtils.replaceOnce:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 5
7: aload 5
invokevirtual java.lang.String.length:()I
aload 4
invokevirtual java.lang.String.length:()I
if_icmpeq 13
8: aload 5
astore 4
9: aload 4
ldc " 0 minutes"
ldc ""
invokestatic org.apache.commons.lang3.StringUtils.replaceOnce:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 5
10: aload 5
astore 4
11: aload 5
invokevirtual java.lang.String.length:()I
aload 4
invokevirtual java.lang.String.length:()I
if_icmpeq 13
12: aload 5
ldc " 0 seconds"
ldc ""
invokestatic org.apache.commons.lang3.StringUtils.replaceOnce:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 4
13: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 4
invokevirtual java.lang.String.isEmpty:()Z
ifne 15
14: aload 4
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 4
end local 5 15: StackMap locals:
StackMap stack:
iload 3
ifeq 25
16: aload 4
ldc " 0 seconds"
ldc ""
invokestatic org.apache.commons.lang3.StringUtils.replaceOnce:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 17: aload 5
invokevirtual java.lang.String.length:()I
aload 4
invokevirtual java.lang.String.length:()I
if_icmpeq 25
18: aload 5
astore 4
19: aload 4
ldc " 0 minutes"
ldc ""
invokestatic org.apache.commons.lang3.StringUtils.replaceOnce:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 5
20: aload 5
invokevirtual java.lang.String.length:()I
aload 4
invokevirtual java.lang.String.length:()I
if_icmpeq 25
21: aload 5
astore 4
22: aload 4
ldc " 0 hours"
ldc ""
invokestatic org.apache.commons.lang3.StringUtils.replaceOnce:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 5
23: aload 5
invokevirtual java.lang.String.length:()I
aload 4
invokevirtual java.lang.String.length:()I
if_icmpeq 25
24: aload 5
ldc " 0 days"
ldc ""
invokestatic org.apache.commons.lang3.StringUtils.replaceOnce:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 4
end local 5 25: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc " "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
26: aload 4
ldc " 1 seconds"
ldc " 1 second"
invokestatic org.apache.commons.lang3.StringUtils.replaceOnce:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 4
27: aload 4
ldc " 1 minutes"
ldc " 1 minute"
invokestatic org.apache.commons.lang3.StringUtils.replaceOnce:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 4
28: aload 4
ldc " 1 hours"
ldc " 1 hour"
invokestatic org.apache.commons.lang3.StringUtils.replaceOnce:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 4
29: aload 4
ldc " 1 days"
ldc " 1 day"
invokestatic org.apache.commons.lang3.StringUtils.replaceOnce:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 4
30: aload 4
invokevirtual java.lang.String.trim:()Ljava/lang/String;
areturn
end local 4 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 durationMillis J
0 31 2 suppressLeadingZeroElements Z
0 31 3 suppressTrailingZeroElements Z
1 31 4 duration Ljava/lang/String;
4 15 5 tmp Ljava/lang/String;
17 25 5 tmp Ljava/lang/String;
MethodParameters:
Name Flags
durationMillis final
suppressLeadingZeroElements final
suppressTrailingZeroElements final
public static java.lang.String formatPeriodISO(long, long);
descriptor: (JJ)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=4, args_size=2
start local 0 start local 2 0: lload 0
lload 2
ldc "'P'yyyy'Y'M'M'd'DT'H'H'm'M's.SSS'S'"
iconst_0
invokestatic java.util.TimeZone.getDefault:()Ljava/util/TimeZone;
invokestatic org.apache.commons.lang3.time.DurationFormatUtils.formatPeriod:(JJLjava/lang/String;ZLjava/util/TimeZone;)Ljava/lang/String;
areturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 startMillis J
0 1 2 endMillis J
MethodParameters:
Name Flags
startMillis final
endMillis final
public static java.lang.String formatPeriod(long, long, java.lang.String);
descriptor: (JJLjava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=5, args_size=3
start local 0 start local 2 start local 4 0: lload 0
lload 2
aload 4
iconst_1
invokestatic java.util.TimeZone.getDefault:()Ljava/util/TimeZone;
invokestatic org.apache.commons.lang3.time.DurationFormatUtils.formatPeriod:(JJLjava/lang/String;ZLjava/util/TimeZone;)Ljava/lang/String;
areturn
end local 4 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 startMillis J
0 1 2 endMillis J
0 1 4 format Ljava/lang/String;
MethodParameters:
Name Flags
startMillis final
endMillis final
format final
public static java.lang.String formatPeriod(long, long, java.lang.String, boolean, java.util.TimeZone);
descriptor: (JJLjava/lang/String;ZLjava/util/TimeZone;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=16, locals=18, args_size=5
start local 0 start local 2 start local 4 start local 5 start local 6 0: lload 0
lload 2
lcmp
ifgt 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ldc "startMillis must not be greater than endMillis"
iconst_0
anewarray java.lang.Object
invokestatic org.apache.commons.lang3.Validate.isTrue:(ZLjava/lang/String;[Ljava/lang/Object;)V
3: aload 4
invokestatic org.apache.commons.lang3.time.DurationFormatUtils.lexx:(Ljava/lang/String;)[Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;
astore 7
start local 7 4: aload 6
invokestatic java.util.Calendar.getInstance:(Ljava/util/TimeZone;)Ljava/util/Calendar;
astore 8
start local 8 5: aload 8
new java.util.Date
dup
lload 0
invokespecial java.util.Date.<init>:(J)V
invokevirtual java.util.Calendar.setTime:(Ljava/util/Date;)V
6: aload 6
invokestatic java.util.Calendar.getInstance:(Ljava/util/TimeZone;)Ljava/util/Calendar;
astore 9
start local 9 7: aload 9
new java.util.Date
dup
lload 2
invokespecial java.util.Date.<init>:(J)V
invokevirtual java.util.Calendar.setTime:(Ljava/util/Date;)V
8: aload 9
bipush 14
invokevirtual java.util.Calendar.get:(I)I
aload 8
bipush 14
invokevirtual java.util.Calendar.get:(I)I
isub
istore 10
start local 10 9: aload 9
bipush 13
invokevirtual java.util.Calendar.get:(I)I
aload 8
bipush 13
invokevirtual java.util.Calendar.get:(I)I
isub
istore 11
start local 11 10: aload 9
bipush 12
invokevirtual java.util.Calendar.get:(I)I
aload 8
bipush 12
invokevirtual java.util.Calendar.get:(I)I
isub
istore 12
start local 12 11: aload 9
bipush 11
invokevirtual java.util.Calendar.get:(I)I
aload 8
bipush 11
invokevirtual java.util.Calendar.get:(I)I
isub
istore 13
start local 13 12: aload 9
iconst_5
invokevirtual java.util.Calendar.get:(I)I
aload 8
iconst_5
invokevirtual java.util.Calendar.get:(I)I
isub
istore 14
start local 14 13: aload 9
iconst_2
invokevirtual java.util.Calendar.get:(I)I
aload 8
iconst_2
invokevirtual java.util.Calendar.get:(I)I
isub
istore 15
start local 15 14: aload 9
iconst_1
invokevirtual java.util.Calendar.get:(I)I
aload 8
iconst_1
invokevirtual java.util.Calendar.get:(I)I
isub
istore 16
start local 16 15: goto 18
16: StackMap locals: long long java.lang.String int java.util.TimeZone org.apache.commons.lang3.time.DurationFormatUtils$Token[] java.util.Calendar java.util.Calendar int int int int int int int
StackMap stack:
iinc 10 1000
17: iinc 11 -1
18: StackMap locals:
StackMap stack:
iload 10
iflt 16
19: goto 22
20: StackMap locals:
StackMap stack:
iinc 11 60
21: iinc 12 -1
22: StackMap locals:
StackMap stack:
iload 11
iflt 20
23: goto 26
24: StackMap locals:
StackMap stack:
iinc 12 60
25: iinc 13 -1
26: StackMap locals:
StackMap stack:
iload 12
iflt 24
27: goto 30
28: StackMap locals:
StackMap stack:
iinc 13 24
29: iinc 14 -1
30: StackMap locals:
StackMap stack:
iload 13
iflt 28
31: aload 7
getstatic org.apache.commons.lang3.time.DurationFormatUtils.M:Ljava/lang/Object;
invokestatic org.apache.commons.lang3.time.DurationFormatUtils$Token.containsTokenWithValue:([Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;Ljava/lang/Object;)Z
ifeq 47
32: goto 36
33: StackMap locals:
StackMap stack:
iload 14
aload 8
iconst_5
invokevirtual java.util.Calendar.getActualMaximum:(I)I
iadd
istore 14
34: iinc 15 -1
35: aload 8
iconst_2
iconst_1
invokevirtual java.util.Calendar.add:(II)V
36: StackMap locals:
StackMap stack:
iload 14
iflt 33
37: goto 40
38: StackMap locals:
StackMap stack:
iinc 15 12
39: iinc 16 -1
40: StackMap locals:
StackMap stack:
iload 15
iflt 38
41: aload 7
getstatic org.apache.commons.lang3.time.DurationFormatUtils.y:Ljava/lang/Object;
invokestatic org.apache.commons.lang3.time.DurationFormatUtils$Token.containsTokenWithValue:([Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;Ljava/lang/Object;)Z
ifne 71
iload 16
ifeq 71
42: goto 45
43: StackMap locals:
StackMap stack:
iload 15
bipush 12
iload 16
imul
iadd
istore 15
44: iconst_0
istore 16
45: StackMap locals:
StackMap stack:
iload 16
ifne 43
46: goto 71
47: StackMap locals:
StackMap stack:
aload 7
getstatic org.apache.commons.lang3.time.DurationFormatUtils.y:Ljava/lang/Object;
invokestatic org.apache.commons.lang3.time.DurationFormatUtils$Token.containsTokenWithValue:([Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;Ljava/lang/Object;)Z
ifne 64
48: aload 9
iconst_1
invokevirtual java.util.Calendar.get:(I)I
istore 17
start local 17 49: iload 15
ifge 59
50: iinc 17 -1
51: goto 59
52: StackMap locals: int
StackMap stack:
iload 14
aload 8
bipush 6
invokevirtual java.util.Calendar.getActualMaximum:(I)I
aload 8
bipush 6
invokevirtual java.util.Calendar.get:(I)I
isub
iadd
istore 14
53: aload 8
instanceof java.util.GregorianCalendar
ifeq 57
54: aload 8
iconst_2
invokevirtual java.util.Calendar.get:(I)I
iconst_1
if_icmpne 57
55: aload 8
iconst_5
invokevirtual java.util.Calendar.get:(I)I
bipush 29
if_icmpne 57
56: iinc 14 1
57: StackMap locals:
StackMap stack:
aload 8
iconst_1
iconst_1
invokevirtual java.util.Calendar.add:(II)V
58: iload 14
aload 8
bipush 6
invokevirtual java.util.Calendar.get:(I)I
iadd
istore 14
59: StackMap locals:
StackMap stack:
aload 8
iconst_1
invokevirtual java.util.Calendar.get:(I)I
iload 17
if_icmpne 52
60: iconst_0
istore 16
end local 17 61: goto 64
62: StackMap locals:
StackMap stack:
iload 14
aload 8
iconst_5
invokevirtual java.util.Calendar.getActualMaximum:(I)I
iadd
istore 14
63: aload 8
iconst_2
iconst_1
invokevirtual java.util.Calendar.add:(II)V
64: StackMap locals:
StackMap stack:
aload 8
iconst_2
invokevirtual java.util.Calendar.get:(I)I
aload 9
iconst_2
invokevirtual java.util.Calendar.get:(I)I
if_icmpne 62
65: iconst_0
istore 15
66: goto 70
67: StackMap locals:
StackMap stack:
iload 14
aload 8
iconst_5
invokevirtual java.util.Calendar.getActualMaximum:(I)I
iadd
istore 14
68: iinc 15 -1
69: aload 8
iconst_2
iconst_1
invokevirtual java.util.Calendar.add:(II)V
70: StackMap locals:
StackMap stack:
iload 14
iflt 67
71: StackMap locals:
StackMap stack:
aload 7
getstatic org.apache.commons.lang3.time.DurationFormatUtils.d:Ljava/lang/Object;
invokestatic org.apache.commons.lang3.time.DurationFormatUtils$Token.containsTokenWithValue:([Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;Ljava/lang/Object;)Z
ifne 74
72: iload 13
bipush 24
iload 14
imul
iadd
istore 13
73: iconst_0
istore 14
74: StackMap locals:
StackMap stack:
aload 7
getstatic org.apache.commons.lang3.time.DurationFormatUtils.H:Ljava/lang/Object;
invokestatic org.apache.commons.lang3.time.DurationFormatUtils$Token.containsTokenWithValue:([Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;Ljava/lang/Object;)Z
ifne 77
75: iload 12
bipush 60
iload 13
imul
iadd
istore 12
76: iconst_0
istore 13
77: StackMap locals:
StackMap stack:
aload 7
getstatic org.apache.commons.lang3.time.DurationFormatUtils.m:Ljava/lang/Object;
invokestatic org.apache.commons.lang3.time.DurationFormatUtils$Token.containsTokenWithValue:([Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;Ljava/lang/Object;)Z
ifne 80
78: iload 11
bipush 60
iload 12
imul
iadd
istore 11
79: iconst_0
istore 12
80: StackMap locals:
StackMap stack:
aload 7
getstatic org.apache.commons.lang3.time.DurationFormatUtils.s:Ljava/lang/Object;
invokestatic org.apache.commons.lang3.time.DurationFormatUtils$Token.containsTokenWithValue:([Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;Ljava/lang/Object;)Z
ifne 83
81: iload 10
sipush 1000
iload 11
imul
iadd
istore 10
82: iconst_0
istore 11
83: StackMap locals:
StackMap stack:
aload 7
iload 16
i2l
iload 15
i2l
iload 14
i2l
iload 13
i2l
iload 12
i2l
iload 11
i2l
iload 10
i2l
iload 5
invokestatic org.apache.commons.lang3.time.DurationFormatUtils.format:([Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;JJJJJJJZ)Ljava/lang/String;
areturn
end local 16 end local 15 end local 14 end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 84 0 startMillis J
0 84 2 endMillis J
0 84 4 format Ljava/lang/String;
0 84 5 padWithZeros Z
0 84 6 timezone Ljava/util/TimeZone;
4 84 7 tokens [Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;
5 84 8 start Ljava/util/Calendar;
7 84 9 end Ljava/util/Calendar;
9 84 10 milliseconds I
10 84 11 seconds I
11 84 12 minutes I
12 84 13 hours I
13 84 14 days I
14 84 15 months I
15 84 16 years I
49 61 17 target I
MethodParameters:
Name Flags
startMillis final
endMillis final
format final
padWithZeros final
timezone final
static java.lang.String format(org.apache.commons.lang3.time.DurationFormatUtils$Token[], long, long, long, long, long, long, long, boolean);
descriptor: ([Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;JJJJJJJZ)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=25, args_size=9
start local 0 start local 1 start local 3 start local 5 start local 7 start local 9 start local 11 start local 13 start local 15 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 16
start local 16 1: iconst_0
istore 17
start local 17 2: aload 0
dup
astore 21
arraylength
istore 20
iconst_0
istore 19
goto 43
StackMap locals: org.apache.commons.lang3.time.DurationFormatUtils$Token[] long long long long long long long int java.lang.StringBuilder int top int int org.apache.commons.lang3.time.DurationFormatUtils$Token[]
StackMap stack:
3: aload 21
iload 19
aaload
astore 18
start local 18 4: aload 18
invokevirtual org.apache.commons.lang3.time.DurationFormatUtils$Token.getValue:()Ljava/lang/Object;
astore 22
start local 22 5: aload 18
invokevirtual org.apache.commons.lang3.time.DurationFormatUtils$Token.getCount:()I
istore 23
start local 23 6: aload 22
instanceof java.lang.StringBuilder
ifeq 9
7: aload 16
aload 22
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: goto 42
9: StackMap locals: org.apache.commons.lang3.time.DurationFormatUtils$Token[] long long long long long long long int java.lang.StringBuilder int org.apache.commons.lang3.time.DurationFormatUtils$Token int int org.apache.commons.lang3.time.DurationFormatUtils$Token[] java.lang.Object int
StackMap stack:
aload 22
getstatic org.apache.commons.lang3.time.DurationFormatUtils.y:Ljava/lang/Object;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 13
10: aload 16
lload 1
iload 15
iload 23
invokestatic org.apache.commons.lang3.time.DurationFormatUtils.paddedValue:(JZI)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
11: iconst_0
istore 17
12: goto 42
StackMap locals:
StackMap stack:
13: aload 22
getstatic org.apache.commons.lang3.time.DurationFormatUtils.M:Ljava/lang/Object;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 17
14: aload 16
lload 3
iload 15
iload 23
invokestatic org.apache.commons.lang3.time.DurationFormatUtils.paddedValue:(JZI)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
15: iconst_0
istore 17
16: goto 42
StackMap locals:
StackMap stack:
17: aload 22
getstatic org.apache.commons.lang3.time.DurationFormatUtils.d:Ljava/lang/Object;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 21
18: aload 16
lload 5
iload 15
iload 23
invokestatic org.apache.commons.lang3.time.DurationFormatUtils.paddedValue:(JZI)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
19: iconst_0
istore 17
20: goto 42
StackMap locals:
StackMap stack:
21: aload 22
getstatic org.apache.commons.lang3.time.DurationFormatUtils.H:Ljava/lang/Object;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 25
22: aload 16
lload 7
iload 15
iload 23
invokestatic org.apache.commons.lang3.time.DurationFormatUtils.paddedValue:(JZI)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
23: iconst_0
istore 17
24: goto 42
StackMap locals:
StackMap stack:
25: aload 22
getstatic org.apache.commons.lang3.time.DurationFormatUtils.m:Ljava/lang/Object;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 29
26: aload 16
lload 9
iload 15
iload 23
invokestatic org.apache.commons.lang3.time.DurationFormatUtils.paddedValue:(JZI)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
27: iconst_0
istore 17
28: goto 42
StackMap locals:
StackMap stack:
29: aload 22
getstatic org.apache.commons.lang3.time.DurationFormatUtils.s:Ljava/lang/Object;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 33
30: aload 16
lload 11
iload 15
iload 23
invokestatic org.apache.commons.lang3.time.DurationFormatUtils.paddedValue:(JZI)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
31: iconst_1
istore 17
32: goto 42
StackMap locals:
StackMap stack:
33: aload 22
getstatic org.apache.commons.lang3.time.DurationFormatUtils.S:Ljava/lang/Object;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 42
34: iload 17
ifeq 40
35: iload 15
ifeq 36
iconst_3
iload 23
invokestatic java.lang.Math.max:(II)I
goto 37
StackMap locals:
StackMap stack:
36: iconst_3
StackMap locals:
StackMap stack: int
37: istore 24
start local 24 38: aload 16
lload 13
iconst_1
iload 24
invokestatic org.apache.commons.lang3.time.DurationFormatUtils.paddedValue:(JZI)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 24 39: goto 41
40: StackMap locals:
StackMap stack:
aload 16
lload 13
iload 15
iload 23
invokestatic org.apache.commons.lang3.time.DurationFormatUtils.paddedValue:(JZI)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
41: StackMap locals:
StackMap stack:
iconst_0
istore 17
end local 23 end local 22 end local 18 42: StackMap locals: org.apache.commons.lang3.time.DurationFormatUtils$Token[] long long long long long long long int java.lang.StringBuilder int top int int org.apache.commons.lang3.time.DurationFormatUtils$Token[]
StackMap stack:
iinc 19 1
StackMap locals:
StackMap stack:
43: iload 19
iload 20
if_icmplt 3
44: aload 16
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 17 end local 16 end local 15 end local 13 end local 11 end local 9 end local 7 end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 45 0 tokens [Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;
0 45 1 years J
0 45 3 months J
0 45 5 days J
0 45 7 hours J
0 45 9 minutes J
0 45 11 seconds J
0 45 13 milliseconds J
0 45 15 padWithZeros Z
1 45 16 buffer Ljava/lang/StringBuilder;
2 45 17 lastOutputSeconds Z
4 42 18 token Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;
5 42 22 value Ljava/lang/Object;
6 42 23 count I
38 39 24 width I
MethodParameters:
Name Flags
tokens final
years final
months final
days final
hours final
minutes final
seconds final
milliseconds final
padWithZeros final
private static java.lang.String paddedValue(long, boolean, int);
descriptor: (JZI)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 2 start local 3 0: lload 0
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
astore 4
start local 4 1: iload 2
ifeq 2
aload 4
iload 3
bipush 48
invokestatic org.apache.commons.lang3.StringUtils.leftPad:(Ljava/lang/String;IC)Ljava/lang/String;
goto 3
StackMap locals: java.lang.String
StackMap stack:
2: aload 4
StackMap locals:
StackMap stack: java.lang.String
3: areturn
end local 4 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 value J
0 4 2 padWithZeros Z
0 4 3 count I
1 4 4 longString Ljava/lang/String;
MethodParameters:
Name Flags
value final
padWithZeros final
count final
static org.apache.commons.lang3.time.DurationFormatUtils$Token[] lexx(java.lang.String);
descriptor: (Ljava/lang/String;)[Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=9, args_size=1
start local 0 0: new java.util.ArrayList
dup
aload 0
invokevirtual java.lang.String.length:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: aconst_null
astore 3
start local 3 3: aconst_null
astore 4
start local 4 4: iconst_0
istore 5
start local 5 5: goto 47
6: StackMap locals: java.lang.String java.util.ArrayList int java.lang.StringBuilder org.apache.commons.lang3.time.DurationFormatUtils$Token int
StackMap stack:
aload 0
iload 5
invokevirtual java.lang.String.charAt:(I)C
istore 6
start local 6 7: iload 2
ifeq 10
iload 6
bipush 39
if_icmpeq 10
8: aload 3
iload 6
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
9: goto 46
10: StackMap locals: int
StackMap stack:
aconst_null
astore 7
start local 7 11: iload 6
lookupswitch { // 8
39: 12
72: 26
77: 22
83: 32
100: 24
109: 28
115: 30
121: 20
default: 34
}
12: StackMap locals: java.lang.Object
StackMap stack:
iload 2
ifeq 16
13: aconst_null
astore 3
14: iconst_0
istore 2
15: goto 38
16: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 3
17: aload 1
new org.apache.commons.lang3.time.DurationFormatUtils$Token
dup
aload 3
invokespecial org.apache.commons.lang3.time.DurationFormatUtils$Token.<init>:(Ljava/lang/Object;)V
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
18: iconst_1
istore 2
19: goto 38
20: StackMap locals:
StackMap stack:
getstatic org.apache.commons.lang3.time.DurationFormatUtils.y:Ljava/lang/Object;
astore 7
21: goto 38
22: StackMap locals:
StackMap stack:
getstatic org.apache.commons.lang3.time.DurationFormatUtils.M:Ljava/lang/Object;
astore 7
23: goto 38
24: StackMap locals:
StackMap stack:
getstatic org.apache.commons.lang3.time.DurationFormatUtils.d:Ljava/lang/Object;
astore 7
25: goto 38
26: StackMap locals:
StackMap stack:
getstatic org.apache.commons.lang3.time.DurationFormatUtils.H:Ljava/lang/Object;
astore 7
27: goto 38
28: StackMap locals:
StackMap stack:
getstatic org.apache.commons.lang3.time.DurationFormatUtils.m:Ljava/lang/Object;
astore 7
29: goto 38
30: StackMap locals:
StackMap stack:
getstatic org.apache.commons.lang3.time.DurationFormatUtils.s:Ljava/lang/Object;
astore 7
31: goto 38
32: StackMap locals:
StackMap stack:
getstatic org.apache.commons.lang3.time.DurationFormatUtils.S:Ljava/lang/Object;
astore 7
33: goto 38
34: StackMap locals:
StackMap stack:
aload 3
ifnonnull 37
35: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 3
36: aload 1
new org.apache.commons.lang3.time.DurationFormatUtils$Token
dup
aload 3
invokespecial org.apache.commons.lang3.time.DurationFormatUtils$Token.<init>:(Ljava/lang/Object;)V
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
37: StackMap locals:
StackMap stack:
aload 3
iload 6
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
38: StackMap locals:
StackMap stack:
aload 7
ifnull 46
39: aload 4
ifnull 42
aload 4
invokevirtual org.apache.commons.lang3.time.DurationFormatUtils$Token.getValue:()Ljava/lang/Object;
aload 7
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 42
40: aload 4
invokevirtual org.apache.commons.lang3.time.DurationFormatUtils$Token.increment:()V
41: goto 45
42: StackMap locals:
StackMap stack:
new org.apache.commons.lang3.time.DurationFormatUtils$Token
dup
aload 7
invokespecial org.apache.commons.lang3.time.DurationFormatUtils$Token.<init>:(Ljava/lang/Object;)V
astore 8
start local 8 43: aload 1
aload 8
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
44: aload 8
astore 4
end local 8 45: StackMap locals:
StackMap stack:
aconst_null
astore 3
end local 7 end local 6 46: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
47: iload 5
aload 0
invokevirtual java.lang.String.length:()I
if_icmplt 6
end local 5 48: iload 2
ifeq 50
49: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Unmatched quote in format: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
50: StackMap locals:
StackMap stack:
aload 1
iconst_0
anewarray org.apache.commons.lang3.time.DurationFormatUtils$Token
invokevirtual java.util.ArrayList.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast org.apache.commons.lang3.time.DurationFormatUtils$Token[]
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 51 0 format Ljava/lang/String;
1 51 1 list Ljava/util/ArrayList<Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;>;
2 51 2 inLiteral Z
3 51 3 buffer Ljava/lang/StringBuilder;
4 51 4 previous Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;
5 48 5 i I
7 46 6 ch C
11 46 7 value Ljava/lang/Object;
43 45 8 token Lorg/apache/commons/lang3/time/DurationFormatUtils$Token;
MethodParameters:
Name Flags
format final
}
SourceFile: "DurationFormatUtils.java"
NestMembers:
org.apache.commons.lang3.time.DurationFormatUtils$Token
InnerClasses:
Token = org.apache.commons.lang3.time.DurationFormatUtils$Token of org.apache.commons.lang3.time.DurationFormatUtils