1556 lines
38 KiB
Smali
1556 lines
38 KiB
Smali
.class final Lcom/google/protobuf/TextFormat$Tokenizer;
|
|
.super Ljava/lang/Object;
|
|
.source "TextFormat.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/google/protobuf/TextFormat;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Tokenizer"
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final DOUBLE_INFINITY:Ljava/util/regex/Pattern;
|
|
|
|
.field private static final FLOAT_INFINITY:Ljava/util/regex/Pattern;
|
|
|
|
.field private static final FLOAT_NAN:Ljava/util/regex/Pattern;
|
|
|
|
.field private static final TOKEN:Ljava/util/regex/Pattern;
|
|
|
|
.field private static final WHITESPACE:Ljava/util/regex/Pattern;
|
|
|
|
|
|
# instance fields
|
|
.field private column:I
|
|
|
|
.field private currentToken:Ljava/lang/String;
|
|
|
|
.field private line:I
|
|
|
|
.field private final matcher:Ljava/util/regex/Matcher;
|
|
|
|
.field private pos:I
|
|
|
|
.field private previousColumn:I
|
|
|
|
.field private previousLine:I
|
|
|
|
.field private final text:Ljava/lang/CharSequence;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
const-string v0, "(\\s|(#.*$))++"
|
|
|
|
const/16 v1, 0x8
|
|
|
|
.line 1
|
|
invoke-static {v0, v1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;I)Ljava/util/regex/Pattern;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/google/protobuf/TextFormat$Tokenizer;->WHITESPACE:Ljava/util/regex/Pattern;
|
|
|
|
const-string v0, "[a-zA-Z_][0-9a-zA-Z_+-]*+|[.]?[0-9+-][0-9a-zA-Z_.+-]*+|\"([^\"\n\\\\]|\\\\.)*+(\"|\\\\?$)|\'([^\'\n\\\\]|\\\\.)*+(\'|\\\\?$)"
|
|
|
|
.line 2
|
|
invoke-static {v0, v1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;I)Ljava/util/regex/Pattern;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/google/protobuf/TextFormat$Tokenizer;->TOKEN:Ljava/util/regex/Pattern;
|
|
|
|
const-string v0, "-?inf(inity)?"
|
|
|
|
const/4 v1, 0x2
|
|
|
|
.line 3
|
|
invoke-static {v0, v1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;I)Ljava/util/regex/Pattern;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/google/protobuf/TextFormat$Tokenizer;->DOUBLE_INFINITY:Ljava/util/regex/Pattern;
|
|
|
|
const-string v0, "-?inf(inity)?f?"
|
|
|
|
.line 4
|
|
invoke-static {v0, v1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;I)Ljava/util/regex/Pattern;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/google/protobuf/TextFormat$Tokenizer;->FLOAT_INFINITY:Ljava/util/regex/Pattern;
|
|
|
|
const-string v0, "nanf?"
|
|
|
|
.line 5
|
|
invoke-static {v0, v1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;I)Ljava/util/regex/Pattern;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/google/protobuf/TextFormat$Tokenizer;->FLOAT_NAN:Ljava/util/regex/Pattern;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>(Ljava/lang/CharSequence;)V
|
|
.locals 1
|
|
|
|
.line 2
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 3
|
|
iput v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->pos:I
|
|
|
|
.line 4
|
|
iput v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->line:I
|
|
|
|
.line 5
|
|
iput v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->column:I
|
|
|
|
.line 6
|
|
iput v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->previousLine:I
|
|
|
|
.line 7
|
|
iput v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->previousColumn:I
|
|
|
|
.line 8
|
|
iput-object p1, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->text:Ljava/lang/CharSequence;
|
|
|
|
.line 9
|
|
sget-object v0, Lcom/google/protobuf/TextFormat$Tokenizer;->WHITESPACE:Ljava/util/regex/Pattern;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->matcher:Ljava/util/regex/Matcher;
|
|
|
|
.line 10
|
|
invoke-direct {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->skipWhitespace()V
|
|
|
|
.line 11
|
|
invoke-virtual {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->nextToken()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(Ljava/lang/CharSequence;Lcom/google/protobuf/TextFormat$1;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Lcom/google/protobuf/TextFormat$Tokenizer;-><init>(Ljava/lang/CharSequence;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic access$1200(Lcom/google/protobuf/TextFormat$Tokenizer;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
.line 1
|
|
iget-object p0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private consumeByteString(Ljava/util/List;)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Lcom/google/protobuf/ByteString;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/protobuf/TextFormat$ParseException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 6
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
.line 7
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v1
|
|
|
|
:cond_0
|
|
const/16 v0, 0x22
|
|
|
|
if-eq v1, v0, :cond_2
|
|
|
|
const/16 v0, 0x27
|
|
|
|
if-ne v1, v0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const-string p1, "Expected string."
|
|
|
|
.line 8
|
|
invoke-virtual {p0, p1}, Lcom/google/protobuf/TextFormat$Tokenizer;->parseException(Ljava/lang/String;)Lcom/google/protobuf/TextFormat$ParseException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
.line 9
|
|
:cond_2
|
|
:goto_0
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v2, 0x2
|
|
|
|
if-lt v0, v2, :cond_3
|
|
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
.line 10
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, 0x1
|
|
|
|
sub-int/2addr v2, v3
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v0
|
|
|
|
if-ne v0, v1, :cond_3
|
|
|
|
.line 11
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
.line 12
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v1, v3
|
|
|
|
invoke-virtual {v0, v3, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 13
|
|
invoke-static {v0}, Lcom/google/protobuf/TextFormat;->unescapeBytes(Ljava/lang/CharSequence;)Lcom/google/protobuf/ByteString;
|
|
|
|
move-result-object v0
|
|
|
|
.line 14
|
|
invoke-virtual {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->nextToken()V
|
|
|
|
.line 15
|
|
invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
:try_end_0
|
|
.catch Lcom/google/protobuf/TextFormat$InvalidEscapeSequenceException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-void
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 16
|
|
invoke-virtual {p1}, Ljava/io/IOException;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/protobuf/TextFormat$Tokenizer;->parseException(Ljava/lang/String;)Lcom/google/protobuf/TextFormat$ParseException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
:cond_3
|
|
const-string p1, "String missing ending quote."
|
|
|
|
.line 17
|
|
invoke-virtual {p0, p1}, Lcom/google/protobuf/TextFormat$Tokenizer;->parseException(Ljava/lang/String;)Lcom/google/protobuf/TextFormat$ParseException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private floatParseException(Ljava/lang/NumberFormatException;)Lcom/google/protobuf/TextFormat$ParseException;
|
|
.locals 1
|
|
|
|
const-string v0, "Couldn\'t parse number: "
|
|
|
|
.line 1
|
|
invoke-static {v0}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Ljava/lang/NumberFormatException;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/protobuf/TextFormat$Tokenizer;->parseException(Ljava/lang/String;)Lcom/google/protobuf/TextFormat$ParseException;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private integerParseException(Ljava/lang/NumberFormatException;)Lcom/google/protobuf/TextFormat$ParseException;
|
|
.locals 1
|
|
|
|
const-string v0, "Couldn\'t parse integer: "
|
|
|
|
.line 1
|
|
invoke-static {v0}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Ljava/lang/NumberFormatException;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/protobuf/TextFormat$Tokenizer;->parseException(Ljava/lang/String;)Lcom/google/protobuf/TextFormat$ParseException;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private skipWhitespace()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->matcher:Ljava/util/regex/Matcher;
|
|
|
|
sget-object v1, Lcom/google/protobuf/TextFormat$Tokenizer;->WHITESPACE:Ljava/util/regex/Pattern;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/regex/Matcher;->usePattern(Ljava/util/regex/Pattern;)Ljava/util/regex/Matcher;
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->matcher:Ljava/util/regex/Matcher;
|
|
|
|
invoke-virtual {v0}, Ljava/util/regex/Matcher;->lookingAt()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->matcher:Ljava/util/regex/Matcher;
|
|
|
|
invoke-virtual {v0}, Ljava/util/regex/Matcher;->end()I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->matcher:Ljava/util/regex/Matcher;
|
|
|
|
invoke-virtual {v2}, Ljava/util/regex/Matcher;->regionEnd()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/util/regex/Matcher;->region(II)Ljava/util/regex/Matcher;
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public atEnd()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public consume(Ljava/lang/String;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/protobuf/TextFormat$ParseException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lcom/google/protobuf/TextFormat$Tokenizer;->tryConsume(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string v0, "Expected \""
|
|
|
|
const-string v1, "\"."
|
|
|
|
.line 2
|
|
invoke-static {v0, p1, v1}, Landroid/support/v4/media/f;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/protobuf/TextFormat$Tokenizer;->parseException(Ljava/lang/String;)Lcom/google/protobuf/TextFormat$ParseException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public consumeBoolean()Z
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/protobuf/TextFormat$ParseException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
const-string v1, "true"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
const-string v1, "True"
|
|
|
|
.line 2
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
const-string v1, "t"
|
|
|
|
.line 3
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
const-string v1, "1"
|
|
|
|
.line 4
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 5
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
const-string v1, "false"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
const-string v1, "False"
|
|
|
|
.line 6
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
const-string v1, "f"
|
|
|
|
.line 7
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
const-string v1, "0"
|
|
|
|
.line 8
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const-string v0, "Expected \"true\" or \"false\"."
|
|
|
|
.line 9
|
|
invoke-virtual {p0, v0}, Lcom/google/protobuf/TextFormat$Tokenizer;->parseException(Ljava/lang/String;)Lcom/google/protobuf/TextFormat$ParseException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
.line 10
|
|
:cond_2
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->nextToken()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
|
|
.line 11
|
|
:cond_3
|
|
:goto_1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->nextToken()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public consumeByteString()Lcom/google/protobuf/ByteString;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/protobuf/TextFormat$ParseException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 2
|
|
invoke-direct {p0, v0}, Lcom/google/protobuf/TextFormat$Tokenizer;->consumeByteString(Ljava/util/List;)V
|
|
|
|
.line 3
|
|
:goto_0
|
|
iget-object v1, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
const-string v2, "\'"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
iget-object v1, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
const-string v2, "\""
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 4
|
|
:cond_0
|
|
invoke-static {v0}, Lcom/google/protobuf/ByteString;->copyFrom(Ljava/lang/Iterable;)Lcom/google/protobuf/ByteString;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
.line 5
|
|
:cond_1
|
|
:goto_1
|
|
invoke-direct {p0, v0}, Lcom/google/protobuf/TextFormat$Tokenizer;->consumeByteString(Ljava/util/List;)V
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public consumeDouble()D
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/protobuf/TextFormat$ParseException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
sget-object v0, Lcom/google/protobuf/TextFormat$Tokenizer;->DOUBLE_INFINITY:Ljava/util/regex/Pattern;
|
|
|
|
iget-object v1, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/util/regex/Matcher;->matches()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
const-string v1, "-"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->nextToken()V
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-wide/high16 v0, -0x10000000000000L # Double.NEGATIVE_INFINITY
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-wide/high16 v0, 0x7ff0000000000000L # Double.POSITIVE_INFINITY
|
|
|
|
:goto_0
|
|
return-wide v0
|
|
|
|
.line 4
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
const-string v1, "nan"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->nextToken()V
|
|
|
|
const-wide/high16 v0, 0x7ff8000000000000L # Double.NaN
|
|
|
|
return-wide v0
|
|
|
|
.line 6
|
|
:cond_2
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D
|
|
|
|
move-result-wide v0
|
|
|
|
.line 7
|
|
invoke-virtual {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->nextToken()V
|
|
:try_end_0
|
|
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-wide v0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 8
|
|
invoke-direct {p0, v0}, Lcom/google/protobuf/TextFormat$Tokenizer;->floatParseException(Ljava/lang/NumberFormatException;)Lcom/google/protobuf/TextFormat$ParseException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public consumeFloat()F
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/protobuf/TextFormat$ParseException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
sget-object v0, Lcom/google/protobuf/TextFormat$Tokenizer;->FLOAT_INFINITY:Ljava/util/regex/Pattern;
|
|
|
|
iget-object v1, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/util/regex/Matcher;->matches()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
const-string v1, "-"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->nextToken()V
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/high16 v0, -0x800000 # Float.NEGATIVE_INFINITY
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/high16 v0, 0x7f800000 # Float.POSITIVE_INFINITY
|
|
|
|
:goto_0
|
|
return v0
|
|
|
|
.line 4
|
|
:cond_1
|
|
sget-object v0, Lcom/google/protobuf/TextFormat$Tokenizer;->FLOAT_NAN:Ljava/util/regex/Pattern;
|
|
|
|
iget-object v1, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/util/regex/Matcher;->matches()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->nextToken()V
|
|
|
|
const/high16 v0, 0x7fc00000 # Float.NaN
|
|
|
|
return v0
|
|
|
|
.line 6
|
|
:cond_2
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F
|
|
|
|
move-result v0
|
|
|
|
.line 7
|
|
invoke-virtual {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->nextToken()V
|
|
:try_end_0
|
|
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return v0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 8
|
|
invoke-direct {p0, v0}, Lcom/google/protobuf/TextFormat$Tokenizer;->floatParseException(Ljava/lang/NumberFormatException;)Lcom/google/protobuf/TextFormat$ParseException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public consumeIdentifier()Ljava/lang/String;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/protobuf/TextFormat$ParseException;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
:goto_0
|
|
iget-object v1, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_5
|
|
|
|
.line 2
|
|
iget-object v1, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v1
|
|
|
|
const/16 v2, 0x61
|
|
|
|
if-gt v2, v1, :cond_0
|
|
|
|
const/16 v2, 0x7a
|
|
|
|
if-le v1, v2, :cond_4
|
|
|
|
:cond_0
|
|
const/16 v2, 0x41
|
|
|
|
if-gt v2, v1, :cond_1
|
|
|
|
const/16 v2, 0x5a
|
|
|
|
if-le v1, v2, :cond_4
|
|
|
|
:cond_1
|
|
const/16 v2, 0x30
|
|
|
|
if-gt v2, v1, :cond_2
|
|
|
|
const/16 v2, 0x39
|
|
|
|
if-le v1, v2, :cond_4
|
|
|
|
:cond_2
|
|
const/16 v2, 0x5f
|
|
|
|
if-eq v1, v2, :cond_4
|
|
|
|
const/16 v2, 0x2e
|
|
|
|
if-ne v1, v2, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
const-string v0, "Expected identifier. Found \'"
|
|
|
|
.line 3
|
|
invoke-static {v0}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
const-string v2, "\'"
|
|
|
|
invoke-static {v0, v1, v2}, Landroidx/camera/camera2/internal/b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Lcom/google/protobuf/TextFormat$Tokenizer;->parseException(Ljava/lang/String;)Lcom/google/protobuf/TextFormat$ParseException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
:cond_4
|
|
:goto_1
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 4
|
|
:cond_5
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->nextToken()V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public consumeInt32()I
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/protobuf/TextFormat$ParseException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Lcom/google/protobuf/TextFormat;->parseInt32(Ljava/lang/String;)I
|
|
|
|
move-result v0
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->nextToken()V
|
|
:try_end_0
|
|
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return v0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 3
|
|
invoke-direct {p0, v0}, Lcom/google/protobuf/TextFormat$Tokenizer;->integerParseException(Ljava/lang/NumberFormatException;)Lcom/google/protobuf/TextFormat$ParseException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public consumeInt64()J
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/protobuf/TextFormat$ParseException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Lcom/google/protobuf/TextFormat;->parseInt64(Ljava/lang/String;)J
|
|
|
|
move-result-wide v0
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->nextToken()V
|
|
:try_end_0
|
|
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-wide v0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 3
|
|
invoke-direct {p0, v0}, Lcom/google/protobuf/TextFormat$Tokenizer;->integerParseException(Ljava/lang/NumberFormatException;)Lcom/google/protobuf/TextFormat$ParseException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public consumeString()Ljava/lang/String;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/protobuf/TextFormat$ParseException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->consumeByteString()Lcom/google/protobuf/ByteString;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/google/protobuf/ByteString;->toStringUtf8()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public consumeUInt32()I
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/protobuf/TextFormat$ParseException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Lcom/google/protobuf/TextFormat;->parseUInt32(Ljava/lang/String;)I
|
|
|
|
move-result v0
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->nextToken()V
|
|
:try_end_0
|
|
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return v0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 3
|
|
invoke-direct {p0, v0}, Lcom/google/protobuf/TextFormat$Tokenizer;->integerParseException(Ljava/lang/NumberFormatException;)Lcom/google/protobuf/TextFormat$ParseException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public consumeUInt64()J
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/protobuf/TextFormat$ParseException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Lcom/google/protobuf/TextFormat;->parseUInt64(Ljava/lang/String;)J
|
|
|
|
move-result-wide v0
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->nextToken()V
|
|
:try_end_0
|
|
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-wide v0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 3
|
|
invoke-direct {p0, v0}, Lcom/google/protobuf/TextFormat$Tokenizer;->integerParseException(Ljava/lang/NumberFormatException;)Lcom/google/protobuf/TextFormat$ParseException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public getColumn()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->column:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getLine()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->line:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getPreviousColumn()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->previousColumn:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getPreviousLine()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->previousLine:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public lookingAt(Ljava/lang/String;)Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public lookingAtInteger()Z
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v1
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v0
|
|
|
|
const/16 v2, 0x30
|
|
|
|
if-gt v2, v0, :cond_1
|
|
|
|
const/16 v2, 0x39
|
|
|
|
if-le v0, v2, :cond_2
|
|
|
|
:cond_1
|
|
const/16 v2, 0x2d
|
|
|
|
if-eq v0, v2, :cond_2
|
|
|
|
const/16 v2, 0x2b
|
|
|
|
if-ne v0, v2, :cond_3
|
|
|
|
:cond_2
|
|
const/4 v1, 0x1
|
|
|
|
:cond_3
|
|
return v1
|
|
.end method
|
|
|
|
.method public nextToken()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->line:I
|
|
|
|
iput v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->previousLine:I
|
|
|
|
.line 2
|
|
iget v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->column:I
|
|
|
|
iput v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->previousColumn:I
|
|
|
|
.line 3
|
|
:goto_0
|
|
iget v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->pos:I
|
|
|
|
iget-object v1, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->matcher:Ljava/util/regex/Matcher;
|
|
|
|
invoke-virtual {v1}, Ljava/util/regex/Matcher;->regionStart()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_1
|
|
|
|
.line 4
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->text:Ljava/lang/CharSequence;
|
|
|
|
iget v1, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->pos:I
|
|
|
|
invoke-interface {v0, v1}, Ljava/lang/CharSequence;->charAt(I)C
|
|
|
|
move-result v0
|
|
|
|
const/16 v1, 0xa
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 5
|
|
iget v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->line:I
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
iput v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->line:I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 6
|
|
iput v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->column:I
|
|
|
|
goto :goto_1
|
|
|
|
.line 7
|
|
:cond_0
|
|
iget v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->column:I
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
iput v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->column:I
|
|
|
|
.line 8
|
|
:goto_1
|
|
iget v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->pos:I
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
iput v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->pos:I
|
|
|
|
goto :goto_0
|
|
|
|
.line 9
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->matcher:Ljava/util/regex/Matcher;
|
|
|
|
invoke-virtual {v0}, Ljava/util/regex/Matcher;->regionStart()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->matcher:Ljava/util/regex/Matcher;
|
|
|
|
invoke-virtual {v1}, Ljava/util/regex/Matcher;->regionEnd()I
|
|
|
|
move-result v1
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
const-string v0, ""
|
|
|
|
.line 10
|
|
iput-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
goto :goto_3
|
|
|
|
.line 11
|
|
:cond_2
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->matcher:Ljava/util/regex/Matcher;
|
|
|
|
sget-object v1, Lcom/google/protobuf/TextFormat$Tokenizer;->TOKEN:Ljava/util/regex/Pattern;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/regex/Matcher;->usePattern(Ljava/util/regex/Pattern;)Ljava/util/regex/Matcher;
|
|
|
|
.line 12
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->matcher:Ljava/util/regex/Matcher;
|
|
|
|
invoke-virtual {v0}, Ljava/util/regex/Matcher;->lookingAt()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 13
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->matcher:Ljava/util/regex/Matcher;
|
|
|
|
invoke-virtual {v0}, Ljava/util/regex/Matcher;->group()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
.line 14
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->matcher:Ljava/util/regex/Matcher;
|
|
|
|
invoke-virtual {v0}, Ljava/util/regex/Matcher;->end()I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->matcher:Ljava/util/regex/Matcher;
|
|
|
|
invoke-virtual {v2}, Ljava/util/regex/Matcher;->regionEnd()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/util/regex/Matcher;->region(II)Ljava/util/regex/Matcher;
|
|
|
|
goto :goto_2
|
|
|
|
.line 15
|
|
:cond_3
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->text:Ljava/lang/CharSequence;
|
|
|
|
iget v1, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->pos:I
|
|
|
|
invoke-interface {v0, v1}, Ljava/lang/CharSequence;->charAt(I)C
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v0}, Ljava/lang/String;->valueOf(C)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
.line 16
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->matcher:Ljava/util/regex/Matcher;
|
|
|
|
iget v1, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->pos:I
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
invoke-virtual {v0}, Ljava/util/regex/Matcher;->regionEnd()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/util/regex/Matcher;->region(II)Ljava/util/regex/Matcher;
|
|
|
|
.line 17
|
|
:goto_2
|
|
invoke-direct {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->skipWhitespace()V
|
|
|
|
:goto_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public parseException(Ljava/lang/String;)Lcom/google/protobuf/TextFormat$ParseException;
|
|
.locals 3
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/protobuf/TextFormat$ParseException;
|
|
|
|
iget v1, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->line:I
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
iget v2, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->column:I
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
invoke-direct {v0, v1, v2, p1}, Lcom/google/protobuf/TextFormat$ParseException;-><init>(IILjava/lang/String;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public parseExceptionPreviousToken(Ljava/lang/String;)Lcom/google/protobuf/TextFormat$ParseException;
|
|
.locals 3
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/protobuf/TextFormat$ParseException;
|
|
|
|
iget v1, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->previousLine:I
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
iget v2, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->previousColumn:I
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
invoke-direct {v0, v1, v2, p1}, Lcom/google/protobuf/TextFormat$ParseException;-><init>(IILjava/lang/String;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public tryConsume(Ljava/lang/String;)Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->currentToken:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->nextToken()V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public tryConsumeDouble()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->consumeDouble()D
|
|
:try_end_0
|
|
.catch Lcom/google/protobuf/TextFormat$ParseException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:catch_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public tryConsumeFloat()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->consumeFloat()F
|
|
:try_end_0
|
|
.catch Lcom/google/protobuf/TextFormat$ParseException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:catch_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public tryConsumeIdentifier()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->consumeIdentifier()Ljava/lang/String;
|
|
:try_end_0
|
|
.catch Lcom/google/protobuf/TextFormat$ParseException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:catch_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public tryConsumeInt64()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->consumeInt64()J
|
|
:try_end_0
|
|
.catch Lcom/google/protobuf/TextFormat$ParseException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:catch_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public tryConsumeString()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->consumeString()Ljava/lang/String;
|
|
:try_end_0
|
|
.catch Lcom/google/protobuf/TextFormat$ParseException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:catch_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public tryConsumeUInt64()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lcom/google/protobuf/TextFormat$Tokenizer;->consumeUInt64()J
|
|
:try_end_0
|
|
.catch Lcom/google/protobuf/TextFormat$ParseException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
|
|
:catch_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public unknownFieldParseExceptionPreviousToken(Ljava/lang/String;Ljava/lang/String;)Lcom/google/protobuf/TextFormat$UnknownFieldParseException;
|
|
.locals 3
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/protobuf/TextFormat$UnknownFieldParseException;
|
|
|
|
iget v1, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->previousLine:I
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
iget v2, p0, Lcom/google/protobuf/TextFormat$Tokenizer;->previousColumn:I
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
invoke-direct {v0, v1, v2, p1, p2}, Lcom/google/protobuf/TextFormat$UnknownFieldParseException;-><init>(IILjava/lang/String;Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
.end method
|