public final class ConstantLong extends Constant implements ConstantObject
Constant and represents a reference to a long object.Constant| Constructor 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 implicitly 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(ConstantLong c)
public ConstantLong(long bytes)
bytes - Datapublic void accept(Visitor v)
public void dump(DataOutputStream file) throws IOException
dump in class Constantfile - Output file streamIOException - if an I/O error occurs.public long getBytes()
public Object getConstantValue(ConstantPool cp)
getConstantValue in interface ConstantObjectpublic void setBytes(long bytes)
bytes - the raw bytes that represent this longCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.