public final class ConstantUnreachableInfo extends CPInfo
ConstantUnreachableInfo
denotes a custom CONSTANT_Unreachable_info structure.
It is not part of the official ClassFile structure. But it is used in this library to denote an entry in a constant_pool table that is unreachable.
This class is not thread-safe.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME
The name of the CONSTANT_Unreachable_info structure.
|
static int |
TAG
The tag for CONSTANT_Unreachable.
|
Constructor and Description |
---|
ConstantUnreachableInfo()
Constructs a new
ConstantUnreachableInfo instance. |
Modifier and Type | Method and Description |
---|---|
ConstantUnreachableInfo |
copy()
Returns a copy of this
ConstantUnreachableInfo instance. |
boolean |
equals(java.lang.Object object)
Compares
object to this ConstantUnreachableInfo instance for equality. |
int |
hashCode()
Returns a hash code for this
ConstantUnreachableInfo instance. |
static ConstantUnreachableInfo |
newInstance()
Returns a new
ConstantUnreachableInfo . |
java.lang.String |
toString()
Returns a
String representation of this ConstantUnreachableInfo instance. |
void |
write(java.io.DataOutput dataOutput)
Writes this
CPInfo to dataOutput . |
void |
write(Document document)
Writes this
CPInfo to document . |
getConstantPoolEntryCount, getName, getTag
public static final java.lang.String NAME
public static final int TAG
public ConstantUnreachableInfo()
ConstantUnreachableInfo
instance.public ConstantUnreachableInfo copy()
ConstantUnreachableInfo
instance.public java.lang.String toString()
String
representation of this ConstantUnreachableInfo
instance.toString
in class java.lang.Object
String
representation of this ConstantUnreachableInfo
instancepublic boolean equals(java.lang.Object object)
object
to this ConstantUnreachableInfo
instance for equality.
Returns true
if, and only if, object
is an instance of ConstantUnreachableInfo
, and their respective values are equal, false
otherwise.
equals
in class java.lang.Object
object
- the Object
to compare to this ConstantUnreachableInfo
instance for equalitytrue
if, and only if, object
is an instance of ConstantUnreachableInfo
, and their respective values are equal, false
otherwisepublic int hashCode()
ConstantUnreachableInfo
instance.hashCode
in class java.lang.Object
ConstantUnreachableInfo
instancepublic void write(java.io.DataOutput dataOutput)
CPInfo
to dataOutput
.
If dataOutput
is null
, a NullPointerException
will be thrown.
public void write(Document document)
CPInfo
to document
.
If document
is null
, a NullPointerException
may be thrown. But no guarantees can be made.
public static ConstantUnreachableInfo newInstance()
ConstantUnreachableInfo
.ConstantUnreachableInfo