Home
last modified time | relevance | path

Searched refs:ann (Results 1 – 25 of 96) sorted by relevance

1234

/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/introspect/
DCollectorBase.java27 Annotation ann = anns[i]; in collectAnnotations() local
28 c = c.addOrOverride(ann); in collectAnnotations()
29 if (_intr.isAnnotationBundle(ann)) { in collectAnnotations()
30 c = collectFromBundle(c, ann); in collectAnnotations()
38 Annotation ann = anns[i]; in collectAnnotations() local
39 c = c.addOrOverride(ann); in collectAnnotations()
40 if (_intr.isAnnotationBundle(ann)) { in collectAnnotations()
41 c = collectFromBundle(c, ann); in collectAnnotations()
50 Annotation ann = anns[i]; in collectFromBundle() local
52 if (_ignorableAnnotation(ann)) { in collectFromBundle()
[all …]
DJacksonAnnotationIntrospector.java153 public boolean isAnnotationBundle(Annotation ann) { in isAnnotationBundle() argument
158 Class<?> type = ann.annotationType(); in isAnnotationBundle()
284 JsonRootName ann = _findAnnotation(ac, JsonRootName.class); in findRootName() local
285 if (ann == null) { in findRootName()
288 String ns = ann.namespace(); in findRootName()
292 return PropertyName.construct(ann.value(), ns); in findRootName()
330 JsonFilter ann = _findAnnotation(a, JsonFilter.class); in findFilterId() local
331 if (ann != null) { in findFilterId()
332 String id = ann.value(); in findFilterId()
344 JsonNaming ann = _findAnnotation(ac, JsonNaming.class); in findNamingStrategy() local
[all …]
DAnnotationMap.java21 HashMap<Class<?>,Annotation> ann = new HashMap<>(4); in of() local
22 ann.put(type, value); in of()
23 return new AnnotationMap(ann); in of()
99 for (Annotation ann : secondary._annotations.values()) { in merge()
100 annotations.put(ann.annotationType(), ann); in merge() local
103 for (Annotation ann : primary._annotations.values()) { in merge()
104 annotations.put(ann.annotationType(), ann); in merge() local
118 public boolean addIfNotPresent(Annotation ann) in addIfNotPresent() argument
120 if (_annotations == null || !_annotations.containsKey(ann.annotationType())) { in addIfNotPresent()
121 _add(ann); in addIfNotPresent()
[all …]
DAnnotationCollector.java52 public abstract boolean isPresent(Annotation ann); in isPresent() argument
54 public abstract AnnotationCollector addOrOverride(Annotation ann); in addOrOverride() argument
79 public boolean isPresent(Annotation ann) { return false; } in isPresent() argument
82 public AnnotationCollector addOrOverride(Annotation ann) { in addOrOverride() argument
83 return new OneCollector(_data, ann.annotationType(), ann); in addOrOverride()
110 public boolean isPresent(Annotation ann) { in isPresent() argument
111 return ann.annotationType() == _type; in isPresent()
115 public AnnotationCollector addOrOverride(Annotation ann) { in addOrOverride() argument
116 final Class<?> type = ann.annotationType(); in addOrOverride()
119 _value = ann; in addOrOverride()
[all …]
DAnnotationIntrospectorPair.java95 public boolean isAnnotationBundle(Annotation ann) { in isAnnotationBundle() argument
96 return _primary.isAnnotationBundle(ann) || _secondary.isAnnotationBundle(ann); in isAnnotationBundle()
122 … public JsonIgnoreProperties.Value findPropertyIgnoralByName(MapperConfig<?> config, Annotated ann) in findPropertyIgnoralByName() argument
124 JsonIgnoreProperties.Value v2 = _secondary.findPropertyIgnoralByName(config, ann); in findPropertyIgnoralByName()
125 JsonIgnoreProperties.Value v1 = _primary.findPropertyIgnoralByName(config, ann); in findPropertyIgnoralByName()
150 public Object findFilterId(Annotated ann) in findFilterId() argument
152 Object id = _primary.findFilterId(ann); in findFilterId()
154 id = _secondary.findFilterId(ann); in findFilterId()
442 public ObjectIdInfo findObjectIdInfo(Annotated ann) { in findObjectIdInfo() argument
443 ObjectIdInfo r = _primary.findObjectIdInfo(ann); in findObjectIdInfo()
[all …]
DVisibilityChecker.java29 public T with(JsonAutoDetect ann); in with() argument
186 public Std(JsonAutoDetect ann) in Std() argument
189 _getterMinLevel = ann.getterVisibility(); in Std()
190 _isGetterMinLevel = ann.isGetterVisibility(); in Std()
191 _setterMinLevel = ann.setterVisibility(); in Std()
192 _creatorMinLevel = ann.creatorVisibility(); in Std()
193 _fieldMinLevel = ann.fieldVisibility(); in Std()
261 public Std with(JsonAutoDetect ann) in with() argument
264 if (ann != null) { in with()
266 _defaultOrOverride(_getterMinLevel, ann.getterVisibility()), in with()
[all …]
DAnnotatedClassResolver.java299 for (Annotation ann : anns) { // first: direct annotations in _addAnnotationsIfNotPresent()
301 if (!c.isPresent(ann)) { in _addAnnotationsIfNotPresent()
302 c = c.addOrOverride(ann); in _addAnnotationsIfNotPresent()
303 if (_intr.isAnnotationBundle(ann)) { in _addAnnotationsIfNotPresent()
304 c = _addFromBundleIfNotPresent(c, ann); in _addAnnotationsIfNotPresent()
315 for (Annotation ann : ClassUtil.findClassAnnotations(bundle.annotationType())) { in _addFromBundleIfNotPresent()
317 if ((ann instanceof Target) || (ann instanceof Retention)) { in _addFromBundleIfNotPresent()
320 if (!c.isPresent(ann)) { in _addFromBundleIfNotPresent()
321 c = c.addOrOverride(ann); in _addFromBundleIfNotPresent()
322 if (_intr.isAnnotationBundle(ann)) { in _addFromBundleIfNotPresent()
[all …]
DPOJOPropertyBuilder.java893 … AnnotationMap ann = _mergeAnnotations(0, _getters, _fields, _ctorParameters, _setters);
894 _getters = _applyAnnotations(_getters, ann);
896 AnnotationMap ann = _mergeAnnotations(0, _fields, _ctorParameters, _setters);
897 _fields = _applyAnnotations(_fields, ann);
901 … AnnotationMap ann = _mergeAnnotations(0, _ctorParameters, _setters, _fields, _getters);
902 _ctorParameters = _applyAnnotations(_ctorParameters, ann);
904 AnnotationMap ann = _mergeAnnotations(0, _setters, _fields, _getters);
905 _setters = _applyAnnotations(_setters, ann);
907 AnnotationMap ann = _mergeAnnotations(0, _fields, _getters);
908 _fields = _applyAnnotations(_fields, ann);
[all …]
DAnnotatedParameter.java52 public AnnotatedParameter withAnnotations(AnnotationMap ann) { in withAnnotations() argument
53 if (ann == _annotations) { in withAnnotations()
56 return _owner.replaceParameterAnnotations(_index, ann); in withAnnotations()
DAnnotatedWithParams.java63 protected AnnotatedParameter replaceParameterAnnotations(int index, AnnotationMap ann) in replaceParameterAnnotations() argument
65 _paramAnnotations[index] = ann; in replaceParameterAnnotations()
DAnnotatedField.java44 public AnnotatedField withAnnotations(AnnotationMap ann) { in withAnnotations() argument
45 return new AnnotatedField(_typeContext, _field, ann); in withAnnotations()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/
DAnnotationIntrospector.java184 public boolean isAnnotationBundle(Annotation ann) { in isAnnotationBundle() argument
207 public ObjectIdInfo findObjectIdInfo(Annotated ann) { in findObjectIdInfo() argument
221 public ObjectIdInfo findObjectReferenceInfo(Annotated ann, ObjectIdInfo objectIdInfo) { in findObjectReferenceInfo() argument
275 … public JsonIgnoreProperties.Value findPropertyIgnoralByName(MapperConfig<?> config, Annotated ann) in findPropertyIgnoralByName() argument
278 return findPropertyIgnorals(ann); in findPropertyIgnoralByName()
292 …ic JsonIncludeProperties.Value findPropertyInclusionByName(MapperConfig<?> config, Annotated ann) { in findPropertyInclusionByName() argument
305 public Object findFilterId(Annotated ann) { return null; } in findFilterId() argument
588 public PropertyName findWrapperName(Annotated ann) { return null; } in findWrapperName() argument
598 public String findPropertyDefaultValue(Annotated ann) { return null; } in findPropertyDefaultValue() argument
610 public String findPropertyDescription(Annotated ann) { return null; } in findPropertyDescription() argument
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/contextual/
DTestContextualWithAnnDeserializer.java59 Name ann = property.getAnnotation(Name.class); in createContextual() local
60 if (ann == null) { in createContextual()
61 ann = property.getContextAnnotation(Name.class); in createContextual()
63 String propertyName = (ann == null) ? "UNKNOWN" : ann.value(); in createContextual()
DTestContextualSerialization.java140 Prefix ann = null; in createContextual() local
142 ann = property.getAnnotation(Prefix.class); in createContextual()
143 if (ann == null) { in createContextual()
144 ann = property.getContextAnnotation(Prefix.class); in createContextual()
147 if (ann != null) { in createContextual()
148 prefix = ann.value(); in createContextual()
DTestContextualDeserialization.java142 Name ann = property.getAnnotation(Name.class); in createContextual() local
143 if (ann == null) { in createContextual()
144 ann = property.getContextAnnotation(Name.class); in createContextual()
146 String propertyName = (ann == null) ? "UNKNOWN" : ann.value(); in createContextual()
/external/jackson-annotations/src/test/java/com/fasterxml/jackson/annotation/
DVisibilityTest.java65 JsonAutoDetect ann = Custom.class.getAnnotation(JsonAutoDetect.class); in testFromAnnotation() local
66 JsonAutoDetect.Value v = JsonAutoDetect.Value.from(ann); in testFromAnnotation()
67 JsonAutoDetect.Value v2 = JsonAutoDetect.Value.from(ann); in testFromAnnotation()
72 assertEquals(ann.fieldVisibility(), v.getFieldVisibility()); in testFromAnnotation()
73 assertEquals(ann.getterVisibility(), v.getGetterVisibility()); in testFromAnnotation()
74 assertEquals(ann.isGetterVisibility(), v.getIsGetterVisibility()); in testFromAnnotation()
75 assertEquals(ann.setterVisibility(), v.getSetterVisibility()); in testFromAnnotation()
76 assertEquals(ann.creatorVisibility(), v.getCreatorVisibility()); in testFromAnnotation()
DIncludeTest.java38 JsonInclude ann = Bogus.class.getAnnotation(JsonInclude.class); in testFromAnnotation() local
39 JsonInclude.Value v = JsonInclude.Value.from(ann); in testFromAnnotation()
46 JsonInclude ann = Custom.class.getAnnotation(JsonInclude.class); in testFromAnnotationWithCustom() local
47 JsonInclude.Value v = JsonInclude.Value.from(ann); in testFromAnnotationWithCustom()
DJacksonInjectTest.java31 JacksonInject ann = Bogus.class.getField("field").getAnnotation(JacksonInject.class); in testFromAnnotation() local
32 JacksonInject.Value v = JacksonInject.Value.from(ann); in testFromAnnotation()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/ser/
DPropertyWriter.java71 A ann = getAnnotation(acls); in findAnnotation() local
72 if (ann == null) { in findAnnotation()
73 ann = getContextAnnotation(acls); in findAnnotation()
75 return ann; in findAnnotation()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/annotation/
DJsonPOJOBuilder.java86 public Value(JsonPOJOBuilder ann) { in Value() argument
87 this(ann.buildMethodName(), ann.withPrefix()); in Value()
/external/jackson-annotations/src/main/java/com/fasterxml/jackson/annotation/
DJsonFormat.java464 public Value(JsonFormat ann) { in Value() argument
465 this(ann.pattern(), ann.shape(), ann.locale(), ann.timezone(), in Value()
466 Features.construct(ann), ann.lenient().asBoolean()); in Value()
568 public final static Value from(JsonFormat ann) { in from() argument
569 return (ann == null) ? EMPTY : new Value(ann); in from()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/generated/com/github/javaparser/
DASTParser.java206 AnnotationExpr ann; in PackageDeclaration() local
220 ann = Annotation(); in PackageDeclaration()
221 annotations = add(annotations, ann); in PackageDeclaration()
274 AnnotationExpr ann; in Modifiers() local
328 ann = Annotation(); in Modifiers()
329 …annotations = add(annotations, ann); if(beginLine==-1) {beginLine=ann.getBeginLine(); beginColumn= in Modifiers()
455 AnnotationExpr ann; in ExtendsList() local
468 ann = Annotation(); in ExtendsList()
469 annotations = add(annotations, ann); in ExtendsList()
496 AnnotationExpr ann; in ImplementsList() local
[all …]
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/impl/
DInnerClassProperty.java47 protected InnerClassProperty(SettableBeanProperty src, AnnotatedConstructor ann) in InnerClassProperty() argument
50 _annotated = ann; in InnerClassProperty()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/
DDefaultDeserializationContext.java207 public JsonDeserializer<Object> deserializerInstance(Annotated ann, Object deserDef) in deserializerInstance() argument
232 deser = (hi == null) ? null : hi.deserializerInstance(_config, ann, deserClass); in deserializerInstance()
246 public final KeyDeserializer keyDeserializerInstance(Annotated ann, Object deserDef) in keyDeserializerInstance() argument
273 deser = (hi == null) ? null : hi.keyDeserializerInstance(_config, ann, deserClass); in keyDeserializerInstance()
/external/conscrypt/api-doclet/src/main/java/org/conscrypt/doclet/
DFilterDoclet.java53 for (AnnotationDesc ann : doc.annotations()) { in hasHideAnnotation()
54 if (ann.annotationType().qualifiedTypeName().equals("org.conscrypt.Internal")) { in hasHideAnnotation()

1234