abstract class FMIrefConstant extends Constant
Modifier and Type | Field and Description |
---|---|
private ClassConstant |
classConstant |
private NameAndTypeConstant |
nameAndTypeConstant |
Modifier | Constructor and Description |
---|---|
protected |
FMIrefConstant(int type,
ConstantPool pool,
java.lang.String className,
java.lang.String name,
java.lang.String descriptor) |
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.
|
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, write
private ClassConstant classConstant
private NameAndTypeConstant nameAndTypeConstant
protected FMIrefConstant(int type, ConstantPool pool, java.lang.String className, java.lang.String name, java.lang.String descriptor)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(java.lang.Object o)
Constant
compareTo
in interface java.lang.Comparable
compareTo
in class Constant
o
- A Constant
object with which to compare this
Constant
for purposes of sorting.public java.lang.String toString()
Constant
protected void writeContent(java.io.DataOutput out) throws java.io.IOException
Constant
writeContent
in class Constant
out
- 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.