org.sonar.javascript.lexer
Class EcmaScriptRegexpChannel
java.lang.Object
org.sonar.channel.Channel<com.sonar.sslr.impl.Lexer>
org.sonar.javascript.lexer.EcmaScriptRegexpChannel
public class EcmaScriptRegexpChannel
- extends org.sonar.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
|
Method Summary |
boolean |
consume(org.sonar.channel.CodeReader code,
com.sonar.sslr.impl.Lexer output)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REGULAR_EXPRESSION
public static final String REGULAR_EXPRESSION
- See Also:
- Constant Field Values
EcmaScriptRegexpChannel
public EcmaScriptRegexpChannel()
consume
public boolean consume(org.sonar.channel.CodeReader code,
com.sonar.sslr.impl.Lexer output)
- Specified by:
consume in class org.sonar.channel.Channel<com.sonar.sslr.impl.Lexer>
Copyright © 2011-2014 SonarSource and Eriks Nukis. All Rights Reserved.