Public Methods | |
abstract void | accept (Visitor v) |
Object | clone () throws CloneNotSupportedException |
Constant | copy () |
abstract void | dump (DataOutputStream file) throws IOException |
final byte | getTag () |
String | toString () |
abstract boolean | equals (Constant c) |
List | getUseBoxes () |
abstract void | accept (Visitor v) |
Object | clone () throws CloneNotSupportedException |
Constant | copy () |
abstract void | dump (DataOutputStream file) throws IOException |
final byte | getTag () |
String | toString () |
Constant (String name, int value, Type type) | |
void | apply (Switch sw) |
boolean | equals (Object o) |
Object | getDef () |
String | getName () |
Type | getType () |
int | getValue () |
void | print () |
String | toString () |
Protected Attributes | |
byte | tag |
Private Methods | |
Constant (byte tag) | |
Constant (byte tag) | |
Static Private Methods | |
final Constant | readConstant (DataInputStream file) throws IOException, ClassFormatError |
final Constant | readConstant (DataInputStream file) throws IOException, ClassFormatError |
Private Attributes | |
String | name |
int | value |
Type | type |
Definition at line 25 of file lib/jpf/de/fub/bytecode/classfile/Constant.java.
|
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.
Reimplemented in ConstantClass, ConstantDouble, ConstantFieldref, ConstantFloat, ConstantInteger, ConstantInterfaceMethodref, ConstantLong, ConstantMethodref, ConstantNameAndType, ConstantString, ConstantUtf8, ConstantClass, ConstantDouble, ConstantFieldref, ConstantFloat, ConstantInteger, ConstantInterfaceMethodref, ConstantLong, ConstantMethodref, ConstantNameAndType, ConstantString, and ConstantUtf8. |
|
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.
Reimplemented in ConstantClass, ConstantDouble, ConstantFieldref, ConstantFloat, ConstantInteger, ConstantInterfaceMethodref, ConstantLong, ConstantMethodref, ConstantNameAndType, ConstantString, ConstantUtf8, ConstantClass, ConstantDouble, ConstantFieldref, ConstantFloat, ConstantInteger, ConstantInterfaceMethodref, ConstantLong, ConstantMethodref, ConstantNameAndType, ConstantString, and ConstantUtf8. |
|
Definition at line 51 of file src/de/fub/bytecode/classfile/Constant.java. |
|
Definition at line 51 of file lib/jpf/de/fub/bytecode/classfile/Constant.java. Referenced by ConstantPool::copy().
|
|
Definition at line 63 of file src/de/fub/bytecode/classfile/Constant.java. |
|
Definition at line 63 of file lib/jpf/de/fub/bytecode/classfile/Constant.java. Referenced by ConstantCP::ConstantCP(), ConstantPool::ConstantPool(), CodeHTML::codeToHTML(), Utility::codeToString(), ConstantPool::constantToString(), and ConstantPool::getConstant().
|
|
Read one constant from the given file, the type depends on a tag byte.
Definition at line 70 of file src/de/fub/bytecode/classfile/Constant.java. |
|
Read one constant from the given file, the type depends on a tag byte.
Definition at line 70 of file lib/jpf/de/fub/bytecode/classfile/Constant.java. Referenced by ConstantPool::ConstantPool().
|
|
Reimplemented in ConstantClass, ConstantCP, ConstantDouble, ConstantFloat, ConstantInteger, ConstantLong, ConstantNameAndType, ConstantString, ConstantUtf8, ConstantClass, ConstantCP, ConstantDouble, ConstantFloat, ConstantInteger, ConstantLong, ConstantNameAndType, ConstantString, ConstantUtf8, and ChooseExpr. Definition at line 95 of file src/de/fub/bytecode/classfile/Constant.java. |
|
Reimplemented in ConstantClass, ConstantCP, ConstantDouble, ConstantFloat, ConstantInteger, ConstantLong, ConstantNameAndType, ConstantString, ConstantUtf8, ConstantClass, ConstantCP, ConstantDouble, ConstantFloat, ConstantInteger, ConstantLong, ConstantNameAndType, ConstantString, ConstantUtf8, and ChooseExpr. Definition at line 95 of file lib/jpf/de/fub/bytecode/classfile/Constant.java. |