Package org.jf.dexlib2.writer.builder
Class BuilderAnnotation
java.lang.Object
org.jf.dexlib2.base.BaseAnnotation
org.jf.dexlib2.writer.builder.BuilderAnnotation
- All Implemented Interfaces:
Comparable<Annotation>,Annotation,BasicAnnotation
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Set<? extends BuilderAnnotationElement> (package private) int(package private) final BuilderTypeReference(package private) intFields inherited from class org.jf.dexlib2.base.BaseAnnotation
BY_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionBuilderAnnotation(int visibility, BuilderTypeReference type, Set<? extends BuilderAnnotationElement> elements) -
Method Summary
Modifier and TypeMethodDescriptionSet<? extends BuilderAnnotationElement> Gets a set of the name/value elements associated with this annotation.getType()Gets the type of this annotation.intGets the visibility of this annotation.Methods inherited from class org.jf.dexlib2.base.BaseAnnotation
compareTo, equals, hashCode
-
Field Details
-
visibility
int visibility -
type
-
elements
-
offset
int offset
-
-
Constructor Details
-
BuilderAnnotation
public BuilderAnnotation(int visibility, @Nonnull BuilderTypeReference type, @Nonnull Set<? extends BuilderAnnotationElement> elements)
-
-
Method Details
-
getVisibility
public int getVisibility()Description copied from interface:AnnotationGets the visibility of this annotation. This will be one of the AnnotationVisibility.* constants.- Returns:
- The visibility of this annotation
-
getType
Description copied from interface:AnnotationGets 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
Description copied from interface:AnnotationGets 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
-