org.sonar.java.ast.lexer
Class WhitespaceChannel
java.lang.Object
org.sonar.channel.Channel<com.sonar.sslr.impl.Lexer>
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.
|
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 |
WhitespaceChannel
public WhitespaceChannel()
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.