.class public Lcom/scaleasw/powercalc/FormalElement;
.super Ljava/lang/Object;
.source "FormalElement.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/scaleasw/powercalc/FormalElement$FormalElementType;
    }
.end annotation


# instance fields
.field public element:Lcom/scaleasw/powercalc/Element;

.field public elementIndex:I

.field public final formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

.field public nextFormalElementNull:Ljava/lang/Boolean;

.field public nextFormalElementType:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set",
            "<",
            "Lcom/scaleasw/powercalc/FormalElement$FormalElementType;",
            ">;"
        }
    .end annotation
.end field

.field public previousFormalElementNull:Ljava/lang/Boolean;

.field public previousFormalElementType:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set",
            "<",
            "Lcom/scaleasw/powercalc/FormalElement$FormalElementType;",
            ">;"
        }
    .end annotation
.end field

.field public value:Lcom/scaleasw/powercalc/Complex;


# direct methods
.method public constructor <init>(Lcom/scaleasw/powercalc/FormalElement$FormalElementType;)V
    .locals 6
    .param p1, "formalElementType"    # Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    .prologue
    const-wide/16 v4, 0x0

    const/4 v3, 0x0

    const/4 v2, 0x1

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

    .line 21
    iput-object p1, p0, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    .line 22
    new-instance v0, Ljava/util/TreeSet;

    invoke-direct {v0}, Ljava/util/TreeSet;-><init>()V

    iput-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    .line 23
    new-instance v0, Ljava/util/TreeSet;

    invoke-direct {v0}, Ljava/util/TreeSet;-><init>()V

    iput-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    .line 24
    new-instance v0, Lcom/scaleasw/powercalc/Complex;

    invoke-direct {v0, v4, v5, v4, v5}, Lcom/scaleasw/powercalc/Complex;-><init>(DD)V

    iput-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    .line 25
    const/4 v0, -0x1

    iput v0, p0, Lcom/scaleasw/powercalc/FormalElement;->elementIndex:I

    .line 27
    sget-object v0, Lcom/scaleasw/powercalc/FormalElement$1;->$SwitchMap$com$scaleasw$powercalc$FormalElement$FormalElementType:[I

    invoke-virtual {p1}, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_0

    .line 141
    :goto_0
    return-void

    .line 30
    :pswitch_0
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->OPERATOR:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 31
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_AFA:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 32
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_FA:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 33
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->SYMBOL:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 34
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->ACTION:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 35
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementNull:Ljava/lang/Boolean;

    .line 36
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->OPERATOR:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 37
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_AF:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 38
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_AFA:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 39
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->SYMBOL:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 40
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->ACTION:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 41
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementNull:Ljava/lang/Boolean;

    goto :goto_0

    .line 45
    :pswitch_1
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->OPERATOR:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 46
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_AFA:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 47
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_FA:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 48
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->SYMBOL:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 49
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->ACTION:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 50
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementNull:Ljava/lang/Boolean;

    .line 51
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->OPERATOR:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 52
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_AF:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 53
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_AFA:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 54
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->SYMBOL:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 55
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->ACTION:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 56
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementNull:Ljava/lang/Boolean;

    goto/16 :goto_0

    .line 59
    :pswitch_2
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->CONSTANT:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 60
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 61
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->MEMORY:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 62
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->SYMBOL:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 63
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_AF:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 64
    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementNull:Ljava/lang/Boolean;

    .line 65
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_FA:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 66
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->CONSTANT:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 67
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->MEMORY:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 68
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 69
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->SYMBOL:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 70
    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementNull:Ljava/lang/Boolean;

    goto/16 :goto_0

    .line 73
    :pswitch_3
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->CONSTANT:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 74
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->MEMORY:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 75
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 76
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->SYMBOL:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 77
    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementNull:Ljava/lang/Boolean;

    .line 78
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->ACTION:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 79
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_AF:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 80
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_AFA:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 81
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->OPERATOR:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 82
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->SYMBOL:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 83
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementNull:Ljava/lang/Boolean;

    goto/16 :goto_0

    .line 86
    :pswitch_4
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_FA:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 87
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->OPERATOR:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 88
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->SYMBOL:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 89
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementNull:Ljava/lang/Boolean;

    .line 90
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->CONSTANT:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 91
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->MEMORY:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 92
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 93
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->SYMBOL:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 94
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_FA:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 95
    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementNull:Ljava/lang/Boolean;

    goto/16 :goto_0

    .line 98
    :pswitch_5
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->CONSTANT:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 99
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->MEMORY:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 100
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 101
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->SYMBOL:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 102
    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementNull:Ljava/lang/Boolean;

    .line 103
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->CONSTANT:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 104
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->MEMORY:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 105
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 106
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->SYMBOL:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 107
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_FA:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 108
    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementNull:Ljava/lang/Boolean;

    goto/16 :goto_0

    .line 111
    :pswitch_6
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->CONSTANT:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 112
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_AF:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 113
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_FA:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 114
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_AFA:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 115
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->MEMORY:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 116
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 117
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->SYMBOL:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 118
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->OPERATOR:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 119
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementNull:Ljava/lang/Boolean;

    .line 120
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->ACTION:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 121
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_AF:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 122
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_FA:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 123
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_AFA:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 124
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->OPERATOR:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 125
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->SYMBOL:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 126
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 127
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->CONSTANT:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 128
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementNull:Ljava/lang/Boolean;

    goto/16 :goto_0

    .line 131
    :pswitch_7
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->CONSTANT:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 132
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_AF:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 133
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->MEMORY:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 134
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 135
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->SYMBOL:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 136
    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementNull:Ljava/lang/Boolean;

    .line 137
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->MEMORY:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 138
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementNull:Ljava/lang/Boolean;

    goto/16 :goto_0

    .line 27
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_6
        :pswitch_7
    .end packed-switch
.end method


# virtual methods
.method public checkNextElement(Lcom/scaleasw/powercalc/FormalElement;)Ljava/lang/Boolean;
    .locals 4
    .param p1, "next"    # Lcom/scaleasw/powercalc/FormalElement;

    .prologue
    const/4 v3, 0x0

    const/4 v2, 0x1

    .line 182
    if-nez p1, :cond_1

    .line 183
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementNull:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    .line 189
    :goto_0
    return-object v0

    .line 184
    :cond_0
    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0

    .line 186
    :cond_1
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->nextFormalElementType:Ljava/util/Set;

    iget-object v1, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0

    .line 187
    :cond_2
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    sget-object v1, Lcom/scaleasw/powercalc/Element;->SCBRACKET:Lcom/scaleasw/powercalc/Element;

    if-eq v0, v1, :cond_3

    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    sget-object v1, Lcom/scaleasw/powercalc/Element;->SOBRACKET:Lcom/scaleasw/powercalc/Element;

    if-ne v0, v1, :cond_4

    :cond_3
    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->MEMORY:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-ne v0, v1, :cond_4

    .line 188
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0

    .line 189
    :cond_4
    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0
.end method

.method public checkPossibleNextMultiply(Lcom/scaleasw/powercalc/FormalElement;)Ljava/lang/Boolean;
    .locals 4
    .param p1, "next"    # Lcom/scaleasw/powercalc/FormalElement;

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 223
    if-nez p1, :cond_0

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    .line 246
    :goto_0
    return-object v0

    .line 225
    :cond_0
    sget-object v0, Lcom/scaleasw/powercalc/FormalElement$1;->$SwitchMap$com$scaleasw$powercalc$FormalElement$FormalElementType:[I

    iget-object v1, p0, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-virtual {v1}, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_0

    .line 246
    :pswitch_0
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0

    .line 228
    :pswitch_1
    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_FA:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_1

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->SYMBOL:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_1

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->CONSTANT:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_1

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->MEMORY:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-ne v0, v1, :cond_2

    .line 229
    :cond_1
    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0

    .line 230
    :cond_2
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0

    .line 232
    :pswitch_2
    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_3

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_FA:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_3

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->SYMBOL:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_3

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->CONSTANT:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_3

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->MEMORY:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-ne v0, v1, :cond_4

    .line 234
    :cond_3
    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0

    .line 235
    :cond_4
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0

    .line 237
    :pswitch_3
    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_5

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_FA:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_5

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->SYMBOL:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_5

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->CONSTANT:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_5

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->MEMORY:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-ne v0, v1, :cond_6

    .line 239
    :cond_5
    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0

    .line 240
    :cond_6
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto/16 :goto_0

    .line 242
    :pswitch_4
    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_7

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_FA:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_7

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->SYMBOL:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_7

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->CONSTANT:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-ne v0, v1, :cond_8

    .line 243
    :cond_7
    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto/16 :goto_0

    .line 244
    :cond_8
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto/16 :goto_0

    .line 225
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_1
        :pswitch_2
        :pswitch_4
        :pswitch_0
        :pswitch_3
    .end packed-switch
.end method

.method public checkPossiblePreviousMultiply(Lcom/scaleasw/powercalc/FormalElement;)Ljava/lang/Boolean;
    .locals 4
    .param p1, "previous"    # Lcom/scaleasw/powercalc/FormalElement;

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 194
    if-nez p1, :cond_0

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    .line 217
    :goto_0
    return-object v0

    .line 196
    :cond_0
    sget-object v0, Lcom/scaleasw/powercalc/FormalElement$1;->$SwitchMap$com$scaleasw$powercalc$FormalElement$FormalElementType:[I

    iget-object v1, p0, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-virtual {v1}, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->ordinal()I

    move-result v1

    aget v0, v0, v1

    packed-switch v0, :pswitch_data_0

    .line 217
    :pswitch_0
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0

    .line 199
    :pswitch_1
    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_AF:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_1

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->SYMBOL:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_1

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->CONSTANT:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_1

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->MEMORY:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-ne v0, v1, :cond_2

    .line 200
    :cond_1
    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0

    .line 201
    :cond_2
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0

    .line 203
    :pswitch_2
    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_3

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_AF:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_3

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->SYMBOL:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_3

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->CONSTANT:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_3

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->MEMORY:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-ne v0, v1, :cond_4

    .line 205
    :cond_3
    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0

    .line 206
    :cond_4
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0

    .line 208
    :pswitch_3
    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_5

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_AF:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_5

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->SYMBOL:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_5

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->CONSTANT:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_5

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->MEMORY:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-ne v0, v1, :cond_6

    .line 210
    :cond_5
    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0

    .line 211
    :cond_6
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto/16 :goto_0

    .line 213
    :pswitch_4
    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->NUMBER:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_7

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->FUNCTION_AF:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_7

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->SYMBOL:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-eq v0, v1, :cond_7

    iget-object v0, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    sget-object v1, Lcom/scaleasw/powercalc/FormalElement$FormalElementType;->CONSTANT:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    if-ne v0, v1, :cond_8

    .line 214
    :cond_7
    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto/16 :goto_0

    .line 215
    :cond_8
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto/16 :goto_0

    .line 196
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_1
        :pswitch_2
        :pswitch_4
        :pswitch_0
        :pswitch_0
        :pswitch_3
    .end packed-switch
.end method

.method public checkPreviousElement(Lcom/scaleasw/powercalc/FormalElement;)Ljava/lang/Boolean;
    .locals 4
    .param p1, "previous"    # Lcom/scaleasw/powercalc/FormalElement;

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 172
    if-nez p1, :cond_1

    .line 173
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementNull:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    .line 177
    :goto_0
    return-object v0

    .line 174
    :cond_0
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0

    .line 176
    :cond_1
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->previousFormalElementType:Ljava/util/Set;

    iget-object v1, p1, Lcom/scaleasw/powercalc/FormalElement;->formalElementType:Lcom/scaleasw/powercalc/FormalElement$FormalElementType;

    invoke-interface {v0, v1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0

    .line 177
    :cond_2
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0
.end method

.method public setElement(Lcom/scaleasw/powercalc/Element;)V
    .locals 0
    .param p1, "element"    # Lcom/scaleasw/powercalc/Element;

    .prologue
    .line 162
    iput-object p1, p0, Lcom/scaleasw/powercalc/FormalElement;->element:Lcom/scaleasw/powercalc/Element;

    .line 163
    return-void
.end method

.method public setElementIndex(I)V
    .locals 0
    .param p1, "index"    # I

    .prologue
    .line 167
    iput p1, p0, Lcom/scaleasw/powercalc/FormalElement;->elementIndex:I

    .line 168
    return-void
.end method

.method public setValue(Lcom/scaleasw/powercalc/Complex;)V
    .locals 6
    .param p1, "value"    # Lcom/scaleasw/powercalc/Complex;

    .prologue
    const-wide/16 v4, 0x0

    .line 145
    if-nez p1, :cond_0

    .line 147
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    iput-wide v4, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    .line 148
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    const-wide/16 v2, 0x0

    iput-wide v2, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 149
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    iput-wide v4, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    .line 158
    :goto_0
    return-void

    .line 153
    :cond_0
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    iget-wide v2, p1, Lcom/scaleasw/powercalc/Complex;->re:D

    iput-wide v2, v0, Lcom/scaleasw/powercalc/Complex;->re:D

    .line 154
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    iget-wide v2, p1, Lcom/scaleasw/powercalc/Complex;->radix:J

    iput-wide v2, v0, Lcom/scaleasw/powercalc/Complex;->radix:J

    .line 155
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    iget-wide v2, p1, Lcom/scaleasw/powercalc/Complex;->im:D

    iput-wide v2, v0, Lcom/scaleasw/powercalc/Complex;->im:D

    .line 156
    iget-object v0, p0, Lcom/scaleasw/powercalc/FormalElement;->value:Lcom/scaleasw/powercalc/Complex;

    iget-object v1, p1, Lcom/scaleasw/powercalc/Complex;->format:Lcom/scaleasw/powercalc/Complex$Format;

    iput-object v1, v0, Lcom/scaleasw/powercalc/Complex;->format:Lcom/scaleasw/powercalc/Complex$Format;

    goto :goto_0
.end method
