public abstract class Constant
extends java.lang.Object
| Constructor and Description | 
|---|
Constant(Constant[] pool)
Creates an instance. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static Constant[] | 
extractConstantPool(java.io.DataInputStream stream)
Extracts the constant pool from the specified data stream of a class file. 
 | 
Constant | 
getConstant(int index)
Returns the specified constant from the pool. 
 | 
public Constant(Constant[] pool)
pool - The poole which will be needed to resolve references.public static Constant[] extractConstantPool(java.io.DataInputStream stream) throws java.io.IOException
stream - Input stream of a class file starting at the first byte.java.io.IOException - in case of reading errors or invalid class file.public Constant getConstant(int index)
index - Index of requested constant.