scale.jcr
Class CPInfo
java.lang.Object
scale.jcr.CPInfo
- Direct Known Subclasses:
- ClassCPInfo, DoubleCPInfo, FloatCPInfo, IntCPInfo, LongCPInfo, NameAndTypeCPInfo, RefCPInfo, StringCPInfo, Utf8CPInfo
public abstract class CPInfo
- extends java.lang.Object
This class is used to both represent a Java class file constant
pool entry and to read that class file constant pool entry.
$Id: CPInfo.java,v 1.9 2007-10-04 19:58:15 burrill Exp $
Copyright 2007 by the
Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
Constructor Summary |
CPInfo(int tag)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONSTANT_Utf8
public static final int CONSTANT_Utf8
- The constant pool entry tags.
- See Also:
- Constant Field Values
CONSTANT_Integer
public static final int CONSTANT_Integer
- See Also:
- Constant Field Values
CONSTANT_Float
public static final int CONSTANT_Float
- See Also:
- Constant Field Values
CONSTANT_Long
public static final int CONSTANT_Long
- See Also:
- Constant Field Values
CONSTANT_Double
public static final int CONSTANT_Double
- See Also:
- Constant Field Values
CONSTANT_Class
public static final int CONSTANT_Class
- See Also:
- Constant Field Values
CONSTANT_String
public static final int CONSTANT_String
- See Also:
- Constant Field Values
CONSTANT_Fieldref
public static final int CONSTANT_Fieldref
- See Also:
- Constant Field Values
CONSTANT_Methodref
public static final int CONSTANT_Methodref
- See Also:
- Constant Field Values
CONSTANT_InterfaceMethodref
public static final int CONSTANT_InterfaceMethodref
- See Also:
- Constant Field Values
CONSTANT_NameAndType
public static final int CONSTANT_NameAndType
- See Also:
- Constant Field Values
CPInfo
public CPInfo(int tag)
getTag
public int getTag()
read
public static CPInfo read(ClassFile cf,
java.io.DataInputStream reader)
throws java.io.IOException,
InvalidException
- Throws:
java.io.IOException
InvalidException