public final class ConstantLong extends Constant implements ConstantObject
Constant
and represents a reference to a long object.Constant| Modifier and Type | Field and Description |
|---|---|
private long |
bytes |
| Constructor and Description |
|---|
ConstantLong(ConstantLong c)
Initialize from another object.
|
ConstantLong(java.io.DataInput 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(java.io.DataOutputStream file)
Dump constant long to file stream in binary format.
|
long |
getBytes() |
java.lang.Object |
getConstantValue(ConstantPool cp) |
void |
setBytes(long bytes) |
java.lang.String |
toString() |
clone, copy, equals, getComparator, getTag, hashCode, readConstant, setComparatorpublic ConstantLong(long bytes)
bytes - Datapublic ConstantLong(ConstantLong c)
ConstantLong(java.io.DataInput file)
throws java.io.IOException
file - Input streamjava.io.IOExceptionpublic void accept(Visitor v)
public final void dump(java.io.DataOutputStream file)
throws java.io.IOException
public final long getBytes()
public final void setBytes(long bytes)
bytes - the raw bytes that represent this longpublic final java.lang.String toString()
public java.lang.Object getConstantValue(ConstantPool cp)
getConstantValue in interface ConstantObject