Rabbit-R1/android (non root)/smali/smali_classes3/com/google/common/reflect/Parameter.smali
2024-05-21 17:08:36 -04:00

419 lines
11 KiB
Smali

.class public final Lcom/google/common/reflect/Parameter;
.super Ljava/lang/Object;
.source "Parameter.java"
# interfaces
.implements Ljava/lang/reflect/AnnotatedElement;
# annotations
.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 constructor <init>(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 47
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/common/reflect/Parameter;->declaration:Lcom/google/common/reflect/Invokable;
iput p2, p0, Lcom/google/common/reflect/Parameter;->position:I
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 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 119
instance-of v0, p1, Lcom/google/common/reflect/Parameter;
const/4 v1, 0x0
if-eqz v0, :cond_0
.line 120
check-cast p1, Lcom/google/common/reflect/Parameter;
iget v0, p0, Lcom/google/common/reflect/Parameter;->position:I
.line 121
iget v2, p1, Lcom/google/common/reflect/Parameter;->position:I
if-ne v0, v2, :cond_0
iget-object p0, 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 {p0, p1}, Lcom/google/common/reflect/Invokable;->equals(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_0
const/4 v1, 0x1
:cond_0
return v1
.end method
.method public getAnnotation(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<A::",
"Ljava/lang/annotation/Annotation;",
">(",
"Ljava/lang/Class<",
"TA;>;)TA;"
}
.end annotation
.annotation runtime Ljavax/annotation/CheckForNull;
.end annotation
.line 72
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
iget-object p0, p0, Lcom/google/common/reflect/Parameter;->annotations:Lcom/google/common/collect/ImmutableList;
.line 73
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableList;->iterator()Lcom/google/common/collect/UnmodifiableIterator;
move-result-object p0
:cond_0
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/annotation/Annotation;
.line 74
invoke-virtual {p1, v0}, Ljava/lang/Class;->isInstance(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
.line 75
invoke-virtual {p1, v0}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Ljava/lang/annotation/Annotation;
return-object p0
:cond_1
const/4 p0, 0x0
return-object p0
.end method
.method public getAnnotations()[Ljava/lang/annotation/Annotation;
.locals 0
.line 83
invoke-virtual {p0}, Lcom/google/common/reflect/Parameter;->getDeclaredAnnotations()[Ljava/lang/annotation/Annotation;
move-result-object p0
return-object p0
.end method
.method public getAnnotationsByType(Ljava/lang/Class;)[Ljava/lang/annotation/Annotation;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<A::",
"Ljava/lang/annotation/Annotation;",
">(",
"Ljava/lang/Class<",
"TA;>;)[TA;"
}
.end annotation
.line 89
invoke-virtual {p0, p1}, Lcom/google/common/reflect/Parameter;->getDeclaredAnnotationsByType(Ljava/lang/Class;)[Ljava/lang/annotation/Annotation;
move-result-object p0
return-object p0
.end method
.method public getDeclaredAnnotation(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<A::",
"Ljava/lang/annotation/Annotation;",
">(",
"Ljava/lang/Class<",
"TA;>;)TA;"
}
.end annotation
.annotation runtime Ljavax/annotation/CheckForNull;
.end annotation
.line 103
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
iget-object p0, p0, Lcom/google/common/reflect/Parameter;->annotations:Lcom/google/common/collect/ImmutableList;
.line 104
invoke-static {p0}, Lcom/google/common/collect/FluentIterable;->from(Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable;
move-result-object p0
invoke-virtual {p0, p1}, Lcom/google/common/collect/FluentIterable;->filter(Ljava/lang/Class;)Lcom/google/common/collect/FluentIterable;
move-result-object p0
invoke-virtual {p0}, Lcom/google/common/collect/FluentIterable;->first()Lcom/google/common/base/Optional;
move-result-object p0
invoke-virtual {p0}, Lcom/google/common/base/Optional;->orNull()Ljava/lang/Object;
move-result-object p0
check-cast p0, Ljava/lang/annotation/Annotation;
return-object p0
.end method
.method public getDeclaredAnnotations()[Ljava/lang/annotation/Annotation;
.locals 1
iget-object p0, p0, Lcom/google/common/reflect/Parameter;->annotations:Lcom/google/common/collect/ImmutableList;
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/annotation/Annotation;
.line 96
invoke-virtual {p0, v0}, Lcom/google/common/collect/ImmutableList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object p0
check-cast p0, [Ljava/lang/annotation/Annotation;
return-object p0
.end method
.method public getDeclaredAnnotationsByType(Ljava/lang/Class;)[Ljava/lang/annotation/Annotation;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<A::",
"Ljava/lang/annotation/Annotation;",
">(",
"Ljava/lang/Class<",
"TA;>;)[TA;"
}
.end annotation
iget-object p0, p0, Lcom/google/common/reflect/Parameter;->annotations:Lcom/google/common/collect/ImmutableList;
.line 111
invoke-static {p0}, Lcom/google/common/collect/FluentIterable;->from(Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable;
move-result-object p0
invoke-virtual {p0, p1}, Lcom/google/common/collect/FluentIterable;->filter(Ljava/lang/Class;)Lcom/google/common/collect/FluentIterable;
move-result-object p0
invoke-virtual {p0, p1}, Lcom/google/common/collect/FluentIterable;->toArray(Ljava/lang/Class;)[Ljava/lang/Object;
move-result-object p0
check-cast p0, [Ljava/lang/annotation/Annotation;
return-object p0
.end method
.method public getDeclaringInvokable()Lcom/google/common/reflect/Invokable;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/common/reflect/Invokable<",
"**>;"
}
.end annotation
iget-object p0, p0, Lcom/google/common/reflect/Parameter;->declaration:Lcom/google/common/reflect/Invokable;
return-object p0
.end method
.method public getType()Lcom/google/common/reflect/TypeToken;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/common/reflect/TypeToken<",
"*>;"
}
.end annotation
iget-object p0, p0, Lcom/google/common/reflect/Parameter;->type:Lcom/google/common/reflect/TypeToken;
return-object p0
.end method
.method public hashCode()I
.locals 0
iget p0, p0, Lcom/google/common/reflect/Parameter;->position:I
return p0
.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 66
invoke-virtual {p0, p1}, Lcom/google/common/reflect/Parameter;->getAnnotation(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
move-result-object p0
if-eqz p0, :cond_0
const/4 p0, 0x1
goto :goto_0
:cond_0
const/4 p0, 0x0
:goto_0
return p0
.end method
.method public toString()Ljava/lang/String;
.locals 3
iget-object v0, p0, Lcom/google/common/reflect/Parameter;->type:Lcom/google/common/reflect/TypeToken;
.line 133
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
iget p0, p0, Lcom/google/common/reflect/Parameter;->position:I
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v1
add-int/lit8 v1, v1, 0xf
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2, v1}, Ljava/lang/StringBuilder;-><init>(I)V
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)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
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
.end method