public interface

Atom

android.support.test.espresso.web.model.Atom<R>
Known Indirect Subclasses

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<? 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.

Public Methods

public abstract List<? extends Object> getArguments (ElementReference elementContext)

Creates a list of arguments to pass to the script.

Parameters
elementContext null unless an ElementReference has been supplied to execute this atom with.
Returns
  • the List of objects to pass to the script as arguments.

public abstract String getScript ()

Provides the script to be evaluated.

public abstract R transform (Evaluation evaluation)

Converts an Evaluation into another more suitable type.