org.apache.bcel.classfile
Class ConstantLong
- Cloneable, ConstantObject, Node, Serializable
public final class ConstantLong
This class is derived from the abstract
Constant class
and represents a reference to a long object.
$Id: ConstantLong.java 386056 2006-03-15 11:31:56Z tcurdt $
accept , clone , copy , dump , equals , getComparator , getTag , hashCode , readConstant , setComparator , toString |
ConstantLong
(package private) ConstantLong(DataInputStream file)
throws IOException
Initialize instance from file data.
ConstantLong
public ConstantLong(long bytes)
ConstantLong
public ConstantLong(ConstantLong c)
Initialize from another object.
accept
public void accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class. I.e., the hierarchy of methods,
fields, attributes, etc. spawns a tree of objects.
- accept in interface Node
- accept in interface Constant
dump
public final void dump(DataOutputStream file)
throws IOException
Dump constant long to file stream in binary format.
- dump in interface Constant
file
- Output file stream
getBytes
public final long getBytes()
setBytes
public final void setBytes(long bytes)
bytes
- thr raw bytes that represent this long