public interface VarDescriptor
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getDefaultValue()
获取默认值
|
Type |
getGenericType()
获取泛型
|
String |
getName()
获取名字
|
String |
getRequiredHint()
获取必须缺失时的提示
|
Class<?> |
getType()
获取类型
|
default String |
getValue(Context ctx)
获取参数值
|
default String[] |
getValues(Context ctx)
获取值
|
default boolean |
isGenericType()
是否为泛型
|
boolean |
isRequiredBody()
必须有 body(一般是指用了 @Body 注解)
|
boolean |
isRequiredCookie()
必须有 cookie(一般是指用了 @Cookie 注解)
|
boolean |
isRequiredHeader()
必须有 header(一般是指用了 @Header 注解)
|
boolean |
isRequiredInput()
必须有输入(一般是指注解里 required = true)
|
boolean |
isRequiredPath()
必须有 path(一般是指用了 @Path 注解)
|
boolean isRequiredBody()
boolean isRequiredHeader()
boolean isRequiredCookie()
boolean isRequiredPath()
boolean isRequiredInput()
String getRequiredHint()
String getName()
String getDefaultValue()
default boolean isGenericType()
Class<?> getType()
Copyright © 2023. All rights reserved.