public String findGettablePropertyName(AnnotatedMethod paramAnnotatedMethod)
{
JsonProperty localJsonProperty = (JsonProperty)paramAnnotatedMethod.getAnnotation(JsonProperty.class);
if (localJsonProperty != null)
return localJsonProperty.value();
JsonGetter localJsonGetter = (JsonGetter)paramAnnotatedMethod.getAnnotation(JsonGetter.class);
if (localJsonGetter != null)
return localJsonGetter.value();
if ((paramAnnotatedMethod.hasAnnotation(JsonSerialize.class)) || (paramAnnotatedMethod.hasAnnotation(JsonView.class)))
return "";
return null;
}
java类org.codehaus.jackson.annotate.JsonGetter的实例源码
JacksonAnnotationIntrospector.java 文件源码
项目:12306-android-Decompile
阅读 22
收藏 0
点赞 0
评论 0
JacksonAnnotationIntrospector.java 文件源码
项目:12306-android-Decompile
阅读 18
收藏 0
点赞 0
评论 0
public String findGettablePropertyName(AnnotatedMethod paramAnnotatedMethod)
{
JsonProperty localJsonProperty = (JsonProperty)paramAnnotatedMethod.getAnnotation(JsonProperty.class);
if (localJsonProperty != null)
return localJsonProperty.value();
JsonGetter localJsonGetter = (JsonGetter)paramAnnotatedMethod.getAnnotation(JsonGetter.class);
if (localJsonGetter != null)
return localJsonGetter.value();
if ((paramAnnotatedMethod.hasAnnotation(JsonSerialize.class)) || (paramAnnotatedMethod.hasAnnotation(JsonView.class)))
return "";
return null;
}
JacksonAnnotationIntrospector.java 文件源码
项目:ingress-indonesia-dev
阅读 19
收藏 0
点赞 0
评论 0
public String findGettablePropertyName(AnnotatedMethod paramAnnotatedMethod)
{
JsonProperty localJsonProperty = (JsonProperty)paramAnnotatedMethod.getAnnotation(JsonProperty.class);
if (localJsonProperty != null)
return localJsonProperty.value();
JsonGetter localJsonGetter = (JsonGetter)paramAnnotatedMethod.getAnnotation(JsonGetter.class);
if (localJsonGetter != null)
return localJsonGetter.value();
if ((paramAnnotatedMethod.hasAnnotation(JsonSerialize.class)) || (paramAnnotatedMethod.hasAnnotation(JsonView.class)))
return "";
return null;
}
UnitsEnumPojo.java 文件源码
项目:mdpnp
阅读 23
收藏 0
点赞 0
评论 0
@JsonGetter("name")
public String getName() {
return super.name();
}