dk.brics.xact.analysis.flowgraph
Class Variable

java.lang.Object
  extended by dk.brics.xact.analysis.flowgraph.Variable

public class Variable
extends Object

A program variable, used in a flow graph.


Constructor Summary
Variable(int id, boolean global)
          Constructs a new variable object with no type annotation.
 
Method Summary
 int getID()
          Returns the variable ID number.
 boolean isGlobal()
          Returns true if this is a field (or global dummy) variable.
 void setGlobal()
          Marks this variable as being global.
 String toString()
          Returns a name for the variable useful for printing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Variable

public Variable(int id,
                boolean global)
Constructs a new variable object with no type annotation.

Method Detail

getID

public int getID()
Returns the variable ID number.


isGlobal

public boolean isGlobal()
Returns true if this is a field (or global dummy) variable.


setGlobal

public void setGlobal()
Marks this variable as being global.


toString

public String toString()
Returns a name for the variable useful for printing. 'g' means "global", 'l' means "local", 'a' means "array".

Overrides:
toString in class Object


Copyright © 2005-2011 Aarhus University.