Package org.codehaus.janino.util
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.Annotation
private static ClassFile.AttributeInfo
loadBody
(short attributeNameIndex, DataInputStream dis) private static Map<Short,
ClassFile.ElementValue> protected void
Writes the body of this attribute in an attribute-type dependent way; see JVMS7 4.7.2 and following.Methods inherited from class org.codehaus.janino.util.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.Annotation
s 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.AttributeInfo
Writes the body of this attribute in an attribute-type dependent way; see JVMS7 4.7.2 and following.- Specified by:
storeBody
in classClassFile.AttributeInfo
- Throws:
IOException
-