public interface VarSpec
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultValue()
获取默认值
|
ParameterizedType |
getGenericType()
Deprecated.
3.7
getTypeEggg() |
String |
getName()
获取名字
|
String |
getRequiredHint()
获取必须缺失时的提示
|
Class<?> |
getType()
Deprecated.
3.7
getTypeEggg() |
org.noear.eggg.TypeEggg |
getTypeEggg()
获取类型(替代 getType + getGenericType)
|
default String |
getValue(Context ctx)
获取参数值
|
default String[] |
getValues(Context ctx)
获取值
|
default boolean |
isGenericType()
Deprecated.
3.7
getTypeEggg() |
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()
org.noear.eggg.TypeEggg getTypeEggg()
@Deprecated Class<?> getType()
getTypeEggg()@Deprecated @Nullable ParameterizedType getGenericType()
getTypeEggg()@Deprecated default boolean isGenericType()
getTypeEggg()Copyright © 2025. All rights reserved.