Package soot

Class AbstractUnitBox

    • Field Detail

      • unit

        protected Unit unit
    • Constructor Detail

      • AbstractUnitBox

        public AbstractUnitBox()
    • Method Detail

      • isBranchTarget

        public boolean isBranchTarget()
        Description copied from interface: UnitBox
        Returns true if the UnitBox is holding a Unit that is the target of a branch (ie a Unit at the beginning of a CFG block). This is the default case.

        Returns false if the UnitBox is holding a Unit that indicates the end of a CFG block and may require specialised processing for SSA.

        Specified by:
        isBranchTarget in interface UnitBox
      • setUnit

        public void setUnit​(Unit unit)
        Description copied from interface: UnitBox
        Sets this box to contain the given unit. Subject to canContainValue() checks.
        Specified by:
        setUnit in interface UnitBox
      • getUnit

        public Unit getUnit()
        Description copied from interface: UnitBox
        Returns the unit contained within this box.
        Specified by:
        getUnit in interface UnitBox