public final class ConstantInteger extends Constant implements ConstantObject
Constant
,
Serialized FormConstructor and Description |
---|
ConstantInteger(ConstantInteger c)
Initialize from another object.
|
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(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, setComparator
public 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