private Set<Annotation> buildMethodAnnotations(SootMethod m) { Set<String> skipList = new HashSet<String>(); Set<Annotation> annotations = buildCommonAnnotations(m, skipList); for (Tag t : m.getTags()) { if (t.getName().equals("VisibilityAnnotationTag")) { List<ImmutableAnnotation> visibilityItems = buildVisibilityAnnotationTag((VisibilityAnnotationTag) t, skipList); annotations.addAll(visibilityItems); } } List<SootClass> exceptionList = m.getExceptionsUnsafe(); if (exceptionList != null && !exceptionList.isEmpty()) { List<ImmutableEncodedValue> valueList = new ArrayList<ImmutableEncodedValue>(exceptionList.size()); for (SootClass exceptionClass : exceptionList) { valueList.add(new ImmutableTypeEncodedValue(DexType.toDalvikICAT(exceptionClass.getName()).replace(".", "/"))); } ImmutableArrayEncodedValue valueValue = new ImmutableArrayEncodedValue(valueList); ImmutableAnnotationElement valueElement = new ImmutableAnnotationElement("value", valueValue); Set<ImmutableAnnotationElement> elements = Collections.singleton(valueElement); ImmutableAnnotation ann = new ImmutableAnnotation(AnnotationVisibility.SYSTEM, "Ldalvik/annotation/Throws;", elements); annotations.add(ann); } return annotations; }
valueList.add(val); ImmutableArrayEncodedValue valueValue = new ImmutableArrayEncodedValue(valueList); ImmutableAnnotationElement valueElement = new ImmutableAnnotationElement("value", valueValue); elements = Collections.singleton(valueElement);
ImmutableArrayEncodedValue classesValue = new ImmutableArrayEncodedValue(classes); ImmutableAnnotationElement element = new ImmutableAnnotationElement("value", classesValue); ImmutableAnnotation memberAnnotation = new ImmutableAnnotation(AnnotationVisibility.SYSTEM,
values.add(val); return new ImmutableArrayEncodedValue(values);
state._fsp--; encodedValue = new ImmutableArrayEncodedValue(array_literal34);
public static ImmutableArrayEncodedValue of(@Nonnull ArrayEncodedValue arrayEncodedValue) { if (arrayEncodedValue instanceof ImmutableArrayEncodedValue) { return (ImmutableArrayEncodedValue)arrayEncodedValue; } return new ImmutableArrayEncodedValue(arrayEncodedValue.getValue()); }
public static ImmutableArrayEncodedValue of(@Nonnull ArrayEncodedValue arrayEncodedValue) { if (arrayEncodedValue instanceof ImmutableArrayEncodedValue) { return (ImmutableArrayEncodedValue)arrayEncodedValue; } return new ImmutableArrayEncodedValue(arrayEncodedValue.getValue()); }
public static ImmutableArrayEncodedValue of(@Nonnull ArrayEncodedValue arrayEncodedValue) { if (arrayEncodedValue instanceof ImmutableArrayEncodedValue) { return (ImmutableArrayEncodedValue)arrayEncodedValue; } return new ImmutableArrayEncodedValue(arrayEncodedValue.getValue()); }
ImmutableArrayEncodedValue immutableArrayEncodedValue = new ImmutableArrayEncodedValue(lists); ImmutableAnnotationElement immutableAnnotationElement = new ImmutableAnnotationElement(name, immutableArrayEncodedValue); newAnnotationElement.add(immutableAnnotationElement);
ImmutableArrayEncodedValue immutableArrayEncodedValue = new ImmutableArrayEncodedValue(lists); ImmutableAnnotationElement immutableAnnotationElement = new ImmutableAnnotationElement(name, immutableArrayEncodedValue); newAnnotationElement.add(immutableAnnotationElement);
state._fsp--; encodedValue = new ImmutableArrayEncodedValue(array_literal34);
state._fsp--; encodedValue = new ImmutableArrayEncodedValue(array_literal34);