jef.dna.constantInfo
Interface ConstInteger

All Superinterfaces:
java.lang.Cloneable, ConstantInfo
All Known Implementing Classes:
ConstantInteger

@ClosingCpInfo
public interface ConstInteger
extends ConstantInfo

This interface has to be implemented by those classes representing a CONSTANT_Integer_info structure. The CONSTANT_Integer_info structure is used to represent 4-byte numeric constants.

Author:
Francesco Russo frusso@dev.java.net

Method Summary
 int getValue()
          The bytes item of the CONSTANT_Integer_info structure represents the value of the int constant.
 void setValue(int val)
          The bytes item of the CONSTANT_Integer_info structure represents the value of the int constant.
 
Methods inherited from interface jef.dna.constantInfo.ConstantInfo
clone, fromStream, getCpt, getTag, getType, setCpt, setTag, toStream, updateRefs, validate
 

Method Detail

getValue

int getValue()
The bytes item of the CONSTANT_Integer_info structure represents the value of the int constant. The bytes of the value are stored in big-endian (high byte first) order.

Returns:
int The CONSTANT_Integer_info value

setValue

void setValue(int val)
The bytes item of the CONSTANT_Integer_info structure represents the value of the int constant. The bytes of the value are stored in big-endian (high byte first) order.

Parameters:
val - The CONSTANT_Integer_info value