.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 .annotation runtime Lcom/google/common/reflect/ElementTypesAreNonnullByDefault; .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 public constructor (Lcom/google/common/reflect/Invokable;ILcom/google/common/reflect/TypeToken;[Ljava/lang/annotation/Annotation;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/reflect/Invokable<", "**>;I", "Lcom/google/common/reflect/TypeToken<", "*>;[", "Ljava/lang/annotation/Annotation;", ")V" } .end annotation .line 1 invoke-direct {p0}, Ljava/lang/Object;->()V .line 2 iput-object p1, p0, Lcom/google/common/reflect/Parameter;->declaration:Lcom/google/common/reflect/Invokable; .line 3 iput p2, p0, Lcom/google/common/reflect/Parameter;->position:I .line 4 iput-object p3, p0, Lcom/google/common/reflect/Parameter;->type:Lcom/google/common/reflect/TypeToken; .line 5 invoke-static {p4}, Lcom/google/common/collect/ImmutableList;->copyOf([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList; move-result-object p1 iput-object p1, p0, Lcom/google/common/reflect/Parameter;->annotations:Lcom/google/common/collect/ImmutableList; return-void .end method # virtual methods .method public equals(Ljava/lang/Object;)Z .locals 3 .param p1 # Ljava/lang/Object; .annotation runtime Ljavax/annotation/CheckForNull; .end annotation .end param .line 1 instance-of v0, p1, Lcom/google/common/reflect/Parameter; const/4 v1, 0x0 if-eqz v0, :cond_0 .line 2 check-cast p1, Lcom/google/common/reflect/Parameter; .line 3 iget v0, p0, Lcom/google/common/reflect/Parameter;->position:I iget v2, p1, Lcom/google/common/reflect/Parameter;->position:I if-ne v0, v2, :cond_0 iget-object v0, p0, Lcom/google/common/reflect/Parameter;->declaration:Lcom/google/common/reflect/Invokable; iget-object p1, p1, Lcom/google/common/reflect/Parameter;->declaration:Lcom/google/common/reflect/Invokable; invoke-virtual {v0, p1}, Lcom/google/common/reflect/Invokable;->equals(Ljava/lang/Object;)Z move-result p1 if-eqz p1, :cond_0 const/4 v1, 0x1 :cond_0 return v1 .end method .method public getAnnotation(Ljava/lang/Class;)Ljava/lang/annotation/Annotation; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "TA;>;)TA;" } .end annotation .annotation runtime Ljavax/annotation/CheckForNull; .end annotation .line 1 invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; .line 2 iget-object v0, p0, Lcom/google/common/reflect/Parameter;->annotations:Lcom/google/common/collect/ImmutableList; invoke-virtual {v0}, Lcom/google/common/collect/ImmutableList;->iterator()Lcom/google/common/collect/UnmodifiableIterator; move-result-object v0 :cond_0 invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z move-result v1 if-eqz v1, :cond_1 invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v1 check-cast v1, Ljava/lang/annotation/Annotation; .line 3 invoke-virtual {p1, v1}, Ljava/lang/Class;->isInstance(Ljava/lang/Object;)Z move-result v2 if-eqz v2, :cond_0 .line 4 invoke-virtual {p1, v1}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p1 check-cast p1, Ljava/lang/annotation/Annotation; return-object p1 :cond_1 const/4 p1, 0x0 return-object p1 .end method .method public getAnnotations()[Ljava/lang/annotation/Annotation; .locals 1 .line 1 invoke-virtual {p0}, Lcom/google/common/reflect/Parameter;->getDeclaredAnnotations()[Ljava/lang/annotation/Annotation; move-result-object v0 return-object v0 .end method .method public getAnnotationsByType(Ljava/lang/Class;)[Ljava/lang/annotation/Annotation; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "TA;>;)[TA;" } .end annotation .line 1 invoke-virtual {p0, p1}, Lcom/google/common/reflect/Parameter;->getDeclaredAnnotationsByType(Ljava/lang/Class;)[Ljava/lang/annotation/Annotation; move-result-object p1 return-object p1 .end method .method public getDeclaredAnnotation(Ljava/lang/Class;)Ljava/lang/annotation/Annotation; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "TA;>;)TA;" } .end annotation .annotation runtime Ljavax/annotation/CheckForNull; .end annotation .line 1 invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; .line 2 iget-object v0, p0, Lcom/google/common/reflect/Parameter;->annotations:Lcom/google/common/collect/ImmutableList; invoke-static {v0}, Lcom/google/common/collect/FluentIterable;->from(Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable; move-result-object v0 invoke-virtual {v0, p1}, Lcom/google/common/collect/FluentIterable;->filter(Ljava/lang/Class;)Lcom/google/common/collect/FluentIterable; move-result-object p1 invoke-virtual {p1}, Lcom/google/common/collect/FluentIterable;->first()Lcom/google/common/base/Optional; move-result-object p1 invoke-virtual {p1}, Lcom/google/common/base/Optional;->orNull()Ljava/lang/Object; move-result-object p1 check-cast p1, Ljava/lang/annotation/Annotation; return-object p1 .end method .method public getDeclaredAnnotations()[Ljava/lang/annotation/Annotation; .locals 2 .line 1 iget-object v0, p0, Lcom/google/common/reflect/Parameter;->annotations:Lcom/google/common/collect/ImmutableList; const/4 v1, 0x0 new-array v1, v1, [Ljava/lang/annotation/Annotation; invoke-virtual {v0, v1}, Lcom/google/common/collect/ImmutableCollection;->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 getDeclaredAnnotationsByType(Ljava/lang/Class;)[Ljava/lang/annotation/Annotation; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "TA;>;)[TA;" } .end annotation .line 1 iget-object v0, p0, Lcom/google/common/reflect/Parameter;->annotations:Lcom/google/common/collect/ImmutableList; invoke-static {v0}, Lcom/google/common/collect/FluentIterable;->from(Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable; move-result-object v0 invoke-virtual {v0, p1}, Lcom/google/common/collect/FluentIterable;->filter(Ljava/lang/Class;)Lcom/google/common/collect/FluentIterable; move-result-object v0 invoke-virtual {v0, p1}, Lcom/google/common/collect/FluentIterable;->toArray(Ljava/lang/Class;)[Ljava/lang/Object; move-result-object p1 check-cast p1, [Ljava/lang/annotation/Annotation; return-object p1 .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 .line 1 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 .line 1 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 .line 1 iget v0, p0, Lcom/google/common/reflect/Parameter;->position:I return v0 .end method .method public isAnnotationPresent(Ljava/lang/Class;)Z .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "+", "Ljava/lang/annotation/Annotation;", ">;)Z" } .end annotation .line 1 invoke-virtual {p0, p1}, Lcom/google/common/reflect/Parameter;->getAnnotation(Ljava/lang/Class;)Ljava/lang/annotation/Annotation; move-result-object p1 if-eqz p1, :cond_0 const/4 p1, 0x1 goto :goto_0 :cond_0 const/4 p1, 0x0 :goto_0 return p1 .end method .method public toString()Ljava/lang/String; .locals 4 .line 1 iget-object v0, p0, Lcom/google/common/reflect/Parameter;->type:Lcom/google/common/reflect/TypeToken; invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object v0 iget v1, p0, Lcom/google/common/reflect/Parameter;->position:I invoke-virtual {v0}, Ljava/lang/String;->length()I move-result v2 add-int/lit8 v2, v2, 0xf new-instance v3, Ljava/lang/StringBuilder; invoke-direct {v3, v2}, Ljava/lang/StringBuilder;->(I)V invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v0, " arg" invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 return-object v0 .end method