public class ch.qos.logback.core.util.Duration
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: ch.qos.logback.core.util.Duration
super_class: java.lang.Object
{
private static final java.lang.String DOUBLE_PART;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "([0-9]*(.[0-9]+)?)"
private static final int DOUBLE_GROUP;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final java.lang.String UNIT_PART;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "(|milli(second)?|second(e)?|minute|hour|day)s?"
private static final int UNIT_GROUP;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private static final java.util.regex.Pattern DURATION_PATTERN;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final long SECONDS_COEFFICIENT;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 1000
static final long MINUTES_COEFFICIENT;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 60000
static final long HOURS_COEFFICIENT;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 3600000
static final long DAYS_COEFFICIENT;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 86400000
final long millis;
descriptor: J
flags: (0x0010) ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc "([0-9]*(.[0-9]+)?)\\s*(|milli(second)?|second(e)?|minute|hour|day)s?"
iconst_2
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;I)Ljava/util/regex/Pattern;
putstatic ch.qos.logback.core.util.Duration.DURATION_PATTERN:Ljava/util/regex/Pattern;
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
lload 1
putfield ch.qos.logback.core.util.Duration.millis:J
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lch/qos/logback/core/util/Duration;
0 3 1 millis J
MethodParameters:
Name Flags
millis
public static ch.qos.logback.core.util.Duration buildByMilliseconds(double);
descriptor: (D)Lch/qos/logback/core/util/Duration;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: new ch.qos.logback.core.util.Duration
dup
dload 0
d2l
invokespecial ch.qos.logback.core.util.Duration.<init>:(J)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 value D
MethodParameters:
Name Flags
value
public static ch.qos.logback.core.util.Duration buildBySeconds(double);
descriptor: (D)Lch/qos/logback/core/util/Duration;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: new ch.qos.logback.core.util.Duration
dup
ldc 1000.0
dload 0
dmul
d2l
invokespecial ch.qos.logback.core.util.Duration.<init>:(J)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 value D
MethodParameters:
Name Flags
value
public static ch.qos.logback.core.util.Duration buildByMinutes(double);
descriptor: (D)Lch/qos/logback/core/util/Duration;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: new ch.qos.logback.core.util.Duration
dup
ldc 60000.0
dload 0
dmul
d2l
invokespecial ch.qos.logback.core.util.Duration.<init>:(J)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 value D
MethodParameters:
Name Flags
value
public static ch.qos.logback.core.util.Duration buildByHours(double);
descriptor: (D)Lch/qos/logback/core/util/Duration;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: new ch.qos.logback.core.util.Duration
dup
ldc 3600000.0
dload 0
dmul
d2l
invokespecial ch.qos.logback.core.util.Duration.<init>:(J)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 value D
MethodParameters:
Name Flags
value
public static ch.qos.logback.core.util.Duration buildByDays(double);
descriptor: (D)Lch/qos/logback/core/util/Duration;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: new ch.qos.logback.core.util.Duration
dup
ldc 8.64E7
dload 0
dmul
d2l
invokespecial ch.qos.logback.core.util.Duration.<init>:(J)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 value D
MethodParameters:
Name Flags
value
public static ch.qos.logback.core.util.Duration buildUnbounded();
descriptor: ()Lch/qos/logback/core/util/Duration;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: new ch.qos.logback.core.util.Duration
dup
ldc 9223372036854775807
invokespecial ch.qos.logback.core.util.Duration.<init>:(J)V
areturn
LocalVariableTable:
Start End Slot Name Signature
public long getMilliseconds();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.core.util.Duration.millis:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lch/qos/logback/core/util/Duration;
public static ch.qos.logback.core.util.Duration valueOf(java.lang.String);
descriptor: (Ljava/lang/String;)Lch/qos/logback/core/util/Duration;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=1
start local 0 0: getstatic ch.qos.logback.core.util.Duration.DURATION_PATTERN:Ljava/util/regex/Pattern;
aload 0
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 1
start local 1 1: aload 1
invokevirtual java.util.regex.Matcher.matches:()Z
ifeq 16
2: aload 1
iconst_1
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 2
start local 2 3: aload 1
iconst_3
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 3
start local 3 4: aload 2
invokestatic java.lang.Double.valueOf:(Ljava/lang/String;)Ljava/lang/Double;
invokevirtual java.lang.Double.doubleValue:()D
dstore 4
start local 4 5: aload 3
ldc "milli"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 6
aload 3
ldc "millisecond"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 6
aload 3
invokevirtual java.lang.String.length:()I
ifne 7
6: StackMap locals: java.lang.String java.util.regex.Matcher java.lang.String java.lang.String double
StackMap stack:
dload 4
invokestatic ch.qos.logback.core.util.Duration.buildByMilliseconds:(D)Lch/qos/logback/core/util/Duration;
areturn
7: StackMap locals:
StackMap stack:
aload 3
ldc "second"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 8
aload 3
ldc "seconde"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 9
8: StackMap locals:
StackMap stack:
dload 4
invokestatic ch.qos.logback.core.util.Duration.buildBySeconds:(D)Lch/qos/logback/core/util/Duration;
areturn
9: StackMap locals:
StackMap stack:
aload 3
ldc "minute"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 11
10: dload 4
invokestatic ch.qos.logback.core.util.Duration.buildByMinutes:(D)Lch/qos/logback/core/util/Duration;
areturn
11: StackMap locals:
StackMap stack:
aload 3
ldc "hour"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 13
12: dload 4
invokestatic ch.qos.logback.core.util.Duration.buildByHours:(D)Lch/qos/logback/core/util/Duration;
areturn
13: StackMap locals:
StackMap stack:
aload 3
ldc "day"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 15
14: dload 4
invokestatic ch.qos.logback.core.util.Duration.buildByDays:(D)Lch/qos/logback/core/util/Duration;
areturn
15: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Unexpected "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 4 end local 3 end local 2 16: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "String value ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] is not in the expected format."
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
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 durationStr Ljava/lang/String;
1 17 1 matcher Ljava/util/regex/Matcher;
3 16 2 doubleStr Ljava/lang/String;
4 16 3 unitStr Ljava/lang/String;
5 16 4 doubleValue D
MethodParameters:
Name Flags
durationStr
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.core.util.Duration.millis:J
ldc 1000
lcmp
ifge 2
1: new java.lang.StringBuilder
dup
aload 0
getfield ch.qos.logback.core.util.Duration.millis:J
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " milliseconds"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield ch.qos.logback.core.util.Duration.millis:J
ldc 60000
lcmp
ifge 4
3: new java.lang.StringBuilder
dup
aload 0
getfield ch.qos.logback.core.util.Duration.millis:J
ldc 1000
ldiv
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " seconds"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
4: StackMap locals:
StackMap stack:
aload 0
getfield ch.qos.logback.core.util.Duration.millis:J
ldc 3600000
lcmp
ifge 6
5: new java.lang.StringBuilder
dup
aload 0
getfield ch.qos.logback.core.util.Duration.millis:J
ldc 60000
ldiv
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " minutes"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
6: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 0
getfield ch.qos.logback.core.util.Duration.millis:J
ldc 3600000
ldiv
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " hours"
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 7 0 this Lch/qos/logback/core/util/Duration;
}
SourceFile: "Duration.java"