frysk.scopes
Class Variable

java.lang.Object
  extended by frysk.scopes.Variable
All Implemented Interfaces:
ObjectDeclaration
Direct Known Subclasses:
Enumerator

public class Variable
extends Object
implements ObjectDeclaration

This class contains the static information corresponding to a language variable. Given a Frame it is possible to get a Value corresponding to this Variable


Field Summary
private static Log fine
           
private static Log finest
           
private  LocationExpression locationExpression
           
private  String name
           
private  SourceLocation sourceLocation
           
private  Type type
           
private  DwarfDie variableDie
           
 
Constructor Summary
Variable(DwarfDie variableDie)
           
 
Method Summary
 int getColumnNumber()
           
 long getLineNumber()
           
 String getName()
          Return the variable's name.
 SourceLocation getSourceLocation()
           
 Type getType(ISA isa)
           
 Value getValue(DebugInfoFrame frame)
           
 DwarfDie getVariableDie()
           
 void printLineCol(PrintWriter printWriter)
           
 void printValue(PrintWriter printWriter, DebugInfoFrame frame)
           
 void toPrint(PrintWriter printWriter, DebugInfoFrame frame)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fine

private static Log fine

finest

private static Log finest

type

private Type type

variableDie

private final DwarfDie variableDie

name

private final String name

locationExpression

private final LocationExpression locationExpression

sourceLocation

private SourceLocation sourceLocation
Constructor Detail

Variable

public Variable(DwarfDie variableDie)
Method Detail

getVariableDie

public DwarfDie getVariableDie()

getName

public String getName()
Return the variable's name.

Specified by:
getName in interface ObjectDeclaration

getType

public Type getType(ISA isa)
Specified by:
getType in interface ObjectDeclaration

getLineNumber

public long getLineNumber()

getColumnNumber

public int getColumnNumber()

toPrint

public void toPrint(PrintWriter printWriter,
                    DebugInfoFrame frame)

printValue

public void printValue(PrintWriter printWriter,
                       DebugInfoFrame frame)

printLineCol

public void printLineCol(PrintWriter printWriter)

getValue

public Value getValue(DebugInfoFrame frame)
Specified by:
getValue in interface ObjectDeclaration

getSourceLocation

public SourceLocation getSourceLocation()
Specified by:
getSourceLocation in interface ObjectDeclaration