Public Methods | |
ConstantPool (Constant[] constant_pool) | |
void | accept (Visitor v) |
String | constantToString (int index, byte tag) throws ClassFormatError |
String | constantToString (Constant c) throws ClassFormatError |
ConstantPool | copy () |
void | dump (DataOutputStream file) throws IOException |
Constant | getConstant (int index) |
Constant | getConstant (int index, byte tag) throws ClassFormatError |
Constant[] | getConstantPool () |
String | getConstantString (int index, byte tag) throws ClassFormatError |
int | getLength () |
void | setConstant (int index, Constant constant) |
void | setConstantPool (Constant[] constant_pool) |
String | toString () |
ConstantPool (Constant[] constant_pool) | |
void | accept (Visitor v) |
String | constantToString (int index, byte tag) throws ClassFormatError |
String | constantToString (Constant c) throws ClassFormatError |
ConstantPool | copy () |
void | dump (DataOutputStream file) throws IOException |
Constant | getConstant (int index) |
Constant | getConstant (int index, byte tag) throws ClassFormatError |
Constant[] | getConstantPool () |
String | getConstantString (int index, byte tag) throws ClassFormatError |
int | getLength () |
void | setConstant (int index, Constant constant) |
void | setConstantPool (Constant[] constant_pool) |
String | toString () |
Private Methods | |
ConstantPool (DataInputStream file) throws IOException, ClassFormatError | |
ConstantPool (DataInputStream file) throws IOException, ClassFormatError | |
Static Private Methods | |
final String | escape (String str) |
final String | escape (String str) |
Private Attributes | |
int | constant_pool_count |
Constant[] | constant_pool |
Constant[] | constant_pool |
Definition at line 15 of file lib/jpf/de/fub/bytecode/classfile/ConstantPool.java.
|
Definition at line 22 of file lib/jpf/de/fub/bytecode/classfile/ConstantPool.java. |
|
Read constants from given file stream.
Definition at line 33 of file lib/jpf/de/fub/bytecode/classfile/ConstantPool.java. |
|
Definition at line 22 of file src/de/fub/bytecode/classfile/ConstantPool.java. |
|
Read constants from given file stream.
Definition at line 33 of file src/de/fub/bytecode/classfile/ConstantPool.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.
Definition at line 65 of file src/de/fub/bytecode/classfile/ConstantPool.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.
Definition at line 65 of file lib/jpf/de/fub/bytecode/classfile/ConstantPool.java. |
|
Resolve constant to a string representation.
Definition at line 88 of file src/de/fub/bytecode/classfile/ConstantPool.java. |
|
Retrieve constant at `index' from constant pool and resolve it to a string representation.
Definition at line 76 of file src/de/fub/bytecode/classfile/ConstantPool.java. |
|
Resolve constant to a string representation.
Definition at line 88 of file lib/jpf/de/fub/bytecode/classfile/ConstantPool.java. |
|
Retrieve constant at `index' from constant pool and resolve it to a string representation.
Definition at line 76 of file lib/jpf/de/fub/bytecode/classfile/ConstantPool.java. Referenced by CodeHTML::codeToHTML(), Utility::codeToString(), InvokeInstruction::toString(), FieldInstruction::toString(), and CPInstruction::toString().
|
|
Definition at line 138 of file src/de/fub/bytecode/classfile/ConstantPool.java. |
|
Definition at line 137 of file lib/jpf/de/fub/bytecode/classfile/ConstantPool.java. Referenced by JavaClass::copy().
|
|
Dump constant pool to file stream in binary format.
Definition at line 160 of file src/de/fub/bytecode/classfile/ConstantPool.java. |
|
Dump constant pool to file stream in binary format.
Definition at line 159 of file lib/jpf/de/fub/bytecode/classfile/ConstantPool.java. Referenced by JavaClass::dump().
|
|
Get constant from constant pool and check whether it has the expected type.
Definition at line 206 of file src/de/fub/bytecode/classfile/ConstantPool.java. |
|
Get constant from constant pool.
Definition at line 193 of file src/de/fub/bytecode/classfile/ConstantPool.java. |
|
Get constant from constant pool and check whether it has the expected type.
Definition at line 205 of file lib/jpf/de/fub/bytecode/classfile/ConstantPool.java. |
|
Get constant from constant pool.
Definition at line 192 of file lib/jpf/de/fub/bytecode/classfile/ConstantPool.java. Referenced by Unknown::Unknown(), CodeHTML::codeToHTML(), Utility::codeToString(), FieldOrMethod::getClassName(), LocalVariable::getName(), FieldOrMethod::getName(), PMGClass::getPMGClassName(), PMGClass::getPMGName(), Signature::getSignature(), LocalVariable::getSignature(), FieldOrMethod::getSignature(), SourceFile::getSourceFileName(), LDC2_W::getType(), LDC::getType(), ClassInfo::loadInterfaces(), Method::toString(), InvokeInstruction::toString(), InnerClass::toString(), CPInstruction::toString(), and ConstantValue::toString().
|
|
Definition at line 226 of file src/de/fub/bytecode/classfile/ConstantPool.java. |
|
Definition at line 225 of file lib/jpf/de/fub/bytecode/classfile/ConstantPool.java. Referenced by ConstantPoolGen::ConstantPoolGen().
|
|
Get string from constant pool and bypass the indirection of `ConstantClass' and `ConstantString' objects. I.e. these classes have an index field that points to another entry of the constant pool of type `ConstantUtf8' which contains the real data.
Definition at line 240 of file src/de/fub/bytecode/classfile/ConstantPool.java. |
|
Get string from constant pool and bypass the indirection of `ConstantClass' and `ConstantString' objects. I.e. these classes have an index field that points to another entry of the constant pool of type `ConstantUtf8' which contains the real data.
Definition at line 239 of file lib/jpf/de/fub/bytecode/classfile/ConstantPool.java. Referenced by JavaClass::JavaClass(), CodeHTML::codeToHTML(), FieldOrMethod::getClassName(), ExceptionTable::getExceptionNames(), CPInstruction::getType(), MethodInfo::loadExceptions(), Class2HTML::referenceClass(), InnerClass::toString(), ExceptionTable::toString(), and CodeException::toString().
|
|
Definition at line 270 of file src/de/fub/bytecode/classfile/ConstantPool.java. |
|
Definition at line 270 of file lib/jpf/de/fub/bytecode/classfile/ConstantPool.java. Referenced by JavaClass::toString().
|
|
Definition at line 277 of file src/de/fub/bytecode/classfile/ConstantPool.java. |
|
Definition at line 277 of file lib/jpf/de/fub/bytecode/classfile/ConstantPool.java. |
|
Definition at line 283 of file src/de/fub/bytecode/classfile/ConstantPool.java. |
|
Definition at line 283 of file lib/jpf/de/fub/bytecode/classfile/ConstantPool.java. |
|
Definition at line 290 of file src/de/fub/bytecode/classfile/ConstantPool.java. |
|
Definition at line 290 of file lib/jpf/de/fub/bytecode/classfile/ConstantPool.java. |