Package jp.vmi.selenium.selenese.command
Class CommandList
- java.lang.Object
-
- jp.vmi.selenium.selenese.command.CommandList
-
-
Constructor Summary
Constructors Constructor Description CommandList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(ICommand command)Add command.protected ResultdoCommand(Context context, ICommand command, String... curArgs)protected voidevalCurArgs(Context context, String[] curArgs)Resultexecute(Context context, CommandResultList cresultList)Execute command list.intindexOf(Object key)Get index by label or command.booleanisEmpty()Returnstrueif this list contains no elements.CommandListIteratoriterator()CommandListIteratoriterator(CommandListIterator parentIterator)Create the iterator of this command list.protected ListIterator<ICommand>originalListIterator(int index)Original list iterator.intsize()Returns the number of elements in this list.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
Returnstrueif this list contains no elements.- Returns:
trueif this list contains no elements.
-
size
public int size()
Returns the number of elements in this list. If this list contains more thanInteger.MAX_VALUEelements, returnsInteger.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.
-
originalListIterator
protected ListIterator<ICommand> originalListIterator(int index)
Original list iterator. seeArrayList.listIterator(int)- Parameters:
index- start index.- Returns:
- ListIterator.
-
iterator
public CommandListIterator iterator()
-
iterator
public CommandListIterator iterator(CommandListIterator parentIterator)
Create the iterator of this command list.- Parameters:
parentIterator- parent iterator.- Returns:
- iterator.
-
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.
-
-