org.apache.tomcat.util.bcel.classfile
Class ConstantInteger
java.lang.Object
org.apache.tomcat.util.bcel.classfile.Constant
org.apache.tomcat.util.bcel.classfile.ConstantInteger
- All Implemented Interfaces:
- Serializable, Cloneable
public final class ConstantInteger
- extends Constant
This class is derived from the abstract
Constant class
and represents a reference to an int object.
- Version:
- $Id: ConstantInteger.java 1181135 2011-10-10 18:51:44Z markt $
- Author:
- M. Dahm
- See Also:
Constant
,
Serialized Form
Fields inherited from class org.apache.tomcat.util.bcel.classfile.Constant |
tag |
ConstantInteger
public ConstantInteger(int bytes)
- Parameters:
bytes
- Data
dump
public final void dump(DataOutputStream file)
throws IOException
- Dump constant integer to file stream in binary format.
- Specified by:
dump
in class Constant
- Parameters:
file
- Output file stream
- Throws:
IOException
getBytes
public final int getBytes()
- Returns:
- data, i.e., 4 bytes.
toString
public final String toString()
- Overrides:
toString
in class Constant
- Returns:
- String representation.
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.