org.apache.bcel.classfile
public abstract class Constant extends Object implements Cloneable, Node, Serializable
Field Summary | |
---|---|
protected byte | tag |
Method Summary | |
---|---|
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 void | setComparator(BCELComparator comparator) |
String | toString() |
Parameters: v Visitor object
Returns: deep copy of this constant
See Also: java.lang.Object#equals(java.lang.Object)
Returns: Comparison strategy object
Returns: Tag of constant, i.e., its type. No setTag() method to avoid confusion.
See Also: java.lang.Object#hashCode()
Parameters: comparator Comparison strategy object
Returns: String representation.