Class AttributeAnnotations
- java.lang.Object
-
- org.benf.cfr.reader.entities.attributes.Attribute
-
- org.benf.cfr.reader.entities.attributes.AttributeAnnotations
-
- All Implemented Interfaces:
KnowsRawName
,KnowsRawSize
,Dumpable
,TypeUsageCollectable
- Direct Known Subclasses:
AttributeRuntimeInvisibleAnnotations
,AttributeRuntimeVisibleAnnotations
public abstract class AttributeAnnotations extends Attribute implements TypeUsageCollectable
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<AnnotationTableEntry>
annotationTableEntryList
private int
length
private static long
OFFSET_OF_ANNOTATION_TABLE
private static long
OFFSET_OF_ATTRIBUTE_LENGTH
private static long
OFFSET_OF_NUMBER_OF_ANNOTATIONS
private static long
OFFSET_OF_REMAINDER
-
Constructor Summary
Constructors Constructor Description AttributeAnnotations(ByteData raw, ConstantPool cp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
collectTypeUsages(TypeUsageCollector collector)
Dumper
dump(Dumper d)
java.util.List<AnnotationTableEntry>
getEntryList()
long
getRawByteLength()
void
hide(JavaTypeInstance type)
-
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
-
annotationTableEntryList
private final java.util.List<AnnotationTableEntry> annotationTableEntryList
-
length
private final int length
-
-
Constructor Detail
-
AttributeAnnotations
AttributeAnnotations(ByteData raw, ConstantPool cp)
-
-
Method Detail
-
hide
public void hide(JavaTypeInstance type)
-
getEntryList
public java.util.List<AnnotationTableEntry> getEntryList()
-
getRawByteLength
public long getRawByteLength()
- Specified by:
getRawByteLength
in interfaceKnowsRawSize
-
collectTypeUsages
public void collectTypeUsages(TypeUsageCollector collector)
- Specified by:
collectTypeUsages
in interfaceTypeUsageCollectable
- Overrides:
collectTypeUsages
in classAttribute
-
-