Package 

Class AtomProxy

  • All Implemented Interfaces:
    androidx.test.espresso.web.model.Atom

    
    public final class AtomProxy<T extends Object>
     implements Atom<T>
                        

    The proxy-wrapper of Atom for watcher interceptors calls.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Atom<T> atom
      private final Matcher<?> matcher
    • Method Summary

      Modifier and Type Method Description
      List<Any> getArguments(ElementReference elementContext) Simply calls Atom.getArguments on wrapped atom.
      T transform(Evaluation evaluation) Calls watcher interceptors before Atom.transform on wrapped atom is called.
      String getScript() Simply calls Atom.getScript on wrapped atom.
      final Atom<T> getAtom()
      final Matcher<?> getMatcher()
      • Methods inherited from class androidx.test.espresso.web.model.Atom

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getArguments

         List<Any> getArguments(ElementReference elementContext)

        Simply calls Atom.getArguments on wrapped atom.

        Parameters:
        elementContext - null unless an ElementReference has been supplied to interact this atom with.
      • transform

         T transform(Evaluation evaluation)

        Calls watcher interceptors before Atom.transform on wrapped atom is called.

        Parameters:
        evaluation - represents the results of a Javascript execution.