The Meta-Environment API

nl.cwi.sen1.tide.adapters.gdb
Class RetrieveVarCmd

java.lang.Object
  extended by nl.cwi.sen1.tide.adapters.gdb.Command
      extended by nl.cwi.sen1.tide.adapters.gdb.RetrieveVarCmd

public class RetrieveVarCmd
extends Command


Field Summary
private  int end
           
private  java.lang.String error
           
private  int linenr
           
(package private) static java.util.regex.Pattern patternVar
           
private  int pos
           
private static java.util.List<java.lang.String> reservedKeywords
           
private  int start
           
private  java.lang.String value
           
private  java.lang.String var
           
 
Fields inherited from class nl.cwi.sen1.tide.adapters.gdb.Command
adapter
 
Constructor Summary
RetrieveVarCmd(GdbAdapter adapter, aterm.ATerm file, aterm.ATerm offset, aterm.ATerm line, aterm.ATerm col, aterm.ATerm text)
           
 
Method Summary
 java.lang.String command()
           
 java.lang.String getError()
           
 aterm.ATerm getValue()
           
private static boolean isReserved(java.lang.String name)
           
private  java.lang.String locateVariableInLine(aterm.ATerm text)
           
 boolean response(java.lang.String line)
           
 
Methods inherited from class nl.cwi.sen1.tide.adapters.gdb.Command
debugMsg, getFactory, isCompleted, setCompleted, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

patternVar

static java.util.regex.Pattern patternVar

var

private java.lang.String var

start

private int start

end

private int end

pos

private int pos

linenr

private int linenr

value

private java.lang.String value

error

private java.lang.String error

reservedKeywords

private static java.util.List<java.lang.String> reservedKeywords
Constructor Detail

RetrieveVarCmd

public RetrieveVarCmd(GdbAdapter adapter,
                      aterm.ATerm file,
                      aterm.ATerm offset,
                      aterm.ATerm line,
                      aterm.ATerm col,
                      aterm.ATerm text)
Method Detail

locateVariableInLine

private java.lang.String locateVariableInLine(aterm.ATerm text)

isReserved

private static boolean isReserved(java.lang.String name)

command

public java.lang.String command()
Specified by:
command in class Command

response

public boolean response(java.lang.String line)
Specified by:
response in class Command

getError

public java.lang.String getError()

getValue

public aterm.ATerm getValue()

The Meta-Environment API