cfg
Class RefParamInst

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

public class RefParamInst
extends ParamInst

A class representing a three-address code reference parameter instruction (RefParamInst). A reference parameter instruction consists of a source value representing the reference (implicit) parameter expression (inherited from ParamInst). From TACInst it also inherits an opcode (REFPARAM).

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
RefParamInst(java.lang.String source)
          RefParamInst 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

RefParamInst

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

Parameters:
source - source operand holding value of the reference (implicit) 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.