Class PhpStringCharacterParser
- java.lang.Object
-
- org.sonarsource.analyzer.commons.regex.php.PhpStringCharacterParser
-
- All Implemented Interfaces:
CharacterParser
public abstract class PhpStringCharacterParser extends Object implements CharacterParser
-
-
Field Summary
Fields Modifier and Type Field Description protected intindexprotected RegexSourcesource
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CharacterParserforDoubleQuotedString(RegexSource source)static CharacterParserforSingleQuotedString(RegexSource source)SourceCharactergetCurrent()booleanisAtEnd()voidmoveNext()voidresetTo(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.sonarsource.analyzer.commons.regex.CharacterParser
isNotAtEnd
-
-
-
-
Field Detail
-
source
protected final RegexSource source
-
index
protected int index
-
-
Method Detail
-
forSingleQuotedString
public static CharacterParser forSingleQuotedString(RegexSource source)
-
forDoubleQuotedString
public static CharacterParser forDoubleQuotedString(RegexSource source)
-
resetTo
public void resetTo(int index)
- Specified by:
resetToin interfaceCharacterParser
-
moveNext
public void moveNext()
- Specified by:
moveNextin interfaceCharacterParser
-
getCurrent
@Nonnull public SourceCharacter getCurrent()
- Specified by:
getCurrentin interfaceCharacterParser
-
isAtEnd
public boolean isAtEnd()
- Specified by:
isAtEndin interfaceCharacterParser
-
-