|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectclassycle.classfile.Constant
public abstract class Constant
Abstract super class of all type of constants in the constant pool of a class file.
| Constructor Summary | |
|---|---|
Constant(Constant[] pool)
Creates an instance. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Constant(Constant[] pool)
pool - The poole which will be needed to resolve references.| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||