Package org.sonar.python.regex
Class PythonStringCharacterParser
- java.lang.Object
-
- org.sonar.python.regex.PythonStringCharacterParser
-
- All Implemented Interfaces:
org.sonarsource.analyzer.commons.regex.CharacterParser
public class PythonStringCharacterParser extends Object implements org.sonarsource.analyzer.commons.regex.CharacterParser
-
-
Field Summary
Fields Modifier and Type Field Description protected intindexprotected PythonAnalyzerRegexSourcesource
-
Constructor Summary
Constructors Constructor Description PythonStringCharacterParser(PythonAnalyzerRegexSource source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.sonarsource.analyzer.commons.regex.ast.SourceCharactergetCurrent()booleanisAtEnd()voidmoveNext()voidresetTo(int index)
-
-
-
Field Detail
-
source
protected final PythonAnalyzerRegexSource source
-
index
protected int index
-
-
Constructor Detail
-
PythonStringCharacterParser
public PythonStringCharacterParser(PythonAnalyzerRegexSource source)
-
-
Method Detail
-
moveNext
public void moveNext()
- Specified by:
moveNextin interfaceorg.sonarsource.analyzer.commons.regex.CharacterParser
-
getCurrent
public org.sonarsource.analyzer.commons.regex.ast.SourceCharacter getCurrent()
- Specified by:
getCurrentin interfaceorg.sonarsource.analyzer.commons.regex.CharacterParser
-
isAtEnd
public boolean isAtEnd()
- Specified by:
isAtEndin interfaceorg.sonarsource.analyzer.commons.regex.CharacterParser
-
resetTo
public void resetTo(int index)
- Specified by:
resetToin interfaceorg.sonarsource.analyzer.commons.regex.CharacterParser
-
-