soot.baf.internal
Class AbstractBranchInst

java.lang.Object
  |
  +--soot.tagkit.AbstractHost
        |
        +--soot.AbstractUnit
              |
              +--soot.baf.internal.AbstractInst
                    |
                    +--soot.baf.internal.AbstractBranchInst
Direct Known Subclasses:
AbstractOpTypeBranchInst, BGotoInst, BIfEqInst, BIfGeInst, BIfGtInst, BIfLeInst, BIfLtInst, BIfNeInst, BIfNonNullInst, BIfNullInst

public abstract class AbstractBranchInst
extends AbstractInst

See Also:
Serialized Form

Fields inherited from class soot.AbstractUnit
emptyList
 
Method Summary
abstract  void apply(Switch sw)
          Called when this object is visited.
 boolean branches()
          Returns true if execution after this statement does not necessarily continue at the following statement.
abstract  java.lang.String getName()
           
 Unit getTarget()
           
 UnitBox getTargetBox()
           
 java.util.List getUnitBoxes()
          Returns a list of Boxes containing Units defined in this Unit; typically branch targets.
 void setTarget(Unit target)
           
 java.lang.String toString()
           
 void toString(UnitPrinter up)
           
 
Methods inherited from class soot.baf.internal.AbstractInst
clone, containsArrayRef, containsFieldRef, containsInvokeExpr, fallsThrough, getInCount, getInMachineCount, getNetCount, getNetMachineCount, getOutCount, getOutMachineCount, getParameters
 
Methods inherited from class soot.AbstractUnit
addBoxPointingToThis, clearUnitBoxes, getBoxesPointingToThis, getDefBoxes, getUseAndDefBoxes, getUseBoxes, 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
 

Method Detail

getName

public abstract java.lang.String getName()
Overrides:
getName in class AbstractInst

toString

public java.lang.String toString()
Overrides:
toString in class AbstractInst

toString

public void toString(UnitPrinter up)
Overrides:
toString in class AbstractInst

getTarget

public Unit getTarget()

setTarget

public void setTarget(Unit target)

getTargetBox

public UnitBox getTargetBox()

getUnitBoxes

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

apply

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

branches

public boolean branches()
Description copied from interface: Unit
Returns true if execution after this statement does not necessarily continue at the following statement. GotoStmt and IfStmt will both return true.
Overrides:
branches in class AbstractInst