Package org.sonar.java.regex.ast
Class AbstractRegexSyntaxElement
- java.lang.Object
-
- org.sonar.java.regex.ast.AbstractRegexSyntaxElement
-
- All Implemented Interfaces:
RegexSyntaxElement
- Direct Known Subclasses:
CharacterClassIntersectionTree,CharacterClassUnionTree,CharacterRangeTree,JavaCharacter,OpeningQuote,Quantifier,RegexToken,RegexTree
public abstract class AbstractRegexSyntaxElement extends Object implements RegexSyntaxElement
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractRegexSyntaxElement(RegexSource source, IndexRange range)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Location>getLocations()IndexRangegetRange()RegexSourcegetSource()StringgetText()
-
-
-
Constructor Detail
-
AbstractRegexSyntaxElement
protected AbstractRegexSyntaxElement(RegexSource source, IndexRange range)
-
-
Method Detail
-
getLocations
public List<Location> getLocations()
- Specified by:
getLocationsin interfaceRegexSyntaxElement
-
getText
public String getText()
- Specified by:
getTextin interfaceRegexSyntaxElement
-
getRange
public IndexRange getRange()
- Specified by:
getRangein interfaceRegexSyntaxElement
-
getSource
public RegexSource getSource()
- Specified by:
getSourcein interfaceRegexSyntaxElement
-
-