.class final Lkotlin/io/path/ExceptionsCollector; .super Ljava/lang/Object; .source "PathRecursiveFunctions.kt" # annotations .annotation runtime Lkotlin/Metadata; d1 = { "\u00002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0002\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\t\n\u0002\u0010\u0002\n\u0002\u0008\u0005\u0008\u0002\u0018\u00002\u00020\u0001B\u000f\u0012\u0008\u0008\u0002\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0002\u0010\u0004J\u0012\u0010\u0015\u001a\u00020\u00162\n\u0010\u0017\u001a\u00060\u0007j\u0002`\u0008J\u000e\u0010\u0018\u001a\u00020\u00162\u0006\u0010\u0019\u001a\u00020\u000cJ\u000e\u0010\u001a\u001a\u00020\u00162\u0006\u0010\u0019\u001a\u00020\u000cR\u001b\u0010\u0005\u001a\u000c\u0012\u0008\u0012\u00060\u0007j\u0002`\u00080\u0006\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\t\u0010\nR\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u001c\u0010\u000b\u001a\u0004\u0018\u00010\u000cX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\r\u0010\u000e\"\u0004\u0008\u000f\u0010\u0010R\u001e\u0010\u0012\u001a\u00020\u00032\u0006\u0010\u0011\u001a\u00020\u0003@BX\u0086\u000e\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0013\u0010\u0014\u00a8\u0006\u001b" } d2 = { "Lkotlin/io/path/ExceptionsCollector;", "", "limit", "", "(I)V", "collectedExceptions", "", "Ljava/lang/Exception;", "Lkotlin/Exception;", "getCollectedExceptions", "()Ljava/util/List;", "path", "Ljava/nio/file/Path;", "getPath", "()Ljava/nio/file/Path;", "setPath", "(Ljava/nio/file/Path;)V", "", "totalExceptions", "getTotalExceptions", "()I", "collect", "", "exception", "enterEntry", "name", "exitEntry", "kotlin-stdlib-jdk7" } k = 0x1 mv = { 0x1, 0x9, 0x0 } xi = 0x30 .end annotation # instance fields .field private final collectedExceptions:Ljava/util/List; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/List<", "Ljava/lang/Exception;", ">;" } .end annotation .end field .field private final limit:I .field private path:Ljava/nio/file/Path; .field private totalExceptions:I # direct methods .method public constructor ()V .locals 3 const/4 v0, 0x1 const/4 v1, 0x0 const/4 v2, 0x0 invoke-direct {p0, v2, v0, v1}, Lkotlin/io/path/ExceptionsCollector;->(IILkotlin/jvm/internal/DefaultConstructorMarker;)V return-void .end method .method public constructor (I)V .locals 0 .line 289 invoke-direct {p0}, Ljava/lang/Object;->()V iput p1, p0, Lkotlin/io/path/ExceptionsCollector;->limit:I .line 293 new-instance p1, Ljava/util/ArrayList; invoke-direct {p1}, Ljava/util/ArrayList;->()V check-cast p1, Ljava/util/List; iput-object p1, p0, Lkotlin/io/path/ExceptionsCollector;->collectedExceptions:Ljava/util/List; return-void .end method .method public synthetic constructor (IILkotlin/jvm/internal/DefaultConstructorMarker;)V .locals 0 and-int/lit8 p2, p2, 0x1 if-eqz p2, :cond_0 const/16 p1, 0x40 .line 289 :cond_0 invoke-direct {p0, p1}, Lkotlin/io/path/ExceptionsCollector;->(I)V return-void .end method # virtual methods .method public final collect(Ljava/lang/Exception;)V .locals 2 const-string v0, "exception" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget v0, p0, Lkotlin/io/path/ExceptionsCollector;->totalExceptions:I add-int/lit8 v0, v0, 0x1 iput v0, p0, Lkotlin/io/path/ExceptionsCollector;->totalExceptions:I iget-object v0, p0, Lkotlin/io/path/ExceptionsCollector;->collectedExceptions:Ljava/util/List; .line 308 invoke-interface {v0}, Ljava/util/List;->size()I move-result v0 iget v1, p0, Lkotlin/io/path/ExceptionsCollector;->limit:I if-ge v0, v1, :cond_1 iget-object v0, p0, Lkotlin/io/path/ExceptionsCollector;->path:Ljava/nio/file/Path; if-eqz v0, :cond_0 .line 313 new-instance v0, Ljava/nio/file/FileSystemException; iget-object v1, p0, Lkotlin/io/path/ExceptionsCollector;->path:Ljava/nio/file/Path; invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object v1 invoke-direct {v0, v1}, Ljava/nio/file/FileSystemException;->(Ljava/lang/String;)V check-cast p1, Ljava/lang/Throwable; invoke-virtual {v0, p1}, Ljava/nio/file/FileSystemException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable; move-result-object p1 const-string v0, "null cannot be cast to non-null type java.nio.file.FileSystemException" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V check-cast p1, Ljava/nio/file/FileSystemException; check-cast p1, Ljava/lang/Exception; :cond_0 iget-object p0, p0, Lkotlin/io/path/ExceptionsCollector;->collectedExceptions:Ljava/util/List; .line 317 invoke-interface {p0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z :cond_1 return-void .end method .method public final enterEntry(Ljava/nio/file/Path;)V .locals 1 const-string v0, "name" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object v0, p0, Lkotlin/io/path/ExceptionsCollector;->path:Ljava/nio/file/Path; if-eqz v0, :cond_0 .line 298 invoke-interface {v0, p1}, Ljava/nio/file/Path;->resolve(Ljava/nio/file/Path;)Ljava/nio/file/Path; move-result-object p1 goto :goto_0 :cond_0 const/4 p1, 0x0 :goto_0 iput-object p1, p0, Lkotlin/io/path/ExceptionsCollector;->path:Ljava/nio/file/Path; return-void .end method .method public final exitEntry(Ljava/nio/file/Path;)V .locals 2 const-string v0, "name" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object v0, p0, Lkotlin/io/path/ExceptionsCollector;->path:Ljava/nio/file/Path; const/4 v1, 0x0 if-eqz v0, :cond_0 .line 302 invoke-interface {v0}, Ljava/nio/file/Path;->getFileName()Ljava/nio/file/Path; move-result-object v0 goto :goto_0 :cond_0 move-object v0, v1 :goto_0 invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result p1 if-eqz p1, :cond_2 iget-object p1, p0, Lkotlin/io/path/ExceptionsCollector;->path:Ljava/nio/file/Path; if-eqz p1, :cond_1 .line 303 invoke-interface {p1}, Ljava/nio/file/Path;->getParent()Ljava/nio/file/Path; move-result-object v1 :cond_1 iput-object v1, p0, Lkotlin/io/path/ExceptionsCollector;->path:Ljava/nio/file/Path; return-void .line 302 :cond_2 new-instance p0, Ljava/lang/IllegalArgumentException; const-string p1, "Failed requirement." invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p0 .end method .method public final getCollectedExceptions()Ljava/util/List; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/List<", "Ljava/lang/Exception;", ">;" } .end annotation iget-object p0, p0, Lkotlin/io/path/ExceptionsCollector;->collectedExceptions:Ljava/util/List; return-object p0 .end method .method public final getPath()Ljava/nio/file/Path; .locals 0 iget-object p0, p0, Lkotlin/io/path/ExceptionsCollector;->path:Ljava/nio/file/Path; return-object p0 .end method .method public final getTotalExceptions()I .locals 0 iget p0, p0, Lkotlin/io/path/ExceptionsCollector;->totalExceptions:I return p0 .end method .method public final setPath(Ljava/nio/file/Path;)V .locals 0 iput-object p1, p0, Lkotlin/io/path/ExceptionsCollector;->path:Ljava/nio/file/Path; return-void .end method