edu.toronto.cs.yasm.pprogram
Class IfPStmt
java.lang.Object
edu.toronto.cs.yasm.pprogram.PStmt
edu.toronto.cs.yasm.pprogram.IfPStmt
- Direct Known Subclasses:
- WhilePStmt
public class IfPStmt
- extends PStmt
IfPStmt.java
Created: Fri Jun 25 14:25:25 2004
- Version:
- 1.0
- Author:
- Kelvin Ku
Methods inherited from class edu.toronto.cs.yasm.pprogram.PStmt |
exprFac, getDest, getId, getLabel, getLast, getNext, getParent, getPProgram, getRefinerInfo, getSourceBlock, getSourceExpr, print, print, printMe, setDest, setId, setLabel, setNext, setParent, setRefinerInfo, setSourceBlock, setTail, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IfPStmt
public IfPStmt(PFunctionDef parent,
Block sourceBlock,
PCond _cond,
PStmt _thenStmt,
PStmt _elseStmt)
IfPStmt
public IfPStmt(PFunctionDef parent,
Expr sourceExpr,
PCond _cond,
PStmt _thenStmt,
PStmt _elseStmt)
getThenStmt
public PStmt getThenStmt()
setThenStmt
public void setThenStmt(PStmt _thenStmt)
getElseStmt
public PStmt getElseStmt()
setElseStmt
public void setElseStmt(PStmt _elseStmt)
getCond
public PCond getCond()
setCond
public void setCond(PCond _cond)
getThenGoto
public GotoPStmt getThenGoto()
getElseGoto
public GotoPStmt getElseGoto()
getExitGoto
public GotoPStmt getExitGoto()
printMe
public void printMe(java.io.PrintWriter out)
- Overrides:
printMe
in class PStmt
getLineNum
public int getLineNum()
- Description copied from class:
PStmt
- Returns line number of this statement, or -1 if the line number is
unknown.
- Overrides:
getLineNum
in class PStmt
- Returns:
- an
int
value