public final class ConstantInteger extends Constant implements ConstantObject
Constant,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
private int |
bytes |
| Constructor and Description |
|---|
ConstantInteger(ConstantInteger c)
Initialize from another object.
|
ConstantInteger(DataInputStream file)
Initialize instance from file data.
|
ConstantInteger(int bytes) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class.
|
void |
dump(DataOutputStream file)
Dump constant integer to file stream in binary format.
|
int |
getBytes() |
Object |
getConstantValue(ConstantPool cp) |
void |
setBytes(int bytes) |
String |
toString() |
clone, copy, equals, getComparator, getTag, hashCode, readConstant, setComparatorpublic ConstantInteger(int bytes)
bytes - Datapublic ConstantInteger(ConstantInteger c)
ConstantInteger(DataInputStream file) throws IOException
file - Input streamIOExceptionpublic void accept(Visitor v)
public final void dump(DataOutputStream file) throws IOException
dump in class Constantfile - Output file streamIOExceptionpublic final int getBytes()
public final void setBytes(int bytes)
bytes - the raw bytes that represent this integerpublic final String toString()
public Object getConstantValue(ConstantPool cp)
getConstantValue in interface ConstantObject