Interface BranchingConfig

    • Field Detail

      • BRANCH_IF

        static final int BRANCH_IF
        BRANCH_IF - This is the pre 6.1 branching config
        See Also:
        Constant Field Values
      • BRANCH_ELSEIF

        static final int BRANCH_ELSEIF
        BRANCH_ELSEIF - This is an ELSE-IF branch with conditions
        See Also:
        Constant Field Values
      • BRANCH_ELSE

        static final int BRANCH_ELSE
        BRANCH_ELSE- The last part of an if/else sequence with no conditions
        See Also:
        Constant Field Values
      • BRANCH_SWITCH

        static final int BRANCH_SWITCH
        BRANCH_SWITCH - The container of a number of BRANCH_CASE objects
        See Also:
        Constant Field Values
      • BRANCH_CASE

        static final int BRANCH_CASE
        BRANCH_SWITCH - The child container of a BRANCH_SWITCH object
        See Also:
        Constant Field Values
    • Method Detail

      • totalSize

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

        int numberLoops()
        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.
      • getConditions

        ContainerConfig getConditions()
        Returns:
        The conditions container.
      • newCondition

        BranchCondition newCondition()
        Returns:
        A new populated condition config.
      • getMatchAny

        boolean getMatchAny()
        Returns:
        The match any flag.
      • setMatchAny

        void setMatchAny​(boolean matchAny)
        Sets the match any flag.
        Parameters:
        matchAny - The value of the match any flag.
      • getBranchType

        int getBranchType()
        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

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