code: @Override
      public Mappings matchAll(final IAtomContainer target) {
  
          if (doPrep)
              prepare(target);
  
          // Note: Mappings is lazy, we can't reset aromaticity etc as the
          // substructure match may not have finished
          return pattern.matchAll(target);
      }
docs: Obtain the mappings of the query pattern against the target compound. Any
  initialisations required for the SMARTS match are automatically
  performed. The Daylight aromaticity model is applied clearing existing
  aromaticity. <b>Do not use this for matching multiple SMARTS againsts the
  same container</b>.
  
  <blockquote><pre>
  Pattern ptrn = SmartsPattern.create("O[C@?H](C)CC");
  int nUniqueHits = 0;
  
  for (IAtomContainer ac : acs) {
  nUniqueHits += ptrn.matchAll(ac)
  .countUnique();
  }
  </pre></blockquote>
  
  See {@link Mappings} for available methods.
  
  @param target the target compound in which we want to match the pattern
  @return mappings of the query to the target compound