org.sonar.java.ast.lexer
Class JavaIdentifierAndKeywordChannel
java.lang.Object
org.sonar.channel.Channel<com.sonar.sslr.impl.Lexer>
org.sonar.java.ast.lexer.JavaIdentifierAndKeywordChannel
public class JavaIdentifierAndKeywordChannel
- extends org.sonar.channel.Channel<com.sonar.sslr.impl.Lexer>
An equivalent of IdentifierAndKeywordChannel with regular expression "\p{javaJavaIdentifierStart}++\p{javaJavaIdentifierPart}*+".
However provides better performance, since implemented without regular expression.
|
Method Summary |
boolean |
consume(org.sonar.channel.CodeReader code,
com.sonar.sslr.impl.Lexer lexer)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaIdentifierAndKeywordChannel
public JavaIdentifierAndKeywordChannel(com.sonar.sslr.api.TokenType[]... keywordSets)
consume
public boolean consume(org.sonar.channel.CodeReader code,
com.sonar.sslr.impl.Lexer lexer)
- Specified by:
consume in class org.sonar.channel.Channel<com.sonar.sslr.impl.Lexer>
Copyright © 2012 SonarSource. All Rights Reserved.