JVM
JavaVirtualMachine Struct Reference

A java virtual machine, storing all loaded classes, created objects and frames for methods being executed. More...

#include <jvm.h>

Collaboration diagram for JavaVirtualMachine:

Public Attributes

uint8_t status
 Status of the execution of the JVM, indicating whether there are errors or not. More...
 
uint8_t simulatingSystemAndStringClasses
 Boolean telling if the System/String classes are to be simulated instead of being loaded from their actual .class files. More...
 
ReferenceTableobjects
 Linked list of all objects that have been created during the execution of the JVM. More...
 
FrameStackframes
 Stack of all frames created by method calls. More...
 
LoadedClassesclasses
 Linked list containing all classes that have been resolved by the JVM. More...
 
char classPath [256]
 Path to look for files when opening classes. More...
 

Detailed Description

A java virtual machine, storing all loaded classes, created objects and frames for methods being executed.

See also
initJVM(), executeJVM(), deinitJVM()

Member Data Documentation

§ classes

LoadedClasses* JavaVirtualMachine::classes

Linked list containing all classes that have been resolved by the JVM.

§ classPath

char JavaVirtualMachine::classPath[256]

Path to look for files when opening classes.

If an attempt to open a class file in the current directory fails, then this classPath is used to build another directory to look for the class file.

§ frames

FrameStack* JavaVirtualMachine::frames

Stack of all frames created by method calls.

§ objects

ReferenceTable* JavaVirtualMachine::objects

Linked list of all objects that have been created during the execution of the JVM.

§ simulatingSystemAndStringClasses

uint8_t JavaVirtualMachine::simulatingSystemAndStringClasses

Boolean telling if the System/String classes are to be simulated instead of being loaded from their actual .class files.

Note
Currently it is always set to true, and the support for those classes is minimum.

§ status

uint8_t JavaVirtualMachine::status

Status of the execution of the JVM, indicating whether there are errors or not.


The documentation for this struct was generated from the following file: