JVM
methods.h File Reference
#include <stdint.h>
#include "javaclass.h"
#include "attributes.h"
Include dependency graph for methods.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  method_info
 

Typedefs

typedef struct method_info method_info
 

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)
 

Typedef Documentation

§ method_info

typedef struct method_info method_info

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: