Class CommandList

    • Constructor Detail

      • CommandList

        public CommandList()
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Returns true if this list contains no elements.
        Returns:
        true if this list contains no elements.
      • size

        public int size()
        Returns the number of elements in this list. If this list contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.
        Returns:
        the number of elements in this list.
      • add

        public boolean add​(ICommand command)
        Add command.
        Parameters:
        command - command.
        Returns:
        true if this collection changed as a result of the call. (for keeping compatibility)
      • indexOf

        public int indexOf​(Object key)
        Get index by label or command.
        Parameters:
        key - label string or ICommand object.
        Returns:
        index or -1.
      • iterator

        public CommandListIterator iterator​(CommandListIterator parentIterator)
        Create the iterator of this command list.
        Parameters:
        parentIterator - parent iterator.
        Returns:
        iterator.
      • evalCurArgs

        protected void evalCurArgs​(Context context,
                                   String[] curArgs)
      • execute

        public Result execute​(Context context,
                              CommandResultList cresultList)
        Execute command list.
        Parameters:
        context - Selenese Runner context.
        cresultList - command result list for keeping all command results.
        Returns:
        result of command list execution.