edu.toronto.cs.yasm.pprogram
Class PStmt

java.lang.Object
  extended by edu.toronto.cs.yasm.pprogram.PStmt
Direct Known Subclasses:
AsmtPStmt, FunctionCallPStmt, GotoPStmt, IfPStmt, NDGotoPStmt, ParallelAsgnPStmt, PrllAsmtPStmt, ReturnSelectorPStmt, SkipPStmt

public class PStmt
extends java.lang.Object

PStmt.java A statement of a PProgram Created: Fri Jun 25 14:17:56 2004

Version:
1.0
Author:
Kelvin Ku

Constructor Summary
PStmt()
           
PStmt(Block _sourceBlock)
           
PStmt(Expr _sourceExpr)
           
PStmt(PFunctionDef _parent, Block _sourceBlock)
           
PStmt(PFunctionDef _parent, Expr _sourceExpr)
           
 
Method Summary
 ExprFactory exprFac()
           
 PStmt getDest()
           
 int getId()
           
 java.lang.String getLabel()
           
 PStmt getLast()
           
 int getLineNum()
          Returns line number of this statement, or -1 if the line number is unknown.
 PStmt getNext()
           
 PFunctionDef getParent()
           
 PProgram getPProgram()
           
 java.lang.Object getRefinerInfo()
           
 Block getSourceBlock()
           
 Expr getSourceExpr()
           
 void print()
           
 void print(java.io.PrintWriter out)
           
 void printMe()
           
 void printMe(java.io.PrintWriter out)
           
 void setDest(PStmt v)
           
 void setId(int v)
           
 void setLabel(java.lang.String _label)
           
 void setNext(PStmt _next)
           
 void setParent(PFunctionDef v)
           
 void setRefinerInfo(java.lang.Object v)
           
 void setSourceBlock(Block _sourceBlock)
           
 void setTail(PStmt tail)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PStmt

public PStmt()

PStmt

public PStmt(Block _sourceBlock)

PStmt

public PStmt(Expr _sourceExpr)

PStmt

public PStmt(PFunctionDef _parent,
             Block _sourceBlock)

PStmt

public PStmt(PFunctionDef _parent,
             Expr _sourceExpr)
Method Detail

getId

public int getId()

setId

public void setId(int v)

getNext

public PStmt getNext()

setNext

public void setNext(PStmt _next)

setDest

public void setDest(PStmt v)

getDest

public PStmt getDest()

setTail

public void setTail(PStmt tail)

getLast

public PStmt getLast()

setLabel

public void setLabel(java.lang.String _label)

getLabel

public java.lang.String getLabel()

getSourceBlock

public Block getSourceBlock()

getSourceExpr

public Expr getSourceExpr()

setSourceBlock

public void setSourceBlock(Block _sourceBlock)

print

public void print(java.io.PrintWriter out)

print

public void print()

printMe

public void printMe()

printMe

public void printMe(java.io.PrintWriter out)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getRefinerInfo

public java.lang.Object getRefinerInfo()

setRefinerInfo

public void setRefinerInfo(java.lang.Object v)

getParent

public PFunctionDef getParent()

getPProgram

public PProgram getPProgram()

exprFac

public ExprFactory exprFac()

setParent

public void setParent(PFunctionDef v)

getLineNum

public int getLineNum()
Returns line number of this statement, or -1 if the line number is unknown.

Returns:
an int value