FileDocCategorySizeDatePackage
JConstantClass.javaAPI DocphoneME MR2 API (J2ME)2210Wed May 02 18:00:40 BST 2007com.sun.satsa.jcrmic.classfile.constants

JConstantClass

public class JConstantClass extends JConstant
This class represents a symbolic reference to a class or interface.

Fields Summary
private int
name_index
Index of class name constant pool entry.
private String
name
Class name
Constructors Summary
public JConstantClass(JConstantPool cp)
Constructor.

param
cp constant pool reference

        super(cp);
    
Methods Summary
public java.lang.StringgetClassName()
Returns class name.

return
class name


        resolve();
        return name;
    
public voidparse(java.io.DataInputStream dis)
Parses constant pool entry.

param
dis input stream
throws
IOException if I/O exception occurs

        name_index = dis.readUnsignedShort();
    
private voidresolve()
Resolves the constant pool entry.


        if (! resolved) {
	        name = cp.getConstantUtf8(name_index).getString();
    	    resolved = true;
        }