/
NikolayIvkin
/
sqlancer2
Обзор
Документация
Войти
/
NikolayIvkin
/
sqlancer2
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/sqlancer/mariadb/ast/MariaDBPostfixUnaryOperation.java
40 строк
1 KB
Manuel Rigger
Enforce the PMD FieldDeclarationsShouldBeAtStartOfClass rule
30 май 2020, 01:00
30 май 2020, 01:00
2a79d85
Код
Авторство
О чём код?
package sqlancer.mariadb.ast; import sqlancer.Randomly; public class MariaDBPostfixUnaryOperation extends MariaDBExpression { private MariaDBPostfixUnaryOperator operator; private MariaDBExpression randomWhereCondition; public MariaDBPostfixUnaryOperation(MariaDBPostfixUnaryOperator operator, MariaDBExpression randomWhereCondition) { this.operator = operator; this.randomWhereCondition = randomWhereCondition; } public enum MariaDBPostfixUnaryOperator { IS_TRUE("IS TRUE"), IS_FALSE("IS FALSE"), IS_NULL("IS NULL"), IS_NOT_NULL("IS NOT NULL"); private final String textRepr; MariaDBPostfixUnaryOperator(String textRepr) { this.textRepr = textRepr; } public String getTextRepresentation() { return textRepr; } public static MariaDBPostfixUnaryOperator getRandom() { return Randomly.fromOptions(values()); } } public MariaDBPostfixUnaryOperator getOperator() { return operator; } public MariaDBExpression getRandomWhereCondition() { return randomWhereCondition; } }