soot.jimple.internal
Class JAssignStmt

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

public class JAssignStmt
extends AbstractDefinitionStmt
implements AssignStmt

See Also:
Serialized Form

Field Summary
 
Fields inherited from class soot.jimple.internal.AbstractDefinitionStmt
leftBox, rightBox
 
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)
          Used to implement the Switchable construct.
 Object clone()
          Returns a deep clone of this object.
 boolean containsArrayRef()
           
 boolean containsFieldRef()
           
 boolean containsInvokeExpr()
           
 void convertToBaf(JimpleToBafContext context, List<Unit> 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 class: AbstractUnit
Returns a list of Boxes containing Units defined in this Unit; typically branch targets. The list of boxes is dynamically updated as the structure changes.

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

toString

public String toString()
Overrides:
toString in class Object

toString

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

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 class: AbstractUnit
Used to implement the Switchable construct.

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

convertToBaf

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