org.pitest.sequence.QueryStart Maven / Gradle / Ivy
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)));
}
}