jef.dna.constantInfo
Interface ConstString

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

public interface ConstString
extends ConstantInfo

This interface has to be implemented by those classes representing a CONSTANT_String_info structure. The CONSTANT_String_info structure is used to represent string constants.

Concrete classes implementing this interface have to tag with the @RefersToCpInfo annotation their private fields representing the following information:

1. string_index

Author:
Francesco Russo frusso@cs.unibo.it

Method Summary
 int getStringIndex()
          The value of the string_index item must be a valid index into the constant_pool table.
 void setStringIndex(int index)
          The value of the string_index item must be a valid index into the constant_pool table.
 
Methods inherited from interface jef.dna.constantInfo.ConstantInfo
clone, fromStream, getCpt, getTag, getType, setCpt, setTag, toStream, updateRefs, validate
 

Method Detail

getStringIndex

int getStringIndex()
The value of the string_index item must be a valid index into the constant_pool table. The constant_pool entry at that index must be a CONSTANT_Utf8_info The value of the string_index item must be a valid index into the constant_pool table. The constant_pool entry at that index must be a CONSTANT_Utf8_info.

Returns:
int The index of the CONSTANT_Utf8_info structure

setStringIndex

void setStringIndex(int index)
The value of the string_index item must be a valid index into the constant_pool table. The constant_pool entry at that index must be a CONSTANT_Utf8_info The value of the string_index item must be a valid index into the constant_pool table. The constant_pool entry at that index must be a CONSTANT_Utf8_info.

Parameters:
index - The index of the CONSTANT_Utf8_info structure