dk.brics.string.flow
Class Node

java.lang.Object
  extended by dk.brics.string.flow.Node
All Implemented Interfaces:
Comparable<Node>
Direct Known Subclasses:
AssignmentNode, BinaryNode, ConcatenationNode, InitializationNode, UnaryNode

public abstract class Node
extends Object
implements Comparable<Node>

Superclass for flow graph nodes. A node represent a definition (a variable or expression).


Method Summary
 int compareTo(Node n)
           
 int getIndex()
          Returns the index of this node.
 Set<Use> getUses()
          Returns set of Use objects representing uses of this definition.
 boolean isTaint()
           
 void setTaint(boolean taint)
           
 String toString()
          Returns name of this node.
abstract  void visitBy(NodeVisitor v)
          Visitor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

compareTo

public int compareTo(Node n)
Specified by:
compareTo in interface Comparable<Node>

getIndex

public int getIndex()
Returns the index of this node.


getUses

public Set<Use> getUses()
Returns set of Use objects representing uses of this definition.


isTaint

public boolean isTaint()

setTaint

public void setTaint(boolean taint)

toString

public String toString()
Returns name of this node.

Overrides:
toString in class Object

visitBy

public abstract void visitBy(NodeVisitor v)
Visitor.



Copyright © 2003-2009 Anders Møller, Aske Simon Christensen, Asger Feldthaus.