TransformingAtom
public final class TransformingAtom
extends Object
implements Atom<O>
java.lang.Object |
↳ |
android.support.test.espresso.web.model.TransformingAtom<I, O> |
装饰另一个原子并将其输出转换为另一种类型。
Summary
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
|
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)
创建传递给脚本的参数列表。
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 ()
提供要评估的脚本。
transform
O transform (Evaluation eval)
将评估转换为另一种更合适的类型。
Parameters |
eval |
Evaluation
|