Atom
  public
  
  
  
  interface
  Atom
  
  
  
| android.support.test.espresso.web.model.Atom<R> | 
|  Known Indirect Subclasses  SimpleAtom,TransformingAtom<I, O>
     | 
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<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
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
R transform (Evaluation evaluation)
Converts an Evaluation into another more suitable type.
| Parameters | |
|---|---|
| evaluation | Evaluation | 
| Returns | |
|---|---|
| R | |
