org.apache.bcel.classfile
Class ConstantInteger
- Cloneable, ConstantObject, Node, Serializable
public final class ConstantInteger
This class is derived from the abstract
Constant class
and represents a reference to an int object.
$Id: ConstantInteger.java,v 1.2 2002/03/11 16:16:35 mdahm Exp $
ConstantInteger
public ConstantInteger(int bytes)
ConstantInteger
public ConstantInteger(ConstantInteger 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 integer to file stream in binary format.
- dump in interface Constant
file
- Output file stream
getBytes
public final int getBytes()
setBytes
public final void setBytes(int bytes)