@Override public void visitEnd() { method.addTag(new AnnotationDefaultTag(elems.get(0))); } };
AnnotationDefaultTag tag = (AnnotationDefaultTag) method.getTag("AnnotationDefaultTag"); if (tag != null) { tag.getDefaultVal().setName(method.getName()); defaults.add(tag.getDefaultVal());
String annotDefAttr = ".annotation_default "; AnnotationDefaultTag annotDefTag = (AnnotationDefaultTag) method.getTag("AnnotationDefaultTag"); annotDefAttr += getElemAttr(annotDefTag.getDefaultVal()); annotDefAttr += ".end .annotation_default"; emit(annotDefAttr);
/** * @ast method * @aspect AnnotationsCodegen * @declaredat /Users/eric/Documents/workspaces/clara-soot/JastAddExtensions/Jimple1.5Backend/AnnotationsCodegen.jrag:293 */ public void addAttributes() { super.addAttributes(); // 4.8.19 if(hasDefaultValue()) { ArrayList elements = new ArrayList(1); getDefaultValue().appendAsAttributeTo(elements, "default"); soot.tagkit.AnnotationDefaultTag tag = new soot.tagkit.AnnotationDefaultTag((soot.tagkit.AnnotationElem)elements.get(0)); sootMethod.addTag(tag); } } /**
AnnotationDefaultTag adt = (AnnotationDefaultTag) t; AnnotationVisitor av = ((MethodVisitor) visitor).visitAnnotationDefault(); generateAnnotationElems(av, Collections.singleton(adt.getDefaultVal()), true);
AnnotationDefaultTag d = new AnnotationDefaultTag(e); sm.addTag(d); if (found != null) { element.setName("default"); AnnotationDefaultTag d = new AnnotationDefaultTag(element); found.addTag(d);
input[0] = attr.default_value; ArrayList<AnnotationElem> list = createElementTags(1, coffiClass, input); method.addTag(new AnnotationDefaultTag(list.get(0))); } else if (methodInfo.attributes[j] instanceof Generic_attribute) { Generic_attribute attr = (Generic_attribute) methodInfo.attributes[j];
input[0] = attr.default_value; ArrayList<AnnotationElem> list = createElementTags(1, coffiClass, input); method.addTag(new AnnotationDefaultTag(list.get(0)));
input[0] = attr.default_value; ArrayList<AnnotationElem> list = createElementTags(1, coffiClass, input); method.addTag(new AnnotationDefaultTag(list.get(0)));