com.cyc.tool.subl.jrtl.nativeCode.mapper
Class LoadMap

java.lang.Object
  extended by com.cyc.tool.subl.jrtl.nativeCode.mapper.LoadMap

public class LoadMap
extends java.lang.Object


Nested Class Summary
static class LoadMap.LoadMapEntry
           
 
Field Summary
static int MAJOR_VERSION
          the current version, as integers and as a version tuple
static int MINOR_VERSION
           
 
Method Summary
 Snapshot.SnapShootingListener getListener()
          Obtain a connector that gives modification access to this load map via the snap shooting listener interface.
 java.util.Iterator<LoadMap.LoadMapEntry> iterator()
           
static LoadMap load(java.io.InputStream in)
           
 java.lang.Long lookup(java.lang.String pkgName, java.lang.String symbolName)
          Resolve a symbol to its load map file position.
 SubLObject lookup(SubLSymbol symbol)
          Helper wrapper around lookup(String pkgName, String symbolName) that is more SubL-like in its data types expected.
static void main(java.lang.String[] args)
           
static LoadMap newLoadMap()
           
 void save(java.io.OutputStream out)
          Serialization method for the load map.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAJOR_VERSION

public static final int MAJOR_VERSION
the current version, as integers and as a version tuple

See Also:
Constant Field Values

MINOR_VERSION

public static final int MINOR_VERSION
See Also:
Constant Field Values
Method Detail

newLoadMap

public static LoadMap newLoadMap()

load

public static LoadMap load(java.io.InputStream in)
                    throws java.io.IOException
Throws:
java.io.IOException

getListener

public Snapshot.SnapShootingListener getListener()
Obtain a connector that gives modification access to this load map via the snap shooting listener interface.

Returns:
A snop shooting listener connected to this load map.
See Also:
Snapshot

save

public void save(java.io.OutputStream out)
          throws java.io.IOException
Serialization method for the load map.

Parameters:
out -
Throws:
java.io.IOException

lookup

public SubLObject lookup(SubLSymbol symbol)
Helper wrapper around lookup(String pkgName, String symbolName) that is more SubL-like in its data types expected.

Parameters:
symbol -
Returns:
either an NON-NEGATIVE-INTEGER-P for the file position or NIL if the entry was not found

lookup

public java.lang.Long lookup(java.lang.String pkgName,
                             java.lang.String symbolName)
Resolve a symbol to its load map file position.

Parameters:
pkgName - the name of the package under which the object was indexed
symbolName - the name of symbol under which the object was indexed
Returns:
the file position object

iterator

public java.util.Iterator<LoadMap.LoadMapEntry> iterator()

main

public static final void main(java.lang.String[] args)