|
JVM
|


Go to the source code of this file.
Classes | |
| struct | cp_info |
Typedefs | |
| typedef struct cp_info | cp_info |
Enumerations | |
| enum | ConstantPoolTag { CONSTANT_Class = 7, CONSTANT_Fieldref = 9, CONSTANT_Methodref = 10, CONSTANT_InterfaceMethodref = 11, CONSTANT_String = 8, CONSTANT_Integer = 3, CONSTANT_Float = 4, CONSTANT_Long = 5, CONSTANT_Double = 6, CONSTANT_NameAndType = 12, CONSTANT_Utf8 = 1, CONSTANT_MethodHandle = 15, CONSTANT_MethodType = 16, CONSTANT_InvokeDynamic = 18 } |
Functions | |
| const char * | decodeTag (uint8_t tag) |
| Decodes ConstantPoolTag enumeration elements. More... | |
| char | readConstantPoolEntry (JavaClass *jc, cp_info *entry) |
| Reads a cp_info from the file. More... | |
| void | printConstantPool (JavaClass *jc) |
| Function to print all the constants from the constant pool of the class file. More... | |
| enum ConstantPoolTag |
| const char* decodeTag | ( | uint8_t | tag | ) |
Decodes ConstantPoolTag enumeration elements.
| uint8_t | tag - identifier of the enumeration to be translated. |

| void printConstantPool | ( | JavaClass * | jc | ) |
Reads a cp_info from the file.
This function identifies the structure indicated by the tag byte and selects the corresponding reading type
| JavaClass* | jc - pointer to the structure to be read. |
| cp_info* | entry - where the data read is written |

