.class public final Lf0/y$a; .super Ljava/lang/Object; .source "RequestFactory.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lf0/y; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "a" .end annotation # static fields .field public static final x:Ljava/util/regex/Pattern; .field public static final y:Ljava/util/regex/Pattern; # instance fields .field public final a:Lf0/b0; .field public final b:Ljava/lang/reflect/Method; .field public final c:[Ljava/lang/annotation/Annotation; .field public final d:[[Ljava/lang/annotation/Annotation; .field public final e:[Ljava/lang/reflect/Type; .field public f:Z .field public g:Z .field public h:Z .field public i:Z .field public j:Z .field public k:Z .field public l:Z .field public m:Z .field public n:Ljava/lang/String; .field public o:Z .field public p:Z .field public q:Z .field public r:Ljava/lang/String; .field public s:Lokhttp3/Headers; .field public t:Lokhttp3/MediaType; .field public u:Ljava/util/Set; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Set<", "Ljava/lang/String;", ">;" } .end annotation .end field .field public v:[Lf0/v; .annotation system Ldalvik/annotation/Signature; value = { "[", "Lf0/v<", "*>;" } .end annotation .end field .field public w:Z # direct methods .method public static constructor ()V .locals 1 const-string v0, "\\{([a-zA-Z][a-zA-Z0-9_-]*)\\}" invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern; move-result-object v0 sput-object v0, Lf0/y$a;->x:Ljava/util/regex/Pattern; const-string v0, "[a-zA-Z][a-zA-Z0-9_-]*" invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern; move-result-object v0 sput-object v0, Lf0/y$a;->y:Ljava/util/regex/Pattern; return-void .end method .method public constructor (Lf0/b0;Ljava/lang/reflect/Method;)V .locals 0 invoke-direct {p0}, Ljava/lang/Object;->()V iput-object p1, p0, Lf0/y$a;->a:Lf0/b0; iput-object p2, p0, Lf0/y$a;->b:Ljava/lang/reflect/Method; invoke-virtual {p2}, Ljava/lang/reflect/Method;->getAnnotations()[Ljava/lang/annotation/Annotation; move-result-object p1 iput-object p1, p0, Lf0/y$a;->c:[Ljava/lang/annotation/Annotation; invoke-virtual {p2}, Ljava/lang/reflect/Method;->getGenericParameterTypes()[Ljava/lang/reflect/Type; move-result-object p1 iput-object p1, p0, Lf0/y$a;->e:[Ljava/lang/reflect/Type; invoke-virtual {p2}, Ljava/lang/reflect/Method;->getParameterAnnotations()[[Ljava/lang/annotation/Annotation; move-result-object p1 iput-object p1, p0, Lf0/y$a;->d:[[Ljava/lang/annotation/Annotation; return-void .end method .method public static a(Ljava/lang/Class;)Ljava/lang/Class; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Class<", "*>;)", "Ljava/lang/Class<", "*>;" } .end annotation sget-object v0, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class; if-ne v0, p0, :cond_0 const-class p0, Ljava/lang/Boolean; return-object p0 :cond_0 sget-object v0, Ljava/lang/Byte;->TYPE:Ljava/lang/Class; if-ne v0, p0, :cond_1 const-class p0, Ljava/lang/Byte; return-object p0 :cond_1 sget-object v0, Ljava/lang/Character;->TYPE:Ljava/lang/Class; if-ne v0, p0, :cond_2 const-class p0, Ljava/lang/Character; return-object p0 :cond_2 sget-object v0, Ljava/lang/Double;->TYPE:Ljava/lang/Class; if-ne v0, p0, :cond_3 const-class p0, Ljava/lang/Double; return-object p0 :cond_3 sget-object v0, Ljava/lang/Float;->TYPE:Ljava/lang/Class; if-ne v0, p0, :cond_4 const-class p0, Ljava/lang/Float; return-object p0 :cond_4 sget-object v0, Ljava/lang/Integer;->TYPE:Ljava/lang/Class; if-ne v0, p0, :cond_5 const-class p0, Ljava/lang/Integer; return-object p0 :cond_5 sget-object v0, Ljava/lang/Long;->TYPE:Ljava/lang/Class; if-ne v0, p0, :cond_6 const-class p0, Ljava/lang/Long; return-object p0 :cond_6 sget-object v0, Ljava/lang/Short;->TYPE:Ljava/lang/Class; if-ne v0, p0, :cond_7 const-class p0, Ljava/lang/Short; :cond_7 return-object p0 .end method # virtual methods .method public final b(Ljava/lang/String;Ljava/lang/String;Z)V .locals 3 iget-object v0, p0, Lf0/y$a;->n:Ljava/lang/String; const/4 v1, 0x0 const/4 v2, 0x1 if-nez v0, :cond_4 iput-object p1, p0, Lf0/y$a;->n:Ljava/lang/String; iput-boolean p3, p0, Lf0/y$a;->o:Z invoke-virtual {p2}, Ljava/lang/String;->isEmpty()Z move-result p1 if-eqz p1, :cond_0 return-void :cond_0 const/16 p1, 0x3f invoke-virtual {p2, p1}, Ljava/lang/String;->indexOf(I)I move-result p1 const/4 p3, -0x1 if-eq p1, p3, :cond_2 invoke-virtual {p2}, Ljava/lang/String;->length()I move-result p3 sub-int/2addr p3, v2 if-ge p1, p3, :cond_2 add-int/2addr p1, v2 invoke-virtual {p2, p1}, Ljava/lang/String;->substring(I)Ljava/lang/String; move-result-object p1 sget-object p3, Lf0/y$a;->x:Ljava/util/regex/Pattern; invoke-virtual {p3, p1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher; move-result-object p3 invoke-virtual {p3}, Ljava/util/regex/Matcher;->find()Z move-result p3 if-nez p3, :cond_1 goto :goto_0 :cond_1 iget-object p2, p0, Lf0/y$a;->b:Ljava/lang/reflect/Method; new-array p3, v2, [Ljava/lang/Object; aput-object p1, p3, v1 const-string p1, "URL query string \"%s\" must not have replace block. For dynamic query parameters use @Query." invoke-static {p2, p1, p3}, Lf0/f0;->j(Ljava/lang/reflect/Method;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException; move-result-object p1 throw p1 :cond_2 :goto_0 iput-object p2, p0, Lf0/y$a;->r:Ljava/lang/String; sget-object p1, Lf0/y$a;->x:Ljava/util/regex/Pattern; invoke-virtual {p1, p2}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher; move-result-object p1 new-instance p2, Ljava/util/LinkedHashSet; invoke-direct {p2}, Ljava/util/LinkedHashSet;->()V :goto_1 invoke-virtual {p1}, Ljava/util/regex/Matcher;->find()Z move-result p3 if-eqz p3, :cond_3 invoke-virtual {p1, v2}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String; move-result-object p3 invoke-interface {p2, p3}, Ljava/util/Set;->add(Ljava/lang/Object;)Z goto :goto_1 :cond_3 iput-object p2, p0, Lf0/y$a;->u:Ljava/util/Set; return-void :cond_4 iget-object p2, p0, Lf0/y$a;->b:Ljava/lang/reflect/Method; const/4 p3, 0x2 new-array p3, p3, [Ljava/lang/Object; aput-object v0, p3, v1 aput-object p1, p3, v2 const-string p1, "Only one HTTP method is allowed. Found: %s and %s." invoke-static {p2, p1, p3}, Lf0/f0;->j(Ljava/lang/reflect/Method;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException; move-result-object p1 throw p1 .end method .method public final c(ILjava/lang/reflect/Type;)V .locals 3 invoke-static {p2}, Lf0/f0;->h(Ljava/lang/reflect/Type;)Z move-result v0 if-nez v0, :cond_0 return-void :cond_0 iget-object v0, p0, Lf0/y$a;->b:Ljava/lang/reflect/Method; const/4 v1, 0x1 new-array v1, v1, [Ljava/lang/Object; const/4 v2, 0x0 aput-object p2, v1, v2 const-string p2, "Parameter type must not include a type variable or wildcard: %s" invoke-static {v0, p1, p2, v1}, Lf0/f0;->l(Ljava/lang/reflect/Method;ILjava/lang/String;[Ljava/lang/Object;)Ljava/lang/RuntimeException; move-result-object p1 throw p1 .end method