soot.baf.internal
Class AbstractBranchInst

java.lang.Object
  |
  +--soot.tagkit.AbstractHost
        |
        +--soot.AbstractUnit
              |
              +--soot.baf.internal.AbstractInst
                    |
                    +--soot.baf.internal.AbstractBranchInst
All Implemented Interfaces:
Host, Inst, java.io.Serializable, Switchable, Unit
Direct Known Subclasses:
AbstractOpTypeBranchInst, BGotoInst, BIfEqInst, BIfGeInst, BIfGtInst, BIfLeInst, BIfLtInst, BIfNeInst, BIfNonNullInst, BIfNullInst

public abstract class AbstractBranchInst
extends AbstractInst

See Also:
Serialized Form

Field Summary
 
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 is not 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)
           
protected  java.lang.String toString(boolean isBrief, java.util.Map unitToName, java.lang.String indentation)
          Returns a textual representation of this object, with the given briefness, Map and indentation.
 
Methods inherited from class soot.baf.internal.AbstractInst
clone, fallsThrough, getInCount, getInMachineCount, getNetCount, getNetMachineCount, getOutCount, getOutMachineCount
 
Methods inherited from class soot.AbstractUnit
getBoxesPointingToThis, getDefBoxes, getUseAndDefBoxes, getUseBoxes, redirectJumpsToThisTo, toBriefString, toBriefString, toBriefString, toBriefString, toString, toString, toString, toString
 
Methods inherited from class soot.tagkit.AbstractHost
addTag, getTag, getTags, hasTag, removeTag
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface soot.baf.Inst
toBriefString, toBriefString, toBriefString, toBriefString, toString, toString, toString, toString
 
Methods inherited from interface soot.Unit
getBoxesPointingToThis, getDefBoxes, getUseAndDefBoxes, getUseBoxes, redirectJumpsToThisTo
 
Methods inherited from interface soot.tagkit.Host
addTag, getTag, getTags, hasTag, removeTag
 

Method Detail

getName

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

toString

protected java.lang.String toString(boolean isBrief,
                                    java.util.Map unitToName,
                                    java.lang.String indentation)
Description copied from class: AbstractUnit
Returns a textual representation of this object, with the given briefness, Map and indentation.

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.

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

apply

public abstract 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

branches

public boolean branches()
Description copied from interface: Unit
Returns true if execution after this statement is not the following statement.

Specified by:
branches in interface Unit
Overrides:
branches in class AbstractInst