DateTimeParserInternalParser.smali
.class Lorg/joda/time/format/DateTimeParserInternalParser;
.super Ljava/lang/Object;
.source "DateTimeParserInternalParser.java"
# interfaces
.implements Lorg/joda/time/format/InternalParser;
# instance fields
.field private final underlying:Lorg/joda/time/format/DateTimeParser;
# direct methods
.method private constructor <init>(Lorg/joda/time/format/DateTimeParser;)V
.registers 2
.line 38
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 39
iput-object p1, p0, Lorg/joda/time/format/DateTimeParserInternalParser;->underlying:Lorg/joda/time/format/DateTimeParser;
return-void
.end method
.method static of(Lorg/joda/time/format/DateTimeParser;)Lorg/joda/time/format/InternalParser;
.registers 2
.line 29
instance-of v0, p0, Lorg/joda/time/format/InternalParserDateTimeParser;
if-eqz v0, :cond_7
.line 30
check-cast p0, Lorg/joda/time/format/InternalParser;
return-object p0
:cond_7
if-nez p0, :cond_b
const/4 p0, 0x0
return-object p0
.line 35
:cond_b
new-instance v0, Lorg/joda/time/format/DateTimeParserInternalParser;
invoke-direct {v0, p0}, Lorg/joda/time/format/DateTimeParserInternalParser;-><init>(Lorg/joda/time/format/DateTimeParser;)V
return-object v0
.end method
# virtual methods
.method public estimateParsedLength()I
.registers 2
.line 48
iget-object v0, p0, Lorg/joda/time/format/DateTimeParserInternalParser;->underlying:Lorg/joda/time/format/DateTimeParser;
invoke-interface {v0}, Lorg/joda/time/format/DateTimeParser;->estimateParsedLength()I
move-result v0
return v0
.end method
.method getUnderlying()Lorg/joda/time/format/DateTimeParser;
.registers 2
.line 44
iget-object v0, p0, Lorg/joda/time/format/DateTimeParserInternalParser;->underlying:Lorg/joda/time/format/DateTimeParser;
return-object v0
.end method
.method public parseInto(Lorg/joda/time/format/DateTimeParserBucket;Ljava/lang/CharSequence;I)I
.registers 5
.line 52
iget-object v0, p0, Lorg/joda/time/format/DateTimeParserInternalParser;->underlying:Lorg/joda/time/format/DateTimeParser;
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-interface {v0, p1, p2, p3}, Lorg/joda/time/format/DateTimeParser;->parseInto(Lorg/joda/time/format/DateTimeParserBucket;Ljava/lang/String;I)I
move-result p1
return p1
.end method