public abstract class Constant extends Object
Modifier and Type | Field and Description |
---|---|
protected Constant[] |
constantPool
the constantPool it is part of
|
Constructor and Description |
---|
Constant(Constant[] constantPool)
constructs a new Constant
|
Modifier and Type | Method and Description |
---|---|
abstract int |
getTag()
returns the tag of the constant
|
static Constant |
readConstant(Constant[] constantPool,
DataInput dataInput)
reads a constant from the stream
|
static String |
toString(Constant[] constantPool)
parses the constantPool to string
|
protected Constant[] constantPool
public Constant(Constant[] constantPool)
constantPool
- the constantPool it is part ofpublic abstract int getTag()
public static Constant readConstant(Constant[] constantPool, DataInput dataInput) throws IOException
dataInput
- the dataInputconstantPool
- the constantPoolIOException
- on exceptionCopyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.