public interface

Atom

androidx.test.espresso.web.model.Atom<R>
Known Indirect Subclasses
SimpleAtom A simple implementation of Atom suitable for subclassing. 
TransformingAtom<I, O> Decorates another atom and transforms its output to another type. 

Class Overview

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.

Summary

Public Methods
abstract List<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.

Public Methods

public abstract List<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<Object> the List of objects to pass to the script as arguments.

public abstract String getScript ()

Provides the script to be evaluated.

Returns
String

public abstract R transform (Evaluation evaluation)

Converts an Evaluation into another more suitable type.

Parameters
evaluation Evaluation
Returns
R