Lines Matching defs:annotations
38 /** {@code non-null;} map from types to annotations */
39 private final TreeMap<CstType, Annotation> annotations;
66 * @param annotations {@code non-null;} the instance to augment
71 public static Annotations combine(Annotations annotations,
75 result.addAll(annotations);
86 annotations = new TreeMap<CstType, Annotation>();
92 return annotations.hashCode();
104 return annotations.equals(otherAnnotations.annotations);
109 Iterator<Annotation> thisIter = annotations.values().iterator();
110 Iterator<Annotation> otherIter = other.annotations.values().iterator();
136 sb.append("annotations{");
138 for (Annotation a : annotations.values()) {
157 return annotations.size();
176 if (annotations.containsKey(type)) {
181 annotations.put(type, annotation);
188 * @param toAdd {@code non-null;} the annotations to add
198 for (Annotation a : toAdd.annotations.values()) {
204 * Gets the set of annotations contained in this instance. The
207 * @return {@code non-null;} the set of annotations
210 return Collections.unmodifiableCollection(annotations.values());