public abstract class Constant extends Object implements Cloneable, Node
Modifier and Type | Field and Description |
---|---|
protected byte |
tag
Deprecated.
(since 6.0) will be made private; do not access directly, use getter/setter
|
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.
|
Object |
clone() |
Constant |
copy() |
abstract void |
dump(DataOutputStream file) |
boolean |
equals(Object obj)
Returns value as defined by given BCELComparator strategy.
|
static BCELComparator |
getComparator() |
byte |
getTag() |
int |
hashCode()
Returns value as defined by given BCELComparator strategy.
|
static Constant |
readConstant(DataInput dataInput)
Reads one constant from the given input, the type depends on a tag byte.
|
static void |
setComparator(BCELComparator comparator) |
String |
toString() |
@Deprecated protected byte tag
public abstract void accept(Visitor v)
public abstract void dump(DataOutputStream file) throws IOException
IOException
public final byte getTag()
public String toString()
public Constant copy()
public static Constant readConstant(DataInput dataInput) throws IOException, ClassFormatException
dataInput
- Input streamIOException
- 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(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.