Class AttributeTypeAnnotations
- java.lang.Object
-
- org.benf.cfr.reader.entities.attributes.Attribute
-
- org.benf.cfr.reader.entities.attributes.AttributeTypeAnnotations
-
- All Implemented Interfaces:
KnowsRawName,KnowsRawSize,Dumpable,TypeUsageCollectable
- Direct Known Subclasses:
AttributeRuntimeInvisibleTypeAnnotations,AttributeRuntimeVisibleTypeAnnotations
public abstract class AttributeTypeAnnotations extends Attribute
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<TypeAnnotationEntryValue,java.util.List<AnnotationTableTypeEntry>>annotationTableEntryDataprivate intlengthprivate static longOFFSET_OF_ANNOTATION_TABLEprivate static longOFFSET_OF_ATTRIBUTE_LENGTHprivate static longOFFSET_OF_NUMBER_OF_ANNOTATIONSprivate static longOFFSET_OF_REMAINDER
-
Constructor Summary
Constructors Constructor Description AttributeTypeAnnotations(ByteData raw, ConstantPool cp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcollectTypeUsages(TypeUsageCollector collector)Dumperdump(Dumper d)java.util.List<AnnotationTableTypeEntry>getAnnotationsFor(TypeAnnotationEntryValue... types)longgetRawByteLength()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.benf.cfr.reader.util.KnowsRawName
getRawName
-
-
-
-
Field Detail
-
OFFSET_OF_ATTRIBUTE_LENGTH
private static final long OFFSET_OF_ATTRIBUTE_LENGTH
- See Also:
- Constant Field Values
-
OFFSET_OF_REMAINDER
private static final long OFFSET_OF_REMAINDER
- See Also:
- Constant Field Values
-
OFFSET_OF_NUMBER_OF_ANNOTATIONS
private static final long OFFSET_OF_NUMBER_OF_ANNOTATIONS
- See Also:
- Constant Field Values
-
OFFSET_OF_ANNOTATION_TABLE
private static final long OFFSET_OF_ANNOTATION_TABLE
- See Also:
- Constant Field Values
-
annotationTableEntryData
private java.util.Map<TypeAnnotationEntryValue,java.util.List<AnnotationTableTypeEntry>> annotationTableEntryData
-
length
private final int length
-
-
Constructor Detail
-
AttributeTypeAnnotations
AttributeTypeAnnotations(ByteData raw, ConstantPool cp)
-
-
Method Detail
-
getRawByteLength
public long getRawByteLength()
-
collectTypeUsages
public void collectTypeUsages(TypeUsageCollector collector)
- Specified by:
collectTypeUsagesin interfaceTypeUsageCollectable- Overrides:
collectTypeUsagesin classAttribute
-
getAnnotationsFor
public java.util.List<AnnotationTableTypeEntry> getAnnotationsFor(TypeAnnotationEntryValue... types)
-
-