JVM
methods.c File Reference
#include "methods.h"
#include "readfunctions.h"
#include "validity.h"
#include "utf8.h"
#include "string.h"
#include "debugging.h"
Include dependency graph for methods.c:

Functions

char readMethod (JavaClass *jc, method_info *entry)
 Reads a method_info from the file. More...
 
void freeMethodAttributes (method_info *entry)
 Releases attributes used by the method_info struct. More...
 
void printMethods (JavaClass *jc)
 Function to print all methods of the class file. More...
 
method_infogetMethodMatching (JavaClass *jc, const uint8_t *name, int32_t name_len, const uint8_t *descriptor, int32_t descriptor_len, uint16_t flag_mask)
 

Function Documentation

§ freeMethodAttributes()

void freeMethodAttributes ( method_info entry)

Releases attributes used by the method_info struct.

Parameters
method_info*entry - pointer to the method_info that contains the attributes
Note
This function does not free the *entry pointer, just attributes
Here is the call graph for this function:
Here is the caller graph for this function:

§ getMethodMatching()

method_info* getMethodMatching ( JavaClass jc,
const uint8_t *  name,
int32_t  name_len,
const uint8_t *  descriptor,
int32_t  descriptor_len,
uint16_t  flag_mask 
)
Here is the call graph for this function:
Here is the caller graph for this function:

§ printMethods()

void printMethods ( JavaClass jc)

Function to print all methods of the class file.

Parameters
JavaClass*jc - pointer to JavaClass structure that must already be loaded
Here is the call graph for this function:
Here is the caller graph for this function:

§ readMethod()

char readMethod ( JavaClass jc,
method_info entry 
)

Reads a method_info from the file.

Parameters
JavaClass*jc - pointer to the structure to be read.
method_info*entry - where the data read is written
Returns
char - retuns 0 if something unexpected happened or failure, 1 in case of success
Here is the call graph for this function:
Here is the caller graph for this function: