Class BranchingConfigImpl

    • Field Detail

      • conditions

        protected ContainerConfig conditions
        A container with the conditions of the branch component.
    • Constructor Detail

      • BranchingConfigImpl

        public BranchingConfigImpl()
        Constructs a BranchingConfigImpl object
      • BranchingConfigImpl

        public BranchingConfigImpl​(java.lang.Object data)
        Constructs a BranchingConfigImpl object
        Parameters:
        data - TreeMap with config data
    • Method Detail

      • totalSize

        public int totalSize()
        Returns the total number of components in this Branch. This includes all components plus components in sub branches.
        Specified by:
        totalSize in interface BranchingConfig
        Returns:
        total number of components in this Branch
      • numberLoops

        public int numberLoops()
        Specified by:
        numberLoops in interface BranchingConfig
        Returns:
        The total number of LoopConfig items in this Branch and its child branches/loops. Since BranchingConfig also add an extra invisible EndBranch component we also count these.
      • setConditions

        public void setConditions​(ContainerConfig conditions)
        Set the conditions of the branch component.
        Parameters:
        conditions - A container with BranchCondition configurations.
      • getMatchAny

        public boolean getMatchAny()
        Specified by:
        getMatchAny in interface BranchingConfig
        Returns:
        The match any flag.
      • setMatchAny

        public void setMatchAny​(boolean matchAny)
        Sets the match any flag.
        Specified by:
        setMatchAny in interface BranchingConfig
        Parameters:
        matchAny - The value of the match any flag.
      • getBranchType

        public int getBranchType()
        Specified by:
        getBranchType in interface BranchingConfig
        Returns:
        The branch type (e.g. BRANCH_IF, BRANCH_ELSEIF, BRANCH_ELSE, BRANCH_SWITCH, BRANCH_CASE) Returns BRANCH_IF if the parameter is not set.
      • setBranchType

        public void setBranchType​(int type)
        Sets the branch type (e.g. BRANCH_IF, BRANCH_ELSEIF, BRANCH_ELSE, BRANCH_SWITCH, BRANCH_CASE).
        Specified by:
        setBranchType in interface BranchingConfig
        Parameters:
        type - The type of the branch component.