JexlException$Variable.smali

.class public Lorg/apache/commons/jexl3/JexlException$Variable;
.super Lorg/apache/commons/jexl3/JexlException;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lorg/apache/commons/jexl3/JexlException;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "Variable"
.end annotation


# instance fields
.field private final undefined:Z


# direct methods
.method public constructor <init>(Lorg/apache/commons/jexl3/parser/JexlNode;Ljava/lang/String;Z)V
    .registers 5

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, p1, p2, v0}, Lorg/apache/commons/jexl3/JexlException;-><init>(Lorg/apache/commons/jexl3/parser/JexlNode;Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 2
    iput-boolean p3, p0, Lorg/apache/commons/jexl3/JexlException$Variable;->undefined:Z

    return-void
.end method


# virtual methods
.method public detailedMessage()Ljava/lang/String;
    .registers 3

    new-instance v0, Ljava/lang/StringBuilder;

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

    iget-boolean v1, p0, Lorg/apache/commons/jexl3/JexlException$Variable;->undefined:Z

    if-eqz v1, :cond_c

    const-string v1, "undefined"

    goto :goto_e

    :cond_c
    const-string v1, "null value"

    :goto_e
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, " variable "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Lorg/apache/commons/jexl3/JexlException$Variable;->getVariable()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getVariable()Ljava/lang/String;
    .registers 2

    invoke-super {p0}, Lorg/apache/commons/jexl3/JexlException;->detailedMessage()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public isUndefined()Z
    .registers 2

    iget-boolean v0, p0, Lorg/apache/commons/jexl3/JexlException$Variable;->undefined:Z

    return v0
.end method