-
- All Implemented Interfaces:
-
org.gjt.jclasslib.structures.attributes.AnnotationHolder
public abstract class RuntimeTypeAnnotationsAttribute extends AttributeInfo implements AnnotationHolder
Common class for runtime type annotations.
-
-
Field Summary
Fields Modifier and Type Field Description private Array<TypeAnnotation>runtimeAnnotationsprivate final IntegernumberOfAnnotationsprivate IntegerattributeNameIndexprivate final Stringname
-
Constructor Summary
Constructors Constructor Description RuntimeTypeAnnotationsAttribute(ClassFile classFile)
-
Method Summary
Modifier and Type Method Description final Array<TypeAnnotation>getRuntimeAnnotations()Runtime annotations associations of the parent structure final UnitsetRuntimeAnnotations(Array<TypeAnnotation> runtimeAnnotations)Runtime annotations associations of the parent structure IntegergetNumberOfAnnotations()Number of contained annotations. IntegergetAttributeLength()Get the length of this attribute in bytes. -
Methods inherited from class org.gjt.jclasslib.structures.AttributeInfo
getAttributeNameIndex, getName, setAttributeNameIndex -
Methods inherited from class org.gjt.jclasslib.structures.Structure
read, write -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
RuntimeTypeAnnotationsAttribute
RuntimeTypeAnnotationsAttribute(ClassFile classFile)
-
-
Method Detail
-
getRuntimeAnnotations
final Array<TypeAnnotation> getRuntimeAnnotations()
Runtime annotations associations of the parent structure
-
setRuntimeAnnotations
final Unit setRuntimeAnnotations(Array<TypeAnnotation> runtimeAnnotations)
Runtime annotations associations of the parent structure
-
getNumberOfAnnotations
Integer getNumberOfAnnotations()
Number of contained annotations.
-
getAttributeLength
Integer getAttributeLength()
Get the length of this attribute in bytes.
-
-
-
-