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)
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(DataInput input)
Read 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 input) throws IOException, ClassFormatException
input
- Input streamIOException
ClassFormatException
public 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–2022 The Apache Software Foundation. All rights reserved.