fr.umlv.corosol.classfile.constant
Interface JConstantClass

All Superinterfaces:
JClassFileItem, JConstant, JObject
All Known Implementing Classes:
DefaultJConstantClass, JDK1_5JConstantClass

public interface JConstantClass
extends JConstant

A JConstantClass object represents a CONSTANT_Class_info entry of a constant pool.

A CONSTANT_Class_info entry is used to represent a class or an interface. Among its items there is an index into the constant pool : it is a index to a CONSTANT_Utf8_info entry representing a valid fully qualified class or interface name.

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
 java.lang.String getClassName()
          Returns the fully qualified class or interface name.
 int getNameIndex()
          Returns the index of a CONSTANT_Utf8_info entry representing a valid fully qualified class or interface name.
 void setNameIndex(int nameIndex)
          Sets the index of the CONSTANT_Utf8_info entry representing a valid fully qualified class or interface name.
 
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

getClassName

java.lang.String getClassName()
Returns the fully qualified class or interface name.

Returns:
a fully qualified class or interface name

getNameIndex

int getNameIndex()
Returns the index of a CONSTANT_Utf8_info entry representing a valid fully qualified class or interface name.


setNameIndex

void setNameIndex(int nameIndex)
Sets the index of the CONSTANT_Utf8_info entry representing a valid fully qualified class or interface name.

Parameters:
nameIndex - the index of the entry containing the name of a class or an interface