Package org.sonar.sslr.channel
Class ChannelDispatcher.Builder
- java.lang.Object
-
- org.sonar.sslr.channel.ChannelDispatcher.Builder
-
- Enclosing class:
- ChannelDispatcher<O>
public static final class ChannelDispatcher.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelDispatcher.Builder
addChannel(Channel channel)
ChannelDispatcher.Builder
addChannels(Channel... c)
<O> ChannelDispatcher<O>
build()
ChannelDispatcher.Builder
failIfNoChannelToConsumeOneCharacter()
If this option is activated, an IllegalStateException will be thrown as soon as a character won't be consumed by any channel.
-
-
-
Method Detail
-
addChannel
public ChannelDispatcher.Builder addChannel(Channel channel)
-
addChannels
public ChannelDispatcher.Builder addChannels(Channel... c)
-
failIfNoChannelToConsumeOneCharacter
public ChannelDispatcher.Builder failIfNoChannelToConsumeOneCharacter()
If this option is activated, an IllegalStateException will be thrown as soon as a character won't be consumed by any channel.
-
build
public <O> ChannelDispatcher<O> build()
-
-