frysk.expr
Class ScratchSymTab

java.lang.Object
  extended by frysk.expr.ScratchSymTab
All Implemented Interfaces:
ExprSymTab

public class ScratchSymTab
extends Object
implements ExprSymTab


Constructor Summary
ScratchSymTab()
           
 
Method Summary
 void complete(String incomplete, List candidates)
          Complete the INCOMPLETE named object adding the completed names to CANDIDATES.
 ObjectDeclaration getObjectInScope(DebugInfoFrame frame, String s)
          Lookup S, assuming S is a variable.
 Type getType(Variable variable)
          Given a variable, return its type.
 Value getValue(String s)
          Lookup S, assuming S is variable or constant.
 Value getValue(Variable v)
          Return the variable's value.
 int getWordSize()
          Return the wordsize.
 ByteOrder order()
          The byte order to use when creating new values.
 ByteBuffer taskMemory()
          Return the task's memory buffer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScratchSymTab

public ScratchSymTab()
Method Detail

getValue

public Value getValue(String s)
Lookup S, assuming S is variable or constant.

Specified by:
getValue in interface ExprSymTab

getObjectInScope

public ObjectDeclaration getObjectInScope(DebugInfoFrame frame,
                                          String s)
Lookup S, assuming S is a variable.

Specified by:
getObjectInScope in interface ExprSymTab

order

public ByteOrder order()
The byte order to use when creating new values.

Specified by:
order in interface ExprSymTab

taskMemory

public ByteBuffer taskMemory()
Return the task's memory buffer

Specified by:
taskMemory in interface ExprSymTab

getValue

public Value getValue(Variable v)
Return the variable's value.


getType

public Type getType(Variable variable)
Given a variable, return its type.


getWordSize

public int getWordSize()
Return the wordsize.

Specified by:
getWordSize in interface ExprSymTab

complete

public void complete(String incomplete,
                     List candidates)
Description copied from interface: ExprSymTab
Complete the INCOMPLETE named object adding the completed names to CANDIDATES. Assuming a simple symtab containing: "argv", "argc", "main": complete "a" returns "argv" + "argc"; complete "main" returns "main"; and complete "bogus" returns . NB: The caller will append a space when there's only one completion so that "1+arg\t" expands to "1+argv ". NB: The caller will sort the list. XXX: This is subject to change without notice; for instance: s/List/Set/ (why jline used List I don't know); addition of a scope parameter; ...

Specified by:
complete in interface ExprSymTab