1package org.jf.dexlib2.iface; 2 3import javax.annotation.Nonnull; 4import java.util.Set; 5 6/** 7 * This represents a basic annotation, and serves as a common superclass for Annotation and AnnotationEncodedValue 8 */ 9public interface BasicAnnotation { 10 /** 11 * Gets the type of this annotation. 12 * 13 * This will be the type descriptor of the class that defines this annotation. 14 * 15 * @return The type of this annotation 16 */ 17 @Nonnull String getType(); 18 19 /** 20 * Gets a set of the name/value elements associated with this annotation. 21 * 22 * The elements in the returned set will be unique with respect to the element name. 23 * 24 * @return A set of AnnotationElements 25 */ 26 @Nonnull Set<? extends AnnotationElement> getElements(); 27} 28