Class ClassFile.AnnotationsAttribute
java.lang.Object
org.codehaus.janino.util.ClassFile.AttributeInfo
org.codehaus.janino.util.ClassFile.AnnotationsAttribute
- Enclosing class:
ClassFile
Representation of a
Runtime[In]visibleAnnotations attribute (see JVMS8 4.7.16/17).-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationsAttribute(short attributeNameIndex) AnnotationsAttribute(short attributeNameIndex, ClassFile.Annotation[] annotations) -
Method Summary
Modifier and TypeMethodDescriptionprivate static ClassFile.Annotationprivate static ClassFile.AttributeInfoloadBody(short attributeNameIndex, DataInputStream dis) private static Map<Short, ClassFile.ElementValue> protected voidWrites the body of this attribute in an attribute-type dependent way; see JVMS7 4.7.2 and following.Methods inherited from class ClassFile.AttributeInfo
store
-
Field Details
-
annotations
-
-
Constructor Details
-
AnnotationsAttribute
AnnotationsAttribute(short attributeNameIndex) -
AnnotationsAttribute
AnnotationsAttribute(short attributeNameIndex, ClassFile.Annotation[] annotations)
-
-
Method Details
-
getAnnotations
- Returns:
- The
ClassFile.Annotations contained in thisClassFile.AnnotationsAttribute, see JVMS8 4.7.16/17
-
loadBody
private static ClassFile.AttributeInfo loadBody(short attributeNameIndex, DataInputStream dis) throws IOException - Throws:
IOException
-
loadAnnotation
- Throws:
IOException
-
loadElementValuePairs
private static Map<Short, ClassFile.ElementValue> loadElementValuePairs(DataInputStream dis) throws IOException - Throws:
IOException
-
storeBody
Description copied from class:ClassFile.AttributeInfoWrites the body of this attribute in an attribute-type dependent way; see JVMS7 4.7.2 and following.- Specified by:
storeBodyin classClassFile.AttributeInfo- Throws:
IOException
-