Package org.jf.dexlib2.iface
Interface BasicAnnotation
-
- All Known Subinterfaces:
Annotation,AnnotationEncodedValue
- All Known Implementing Classes:
AnnotationRewriter.RewrittenAnnotation,BaseAnnotation,BaseAnnotationEncodedValue,BuilderEncodedValues.BuilderAnnotationEncodedValue,DexBackedAnnotation,DexBackedAnnotationEncodedValue,EncodedValueRewriter.RewrittenAnnotationEncodedValue,ImmutableAnnotation,ImmutableAnnotationEncodedValue
public interface BasicAnnotationThis represents a basic annotation, and serves as a common superclass for Annotation and AnnotationEncodedValue
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<? extends AnnotationElement>getElements()Gets a set of the name/value elements associated with this annotation.java.lang.StringgetType()Gets the type of this annotation.
-
-
-
Method Detail
-
getType
@Nonnull java.lang.String getType()
Gets the type of this annotation. This will be the type descriptor of the class that defines this annotation.- Returns:
- The type of this annotation
-
getElements
@Nonnull java.util.Set<? extends AnnotationElement> getElements()
Gets a set of the name/value elements associated with this annotation. The elements in the returned set will be unique with respect to the element name.- Returns:
- A set of AnnotationElements
-
-