edu.toronto.cs.yasm.pprogram
Class PStmt
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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)
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