private boolean hasRelevantAnnotations(Element item) { for (Element annotationElement : getChildren(item)) { if (isRelevantAnnotation(annotationElement)) { return true; } } return false; }
private boolean hasRelevantAnnotations(Element item) { for (Element annotationElement : getChildren(item)) { if (isRelevantAnnotation(annotationElement)) { return true; } } return false; }
private int addAnnotations(Element itemElement, Item item) { int count = 0; for (Element annotationElement : getChildren(itemElement)) { if (!isRelevantAnnotation(annotationElement)) { continue; } AnnotationData annotation = createAnnotation(annotationElement); item.annotations.add(annotation); count++; } return count; }
private int addAnnotations(Element itemElement, Item item) { int count = 0; for (Element annotationElement : getChildren(itemElement)) { if (!isRelevantAnnotation(annotationElement)) { continue; } AnnotationData annotation = createAnnotation(annotationElement); item.annotations.add(annotation); count++; } return count; }
assert rootTag.equals("root") : rootTag; for (Element item : getChildren(root)) { String signature = item.getAttribute(ATTR_NAME); if (signature == null || signature.equals("null")) {
assert rootTag.equals("root") : rootTag; for (Element item : getChildren(root)) { String signature = item.getAttribute(ATTR_NAME); if (signature == null || signature.equals("null")) {
AnnotationData annotation; if (IDEA_MAGIC.equals(name)) { List<Element> children = getChildren(annotationElement); assert children.size() == 1 : children.size(); Element valueElement = children.get(0); } else if (STRING_DEF_ANNOTATION.equals(name) || ANDROID_STRING_DEF.equals(name) || INT_DEF_ANNOTATION.equals(name) || ANDROID_INT_DEF.equals(name)) { List<Element> children = getChildren(annotationElement); Element valueElement = children.get(0); String valName = valueElement.getAttribute(ATTR_NAME); flag ? TYPE_DEF_FLAG_ATTRIBUTE : null, flag ? VALUE_TRUE : null); } else if (IDEA_CONTRACT.equals(name)) { List<Element> children = getChildren(annotationElement); assert children.size() == 1 : children.size(); Element valueElement = children.get(0);
AnnotationData annotation; if (IDEA_MAGIC.equals(name)) { List<Element> children = getChildren(annotationElement); assert children.size() == 1 : children.size(); Element valueElement = children.get(0); } else if (STRING_DEF_ANNOTATION.equals(name) || ANDROID_STRING_DEF.equals(name) || INT_DEF_ANNOTATION.equals(name) || ANDROID_INT_DEF.equals(name)) { List<Element> children = getChildren(annotationElement); Element valueElement = children.get(0); String valName = valueElement.getAttribute(ATTR_NAME); flag ? TYPE_DEF_FLAG_ATTRIBUTE : null, flag ? VALUE_TRUE : null}); } else if (IDEA_CONTRACT.equals(name)) { List<Element> children = getChildren(annotationElement); assert children.size() == 1 : children.size(); Element valueElement = children.get(0); List<Element> children = getChildren(annotationElement); if (children.isEmpty()) { return new AnnotationData(name);
private int mergeAnnotations(Element itemElement, Item item) { int count = 0; loop: for (Element annotationElement : getChildren(itemElement)) { if (!isRelevantAnnotation(annotationElement)) { continue;
private int mergeAnnotations(Element itemElement, Item item) { int count = 0; loop: for (Element annotationElement : getChildren(itemElement)) { if (!isRelevantAnnotation(annotationElement)) { continue;