Package org.jf.dexlib2.writer.pool
Class AnnotationPool
- java.lang.Object
-
- org.jf.dexlib2.writer.pool.BasePool<Key,java.lang.Integer>
-
- org.jf.dexlib2.writer.pool.BaseOffsetPool<Annotation>
-
- org.jf.dexlib2.writer.pool.AnnotationPool
-
- All Implemented Interfaces:
AnnotationSection<java.lang.CharSequence,java.lang.CharSequence,Annotation,AnnotationElement,EncodedValue>
,OffsetSection<Annotation>
,Markable
public class AnnotationPool extends BaseOffsetPool<Annotation> implements AnnotationSection<java.lang.CharSequence,java.lang.CharSequence,Annotation,AnnotationElement,EncodedValue>
-
-
Field Summary
-
Fields inherited from class org.jf.dexlib2.writer.pool.BasePool
dexPool, internedItems
-
-
Constructor Summary
Constructors Constructor Description AnnotationPool(DexPool dexPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.CharSequence
getElementName(AnnotationElement annotationElement)
java.util.Collection<? extends AnnotationElement>
getElements(Annotation annotation)
EncodedValue
getElementValue(AnnotationElement annotationElement)
java.lang.CharSequence
getType(Annotation annotation)
int
getVisibility(Annotation annotation)
void
intern(Annotation annotation)
-
Methods inherited from class org.jf.dexlib2.writer.pool.BaseOffsetPool
getItemOffset, getItems, getItemString
-
Methods inherited from class org.jf.dexlib2.writer.pool.BasePool
getItemCount, mark, reset
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jf.dexlib2.writer.OffsetSection
getItemOffset, getItems
-
-
-
-
Constructor Detail
-
AnnotationPool
public AnnotationPool(@Nonnull DexPool dexPool)
-
-
Method Detail
-
intern
public void intern(@Nonnull Annotation annotation)
-
getVisibility
public int getVisibility(@Nonnull Annotation annotation)
- Specified by:
getVisibility
in interfaceAnnotationSection<java.lang.CharSequence,java.lang.CharSequence,Annotation,AnnotationElement,EncodedValue>
-
getType
@Nonnull public java.lang.CharSequence getType(@Nonnull Annotation annotation)
- Specified by:
getType
in interfaceAnnotationSection<java.lang.CharSequence,java.lang.CharSequence,Annotation,AnnotationElement,EncodedValue>
-
getElements
@Nonnull public java.util.Collection<? extends AnnotationElement> getElements(@Nonnull Annotation annotation)
- Specified by:
getElements
in interfaceAnnotationSection<java.lang.CharSequence,java.lang.CharSequence,Annotation,AnnotationElement,EncodedValue>
-
getElementName
@Nonnull public java.lang.CharSequence getElementName(@Nonnull AnnotationElement annotationElement)
- Specified by:
getElementName
in interfaceAnnotationSection<java.lang.CharSequence,java.lang.CharSequence,Annotation,AnnotationElement,EncodedValue>
-
getElementValue
@Nonnull public EncodedValue getElementValue(@Nonnull AnnotationElement annotationElement)
- Specified by:
getElementValue
in interfaceAnnotationSection<java.lang.CharSequence,java.lang.CharSequence,Annotation,AnnotationElement,EncodedValue>
-
-