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.AttributeInfoloadBody(short attributeNameIndex, DataInputStream dis) 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
-
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.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
-