org.checkerframework.checker.regex.RegexChecker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of checker Show documentation
Show all versions of checker Show documentation
The Checker Framework enhances Java's type system to
make it more powerful and useful. This lets software developers
detect and prevent errors in their Java programs.
The Checker Framework includes compiler plug-ins ("checkers")
that find bugs or verify their absence. It also permits you to
write your own compiler plug-ins.
package org.checkerframework.checker.regex;
import java.util.regex.MatchResult;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.checkerframework.checker.regex.qual.Regex;
import org.checkerframework.common.basetype.BaseTypeChecker;
import org.checkerframework.framework.qual.RelevantJavaTypes;
import org.checkerframework.framework.qual.StubFiles;
/**
* A type-checker plug-in for the {@link Regex} qualifier that finds syntactically invalid regular
* expressions.
*
* @checker_framework.manual #regex-checker Regex Checker
*/
@StubFiles("apache-xerces.astub")
@RelevantJavaTypes({
CharSequence.class,
// javax.swing.text.Segment.class
char.class,
Character.class,
Pattern.class,
Matcher.class,
MatchResult.class
})
public class RegexChecker extends BaseTypeChecker {}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy