Class ClosestAbruptTargetFinder

  • All Implemented Interfaces:
    Analysis

    public class ClosestAbruptTargetFinder
    extends DepthFirstAdapter
    This class has been created because we need the immediate target of a implicit break/continue statement i.e. a break/continue statement which does not break/continue a particular label explicitly. Notice that this is only allowed for while do while, unconditional loop for loop switch construct. Notice continue is not allowed for switch also Explicit breaks can on the other hand break any label (that on a construct) which we are not worried about in this analysis