edu.toronto.cs.yasm.pprogram
Class FunctionCallPStmt

java.lang.Object
  extended by edu.toronto.cs.yasm.pprogram.PStmt
      extended by edu.toronto.cs.yasm.pprogram.FunctionCallPStmt

public class FunctionCallPStmt
extends PStmt


Constructor Summary
FunctionCallPStmt(PFunctionDef parent, Block sourceBlock)
           
FunctionCallPStmt(PFunctionDef parent, Expr sourceExpr)
           
FunctionCallPStmt(PFunctionDef parent, Expr callExpr, Expr _returnVarExpr)
           
 
Method Summary
 Block getArgumentsBlock()
           
 Expr getArgumentsExpr()
           
 int getCallIndex()
           
 Expr getFullArgumentsExpr()
          Returns a CILListOp.LIST Expr beginning with the return index value, followed by the argument values.
 PFunctionDef getFunctionDef()
           
 java.lang.String getFunctionName()
           
 int getLineNum()
          Returns line number of this statement, or -1 if the line number is unknown.
 PStmt getLogues()
           
 java.lang.String getResultVarName()
           
 Expr getReturnVar()
           
 void printMe(java.io.PrintWriter out)
           
 void setFunctionDef(PFunctionDef v)
           
 void setLogues(PStmt _logues)
           
 
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
 

Constructor Detail

FunctionCallPStmt

public FunctionCallPStmt(PFunctionDef parent,
                         Block sourceBlock)

FunctionCallPStmt

public FunctionCallPStmt(PFunctionDef parent,
                         Expr sourceExpr)

FunctionCallPStmt

public FunctionCallPStmt(PFunctionDef parent,
                         Expr callExpr,
                         Expr _returnVarExpr)
Method Detail

getFunctionName

public java.lang.String getFunctionName()

getResultVarName

public java.lang.String getResultVarName()

getReturnVar

public Expr getReturnVar()

getArgumentsBlock

public Block getArgumentsBlock()

getArgumentsExpr

public Expr getArgumentsExpr()

getFullArgumentsExpr

public Expr getFullArgumentsExpr()
Returns a CILListOp.LIST Expr beginning with the return index value, followed by the argument values.

Returns:

getCallIndex

public int getCallIndex()

setLogues

public void setLogues(PStmt _logues)

getLogues

public PStmt getLogues()

setFunctionDef

public void setFunctionDef(PFunctionDef v)

getFunctionDef

public PFunctionDef getFunctionDef()

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