Package org.sonar.java.regex.ast
Class RegexSource
- java.lang.Object
-
- org.sonar.java.regex.ast.RegexSource
-
public class RegexSource extends Object
The source code of a regular expression, made up out of 1 or more string literals
-
-
Constructor Summary
Constructors Constructor Description RegexSource(List<LiteralTree> stringLiterals)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSourceText()
List<LiteralTree>
getStringLiterals()
int
length()
List<Location>
locationsFor(int beginningOffset, int endingOffset)
List<Location>
locationsFor(IndexRange range)
String
substringAt(IndexRange range)
-
-
-
Constructor Detail
-
RegexSource
public RegexSource(List<LiteralTree> stringLiterals)
-
-
Method Detail
-
substringAt
public String substringAt(IndexRange range)
-
getSourceText
public String getSourceText()
-
length
public int length()
-
getStringLiterals
public List<LiteralTree> getStringLiterals()
-
locationsFor
public List<Location> locationsFor(IndexRange range)
-
-