java.io.Serializable, java.lang.Cloneable, ConstantObject, Nodepublic final class ConstantInteger extends Constant implements ConstantObject
Constant,
Serialized Form| Constructor | Description |
|---|---|
ConstantInteger(int bytes) |
|
ConstantInteger(ConstantInteger c) |
Initialize from another object.
|
| Modifier and Type | Method | 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(java.io.DataOutputStream file) |
Dump constant integer to file stream in binary format.
|
int |
getBytes() |
|
java.lang.Object |
getConstantValue(ConstantPool cp) |
|
void |
setBytes(int bytes) |
|
java.lang.String |
toString() |
clone, copy, equals, getComparator, getTag, hashCode, setComparatorpublic ConstantInteger(int bytes)
bytes - Datapublic ConstantInteger(ConstantInteger c)
public void accept(Visitor v)
public final void dump(java.io.DataOutputStream file)
throws java.io.IOException
public final int getBytes()
public final void setBytes(int bytes)
bytes - the raw bytes that represent this integerpublic final java.lang.String toString()
public java.lang.Object getConstantValue(ConstantPool cp)
getConstantValue in interface ConstantObject