All Downloads are FREE. Search and download functionalities are using the official Maven repository.

regexcompiler.RegexCharacterClass Maven / Gradle / Ivy

Go to download

A tool to perform static analysis on regexes to determine whether they are vulnerable to ReDoS.

There is a newer version: 1.0.8
Show newest version
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