Package org.sonar.java.regex
Class RegexLexer
- java.lang.Object
-
- org.sonar.java.regex.RegexLexer
-
public class RegexLexer extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
EOF
-
Constructor Summary
Constructors Constructor Description RegexLexer(RegexSource source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
currentIs(char ch)
boolean
currentIs(String str)
JavaCharacter
getCurrent()
int
getCurrentChar()
IndexRange
getCurrentIndexRange()
int
getCurrentStartIndex()
boolean
getFreeSpacingMode()
boolean
hasComments()
boolean
isAtEnd()
boolean
isInQuotingMode()
boolean
isNotAtEnd()
int
lookAhead(int offset)
void
moveNext()
void
moveNext(int amount)
void
setFreeSpacingMode(boolean freeSpacingMode)
-
-
-
Field Detail
-
EOF
public static final int EOF
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RegexLexer
public RegexLexer(RegexSource source)
-
-
Method Detail
-
getFreeSpacingMode
public boolean getFreeSpacingMode()
-
setFreeSpacingMode
public void setFreeSpacingMode(boolean freeSpacingMode)
-
moveNext
public void moveNext(int amount)
-
moveNext
public void moveNext()
-
getCurrent
@Nonnull public JavaCharacter getCurrent()
-
getCurrentChar
public int getCurrentChar()
-
getCurrentIndexRange
public IndexRange getCurrentIndexRange()
-
getCurrentStartIndex
public int getCurrentStartIndex()
-
isAtEnd
public boolean isAtEnd()
-
isNotAtEnd
public boolean isNotAtEnd()
-
isInQuotingMode
public boolean isInQuotingMode()
-
currentIs
public boolean currentIs(char ch)
-
currentIs
public boolean currentIs(String str)
-
lookAhead
public int lookAhead(int offset)
-
hasComments
public boolean hasComments()
-
-