public
interface
Atom
android.support.test.espresso.web.model.Atom<R> |
![]()
SimpleAtom,
TransformingAtom<I, O>
|
An Atom is a thin wrapper around javascript. The wrapped script can return a value or be a statement. The Atom can supply positional arguments to pass to the wrapped script. The Atom knows how to transform the result of the evaluation of the script into a higher level object.
Public methods | |
---|---|
abstract
List<? extends Object>
|
getArguments(ElementReference elementContext)
Creates a list of arguments to pass to the script. |
abstract
String
|
getScript()
Provides the script to be evaluated. |
abstract
R
|
transform(Evaluation evaluation)
Converts an Evaluation into another more suitable type. |
List<? extends Object> getArguments (ElementReference elementContext)
Creates a list of arguments to pass to the script.
Parameters | |
---|---|
elementContext |
ElementReference :
null unless an ElementReference has been supplied to execute this atom
with. |
Returns | |
---|---|
List<? extends Object> |
the List of objects to pass to the script as arguments. |
String getScript ()
Provides the script to be evaluated.
Returns | |
---|---|
String |
R transform (Evaluation evaluation)
Converts an Evaluation into another more suitable type.
Parameters | |
---|---|
evaluation |
Evaluation
|
Returns | |
---|---|
R |