TypePath.smali

.class public Lorg/objectweb/asm/TypePath;
.super Ljava/lang/Object;


# static fields
.field public static final ARRAY_ELEMENT:I = 0x0

.field public static final INNER_TYPE:I = 0x1

.field public static final TYPE_ARGUMENT:I = 0x3

.field public static final WILDCARD_BOUND:I = 0x2


# instance fields
.field a:[B

.field b:I


# direct methods
.method constructor <init>([BI)V
    .registers 3

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lorg/objectweb/asm/TypePath;->a:[B

    iput p2, p0, Lorg/objectweb/asm/TypePath;->b:I

    return-void
.end method

.method public static fromString(Ljava/lang/String;)Lorg/objectweb/asm/TypePath;
    .registers 9

    const/16 v7, 0x39

    const/16 v6, 0x30

    const/4 v2, 0x0

    if-eqz p0, :cond_d

    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v0

    if-nez v0, :cond_f

    :cond_d
    const/4 v0, 0x0

    :goto_e
    return-object v0

    :cond_f
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v3

    new-instance v4, Lorg/objectweb/asm/ByteVector;

    invoke-direct {v4, v3}, Lorg/objectweb/asm/ByteVector;-><init>(I)V

    invoke-virtual {v4, v2}, Lorg/objectweb/asm/ByteVector;->putByte(I)Lorg/objectweb/asm/ByteVector;

    move v1, v2

    :goto_1c
    if-ge v1, v3, :cond_5f

    add-int/lit8 v0, v1, 0x1

    invoke-virtual {p0, v1}, Ljava/lang/String;->charAt(I)C

    move-result v1

    const/16 v5, 0x5b

    if-ne v1, v5, :cond_2d

    invoke-virtual {v4, v2, v2}, Lorg/objectweb/asm/ByteVector;->a(II)Lorg/objectweb/asm/ByteVector;

    move v1, v0

    goto :goto_1c

    :cond_2d
    const/16 v5, 0x2e

    if-ne v1, v5, :cond_37

    const/4 v1, 0x1

    invoke-virtual {v4, v1, v2}, Lorg/objectweb/asm/ByteVector;->a(II)Lorg/objectweb/asm/ByteVector;

    move v1, v0

    goto :goto_1c

    :cond_37
    const/16 v5, 0x2a

    if-ne v1, v5, :cond_41

    const/4 v1, 0x2

    invoke-virtual {v4, v1, v2}, Lorg/objectweb/asm/ByteVector;->a(II)Lorg/objectweb/asm/ByteVector;

    move v1, v0

    goto :goto_1c

    :cond_41
    if-lt v1, v6, :cond_5d

    if-gt v1, v7, :cond_5d

    add-int/lit8 v1, v1, -0x30

    :goto_47
    if-ge v0, v3, :cond_59

    invoke-virtual {p0, v0}, Ljava/lang/String;->charAt(I)C

    move-result v5

    if-lt v5, v6, :cond_59

    if-gt v5, v7, :cond_59

    mul-int/lit8 v1, v1, 0xa

    add-int/2addr v1, v5

    add-int/lit8 v1, v1, -0x30

    add-int/lit8 v0, v0, 0x1

    goto :goto_47

    :cond_59
    const/4 v5, 0x3

    invoke-virtual {v4, v5, v1}, Lorg/objectweb/asm/ByteVector;->a(II)Lorg/objectweb/asm/ByteVector;

    :cond_5d
    move v1, v0

    goto :goto_1c

    :cond_5f
    iget-object v0, v4, Lorg/objectweb/asm/ByteVector;->a:[B

    iget v1, v4, Lorg/objectweb/asm/ByteVector;->b:I

    div-int/lit8 v1, v1, 0x2

    int-to-byte v1, v1

    aput-byte v1, v0, v2

    new-instance v0, Lorg/objectweb/asm/TypePath;

    iget-object v1, v4, Lorg/objectweb/asm/ByteVector;->a:[B

    invoke-direct {v0, v1, v2}, Lorg/objectweb/asm/TypePath;-><init>([BI)V

    goto :goto_e
.end method


# virtual methods
.method public getLength()I
    .registers 3

    iget-object v0, p0, Lorg/objectweb/asm/TypePath;->a:[B

    iget v1, p0, Lorg/objectweb/asm/TypePath;->b:I

    aget-byte v0, v0, v1

    return v0
.end method

.method public getStep(I)I
    .registers 5

    iget-object v0, p0, Lorg/objectweb/asm/TypePath;->a:[B

    iget v1, p0, Lorg/objectweb/asm/TypePath;->b:I

    mul-int/lit8 v2, p1, 0x2

    add-int/2addr v1, v2

    add-int/lit8 v1, v1, 0x1

    aget-byte v0, v0, v1

    return v0
.end method

.method public getStepArgument(I)I
    .registers 5

    iget-object v0, p0, Lorg/objectweb/asm/TypePath;->a:[B

    iget v1, p0, Lorg/objectweb/asm/TypePath;->b:I

    mul-int/lit8 v2, p1, 0x2

    add-int/2addr v1, v2

    add-int/lit8 v1, v1, 0x2

    aget-byte v0, v0, v1

    return v0
.end method

.method public toString()Ljava/lang/String;
    .registers 5

    invoke-virtual {p0}, Lorg/objectweb/asm/TypePath;->getLength()I

    move-result v1

    new-instance v2, Ljava/lang/StringBuffer;

    shl-int/lit8 v0, v1, 0x1

    invoke-direct {v2, v0}, Ljava/lang/StringBuffer;-><init>(I)V

    const/4 v0, 0x0

    :goto_c
    if-ge v0, v1, :cond_37

    invoke-virtual {p0, v0}, Lorg/objectweb/asm/TypePath;->getStep(I)I

    move-result v3

    packed-switch v3, :pswitch_data_3c

    const/16 v3, 0x5f

    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :goto_1a
    add-int/lit8 v0, v0, 0x1

    goto :goto_c

    :pswitch_1d
    const/16 v3, 0x5b

    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    goto :goto_1a

    :pswitch_23
    const/16 v3, 0x2e

    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    goto :goto_1a

    :pswitch_29
    const/16 v3, 0x2a

    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    goto :goto_1a

    :pswitch_2f
    invoke-virtual {p0, v0}, Lorg/objectweb/asm/TypePath;->getStepArgument(I)I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    goto :goto_1a

    :cond_37
    invoke-virtual {v2}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0

    :pswitch_data_3c
    .packed-switch 0x0
        :pswitch_1d
        :pswitch_23
        :pswitch_29
        :pswitch_2f
    .end packed-switch
.end method