fr.umlv.corosol.classfile.constant
Interface JConstantInteger

All Superinterfaces:
JClassFileItem, JConstant, JLoadableConstant, JObject
All Known Implementing Classes:
DefaultJConstantInteger

public interface JConstantInteger
extends JLoadableConstant

A JConstantInteger object represents a CONSTANT_Integer_info entry of a constant pool.

A CONSTANT_Integer_info entry is used to represent an integer constant.

Author:
Christophe Deleray
See Also:
JConstantPool

Field Summary
 
Fields inherited from interface fr.umlv.corosol.classfile.constant.JConstant
CONSTANT_CLASS, CONSTANT_DOUBLE, CONSTANT_FIELDREF, CONSTANT_FLOAT, CONSTANT_INTEGER, CONSTANT_INTERFACE_METHODREF, CONSTANT_LONG, CONSTANT_METHODREF, CONSTANT_NAME_AND_TYPE, CONSTANT_STRING, CONSTANT_UTF8
 
Method Summary
 int getIntValue()
          Returns the int value stored in this constant pool entry.
 void setIntValue(int intValue)
          Sets the int value stored in this constant pool entry with the specified value.
 
Methods inherited from interface fr.umlv.corosol.classfile.constant.JLoadableConstant
pushConstantValue
 
Methods inherited from interface fr.umlv.corosol.classfile.constant.JConstant
getLength, getTag, toString
 
Methods inherited from interface fr.umlv.corosol.classfile.JClassFileItem
getConstantPool, readItem, setConstantPool, writeItem
 

Method Detail

getIntValue

int getIntValue()
Returns the int value stored in this constant pool entry.

Returns:
the int value stored in this constant pool entry

setIntValue

void setIntValue(int intValue)
Sets the int value stored in this constant pool entry with the specified value.

Parameters:
intValue - an int value to be stored in this entry