public final class

TransformingAtom

extends Object
implements Atom<R>
java.lang.Object
   ↳ android.support.test.espresso.web.model.TransformingAtom<I, O>

Class Overview

Decorates another atom and transforms its output to another type.

Summary

Nested Classes
interface TransformingAtom.Transformer<I, O> Converts input to output. 
Public Constructors
TransformingAtom(Atom<I> parent, Transformer<I, O> transformer)
Public Methods
List<? extends Object> getArguments(ElementReference elementContext)
Creates a list of arguments to pass to the script.
String getScript()
Provides the script to be evaluated.
O transform(Evaluation eval)
Converts an Evaluation into another more suitable type.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.support.test.espresso.web.model.Atom

Public Constructors

public TransformingAtom (Atom<I> parent, Transformer<I, O> transformer)

Public Methods

public 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 String getScript ()

Provides the script to be evaluated.

public O transform (Evaluation eval)

Converts an Evaluation into another more suitable type.