Package org.sonar.javascript.lexer
Class JavaScriptRegexpChannel
- java.lang.Object
-
- org.sonar.sslr.channel.Channel<com.sonar.sslr.impl.Lexer>
-
- org.sonar.javascript.lexer.JavaScriptRegexpChannel
-
public class JavaScriptRegexpChannel extends org.sonar.sslr.channel.Channel<com.sonar.sslr.impl.Lexer>Provides a heuristic to guess whether a forward slash starts a regular expression. http://stackoverflow.com/questions/7936593/finding-regular-expression-literals-in-a-string-of-javascript-code
-
-
Field Summary
Fields Modifier and Type Field Description static StringREGULAR_EXPRESSION
-
Constructor Summary
Constructors Constructor Description JavaScriptRegexpChannel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanconsume(org.sonar.sslr.channel.CodeReader code, com.sonar.sslr.impl.Lexer output)
-
-
-
Field Detail
-
REGULAR_EXPRESSION
public static final String REGULAR_EXPRESSION
- See Also:
- Constant Field Values
-
-