frysk.expr
Class TestbedSymTab

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

 class TestbedSymTab
extends Object
implements ExprSymTab


Field Summary
private  Value arr
           
private  byte[] arrayBuf
           
private  ScratchLocation arrayScratch
           
private  Type arrayType
           
private  byte[] buf
           
private  Value c1
           
private  Type classType
           
private  SourceLocation scratchSourceLocation
           
private  HashMap symtab
           
 
Constructor Summary
TestbedSymTab()
           
 
Method Summary
 void complete(String incomplete, List candidates)
          Complete the INCOMPLETE named object adding the completed names to CANDIDATES.
private static ArrayList dims()
           
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scratchSourceLocation

private final SourceLocation scratchSourceLocation

classType

private Type classType

buf

private byte[] buf

c1

private Value c1

arrayType

private Type arrayType

arrayBuf

private byte[] arrayBuf

arrayScratch

private ScratchLocation arrayScratch

arr

private Value arr

symtab

private HashMap symtab
Constructor Detail

TestbedSymTab

TestbedSymTab()
Method Detail

dims

private static ArrayList dims()

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