TransformingAtom
public 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<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 | |
---|---|
![]() java.lang.Object | |
![]() android.support.test.espresso.web.model.Atom |
Public constructors
TransformingAtom
TransformingAtom (Atom<I> parent, Transformer<I, O> transformer)
Parameters | |
---|---|
parent | Atom |
transformer | Transformer |
Public methods
getArguments
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. |
transform
O transform (Evaluation eval)
Converts an Evaluation into another more suitable type.
Parameters | |
---|---|
eval | Evaluation |
Returns | |
---|---|
O |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]