Package org.codehaus.janino.util
Class ClassFile.ConstantValueAttribute
java.lang.Object
org.codehaus.janino.util.ClassFile.AttributeInfo
org.codehaus.janino.util.ClassFile.ConstantValueAttribute
- Enclosing class:
- ClassFile
Representation of a
ConstantValue
attribute (see JVMS 4.7.2).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConstantValue
(ClassFile classFile) private static ClassFile.AttributeInfo
loadBody
(short attributeNameIndex, DataInputStream dis) 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
-
constantValueIndex
private final short constantValueIndex
-
-
Constructor Details
-
ConstantValueAttribute
ConstantValueAttribute(short attributeNameIndex, short constantValueIndex)
-
-
Method Details
-
getConstantValue
- Returns:
- The constant value contained in this attribute
-
loadBody
private static ClassFile.AttributeInfo loadBody(short attributeNameIndex, 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
-