cfg
Class StdParamInst

java.lang.Object
  extended by cfg.TACInst
      extended by cfg.ParamInst
          extended by cfg.StdParamInst

public class StdParamInst
extends ParamInst

A class representing a three-address code parameter instruction (StdParamInst). A standardf parameter instruction consists of a source value representing the actual parameter expression (inherited from ParamInst). From TACInst it also inherits an opcode (STDPARAM).

Author:
Marc Corliss and Lori Pietraszek

Field Summary
 
Fields inherited from class cfg.ParamInst
paramType, source
 
Fields inherited from class cfg.TACInst
BINADD, BINAND, BINDIV, BINMOD, BINMUL, BINOR, BINSUB, comments, DIRCALL, ERRPARAM, IF, INDIRCALL, LDADDR, LDCONST, LDENTRY, LDVAR, NUM_INSN_TYPES, opcode, PHI, REFPARAM, RETN, STDPARAM, STENTRY, UNNEG, UNNOT
 
Constructor Summary
StdParamInst(java.lang.String source)
          StdParamInst constructor
 
Method Summary
<ReturnType,ArgumentType>
ReturnType
accept(TACInstVisitor<ReturnType,ArgumentType> visitor, ArgumentType o)
          Abstract visitor method.
 
Methods inherited from class cfg.ParamInst
equals, getParamType, getSource, getString, setSource
 
Methods inherited from class cfg.TACInst
addComment, checkBoolConst, checkConst, checkIntConst, checkLabel, checkStrConst, checkVar, getBinaryOpcode, getComments, getOp, getOpcode, getUnaryOpcode, isBinary, isCall, isIf, isLoad, isParam, isReturn, isStore, isUnary, isValidID, removeComments, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StdParamInst

public StdParamInst(java.lang.String source)
StdParamInst constructor

Parameters:
source - source value representing the actual parameter expression
Method Detail

accept

public <ReturnType,ArgumentType> ReturnType accept(TACInstVisitor<ReturnType,ArgumentType> visitor,
                                                   ArgumentType o)
Description copied from class: TACInst
Abstract visitor method.

Specified by:
accept in class TACInst
Parameters:
visitor - TACInstVisitor.
o - Data to pass down.
Returns:
return value of visitor.