Package org.sonar.java.regex
Class JavaRegexSource
- java.lang.Object
-
- org.sonar.java.regex.JavaRegexSource
-
- All Implemented Interfaces:
RegexSource
public class JavaRegexSource extends Object implements RegexSource
-
-
Constructor Summary
Constructors Constructor Description JavaRegexSource(List<LiteralTree> stringLiterals)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CharacterParser
createCharacterParser()
RegexDialect
dialect()
String
getSourceText()
List<AnalyzerMessage.TextSpan>
textSpansFor(IndexRange range)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.sonar.java.regex.RegexSource
createLexer, length, substringAt
-
-
-
-
Constructor Detail
-
JavaRegexSource
public JavaRegexSource(List<LiteralTree> stringLiterals)
-
-
Method Detail
-
getSourceText
public String getSourceText()
- Specified by:
getSourceText
in interfaceRegexSource
-
textSpansFor
public List<AnalyzerMessage.TextSpan> textSpansFor(IndexRange range)
-
createCharacterParser
public CharacterParser createCharacterParser()
- Specified by:
createCharacterParser
in interfaceRegexSource
-
dialect
public RegexDialect dialect()
- Specified by:
dialect
in interfaceRegexSource
-
-