edu.toronto.cs.yasm.pprogram
Class GotoPStmt

java.lang.Object
  extended by edu.toronto.cs.yasm.pprogram.PStmt
      extended by 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

Constructor Summary
GotoPStmt()
           
GotoPStmt(PFunctionDef parent, Block sourceBlock)
           
GotoPStmt(PFunctionDef parent, Expr sourceExpr)
           
GotoPStmt(PStmt _dest)
           
GotoPStmt(java.lang.String _targetLabel)
           
 
Method Summary
 PStmt getDest()
           
 int getLineNum()
          Returns line number of this statement, or -1 if the line number is unknown.
 java.lang.String getTargetLabel()
           
 void printMe(java.io.PrintWriter out)
           
 void setDest(PStmt v)
           
 void setTargetLabel(java.lang.String _targetLabel)
           
 
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
 

Constructor Detail

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)
Method Detail

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