jef.dna.constantInfo
Interface ConstClass

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

public interface ConstClass
extends ConstantInfo

This interface has to be implemented by those classes representing a CONSTANT_Class_info structure. The CONSTANT_Class_info structure is used to represent a class or an interface.

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

1. name_index

Author:
Francesco Russo frusso@cs.unibo.it

Method Summary
 int getNameIndex()
          Get the value of the name_index item must be a valid index into the constant_pool table.
 void setNameIndex(int nameIndex)
          Set the value of the name_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

setNameIndex

void setNameIndex(int nameIndex)
Set the value of the name_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:
nameIndex - The index into the constant pool table

getNameIndex

int getNameIndex()
Get the value of the name_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 into the constant pool table