public abstract class javax.xml.datatype.Duration
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: javax.xml.datatype.Duration
super_class: java.lang.Object
{
private static final boolean DEBUG;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
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 Ljavax/xml/datatype/Duration;
public javax.xml.namespace.QName getXMLSchemaType();
descriptor: ()Ljavax/xml/namespace/QName;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=1
start local 0 0: aload 0
getstatic javax.xml.datatype.DatatypeConstants.YEARS:Ljavax/xml/datatype/DatatypeConstants$Field;
invokevirtual javax.xml.datatype.Duration.isSet:(Ljavax/xml/datatype/DatatypeConstants$Field;)Z
istore 1
start local 1 1: aload 0
getstatic javax.xml.datatype.DatatypeConstants.MONTHS:Ljavax/xml/datatype/DatatypeConstants$Field;
invokevirtual javax.xml.datatype.Duration.isSet:(Ljavax/xml/datatype/DatatypeConstants$Field;)Z
istore 2
start local 2 2: aload 0
getstatic javax.xml.datatype.DatatypeConstants.DAYS:Ljavax/xml/datatype/DatatypeConstants$Field;
invokevirtual javax.xml.datatype.Duration.isSet:(Ljavax/xml/datatype/DatatypeConstants$Field;)Z
istore 3
start local 3 3: aload 0
getstatic javax.xml.datatype.DatatypeConstants.HOURS:Ljavax/xml/datatype/DatatypeConstants$Field;
invokevirtual javax.xml.datatype.Duration.isSet:(Ljavax/xml/datatype/DatatypeConstants$Field;)Z
istore 4
start local 4 4: aload 0
getstatic javax.xml.datatype.DatatypeConstants.MINUTES:Ljavax/xml/datatype/DatatypeConstants$Field;
invokevirtual javax.xml.datatype.Duration.isSet:(Ljavax/xml/datatype/DatatypeConstants$Field;)Z
istore 5
start local 5 5: aload 0
getstatic javax.xml.datatype.DatatypeConstants.SECONDS:Ljavax/xml/datatype/DatatypeConstants$Field;
invokevirtual javax.xml.datatype.Duration.isSet:(Ljavax/xml/datatype/DatatypeConstants$Field;)Z
istore 6
start local 6 6: iload 1
ifeq 13
7: iload 2
ifeq 13
8: iload 3
ifeq 13
9: iload 4
ifeq 13
10: iload 5
ifeq 13
11: iload 6
ifeq 13
12: getstatic javax.xml.datatype.DatatypeConstants.DURATION:Ljavax/xml/namespace/QName;
areturn
13: StackMap locals: javax.xml.datatype.Duration int int int int int int
StackMap stack:
iload 1
ifne 20
14: iload 2
ifne 20
15: iload 3
ifeq 20
16: iload 4
ifeq 20
17: iload 5
ifeq 20
18: iload 6
ifeq 20
19: getstatic javax.xml.datatype.DatatypeConstants.DURATION_DAYTIME:Ljavax/xml/namespace/QName;
areturn
20: StackMap locals:
StackMap stack:
iload 1
ifeq 27
21: iload 2
ifeq 27
22: iload 3
ifne 27
23: iload 4
ifne 27
24: iload 5
ifne 27
25: iload 6
ifne 27
26: getstatic javax.xml.datatype.DatatypeConstants.DURATION_YEARMONTH:Ljavax/xml/namespace/QName;
areturn
27: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
28: new java.lang.StringBuilder
dup
ldc "javax.xml.datatype.Duration#getXMLSchemaType(): this Duration does not match one of the XML Schema date/time datatypes: year set = "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
29: iload 1
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
30: ldc " month set = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
31: ldc " day set = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 3
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
32: ldc " hour set = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 4
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
33: ldc " minute set = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 5
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
34: ldc " second set = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 6
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
35: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
36: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 this Ljavax/xml/datatype/Duration;
1 37 1 yearSet Z
2 37 2 monthSet Z
3 37 3 daySet Z
4 37 4 hourSet Z
5 37 5 minuteSet Z
6 37 6 secondSet Z
public abstract int getSign();
descriptor: ()I
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public int getYears();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic javax.xml.datatype.DatatypeConstants.YEARS:Ljavax/xml/datatype/DatatypeConstants$Field;
invokevirtual javax.xml.datatype.Duration.getField:(Ljavax/xml/datatype/DatatypeConstants$Field;)Ljava/lang/Number;
invokevirtual java.lang.Number.intValue:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/xml/datatype/Duration;
public int getMonths();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic javax.xml.datatype.DatatypeConstants.MONTHS:Ljavax/xml/datatype/DatatypeConstants$Field;
invokevirtual javax.xml.datatype.Duration.getField:(Ljavax/xml/datatype/DatatypeConstants$Field;)Ljava/lang/Number;
invokevirtual java.lang.Number.intValue:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/xml/datatype/Duration;
public int getDays();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic javax.xml.datatype.DatatypeConstants.DAYS:Ljavax/xml/datatype/DatatypeConstants$Field;
invokevirtual javax.xml.datatype.Duration.getField:(Ljavax/xml/datatype/DatatypeConstants$Field;)Ljava/lang/Number;
invokevirtual java.lang.Number.intValue:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/xml/datatype/Duration;
public int getHours();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic javax.xml.datatype.DatatypeConstants.HOURS:Ljavax/xml/datatype/DatatypeConstants$Field;
invokevirtual javax.xml.datatype.Duration.getField:(Ljavax/xml/datatype/DatatypeConstants$Field;)Ljava/lang/Number;
invokevirtual java.lang.Number.intValue:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/xml/datatype/Duration;
public int getMinutes();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic javax.xml.datatype.DatatypeConstants.MINUTES:Ljavax/xml/datatype/DatatypeConstants$Field;
invokevirtual javax.xml.datatype.Duration.getField:(Ljavax/xml/datatype/DatatypeConstants$Field;)Ljava/lang/Number;
invokevirtual java.lang.Number.intValue:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/xml/datatype/Duration;
public int getSeconds();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic javax.xml.datatype.DatatypeConstants.SECONDS:Ljavax/xml/datatype/DatatypeConstants$Field;
invokevirtual javax.xml.datatype.Duration.getField:(Ljavax/xml/datatype/DatatypeConstants$Field;)Ljava/lang/Number;
invokevirtual java.lang.Number.intValue:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/xml/datatype/Duration;
public long getTimeInMillis(java.util.Calendar);
descriptor: (Ljava/util/Calendar;)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.util.Calendar.clone:()Ljava/lang/Object;
checkcast java.util.Calendar
astore 2
start local 2 1: aload 0
aload 2
invokevirtual javax.xml.datatype.Duration.addTo:(Ljava/util/Calendar;)V
2: aload 2
invokestatic javax.xml.datatype.Duration.getCalendarTimeInMillis:(Ljava/util/Calendar;)J
3: aload 1
invokestatic javax.xml.datatype.Duration.getCalendarTimeInMillis:(Ljava/util/Calendar;)J
4: lsub
lreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/xml/datatype/Duration;
0 5 1 startInstant Ljava/util/Calendar;
1 5 2 cal Ljava/util/Calendar;
MethodParameters:
Name Flags
startInstant final
public long getTimeInMillis(java.util.Date);
descriptor: (Ljava/util/Date;)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new java.util.GregorianCalendar
dup
invokespecial java.util.GregorianCalendar.<init>:()V
astore 2
start local 2 1: aload 2
aload 1
invokevirtual java.util.Calendar.setTime:(Ljava/util/Date;)V
2: aload 0
aload 2
invokevirtual javax.xml.datatype.Duration.addTo:(Ljava/util/Calendar;)V
3: aload 2
invokestatic javax.xml.datatype.Duration.getCalendarTimeInMillis:(Ljava/util/Calendar;)J
aload 1
invokevirtual java.util.Date.getTime:()J
lsub
lreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/xml/datatype/Duration;
0 4 1 startInstant Ljava/util/Date;
1 4 2 cal Ljava/util/Calendar;
MethodParameters:
Name Flags
startInstant final
public abstract java.lang.Number getField(javax.xml.datatype.DatatypeConstants$Field);
descriptor: (Ljavax/xml/datatype/DatatypeConstants$Field;)Ljava/lang/Number;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
field final
public abstract boolean isSet(javax.xml.datatype.DatatypeConstants$Field);
descriptor: (Ljavax/xml/datatype/DatatypeConstants$Field;)Z
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
field final
public abstract javax.xml.datatype.Duration add(javax.xml.datatype.Duration);
descriptor: (Ljavax/xml/datatype/Duration;)Ljavax/xml/datatype/Duration;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
rhs final
public abstract void addTo(java.util.Calendar);
descriptor: (Ljava/util/Calendar;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
calendar
public void addTo(java.util.Date);
descriptor: (Ljava/util/Date;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 7
1: new java.lang.NullPointerException
dup
2: new java.lang.StringBuilder
dup
ldc "Cannot call "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
3: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: ldc "#addTo(Date date) with date == null."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
new java.util.GregorianCalendar
dup
invokespecial java.util.GregorianCalendar.<init>:()V
astore 2
start local 2 8: aload 2
aload 1
invokevirtual java.util.Calendar.setTime:(Ljava/util/Date;)V
9: aload 0
aload 2
invokevirtual javax.xml.datatype.Duration.addTo:(Ljava/util/Calendar;)V
10: aload 1
aload 2
invokestatic javax.xml.datatype.Duration.getCalendarTimeInMillis:(Ljava/util/Calendar;)J
invokevirtual java.util.Date.setTime:(J)V
11: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljavax/xml/datatype/Duration;
0 12 1 date Ljava/util/Date;
8 12 2 cal Ljava/util/Calendar;
MethodParameters:
Name Flags
date
public javax.xml.datatype.Duration subtract(javax.xml.datatype.Duration);
descriptor: (Ljavax/xml/datatype/Duration;)Ljavax/xml/datatype/Duration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual javax.xml.datatype.Duration.negate:()Ljavax/xml/datatype/Duration;
invokevirtual javax.xml.datatype.Duration.add:(Ljavax/xml/datatype/Duration;)Ljavax/xml/datatype/Duration;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/xml/datatype/Duration;
0 1 1 rhs Ljavax/xml/datatype/Duration;
MethodParameters:
Name Flags
rhs final
public javax.xml.datatype.Duration multiply(int);
descriptor: (I)Ljavax/xml/datatype/Duration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.math.BigDecimal
dup
iload 1
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
invokespecial java.math.BigDecimal.<init>:(Ljava/lang/String;)V
invokevirtual javax.xml.datatype.Duration.multiply:(Ljava/math/BigDecimal;)Ljavax/xml/datatype/Duration;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/xml/datatype/Duration;
0 1 1 factor I
MethodParameters:
Name Flags
factor
public abstract javax.xml.datatype.Duration multiply(java.math.BigDecimal);
descriptor: (Ljava/math/BigDecimal;)Ljavax/xml/datatype/Duration;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
factor final
public abstract javax.xml.datatype.Duration negate();
descriptor: ()Ljavax/xml/datatype/Duration;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract javax.xml.datatype.Duration normalizeWith(java.util.Calendar);
descriptor: (Ljava/util/Calendar;)Ljavax/xml/datatype/Duration;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
startTimeInstant final
public abstract int compare(javax.xml.datatype.Duration);
descriptor: (Ljavax/xml/datatype/Duration;)I
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
duration final
public boolean isLongerThan(javax.xml.datatype.Duration);
descriptor: (Ljavax/xml/datatype/Duration;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual javax.xml.datatype.Duration.compare:(Ljavax/xml/datatype/Duration;)I
iconst_1
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/xml/datatype/Duration;
0 2 1 duration Ljavax/xml/datatype/Duration;
MethodParameters:
Name Flags
duration final
public boolean isShorterThan(javax.xml.datatype.Duration);
descriptor: (Ljavax/xml/datatype/Duration;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual javax.xml.datatype.Duration.compare:(Ljavax/xml/datatype/Duration;)I
iconst_m1
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/xml/datatype/Duration;
0 2 1 duration Ljavax/xml/datatype/Duration;
MethodParameters:
Name Flags
duration final
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
instanceof javax.xml.datatype.Duration
ifne 2
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
checkcast javax.xml.datatype.Duration
invokevirtual javax.xml.datatype.Duration.compare:(Ljavax/xml/datatype/Duration;)I
ifne 3
iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/xml/datatype/Duration;
0 4 1 duration Ljava/lang/Object;
MethodParameters:
Name Flags
duration final
public abstract int hashCode();
descriptor: ()I
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=1
start local 0 0: new java.lang.StringBuffer
dup
invokespecial java.lang.StringBuffer.<init>:()V
astore 1
start local 1 1: aload 0
invokevirtual javax.xml.datatype.Duration.getSign:()I
ifge 3
2: aload 1
bipush 45
invokevirtual java.lang.StringBuffer.append:(C)Ljava/lang/StringBuffer;
pop
3: StackMap locals: java.lang.StringBuffer
StackMap stack:
aload 1
bipush 80
invokevirtual java.lang.StringBuffer.append:(C)Ljava/lang/StringBuffer;
pop
4: aload 0
getstatic javax.xml.datatype.DatatypeConstants.YEARS:Ljavax/xml/datatype/DatatypeConstants$Field;
invokevirtual javax.xml.datatype.Duration.getField:(Ljavax/xml/datatype/DatatypeConstants$Field;)Ljava/lang/Number;
checkcast java.math.BigInteger
astore 2
start local 2 5: aload 2
ifnull 7
6: aload 1
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "Y"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
7: StackMap locals: java.math.BigInteger
StackMap stack:
aload 0
getstatic javax.xml.datatype.DatatypeConstants.MONTHS:Ljavax/xml/datatype/DatatypeConstants$Field;
invokevirtual javax.xml.datatype.Duration.getField:(Ljavax/xml/datatype/DatatypeConstants$Field;)Ljava/lang/Number;
checkcast java.math.BigInteger
astore 3
start local 3 8: aload 3
ifnull 10
9: aload 1
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "M"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
10: StackMap locals: java.math.BigInteger
StackMap stack:
aload 0
getstatic javax.xml.datatype.DatatypeConstants.DAYS:Ljavax/xml/datatype/DatatypeConstants$Field;
invokevirtual javax.xml.datatype.Duration.getField:(Ljavax/xml/datatype/DatatypeConstants$Field;)Ljava/lang/Number;
checkcast java.math.BigInteger
astore 4
start local 4 11: aload 4
ifnull 13
12: aload 1
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "D"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
13: StackMap locals: java.math.BigInteger
StackMap stack:
aload 0
getstatic javax.xml.datatype.DatatypeConstants.HOURS:Ljavax/xml/datatype/DatatypeConstants$Field;
invokevirtual javax.xml.datatype.Duration.getField:(Ljavax/xml/datatype/DatatypeConstants$Field;)Ljava/lang/Number;
checkcast java.math.BigInteger
astore 5
start local 5 14: aload 0
getstatic javax.xml.datatype.DatatypeConstants.MINUTES:Ljavax/xml/datatype/DatatypeConstants$Field;
invokevirtual javax.xml.datatype.Duration.getField:(Ljavax/xml/datatype/DatatypeConstants$Field;)Ljava/lang/Number;
checkcast java.math.BigInteger
astore 6
start local 6 15: aload 0
getstatic javax.xml.datatype.DatatypeConstants.SECONDS:Ljavax/xml/datatype/DatatypeConstants$Field;
invokevirtual javax.xml.datatype.Duration.getField:(Ljavax/xml/datatype/DatatypeConstants$Field;)Ljava/lang/Number;
checkcast java.math.BigDecimal
astore 7
start local 7 16: aload 5
ifnonnull 17
aload 6
ifnonnull 17
aload 7
ifnull 24
17: StackMap locals: java.math.BigInteger java.math.BigInteger java.math.BigDecimal
StackMap stack:
aload 1
bipush 84
invokevirtual java.lang.StringBuffer.append:(C)Ljava/lang/StringBuffer;
pop
18: aload 5
ifnull 20
19: aload 1
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "H"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
20: StackMap locals:
StackMap stack:
aload 6
ifnull 22
21: aload 1
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "M"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
22: StackMap locals:
StackMap stack:
aload 7
ifnull 24
23: aload 1
new java.lang.StringBuilder
dup
aload 0
aload 7
invokevirtual javax.xml.datatype.Duration.toString:(Ljava/math/BigDecimal;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "S"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
24: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Ljavax/xml/datatype/Duration;
1 25 1 buf Ljava/lang/StringBuffer;
5 25 2 years Ljava/math/BigInteger;
8 25 3 months Ljava/math/BigInteger;
11 25 4 days Ljava/math/BigInteger;
14 25 5 hours Ljava/math/BigInteger;
15 25 6 minutes Ljava/math/BigInteger;
16 25 7 seconds Ljava/math/BigDecimal;
private java.lang.String toString(java.math.BigDecimal);
descriptor: (Ljava/math/BigDecimal;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.math.BigDecimal.unscaledValue:()Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.toString:()Ljava/lang/String;
astore 2
start local 2 1: aload 1
invokevirtual java.math.BigDecimal.scale:()I
istore 3
start local 3 2: iload 3
ifne 4
3: aload 2
areturn
4: StackMap locals: java.lang.String int
StackMap stack:
aload 2
invokevirtual java.lang.String.length:()I
iload 3
isub
istore 5
start local 5 5: iload 5
ifne 7
6: new java.lang.StringBuilder
dup
ldc "0."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
7: StackMap locals: javax.xml.datatype.Duration java.math.BigDecimal java.lang.String int top int
StackMap stack:
iload 5
ifle 11
8: new java.lang.StringBuffer
dup
aload 2
invokespecial java.lang.StringBuffer.<init>:(Ljava/lang/String;)V
astore 4
start local 4 9: aload 4
iload 5
bipush 46
invokevirtual java.lang.StringBuffer.insert:(IC)Ljava/lang/StringBuffer;
pop
10: goto 19
end local 4 11: StackMap locals:
StackMap stack:
new java.lang.StringBuffer
dup
iconst_3
iload 5
isub
aload 2
invokevirtual java.lang.String.length:()I
iadd
invokespecial java.lang.StringBuffer.<init>:(I)V
astore 4
start local 4 12: aload 4
ldc "0."
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
13: iconst_0
istore 6
start local 6 14: goto 17
15: StackMap locals: javax.xml.datatype.Duration java.math.BigDecimal java.lang.String int java.lang.StringBuffer int int
StackMap stack:
aload 4
bipush 48
invokevirtual java.lang.StringBuffer.append:(C)Ljava/lang/StringBuffer;
pop
16: iinc 6 1
StackMap locals:
StackMap stack:
17: iload 6
iload 5
ineg
if_icmplt 15
end local 6 18: aload 4
aload 2
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
19: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljavax/xml/datatype/Duration;
0 20 1 bd Ljava/math/BigDecimal;
1 20 2 intString Ljava/lang/String;
2 20 3 scale I
9 11 4 buf Ljava/lang/StringBuffer;
12 20 4 buf Ljava/lang/StringBuffer;
5 20 5 insertionPoint I
14 18 6 i I
MethodParameters:
Name Flags
bd
private static long getCalendarTimeInMillis(java.util.Calendar);
descriptor: (Ljava/util/Calendar;)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.util.Calendar.getTime:()Ljava/util/Date;
invokevirtual java.util.Date.getTime:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 cal Ljava/util/Calendar;
MethodParameters:
Name Flags
cal final
}
SourceFile: "Duration.java"
InnerClasses:
public final Field = javax.xml.datatype.DatatypeConstants$Field of javax.xml.datatype.DatatypeConstants