public SpanTermQuery(Term term){
  this.term=Objects.requireNonNull(term);
  this.termContext=null;
}

public SpanTermQuery ( Term term ) { this . term = Objects . requireNonNull ( term ) ; this . termContext = null ; }
construct a spantermquery matching the named term ' s spans .
