lejos.nxt
Class VM.VMImage

java.lang.Object
  extended by lejos.nxt.VM.VMClone
      extended by lejos.nxt.VM.VMImage
Enclosing class:
VM

public final class VM.VMImage
extends VM.VMClone

The image header for the currently active program.


Field Summary
 short constantTableOffset
           
 short constantValuesOffset
           
 short entryClassesOffset
           
 byte lastClass
           
 short magicNumber
           
 short numConstants
           
 byte numEntryClasses
           
 short numStaticFields
           
 short runtimeOptions
           
 short staticFieldsOffset
           
 short staticStateLength
           
 
Method Summary
 int getImageBase()
          Get the base address for the current image, useful when converting real address to relative ones.
 VM.VMClasses getVMClasses()
          Return an object that can be used to access all of the available class structures.
 VM.VMConstants getVMConstants()
          Return an object that can be used to access all of the available constant values.
 VM.VMStaticFields getVMStaticFields()
          Return an object that can be used to access all of the static fields.
 
Methods inherited from class lejos.nxt.VM.VMClone
update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

magicNumber

public short magicNumber

constantTableOffset

public short constantTableOffset

constantValuesOffset

public short constantValuesOffset

numConstants

public short numConstants

staticFieldsOffset

public short staticFieldsOffset

staticStateLength

public short staticStateLength

numStaticFields

public short numStaticFields

entryClassesOffset

public short entryClassesOffset

numEntryClasses

public byte numEntryClasses

lastClass

public byte lastClass

runtimeOptions

public short runtimeOptions
Method Detail

getVMClasses

public VM.VMClasses getVMClasses()
Return an object that can be used to access all of the available class structures.

Returns:
Class access object

getVMConstants

public VM.VMConstants getVMConstants()
Return an object that can be used to access all of the available constant values.

Returns:
Constant access object

getVMStaticFields

public VM.VMStaticFields getVMStaticFields()
Return an object that can be used to access all of the static fields.

Returns:
Field access object

getImageBase

public int getImageBase()
Get the base address for the current image, useful when converting real address to relative ones.

Returns:
the base address for the current image.