final class IntegerConstant extends Constant
| Modifier and Type | Field and Description |
|---|---|
private int |
value |
| Modifier | Constructor and Description |
|---|---|
private |
IntegerConstant(int value) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o)
This method determines the relative ordering of the current constant
with the constant specified, based upon the natural ordering of the
constant types within the constant pool.
|
(package private) static IntegerConstant |
create(ConstantPool pool,
int value) |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString()
Return the string representation of this constant, primarily for
debugging purposes.
|
protected void |
writeContent(java.io.DataOutput out)
This method must be implemented by a subclass to provide the
appropriate behavior when writing the binary representation of
this constant to an output stream.
|
getCpIndex, getWidth, setCpIndex, writestatic IntegerConstant create(ConstantPool pool, int value)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int compareTo(java.lang.Object o)
ConstantcompareTo in interface java.lang.ComparablecompareTo in class Constanto - A Constant object with which to compare this
Constant for purposes of sorting.protected void writeContent(java.io.DataOutput out)
throws java.io.IOException
ConstantwriteContent in class Constantout - Output stream to which to write the portion of the binary
representation of this constant which is specific to the
subclass.java.io.IOException - if any error writing to stream.public java.lang.String toString()
Constant