public final class ConstantLong extends Constant implements ConstantObject
Constant
,
Serialized FormConstructor and Description |
---|
ConstantLong(ConstantLong c)
Initialize from another object.
|
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, setComparator
public ConstantLong(long bytes)
bytes
- Datapublic ConstantLong(ConstantLong c)
public void accept(Visitor v)
public final void dump(DataOutputStream file) throws IOException
dump
in class Constant
file
- Output file streamIOException
public 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