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 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, setComparator
public ConstantLong(long bytes)
bytes
- Datapublic ConstantLong(ConstantLong c)
public void accept(Visitor v)
public void dump(DataOutputStream file) throws IOException
dump
in class Constant
file
- Output file streamIOException
public long getBytes()
public void setBytes(long bytes)
bytes
- the raw bytes that represent this longpublic String toString()
public Object getConstantValue(ConstantPool cp)
getConstantValue
in interface ConstantObject
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.