Package org.sonar.java.checks.helpers
Class SimplifiedRegexCharacterClass
java.lang.Object
org.sonar.java.checks.helpers.SimplifiedRegexCharacterClass
-
Constructor Summary
ConstructorsConstructorDescriptionSimplifiedRegexCharacterClass(org.sonarsource.analyzer.commons.regex.ast.CharacterClassElementTree tree)SimplifiedRegexCharacterClass(org.sonarsource.analyzer.commons.regex.ast.DotTree tree) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(org.sonarsource.analyzer.commons.regex.ast.CharacterClassElementTree tree)voidadd(org.sonarsource.analyzer.commons.regex.ast.DotTree tree)voidaddRange(int from, int to, org.sonarsource.analyzer.commons.regex.ast.RegexSyntaxElement tree)List<org.sonarsource.analyzer.commons.regex.ast.RegexSyntaxElement>booleanintersects(SimplifiedRegexCharacterClass that, boolean defaultAnswer)booleanisEmpty()booleanof(org.sonarsource.analyzer.commons.regex.ast.AutomatonState tree)booleansupersetOf(SimplifiedRegexCharacterClass that, boolean defaultAnswer)
-
Constructor Details
-
SimplifiedRegexCharacterClass
public SimplifiedRegexCharacterClass() -
SimplifiedRegexCharacterClass
public SimplifiedRegexCharacterClass(org.sonarsource.analyzer.commons.regex.ast.CharacterClassElementTree tree) -
SimplifiedRegexCharacterClass
public SimplifiedRegexCharacterClass(org.sonarsource.analyzer.commons.regex.ast.DotTree tree)
-
-
Method Details
-
of
@Nullable public static SimplifiedRegexCharacterClass of(org.sonarsource.analyzer.commons.regex.ast.AutomatonState tree) -
isEmpty
public boolean isEmpty() -
add
public void add(org.sonarsource.analyzer.commons.regex.ast.CharacterClassElementTree tree) -
add
public void add(org.sonarsource.analyzer.commons.regex.ast.DotTree tree) -
matchesAnyCharacter
public boolean matchesAnyCharacter() -
intersects
-
findIntersections
public List<org.sonarsource.analyzer.commons.regex.ast.RegexSyntaxElement> findIntersections(SimplifiedRegexCharacterClass that) -
supersetOf
-
addRange
public void addRange(int from, int to, org.sonarsource.analyzer.commons.regex.ast.RegexSyntaxElement tree)
-