soot.jimple.internal
Class JAssignStmt

java.lang.Object
  extended bysoot.tagkit.AbstractHost
      extended bysoot.AbstractUnit
          extended bysoot.jimple.internal.AbstractStmt
              extended bysoot.jimple.internal.AbstractDefinitionStmt
                  extended bysoot.jimple.internal.JAssignStmt
All Implemented Interfaces:
AssignStmt, Context, ConvertToBaf, DefinitionStmt, Host, Serializable, Stmt, Switchable, Unit
Direct Known Subclasses:
GAssignStmt

public class JAssignStmt
extends AbstractDefinitionStmt
implements AssignStmt

See Also:
Serialized Form

Field Summary
 
Fields inherited from class soot.AbstractUnit
emptyList
 
Constructor Summary
protected JAssignStmt(ValueBox variableBox, ValueBox rvalueBox)
           
  JAssignStmt(Value variable, Value rvalue)
           
 
Method Summary
 void apply(Switch sw)
          Called when this object is visited.
 Object clone()
          Returns a deep clone of this object.
 boolean containsArrayRef()
           
 boolean containsFieldRef()
           
 boolean containsInvokeExpr()
           
 void convertToBaf(JimpleToBafContext context, List out)
           
 ArrayRef getArrayRef()
           
 ValueBox getArrayRefBox()
           
 FieldRef getFieldRef()
           
 ValueBox getFieldRefBox()
           
 InvokeExpr getInvokeExpr()
           
 ValueBox getInvokeExprBox()
           
 List getUnitBoxes()
          Returns a list of Boxes containing Units defined in this Unit; typically branch targets.
 void setLeftOp(Value variable)
           
 void setRightOp(Value rvalue)
           
 String toString()
           
 void toString(UnitPrinter up)
           
 
Methods inherited from class soot.jimple.internal.AbstractDefinitionStmt
branches, fallsThrough, getDefBoxes, getLeftOp, getLeftOpBox, getRightOp, getRightOpBox, getUseBoxes
 
Methods inherited from class soot.AbstractUnit
addBoxPointingToThis, clearUnitBoxes, getBoxesPointingToThis, getUseAndDefBoxes, redirectJumpsToThisTo, removeBoxPointingToThis
 
Methods inherited from class soot.tagkit.AbstractHost
addAllTagsOf, addTag, getTag, getTags, hasTag, removeAllTags, removeTag
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface soot.jimple.DefinitionStmt
getLeftOp, getLeftOpBox, getRightOp, getRightOpBox
 
Methods inherited from interface soot.Unit
addBoxPointingToThis, branches, clearUnitBoxes, fallsThrough, getBoxesPointingToThis, getDefBoxes, getUseAndDefBoxes, getUseBoxes, redirectJumpsToThisTo, removeBoxPointingToThis
 
Methods inherited from interface soot.tagkit.Host
addAllTagsOf, addTag, getTag, getTags, hasTag, removeAllTags, removeTag
 

Constructor Detail

JAssignStmt

public JAssignStmt(Value variable,
                   Value rvalue)

JAssignStmt

protected JAssignStmt(ValueBox variableBox,
                      ValueBox rvalueBox)
Method Detail

containsInvokeExpr

public boolean containsInvokeExpr()
Specified by:
containsInvokeExpr in interface Stmt
Overrides:
containsInvokeExpr in class AbstractStmt

getInvokeExpr

public InvokeExpr getInvokeExpr()
Specified by:
getInvokeExpr in interface Stmt
Overrides:
getInvokeExpr in class AbstractStmt

getInvokeExprBox

public ValueBox getInvokeExprBox()
Specified by:
getInvokeExprBox in interface Stmt
Overrides:
getInvokeExprBox in class AbstractStmt

containsArrayRef

public boolean containsArrayRef()
Specified by:
containsArrayRef in interface Stmt
Overrides:
containsArrayRef in class AbstractStmt

getArrayRef

public ArrayRef getArrayRef()
Specified by:
getArrayRef in interface Stmt
Overrides:
getArrayRef in class AbstractStmt

getArrayRefBox

public ValueBox getArrayRefBox()
Specified by:
getArrayRefBox in interface Stmt
Overrides:
getArrayRefBox in class AbstractStmt

containsFieldRef

public boolean containsFieldRef()
Specified by:
containsFieldRef in interface Stmt
Overrides:
containsFieldRef in class AbstractStmt

getFieldRef

public FieldRef getFieldRef()
Specified by:
getFieldRef in interface Stmt
Overrides:
getFieldRef in class AbstractStmt

getFieldRefBox

public ValueBox getFieldRefBox()
Specified by:
getFieldRefBox in interface Stmt
Overrides:
getFieldRefBox in class AbstractStmt

getUnitBoxes

public List getUnitBoxes()
Description copied from interface: Unit
Returns a list of Boxes containing Units defined in this Unit; typically branch targets.

Specified by:
getUnitBoxes in interface Unit
Overrides:
getUnitBoxes in class AbstractUnit

toString

public String toString()

toString

public void toString(UnitPrinter up)
Specified by:
toString in interface Stmt

clone

public Object clone()
Description copied from class: AbstractUnit
Returns a deep clone of this object.

Specified by:
clone in interface Unit
Specified by:
clone in class AbstractUnit

setLeftOp

public void setLeftOp(Value variable)
Specified by:
setLeftOp in interface AssignStmt

setRightOp

public void setRightOp(Value rvalue)
Specified by:
setRightOp in interface AssignStmt

apply

public void apply(Switch sw)
Description copied from interface: Switchable
Called when this object is visited.

Specified by:
apply in interface Switchable
Overrides:
apply in class AbstractUnit

convertToBaf

public void convertToBaf(JimpleToBafContext context,
                         List out)
Specified by:
convertToBaf in interface ConvertToBaf
Overrides:
convertToBaf in class AbstractStmt