.class public final Lcom/google/common/reflect/Parameter; .super Ljava/lang/Object; .source "Parameter.java" # interfaces .implements Ljava/lang/reflect/AnnotatedElement; # annotations .annotation build Lcom/google/common/annotations/Beta; .end annotation # instance fields .field private final annotations:Lcom/google/common/collect/ImmutableList; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/google/common/collect/ImmutableList", "<", "Ljava/lang/annotation/Annotation;", ">;" } .end annotation .end field .field private final declaration:Lcom/google/common/reflect/Invokable; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/google/common/reflect/Invokable", "<**>;" } .end annotation .end field .field private final position:I .field private final type:Lcom/google/common/reflect/TypeToken; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/google/common/reflect/TypeToken", "<*>;" } .end annotation .end field # direct methods .method constructor (Lcom/google/common/reflect/Invokable;ILcom/google/common/reflect/TypeToken;[Ljava/lang/annotation/Annotation;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/reflect/Invokable", "<**>;I", "Lcom/google/common/reflect/TypeToken", "<*>;[", "Ljava/lang/annotation/Annotation;", ")V" } .end annotation .prologue .line 47 invoke-direct {p0}, Ljava/lang/Object;->()V .line 48 iput-object p1, p0, Lcom/google/common/reflect/Parameter;->declaration:Lcom/google/common/reflect/Invokable; .line 49 iput p2, p0, Lcom/google/common/reflect/Parameter;->position:I .line 50 iput-object p3, p0, Lcom/google/common/reflect/Parameter;->type:Lcom/google/common/reflect/TypeToken; .line 51 invoke-static {p4}, Lcom/google/common/collect/ImmutableList;->copyOf([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList; move-result-object v0 iput-object v0, p0, Lcom/google/common/reflect/Parameter;->annotations:Lcom/google/common/collect/ImmutableList; .line 52 return-void .end method # virtual methods .method public equals(Ljava/lang/Object;)Z .locals 3 .param p1 # Ljava/lang/Object; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param .prologue const/4 v0, 0x0 .line 89 instance-of v1, p1, Lcom/google/common/reflect/Parameter; if-eqz v1, :cond_0 .line 90 check-cast p1, Lcom/google/common/reflect/Parameter; .line 91 iget v1, p0, Lcom/google/common/reflect/Parameter;->position:I iget v2, p1, Lcom/google/common/reflect/Parameter;->position:I if-ne v1, v2, :cond_0 iget-object v1, p0, Lcom/google/common/reflect/Parameter;->declaration:Lcom/google/common/reflect/Invokable; iget-object v2, p1, Lcom/google/common/reflect/Parameter;->declaration:Lcom/google/common/reflect/Invokable; invoke-virtual {v1, v2}, Lcom/google/common/reflect/Invokable;->equals(Ljava/lang/Object;)Z move-result v1 if-eqz v1, :cond_0 const/4 v0, 0x1 .line 93 :cond_0 return v0 .end method .method public getAnnotation(Ljava/lang/Class;)Ljava/lang/annotation/Annotation; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class", ";)TA;" } .end annotation .annotation runtime Ljavax/annotation/Nullable; .end annotation .prologue .line 71 invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; .line 72 iget-object v0, p0, Lcom/google/common/reflect/Parameter;->annotations:Lcom/google/common/collect/ImmutableList; invoke-virtual {v0}, Lcom/google/common/collect/ImmutableList;->iterator()Ljava/util/Iterator; move-result-object v1 :cond_0 invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z move-result v0 if-eqz v0, :cond_1 invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/lang/annotation/Annotation; .line 73 invoke-virtual {p1, v0}, Ljava/lang/Class;->isInstance(Ljava/lang/Object;)Z move-result v2 if-eqz v2, :cond_0 .line 74 invoke-virtual {p1, v0}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/lang/annotation/Annotation; .line 77 :goto_0 return-object v0 :cond_1 const/4 v0, 0x0 goto :goto_0 .end method .method public getAnnotations()[Ljava/lang/annotation/Annotation; .locals 1 .prologue .line 81 invoke-virtual {p0}, Lcom/google/common/reflect/Parameter;->getDeclaredAnnotations()[Ljava/lang/annotation/Annotation; move-result-object v0 return-object v0 .end method .method public getDeclaredAnnotations()[Ljava/lang/annotation/Annotation; .locals 2 .prologue .line 85 iget-object v0, p0, Lcom/google/common/reflect/Parameter;->annotations:Lcom/google/common/collect/ImmutableList; iget-object v1, p0, Lcom/google/common/reflect/Parameter;->annotations:Lcom/google/common/collect/ImmutableList; invoke-virtual {v1}, Lcom/google/common/collect/ImmutableList;->size()I move-result v1 new-array v1, v1, [Ljava/lang/annotation/Annotation; invoke-virtual {v0, v1}, Lcom/google/common/collect/ImmutableList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object; move-result-object v0 check-cast v0, [Ljava/lang/annotation/Annotation; return-object v0 .end method .method public getDeclaringInvokable()Lcom/google/common/reflect/Invokable; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/google/common/reflect/Invokable", "<**>;" } .end annotation .prologue .line 61 iget-object v0, p0, Lcom/google/common/reflect/Parameter;->declaration:Lcom/google/common/reflect/Invokable; return-object v0 .end method .method public getType()Lcom/google/common/reflect/TypeToken; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/google/common/reflect/TypeToken", "<*>;" } .end annotation .prologue .line 56 iget-object v0, p0, Lcom/google/common/reflect/Parameter;->type:Lcom/google/common/reflect/TypeToken; return-object v0 .end method .method public hashCode()I .locals 1 .prologue .line 97 iget v0, p0, Lcom/google/common/reflect/Parameter;->position:I return v0 .end method .method public isAnnotationPresent(Ljava/lang/Class;)Z .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class", "<+", "Ljava/lang/annotation/Annotation;", ">;)Z" } .end annotation .prologue .line 65 invoke-virtual {p0, p1}, Lcom/google/common/reflect/Parameter;->getAnnotation(Ljava/lang/Class;)Ljava/lang/annotation/Annotation; move-result-object v0 if-eqz v0, :cond_0 const/4 v0, 0x1 :goto_0 return v0 :cond_0 const/4 v0, 0x0 goto :goto_0 .end method .method public toString()Ljava/lang/String; .locals 2 .prologue .line 101 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V iget-object v1, p0, Lcom/google/common/reflect/Parameter;->type:Lcom/google/common/reflect/TypeToken; invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, " arg" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget v1, p0, Lcom/google/common/reflect/Parameter;->position:I invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 return-object v0 .end method