public class BlackHoleChannel extends
Mostly this channel is used with regular expression "\s++" to remove all whitespace characters. And in such case this channel should be the first one in a sequence of channels for performance reasons, because generally whitespace characters are encountered more often than all other and especially between others.
Constructor and Description |
---|
BlackHoleChannel(java.lang.String regexp) |
public boolean consume(CodeReader code, Lexer lexer)
Copyright © 2012 SonarSource. All Rights Reserved.