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, writeprivate 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.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.public java.lang.String toString()
Constantprotected 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.