public final class ConstantInteger extends Constant implements ConstantObject
Constant and represents a reference to an int object.Constant| Constructor and Description |
|---|
ConstantInteger(ConstantInteger c)
Initialize from another object.
|
ConstantInteger(int bytes) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitly 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() |
clone, copy, equals, getComparator, getTag, hashCode, readConstant, setComparatorpublic ConstantInteger(ConstantInteger c)
public ConstantInteger(int bytes)
bytes - Datapublic void accept(Visitor v)
public void dump(DataOutputStream file) throws IOException
dump in class Constantfile - Output file streamIOException - if an I/O error occurs.public int getBytes()
public Object getConstantValue(ConstantPool cp)
getConstantValue in interface ConstantObjectpublic void setBytes(int bytes)
bytes - the raw bytes that represent this integerCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.