edu.toronto.cs.yasm.pprogram
Class GotoPStmt
java.lang.Object
edu.toronto.cs.yasm.pprogram.PStmt
edu.toronto.cs.yasm.pprogram.GotoPStmt
- Direct Known Subclasses:
- BreakPStmt
public class GotoPStmt
- extends PStmt
GotoPStmt.java
Created: Fri Jun 25 14:22:38 2004
- Version:
- 1.0
- Author:
- Kelvin Ku
Methods inherited from class edu.toronto.cs.yasm.pprogram.PStmt |
exprFac, getId, getLabel, getLast, getNext, getParent, getPProgram, getRefinerInfo, getSourceBlock, getSourceExpr, print, print, printMe, 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 |
GotoPStmt
public GotoPStmt()
GotoPStmt
public GotoPStmt(PFunctionDef parent,
Block sourceBlock)
GotoPStmt
public GotoPStmt(PFunctionDef parent,
Expr sourceExpr)
GotoPStmt
public GotoPStmt(PStmt _dest)
GotoPStmt
public GotoPStmt(java.lang.String _targetLabel)
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
getTargetLabel
public java.lang.String getTargetLabel()
setTargetLabel
public void setTargetLabel(java.lang.String _targetLabel)
getDest
public PStmt getDest()
- Overrides:
getDest
in class PStmt
setDest
public void setDest(PStmt v)
- Overrides:
setDest
in class PStmt
printMe
public void printMe(java.io.PrintWriter out)
- Overrides:
printMe
in class PStmt