Package org.sonar.java.regex
Class JavaCharacterParser
- java.lang.Object
-
- org.sonar.java.regex.JavaCharacterParser
-
- All Implemented Interfaces:
CharacterParser
public class JavaCharacterParser extends Object implements CharacterParser
Parse the contents of string literals and provide the individual characters of the string after processing escape sequences
-
-
Constructor Summary
Constructors Constructor Description JavaCharacterParser(RegexSource source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceCharacter
getCurrent()
boolean
isAtEnd()
void
moveNext()
void
resetTo(int index)
-
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.CharacterParser
isNotAtEnd
-
-
-
-
Constructor Detail
-
JavaCharacterParser
public JavaCharacterParser(RegexSource source)
-
-
Method Detail
-
resetTo
public void resetTo(int index)
- Specified by:
resetTo
in interfaceCharacterParser
-
moveNext
public void moveNext()
- Specified by:
moveNext
in interfaceCharacterParser
-
getCurrent
@Nonnull public SourceCharacter getCurrent()
- Specified by:
getCurrent
in interfaceCharacterParser
-
isAtEnd
public boolean isAtEnd()
- Specified by:
isAtEnd
in interfaceCharacterParser
-
-