|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zmpp.vm.DefaultDictionary
public class DefaultDictionary
This class implements a view on the dictionary within a memory map.
Constructor Summary | |
---|---|
DefaultDictionary(MemoryReadAccess map,
int address)
Constructor. |
Method Summary | |
---|---|
int |
getEntryAddress(int entryNum)
Returns the entry address at the specified position. |
int |
getEntryLength()
Returns the length of a dictionary entry. |
int |
getNumberOfEntries()
Returns the number of dictionary entries. |
int |
getNumberOfSeparators()
Returns the number of separators. |
byte |
getSeparator(int i)
Returns the separator at position i as a ZSCII character. |
int |
lookup(String token)
Looks up a string in the dictionary. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDictionary(MemoryReadAccess map, int address)
map
- the memory mapaddress
- the start address of the dictionaryMethod Detail |
---|
public int getNumberOfSeparators()
getNumberOfSeparators
in interface Dictionary
public byte getSeparator(int i)
getSeparator
in interface Dictionary
i
- the separator number, zero-based
public int getEntryLength()
getEntryLength
in interface Dictionary
public int getNumberOfEntries()
getNumberOfEntries
in interface Dictionary
public int getEntryAddress(int entryNum)
getEntryAddress
in interface Dictionary
entryNum
- entry number between (0 - getNumberOfEntries() - 1)
public int lookup(String token)
lookup
in interface Dictionary
token
- a token
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |