org.apache.bcel.classfile
public final class ConstantInteger extends Constant implements ConstantObject
Version: $Id: ConstantInteger.java 386056 2006-03-15 11:31:56Z tcurdt $
See Also: Constant
| Field Summary | |
|---|---|
| int | bytes |
| Constructor Summary | |
|---|---|
| ConstantInteger(int bytes) | |
| ConstantInteger(ConstantInteger c)
Initialize from another object. | |
| ConstantInteger(DataInputStream file)
Initialize instance from file data.
| |
| Method Summary | |
|---|---|
| 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 integer to file stream in binary format.
|
| int | getBytes() |
| Object | getConstantValue(ConstantPool cp) |
| void | setBytes(int bytes) |
| String | toString() |
Parameters: bytes Data
Parameters: file Input stream
Throws: IOException
Parameters: v Visitor object
Parameters: file Output file stream
Throws: IOException
Returns: data, i.e., 4 bytes.
Returns: Integer object
Parameters: bytes the raw bytes that represent this integer
Returns: String representation.