public abstract class Constant extends java.lang.Object implements java.lang.Cloneable, Node
Modifier and Type | Field and Description |
---|---|
private static BCELComparator |
bcelComparator |
protected byte |
tag
Deprecated.
(since 6.0) will be made private; do not access directly, use getter/setter
|
Constructor and Description |
---|
Constant(byte tag) |
Modifier and Type | Method and Description |
---|---|
abstract void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class.
|
java.lang.Object |
clone() |
Constant |
copy() |
abstract void |
dump(java.io.DataOutputStream file) |
boolean |
equals(java.lang.Object obj)
Return value as defined by given BCELComparator strategy.
|
static BCELComparator |
getComparator() |
byte |
getTag() |
int |
hashCode()
Return value as defined by given BCELComparator strategy.
|
static Constant |
readConstant(java.io.DataInput dataInput)
Read one constant from the given input, the type depends on a tag byte.
|
static void |
setComparator(BCELComparator comparator) |
java.lang.String |
toString() |
private static BCELComparator bcelComparator
@Deprecated protected byte tag
public abstract void accept(Visitor v)
public abstract void dump(java.io.DataOutputStream file) throws java.io.IOException
java.io.IOException
public final byte getTag()
public java.lang.String toString()
toString
in class java.lang.Object
public Constant copy()
public java.lang.Object clone()
clone
in class java.lang.Object
public static Constant readConstant(java.io.DataInput dataInput) throws java.io.IOException, ClassFormatException
dataInput
- Input streamjava.io.IOException
- if an I/O error occurs reading from the given dataInput
.ClassFormatException
- if the next byte is not recognizedpublic static BCELComparator getComparator()
public static void setComparator(BCELComparator comparator)
comparator
- Comparison strategy objectpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()