public class ActionStackElement extends Object
backController
object in the PAATEvalVisitor
class. Encodes waits, if
necessary (this is the raison d'etre for the class - otherwise, we could model these elements as integers).Constructor and Description |
---|
ActionStackElement()
Constructor for standard Action Stack element with no wait component to the action.
|
ActionStackElement(Action action) |
ActionStackElement(long waitTime)
Constructor for Action Stack element with a wait component to the action
|
Modifier and Type | Method and Description |
---|---|
Action |
getAction() |
int |
getBackNumber()
returns the number of back actions currently associated with this element
|
long |
getWait()
returns the wait associated with this action
|
boolean |
hasWait()
returns if there is a wait associated with this action
|
ActionStackElement |
increment()
Used when the current action is skipped and the previous action is returned (preserving the action requires a new
element on the stack).
|
public ActionStackElement()
public ActionStackElement(long waitTime)
waitTime
- the amount of time to wait (in seconds)public ActionStackElement(Action action)
action
- public ActionStackElement increment()
public int getBackNumber()
public long getWait()
public boolean hasWait()
true
if there is a wait associated with this action, false
otherwisepublic Action getAction()
Copyright © 2020 OXPath Team. All rights reserved.