final class java.time.Clock$SystemClock extends java.time.Clock implements java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: java.time.Clock$SystemClock
super_class: java.time.Clock
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 6740630888130243051
private static final long OFFSET_SEED;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final java.time.Clock$SystemClock UTC;
descriptor: Ljava/time/Clock$SystemClock;
flags: (0x0018) ACC_STATIC, ACC_FINAL
private final java.time.ZoneId zone;
descriptor: Ljava/time/ZoneId;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private transient long offset;
descriptor: J
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: invokestatic java.lang.System.currentTimeMillis:()J
ldc 1000
ldiv
ldc 1024
lsub
1: putstatic java.time.Clock$SystemClock.OFFSET_SEED:J
2: new java.time.Clock$SystemClock
dup
getstatic java.time.ZoneOffset.UTC:Ljava/time/ZoneOffset;
invokespecial java.time.Clock$SystemClock.<init>:(Ljava/time/ZoneId;)V
putstatic java.time.Clock$SystemClock.UTC:Ljava/time/Clock$SystemClock;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.time.ZoneId);
descriptor: (Ljava/time/ZoneId;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.time.Clock.<init>:()V
1: aload 0
aload 1
putfield java.time.Clock$SystemClock.zone:Ljava/time/ZoneId;
2: aload 0
getstatic java.time.Clock$SystemClock.OFFSET_SEED:J
putfield java.time.Clock$SystemClock.offset:J
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/time/Clock$SystemClock;
0 4 1 zone Ljava/time/ZoneId;
MethodParameters:
Name Flags
zone
public java.time.ZoneId getZone();
descriptor: ()Ljava/time/ZoneId;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.time.Clock$SystemClock.zone:Ljava/time/ZoneId;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/time/Clock$SystemClock;
public java.time.Clock withZone(java.time.ZoneId);
descriptor: (Ljava/time/ZoneId;)Ljava/time/Clock;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield java.time.Clock$SystemClock.zone:Ljava/time/ZoneId;
invokevirtual java.time.ZoneId.equals:(Ljava/lang/Object;)Z
ifeq 2
1: aload 0
areturn
2: StackMap locals:
StackMap stack:
new java.time.Clock$SystemClock
dup
aload 1
invokespecial java.time.Clock$SystemClock.<init>:(Ljava/time/ZoneId;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/time/Clock$SystemClock;
0 3 1 zone Ljava/time/ZoneId;
MethodParameters:
Name Flags
zone
public long millis();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic java.lang.System.currentTimeMillis:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/time/Clock$SystemClock;
public java.time.Instant instant();
descriptor: ()Ljava/time/Instant;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: aload 0
getfield java.time.Clock$SystemClock.offset:J
lstore 1
start local 1 1: lload 1
invokestatic jdk.internal.misc.VM.getNanoTimeAdjustment:(J)J
lstore 3
start local 3 2: lload 3
ldc -1
lcmp
ifne 8
3: invokestatic java.lang.System.currentTimeMillis:()J
ldc 1000
ldiv
ldc 1024
lsub
lstore 1
4: lload 1
invokestatic jdk.internal.misc.VM.getNanoTimeAdjustment:(J)J
lstore 3
5: lload 3
ldc -1
lcmp
ifne 7
6: new java.lang.InternalError
dup
new java.lang.StringBuilder
dup
ldc "Offset "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 1
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " is not in range"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: long long
StackMap stack:
aload 0
lload 1
putfield java.time.Clock$SystemClock.offset:J
8: StackMap locals:
StackMap stack:
lload 1
lload 3
invokestatic java.time.Instant.ofEpochSecond:(JJ)Ljava/time/Instant;
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/time/Clock$SystemClock;
1 9 1 localOffset J
2 9 3 adjustment J
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
instanceof java.time.Clock$SystemClock
ifeq 2
1: aload 0
getfield java.time.Clock$SystemClock.zone:Ljava/time/ZoneId;
aload 1
checkcast java.time.Clock$SystemClock
getfield java.time.Clock$SystemClock.zone:Ljava/time/ZoneId;
invokevirtual java.time.ZoneId.equals:(Ljava/lang/Object;)Z
ireturn
2: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/time/Clock$SystemClock;
0 3 1 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield java.time.Clock$SystemClock.zone:Ljava/time/ZoneId;
invokevirtual java.time.ZoneId.hashCode:()I
iconst_1
iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/time/Clock$SystemClock;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "SystemClock["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield java.time.Clock$SystemClock.zone:Ljava/time/ZoneId;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "]"
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 1 0 this Ljava/time/Clock$SystemClock;
private void readObject(java.io.ObjectInputStream);
descriptor: (Ljava/io/ObjectInputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.ObjectInputStream.defaultReadObject:()V
1: aload 0
getstatic java.time.Clock$SystemClock.OFFSET_SEED:J
putfield java.time.Clock$SystemClock.offset:J
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/time/Clock$SystemClock;
0 3 1 is Ljava/io/ObjectInputStream;
Exceptions:
throws java.io.IOException, java.lang.ClassNotFoundException
MethodParameters:
Name Flags
is
}
SourceFile: "Clock.java"
NestHost: java.time.Clock
InnerClasses:
final SystemClock = java.time.Clock$SystemClock of java.time.Clock