本文整理了Java中com.fasterxml.jackson.databind.introspect.AnnotatedMember.annotations()
方法的一些代码示例,展示了AnnotatedMember.annotations()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AnnotatedMember.annotations()
方法的具体详情如下:
包路径:com.fasterxml.jackson.databind.introspect.AnnotatedMember
类名称:AnnotatedMember
方法名:annotations
暂无
代码示例来源:origin: apache/incubator-druid
@Override
public Object findInjectableValueId(AnnotatedMember m)
{
if (m.getAnnotation(JacksonInject.class) == null) {
return null;
}
Annotation guiceAnnotation = null;
for (Annotation annotation : m.annotations()) {
if (annotation.annotationType().isAnnotationPresent(BindingAnnotation.class)) {
guiceAnnotation = annotation;
break;
}
}
if (guiceAnnotation == null) {
if (m instanceof AnnotatedMethod) {
throw new IAE("Annotated methods don't work very well yet...");
}
return Key.get(m.getGenericType());
}
return Key.get(m.getGenericType(), guiceAnnotation);
}
}
代码示例来源:origin: swagger-api/swagger-core
} else {
List<Annotation> list = new ArrayList<>();
for (Annotation a : propMember.annotations()) {
list.add(a);
代码示例来源:origin: swagger-api/swagger-core
for (Annotation a : member.annotations()) {
annotationList.add(a);
代码示例来源:origin: com.atlassian.swagger/atlassian-swagger-doclet
private Annotation[] getAccessorAnnotations(BeanPropertyDefinition beanPropertyDefinition) {
return beanPropertyDefinition != null &&
beanPropertyDefinition.getAccessor() != null &&
beanPropertyDefinition.getAccessor().annotations() != null ?
Iterables.toArray(beanPropertyDefinition.getAccessor().annotations(), Annotation.class) :
new Annotation[0];
}
代码示例来源:origin: org.apache.druid/druid-common
@Override
public Object findInjectableValueId(AnnotatedMember m)
{
if (m.getAnnotation(JacksonInject.class) == null) {
return null;
}
Annotation guiceAnnotation = null;
for (Annotation annotation : m.annotations()) {
if (annotation.annotationType().isAnnotationPresent(BindingAnnotation.class)) {
guiceAnnotation = annotation;
break;
}
}
if (guiceAnnotation == null) {
if (m instanceof AnnotatedMethod) {
throw new IAE("Annotated methods don't work very well yet...");
}
return Key.get(m.getGenericType());
}
return Key.get(m.getGenericType(), guiceAnnotation);
}
}
代码示例来源:origin: io.swagger.core.v3/swagger-core
} else {
List<Annotation> list = new ArrayList<>();
for (Annotation a : propMember.annotations()) {
list.add(a);
代码示例来源:origin: io.swagger.core.v3/swagger-core
for (Annotation a : member.annotations()) {
annotationList.add(a);
内容来源于网络,如有侵权,请联系作者删除!