IntegerRange.smali
.class public abstract Lorg/apache/commons/jexl3/internal/IntegerRange;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/util/Collection;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lorg/apache/commons/jexl3/internal/IntegerRange$Descending;,
Lorg/apache/commons/jexl3/internal/IntegerRange$Ascending;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/util/Collection<",
"Ljava/lang/Integer;",
">;"
}
.end annotation
# instance fields
.field public final max:I
.field public final min:I
# direct methods
.method public constructor <init>(II)V
.registers 3
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput p1, p0, Lorg/apache/commons/jexl3/internal/IntegerRange;->min:I
.line 3
iput p2, p0, Lorg/apache/commons/jexl3/internal/IntegerRange;->max:I
return-void
.end method
.method public static create(II)Lorg/apache/commons/jexl3/internal/IntegerRange;
.registers 3
if-gt p0, p1, :cond_8
.line 1
new-instance v0, Lorg/apache/commons/jexl3/internal/IntegerRange$Ascending;
invoke-direct {v0, p0, p1}, Lorg/apache/commons/jexl3/internal/IntegerRange$Ascending;-><init>(II)V
return-object v0
.line 2
:cond_8
new-instance v0, Lorg/apache/commons/jexl3/internal/IntegerRange$Descending;
invoke-direct {v0, p1, p0}, Lorg/apache/commons/jexl3/internal/IntegerRange$Descending;-><init>(II)V
return-object v0
.end method
# virtual methods
.method public add(Ljava/lang/Integer;)Z
.registers 2
.line 2
new-instance p1, Ljava/lang/UnsupportedOperationException;
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
throw p1
.end method
.method public bridge synthetic add(Ljava/lang/Object;)Z
.registers 2
.line 1
check-cast p1, Ljava/lang/Integer;
invoke-virtual {p0, p1}, Lorg/apache/commons/jexl3/internal/IntegerRange;->add(Ljava/lang/Integer;)Z
move-result p1
return p1
.end method
.method public addAll(Ljava/util/Collection;)Z
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection<",
"+",
"Ljava/lang/Integer;",
">;)Z"
}
.end annotation
new-instance p1, Ljava/lang/UnsupportedOperationException;
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
throw p1
.end method
.method public clear()V
.registers 2
new-instance v0, Ljava/lang/UnsupportedOperationException;
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
throw v0
.end method
.method public contains(Ljava/lang/Object;)Z
.registers 8
.line 1
instance-of v0, p1, Ljava/lang/Number;
const/4 v1, 0x0
if-eqz v0, :cond_1b
.line 2
check-cast p1, Ljava/lang/Number;
invoke-virtual {p1}, Ljava/lang/Number;->intValue()I
move-result p1
int-to-long v2, p1
.line 3
iget p1, p0, Lorg/apache/commons/jexl3/internal/IntegerRange;->min:I
int-to-long v4, p1
cmp-long p1, v4, v2
if-gtz p1, :cond_1b
iget p1, p0, Lorg/apache/commons/jexl3/internal/IntegerRange;->max:I
int-to-long v4, p1
cmp-long p1, v2, v4
if-gtz p1, :cond_1b
const/4 v1, 0x1
:cond_1b
return v1
.end method
.method public containsAll(Ljava/util/Collection;)Z
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection<",
"*>;)Z"
}
.end annotation
.line 1
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_4
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_16
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
.line 2
invoke-virtual {p0, v0}, Lorg/apache/commons/jexl3/internal/IntegerRange;->contains(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_4
const/4 p1, 0x0
return p1
:cond_16
const/4 p1, 0x1
return p1
.end method
.method public equals(Ljava/lang/Object;)Z
.registers 5
const/4 v0, 0x0
if-nez p1, :cond_4
return v0
.line 1
:cond_4
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v1
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v2
if-eq v1, v2, :cond_f
return v0
.line 2
:cond_f
check-cast p1, Lorg/apache/commons/jexl3/internal/IntegerRange;
.line 3
iget v1, p0, Lorg/apache/commons/jexl3/internal/IntegerRange;->min:I
iget v2, p1, Lorg/apache/commons/jexl3/internal/IntegerRange;->min:I
if-eq v1, v2, :cond_18
return v0
.line 4
:cond_18
iget v1, p0, Lorg/apache/commons/jexl3/internal/IntegerRange;->max:I
iget p1, p1, Lorg/apache/commons/jexl3/internal/IntegerRange;->max:I
if-eq v1, p1, :cond_1f
return v0
:cond_1f
const/4 p1, 0x1
return p1
.end method
.method public getMax()I
.registers 2
iget v0, p0, Lorg/apache/commons/jexl3/internal/IntegerRange;->max:I
return v0
.end method
.method public getMin()I
.registers 2
iget v0, p0, Lorg/apache/commons/jexl3/internal/IntegerRange;->min:I
return v0
.end method
.method public hashCode()I
.registers 3
.line 1
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
move-result v0
mul-int/lit8 v0, v0, 0xd
.line 2
iget v1, p0, Lorg/apache/commons/jexl3/internal/IntegerRange;->min:I
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0xd
.line 3
iget v1, p0, Lorg/apache/commons/jexl3/internal/IntegerRange;->max:I
add-int/2addr v0, v1
return v0
.end method
.method public isEmpty()Z
.registers 2
const/4 v0, 0x0
return v0
.end method
.method public abstract iterator()Ljava/util/Iterator;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Iterator<",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.end method
.method public remove(Ljava/lang/Object;)Z
.registers 2
new-instance p1, Ljava/lang/UnsupportedOperationException;
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
throw p1
.end method
.method public removeAll(Ljava/util/Collection;)Z
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection<",
"*>;)Z"
}
.end annotation
new-instance p1, Ljava/lang/UnsupportedOperationException;
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
throw p1
.end method
.method public retainAll(Ljava/util/Collection;)Z
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection<",
"*>;)Z"
}
.end annotation
new-instance p1, Ljava/lang/UnsupportedOperationException;
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
throw p1
.end method
.method public size()I
.registers 3
iget v0, p0, Lorg/apache/commons/jexl3/internal/IntegerRange;->max:I
iget v1, p0, Lorg/apache/commons/jexl3/internal/IntegerRange;->min:I
sub-int/2addr v0, v1
add-int/lit8 v0, v0, 0x1
return v0
.end method
.method public toArray()[Ljava/lang/Object;
.registers 5
.line 1
invoke-virtual {p0}, Lorg/apache/commons/jexl3/internal/IntegerRange;->size()I
move-result v0
.line 2
new-array v1, v0, [Ljava/lang/Object;
const/4 v2, 0x0
:goto_7
if-ge v2, v0, :cond_15
.line 3
iget v3, p0, Lorg/apache/commons/jexl3/internal/IntegerRange;->min:I
add-int/2addr v3, v2
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
aput-object v3, v1, v2
add-int/lit8 v2, v2, 0x1
goto :goto_7
:cond_15
return-object v1
.end method
.method public toArray([Ljava/lang/Object;)[Ljava/lang/Object;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">([TT;)[TT;"
}
.end annotation
.line 4
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class;
move-result-object v0
.line 5
invoke-virtual {p0}, Lorg/apache/commons/jexl3/internal/IntegerRange;->size()I
move-result v1
.line 6
const-class v2, Ljava/lang/Integer;
invoke-virtual {v0, v2}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
move-result v2
if-eqz v2, :cond_3d
.line 7
array-length v2, p1
if-ge v2, v1, :cond_25
.line 8
const-class v2, Ljava/lang/Object;
if-ne v0, v2, :cond_1e
new-array v0, v1, [Ljava/lang/Object;
goto :goto_26
:cond_1e
invoke-static {v0, v1}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;I)Ljava/lang/Object;
move-result-object v0
check-cast v0, [Ljava/lang/Object;
goto :goto_26
:cond_25
move-object v0, p1
:goto_26
const/4 v2, 0x0
:goto_27
if-ge v2, v1, :cond_36
.line 9
iget v3, p0, Lorg/apache/commons/jexl3/internal/IntegerRange;->min:I
add-int/2addr v3, v2
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
invoke-static {v0, v2, v3}, Ljava/lang/reflect/Array;->set(Ljava/lang/Object;ILjava/lang/Object;)V
add-int/lit8 v2, v2, 0x1
goto :goto_27
.line 10
:cond_36
array-length v2, p1
if-ge v1, v2, :cond_3c
const/4 v2, 0x0
.line 11
aput-object v2, p1, v1
:cond_3c
return-object v0
.line 12
:cond_3d
new-instance p1, Ljava/lang/UnsupportedOperationException;
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
throw p1
.end method