scale.jcr
Class NameAndTypeCPInfo

java.lang.Object
  extended by scale.jcr.CPInfo
      extended by scale.jcr.NameAndTypeCPInfo

public class NameAndTypeCPInfo
extends CPInfo

This class is used to both represent a Java class file name and type constant pool entry and to read that class file name and type constant pool entry.

$Id: NameAndTypeCPInfo.java,v 1.9 2007-10-04 19:58:16 burrill Exp $

Copyright 2007 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.


Field Summary
 
Fields inherited from class scale.jcr.CPInfo
CONSTANT_Class, CONSTANT_Double, CONSTANT_Fieldref, CONSTANT_Float, CONSTANT_Integer, CONSTANT_InterfaceMethodref, CONSTANT_Long, CONSTANT_Methodref, CONSTANT_NameAndType, CONSTANT_String, CONSTANT_Utf8
 
Constructor Summary
NameAndTypeCPInfo(int nameIndex, int descriptorIndex)
           
 
Method Summary
 int getDescriptorIndex()
           
 int getNameIndex()
           
static CPInfo read(ClassFile cf, java.io.DataInputStream reader)
           
 
Methods inherited from class scale.jcr.CPInfo
getTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameAndTypeCPInfo

public NameAndTypeCPInfo(int nameIndex,
                         int descriptorIndex)
Method Detail

getNameIndex

public int getNameIndex()

getDescriptorIndex

public int getDescriptorIndex()

read

public static CPInfo read(ClassFile cf,
                          java.io.DataInputStream reader)
                   throws java.io.IOException
Throws:
java.io.IOException