
regexcompiler.RegexCountClosureOperator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of regex-static-analysis Show documentation
Show all versions of regex-static-analysis Show documentation
A tool to perform static analysis on regexes to determine whether they are vulnerable to ReDoS.
package regexcompiler;
public class RegexCountClosureOperator extends RegexQuantifiableOperator {
private int low;
public int getLow() {
return low;
}
private int high;
public int getHigh() {
return high;
}
public RegexCountClosureOperator(int low, int high, QuantifierType quantifierType, int index) {
super(OperatorType.COUNT_CLOSURE, quantifierType, index);
this.low = low;
this.high = high;
}
@Override
public String toString() {
return "{" + low + "," + high + "}" + getQuantifierType().toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy