/
NikolayIvkin
/
sqlancer2
Обзор
Документация
Войти
/
NikolayIvkin
/
sqlancer2
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/sqlancer/common/gen/ExpressionGenerator.java
32 строки
736 B
Manuel Rigger
Introduce a new sqlancer.common package
13 авг 2020, 00:31
13 авг 2020, 00:31
cb1ba25
Код
Авторство
О чём код?
package sqlancer.common.gen; public interface ExpressionGenerator<E> { /** * Generates a boolean predicate. * * @return an expression that can be used in a boolean context. */ E generatePredicate(); /** * Negates a predicate (i.e., uses a NOT operator). * * @param predicate * the boolean predicate. * * @return the negated predicate. */ E negatePredicate(E predicate); /** * Checks if an expression evaluates to NULL (i.e., implements the IS NULL operator). * * @param expr * the expression * * @return an expression that checks whether the expression evaluates to NULL. */ E isNull(E expr); }