All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.pitest.sequence.QueryStart Maven / Gradle / Ivy

There is a newer version: 1.17.1
Show newest version
package org.pitest.sequence;

import org.pitest.sequence.SequenceQuery.Literal;
import org.pitest.sequence.SequenceQuery.Repeat;

/**
 * Start point for building sequence queries
 *
 * @param  type of sequence
 */
public class QueryStart {

  public static  SequenceQuery match(Match p) {
    return new SequenceQuery<>(new Literal<>(p));
  }

  public static  SequenceQuery any(Class clazz) {
    final Match p = Match.always();
    return new SequenceQuery<>(new Repeat<>(new Literal<>(p)));
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy