public interface java.time.temporal.TemporalAccessor
minor version: 0
major version: 59
flags: flags: (0x0601) ACC_PUBLIC, ACC_INTERFACE, ACC_ABSTRACT
this_class: java.time.temporal.TemporalAccessor
super_class: java.lang.Object
{
public abstract boolean isSupported(java.time.temporal.TemporalField);
descriptor: (Ljava/time/temporal/TemporalField;)Z
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
field
public java.time.temporal.ValueRange range(java.time.temporal.TemporalField);
descriptor: (Ljava/time/temporal/TemporalField;)Ljava/time/temporal/ValueRange;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.time.temporal.ChronoField
ifeq 4
1: aload 0
aload 1
invokeinterface java.time.temporal.TemporalAccessor.isSupported:(Ljava/time/temporal/TemporalField;)Z
ifeq 3
2: aload 1
invokeinterface java.time.temporal.TemporalField.range:()Ljava/time/temporal/ValueRange;
areturn
3: StackMap locals:
StackMap stack:
new java.time.temporal.UnsupportedTemporalTypeException
dup
new java.lang.StringBuilder
dup
ldc "Unsupported field: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.time.temporal.UnsupportedTemporalTypeException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 1
ldc "field"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
5: aload 1
aload 0
invokeinterface java.time.temporal.TemporalField.rangeRefinedBy:(Ljava/time/temporal/TemporalAccessor;)Ljava/time/temporal/ValueRange;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/time/temporal/TemporalAccessor;
0 6 1 field Ljava/time/temporal/TemporalField;
MethodParameters:
Name Flags
field
public int get(java.time.temporal.TemporalField);
descriptor: (Ljava/time/temporal/TemporalField;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface java.time.temporal.TemporalAccessor.range:(Ljava/time/temporal/TemporalField;)Ljava/time/temporal/ValueRange;
astore 2
start local 2 1: aload 2
invokevirtual java.time.temporal.ValueRange.isIntValue:()Z
ifne 3
2: new java.time.temporal.UnsupportedTemporalTypeException
dup
new java.lang.StringBuilder
dup
ldc "Invalid field "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " for get() method, use getLong() instead"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.time.temporal.UnsupportedTemporalTypeException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: java.time.temporal.ValueRange
StackMap stack:
aload 0
aload 1
invokeinterface java.time.temporal.TemporalAccessor.getLong:(Ljava/time/temporal/TemporalField;)J
lstore 3
start local 3 4: aload 2
lload 3
invokevirtual java.time.temporal.ValueRange.isValidValue:(J)Z
ifne 6
5: new java.time.DateTimeException
dup
new java.lang.StringBuilder
dup
ldc "Invalid value for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " (valid values "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "): "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
lload 3
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.time.DateTimeException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: long
StackMap stack:
lload 3
l2i
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/time/temporal/TemporalAccessor;
0 7 1 field Ljava/time/temporal/TemporalField;
1 7 2 range Ljava/time/temporal/ValueRange;
4 7 3 value J
MethodParameters:
Name Flags
field
public abstract long getLong(java.time.temporal.TemporalField);
descriptor: (Ljava/time/temporal/TemporalField;)J
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
field
public <R> R query(java.time.temporal.TemporalQuery<R>);
descriptor: (Ljava/time/temporal/TemporalQuery;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.time.temporal.TemporalQueries.zoneId:()Ljava/time/temporal/TemporalQuery;
if_acmpeq 3
1: aload 1
invokestatic java.time.temporal.TemporalQueries.chronology:()Ljava/time/temporal/TemporalQuery;
if_acmpeq 3
2: aload 1
invokestatic java.time.temporal.TemporalQueries.precision:()Ljava/time/temporal/TemporalQuery;
if_acmpne 4
3: StackMap locals:
StackMap stack:
aconst_null
areturn
4: StackMap locals:
StackMap stack:
aload 1
aload 0
invokeinterface java.time.temporal.TemporalQuery.queryFrom:(Ljava/time/temporal/TemporalAccessor;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/time/temporal/TemporalAccessor;
0 5 1 query Ljava/time/temporal/TemporalQuery<TR;>;
Signature: <R:Ljava/lang/Object;>(Ljava/time/temporal/TemporalQuery<TR;>;)TR;
MethodParameters:
Name Flags
query
}
SourceFile: "TemporalAccessor.java"