org.sonar.java.ast.lexer
Class InlineCommentChannel

java.lang.Object
  extended by org.sonar.channel.Channel<com.sonar.sslr.impl.Lexer>
      extended by org.sonar.java.ast.lexer.InlineCommentChannel

public class InlineCommentChannel
extends org.sonar.channel.Channel<com.sonar.sslr.impl.Lexer>

An equivalent of CommentRegexpChannel with regular expression "//[^\n\r]*+". However provides better performance, since implemented without regular expression.


Constructor Summary
InlineCommentChannel()
           
 
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

InlineCommentChannel

public InlineCommentChannel()
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.