140 lines
3.8 KiB
Smali
140 lines
3.8 KiB
Smali
.class public final Landroidx/core/graphics/RegionKt$iterator$1;
|
|
.super Ljava/lang/Object;
|
|
.source "Region.kt"
|
|
|
|
# interfaces
|
|
.implements Ljava/util/Iterator;
|
|
.implements Lm/u/b/z/a;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Landroidx/core/graphics/RegionKt;->iterator(Landroid/graphics/Region;)Ljava/util/Iterator;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Ljava/util/Iterator<",
|
|
"Landroid/graphics/Rect;",
|
|
">;",
|
|
"Lm/u/b/z/a;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $this_iterator:Landroid/graphics/Region;
|
|
|
|
.field public hasMore:Z
|
|
|
|
.field public final iterator:Landroid/graphics/RegionIterator;
|
|
|
|
.field public final rect:Landroid/graphics/Rect;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/graphics/Region;)V
|
|
.locals 1
|
|
|
|
iput-object p1, p0, Landroidx/core/graphics/RegionKt$iterator$1;->$this_iterator:Landroid/graphics/Region;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance p1, Landroid/graphics/RegionIterator;
|
|
|
|
iget-object v0, p0, Landroidx/core/graphics/RegionKt$iterator$1;->$this_iterator:Landroid/graphics/Region;
|
|
|
|
invoke-direct {p1, v0}, Landroid/graphics/RegionIterator;-><init>(Landroid/graphics/Region;)V
|
|
|
|
iput-object p1, p0, Landroidx/core/graphics/RegionKt$iterator$1;->iterator:Landroid/graphics/RegionIterator;
|
|
|
|
new-instance p1, Landroid/graphics/Rect;
|
|
|
|
invoke-direct {p1}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
iput-object p1, p0, Landroidx/core/graphics/RegionKt$iterator$1;->rect:Landroid/graphics/Rect;
|
|
|
|
iget-object p1, p0, Landroidx/core/graphics/RegionKt$iterator$1;->iterator:Landroid/graphics/RegionIterator;
|
|
|
|
iget-object v0, p0, Landroidx/core/graphics/RegionKt$iterator$1;->rect:Landroid/graphics/Rect;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/graphics/RegionIterator;->next(Landroid/graphics/Rect;)Z
|
|
|
|
move-result p1
|
|
|
|
iput-boolean p1, p0, Landroidx/core/graphics/RegionKt$iterator$1;->hasMore:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public hasNext()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Landroidx/core/graphics/RegionKt$iterator$1;->hasMore:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public next()Landroid/graphics/Rect;
|
|
.locals 3
|
|
|
|
iget-boolean v0, p0, Landroidx/core/graphics/RegionKt$iterator$1;->hasMore:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
new-instance v0, Landroid/graphics/Rect;
|
|
|
|
iget-object v1, p0, Landroidx/core/graphics/RegionKt$iterator$1;->rect:Landroid/graphics/Rect;
|
|
|
|
invoke-direct {v0, v1}, Landroid/graphics/Rect;-><init>(Landroid/graphics/Rect;)V
|
|
|
|
iget-object v1, p0, Landroidx/core/graphics/RegionKt$iterator$1;->iterator:Landroid/graphics/RegionIterator;
|
|
|
|
iget-object v2, p0, Landroidx/core/graphics/RegionKt$iterator$1;->rect:Landroid/graphics/Rect;
|
|
|
|
invoke-virtual {v1, v2}, Landroid/graphics/RegionIterator;->next(Landroid/graphics/Rect;)Z
|
|
|
|
move-result v1
|
|
|
|
iput-boolean v1, p0, Landroidx/core/graphics/RegionKt$iterator$1;->hasMore:Z
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IndexOutOfBoundsException;
|
|
|
|
invoke-direct {v0}, Ljava/lang/IndexOutOfBoundsException;-><init>()V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public bridge synthetic next()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Landroidx/core/graphics/RegionKt$iterator$1;->next()Landroid/graphics/Rect;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public remove()V
|
|
.locals 2
|
|
|
|
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string v1, "Operation is not supported for read-only collection"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|