
regexcompiler.RegexCharacterClass 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 RegexCharacterClass extends RegexSubexpression {
public RegexCharacterClass(String subexpressionContent, int index) {
super(subexpressionContent, index);
}
@Override
public SubexpressionType getSubexpressionType() {
return SubexpressionType.CHARACTER_CLASS;
}
@Override
public String toString() {
return '[' + getSubexpressionContent() + ']';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy