} else if (value instanceof Type) { Type t = (Type) value; elem = new AnnotationClassElem(t.getDescriptor(), 'c', name); } else if (value.getClass().isArray()) { ArrayList<AnnotationElem> annotationArray = new ArrayList<AnnotationElem>();
@Override public void caseAnnotationClassElem(AnnotationClassElem v) { try { Class<?> clazz = ClassLoaderUtils.loadClass(v.getDesc().replace('/', '.')); setResult(new AnnotationElemResult<Class<?>>(v.getName(), clazz)); } catch (ClassNotFoundException e) { throw new RuntimeException("Could not load class: " + v.getDesc()); } }
result.append(".cls_kind "); result.append("\"" + elem.getName() + "\" "); result.append(soot.util.StringTools.getQuotedStringOf(((AnnotationClassElem) elem).getDesc())); result.append("\n"); break;
for (AnnotationElem ae : arre.getValues()) { AnnotationClassElem c = (AnnotationClassElem) ae; String innerClass = c.getDesc(); if (innerClass.contains("$-")) {
String desc = sval.convert(); AnnotationClassElem elem = new AnnotationClassElem(desc, kind, elemName); list.add(elem); } else if (kind == '[') {
return new ImmutableTypeEncodedValue(e.getDesc());
list.add(new soot.tagkit.AnnotationClassElem(getExpr().type().typeDescriptor(), 'c', name));
} else if (elem instanceof AnnotationClassElem) { AnnotationClassElem classElem = (AnnotationClassElem) elem; val = org.objectweb.asm.Type.getType(classElem.getDesc());
elem = new AnnotationClassElem(v.getValue(), 'c', ae.getName()); break;
String desc = sval.convert(); AnnotationClassElem elem = new AnnotationClassElem(desc, kind, elemName); list.add(elem);
String desc = sval.convert(); AnnotationClassElem elem = new AnnotationClassElem(desc, kind, elemName); list.add(elem);