public final class ConstantLong extends Constant implements ConstantObject
Constant,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
private long |
bytes |
| Constructor and Description |
|---|
ConstantLong(ConstantLong c)
Initialize from another object.
|
ConstantLong(DataInputStream file)
Initialize instance from file data.
|
ConstantLong(long 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 long to file stream in binary format.
|
long |
getBytes() |
Object |
getConstantValue(ConstantPool cp) |
void |
setBytes(long bytes) |
String |
toString() |
clone, copy, equals, getComparator, getTag, hashCode, readConstant, setComparatorpublic ConstantLong(long bytes)
bytes - Datapublic ConstantLong(ConstantLong c)
ConstantLong(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 long getBytes()
public final void setBytes(long bytes)
bytes - thr raw bytes that represent this longpublic final String toString()
public Object getConstantValue(ConstantPool cp)
getConstantValue in interface ConstantObject