|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.bcel.classfile.Constant
public abstract class Constant
Abstract superclass for classes to represent the different constant types in the constant pool of a class file. The classes keep closely to the JVM specification.
| 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()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected byte tag
| Method Detail |
|---|
public abstract void accept(Visitor v)
accept in interface Nodev - Visitor object
public abstract void dump(DataOutputStream file)
throws IOException
IOExceptionpublic final byte getTag()
public String toString()
toString in class Objectpublic Constant copy()
public Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic static BCELComparator getComparator()
public static void setComparator(BCELComparator comparator)
comparator - Comparison strategy objectpublic boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||