org.sonar.java.ast.lexer
Class JavaIdentifierAndKeywordChannel

java.lang.Object
  extended by org.sonar.channel.Channel<com.sonar.sslr.impl.Lexer>
      extended by 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.


Constructor Summary
JavaIdentifierAndKeywordChannel(com.sonar.sslr.api.TokenType[]... keywordSets)
           
 
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
 

Constructor Detail

JavaIdentifierAndKeywordChannel

public JavaIdentifierAndKeywordChannel(com.sonar.sslr.api.TokenType[]... keywordSets)
Method Detail

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.