Summary: Nested Classes | Ctors | Methods | Inherited Methods | [Expand All]

# TransformingAtom

`public final class TransformingAtom`
`extends Object` `implements Atom<O>`

java.lang.Object
↳ | android.support.test.espresso.web.model.TransformingAtom<I, O>

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.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()`
`boolean` | `equals(Object arg0)`
`void` | `finalize()`
`final Class<?>` | `getClass()`
`int` | `hashCode()`
`final void` | `notify()`
`final void` | `notifyAll()`
`String` | `toString()`
`final void` | `wait(long arg0, int arg1)`
`final void` | `wait(long arg0)`
`final void` | `wait()`
From interface `android.support.test.espresso.web.model.Atom`
`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 O` | `transform(Evaluation evaluation)` Converts an Evaluation into another more suitable type.

## Public constructors

### TransformingAtom

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

Parameters
`parent` | `Atom`
`transformer` | `Transformer`

## Public methods

### getArguments

    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.

### getScript

    String getScript ()

Provides the script to be evaluated.

Returns
`String` |

### transform

    O transform (Evaluation eval)

Converts an Evaluation into another more suitable type.

Parameters
`eval` | `Evaluation`

Returns
`O` |

- ## Interfaces

  - Atom
  - JSONAble
  - JSONAble.DeJSONFactory
  - TransformingAtom.Transformer

- ## Classes

  - Atoms
  - ElementReference
  - Evaluation
  - ModelCodec
  - SimpleAtom
  - TransformingAtom
  - WindowReference

- ## Enums

  - SimpleAtom.ElementReferencePlacement