Package soot

Class AbstractUnit

    • Field Detail

      • boxesPointingToThis

        protected List<UnitBox> boxesPointingToThis
        List of UnitBoxes pointing to this Unit.
    • Constructor Detail

      • AbstractUnit

        public AbstractUnit()
    • Method Detail

      • clone

        public abstract Object clone()
        Returns a deep clone of this object.
        Specified by:
        clone in interface Unit
        Overrides:
        clone in class Object
      • getUseBoxes

        public List<ValueBox> getUseBoxes()
        Returns a list of Boxes containing Values used in this Unit. The list of boxes is dynamically updated as the structure changes. Note that they are returned in usual evaluation order. (this is important for aggregation)
        Specified by:
        getUseBoxes in interface Unit
      • getDefBoxes

        public List<ValueBox> getDefBoxes()
        Returns a list of Boxes containing Values defined in this Unit. The list of boxes is dynamically updated as the structure changes.
        Specified by:
        getDefBoxes in interface Unit
      • getUnitBoxes

        public List<UnitBox> getUnitBoxes()
        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
      • addBoxPointingToThis

        public void addBoxPointingToThis​(UnitBox b)
        Description copied from interface: Unit
        Adds a box to the list returned by getBoxesPointingToThis.
        Specified by:
        addBoxPointingToThis in interface Unit
      • removeBoxPointingToThis

        public void removeBoxPointingToThis​(UnitBox b)
        Description copied from interface: Unit
        Removes a box from the list returned by getBoxesPointingToThis.
        Specified by:
        removeBoxPointingToThis in interface Unit
      • clearUnitBoxes

        public void clearUnitBoxes()
        Description copied from interface: Unit
        Clears any pointers to and from this Unit's UnitBoxes.
        Specified by:
        clearUnitBoxes in interface Unit
      • getUseAndDefBoxes

        public List<ValueBox> getUseAndDefBoxes()
        Returns a list of ValueBoxes, either used or defined in this Unit.
        Specified by:
        getUseAndDefBoxes in interface Unit
      • apply

        public void apply​(Switch sw)
        Used to implement the Switchable construct.
        Specified by:
        apply in interface Switchable