Package eu.bandm.tools.lexic
Class LookaheadTokenMultiplexer<K,D,T,L>
java.lang.Object
eu.bandm.tools.lexic.LookaheadTokenMultiplexer<K,D,T,L>
- All Implemented Interfaces:
LookaheadTokenSource<D,
,T, L> Supplier<Token<D,
T>>
public class LookaheadTokenMultiplexer<K,D,T,L>
extends Object
implements LookaheadTokenSource<D,T,L>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget()
Clear the internal lookahead buffer and return its contents.void
void
takeOverLookahead
(L lookaheadData) Fill the internal lookahead buffer with data.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.bandm.tools.lexic.LookaheadTokenSource
forgetLookahead, removeTypes, removeTypes
-
Constructor Details
-
LookaheadTokenMultiplexer
-
-
Method Details
-
put
-
getCurrentKey
-
getCurrentChannel
-
select
-
get
-
relinquishLookahead
Description copied from interface:LookaheadTokenSource
Clear the internal lookahead buffer and return its contents.- Specified by:
relinquishLookahead
in interfaceLookaheadTokenSource<K,
D, T> - Returns:
- the former contents of the internal lookahead buffer
-
takeOverLookahead
Description copied from interface:LookaheadTokenSource
Fill the internal lookahead buffer with data.The buffer must be empty before this method is invoked. After return, the given data will be consumed from the buffer before the usual input is considered.
- Specified by:
takeOverLookahead
in interfaceLookaheadTokenSource<K,
D, T> - Parameters:
lookaheadData
- the lookahead data to fill in
-