org.sonar.java.ast.lexer
Class WhitespaceChannel

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

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

An equivalent of BlackHoleChannel with regular expression "\s++". However provides better performance, since implemented without regular expression.


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

Constructor Detail

WhitespaceChannel

public WhitespaceChannel()
Method Detail

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 © 2012 SonarSource. All Rights Reserved.