@Override public Object get(int index) { Token tok = (Token) super.get(index); // adjust only tokens in the 'future', as we wont change the channel of previously parsed // tokens int current = p; if (firstMarker != -1) current = firstMarker; if (hiddenTokens != null && tok.getType() >= Token.MIN_TOKEN_TYPE && index >= current) tok.setChannel(hiddenTokens.get(tok.getType()) ? Token.HIDDEN_CHANNEL : Token.DEFAULT_CHANNEL); return tok; }
public void emitAs(Token token, int type, int channel) { if (token==null) return ; token.setType(type); token.setChannel(channel); emit(token); } public Token nextToken() {
@Override protected void sync(int i) { super.sync(i); if ( hide.contains(get(i).getType()) ) get(i).setChannel(Token.HIDDEN_CHANNEL); } public void setTokenTypeChannel(int ttype, int channel) {
@Override protected void sync(int i) { super.sync(i); if ( hide.contains(get(i).getType()) ) get(i).setChannel(Token.HIDDEN_CHANNEL); } public void setTokenTypeChannel(int ttype, int channel) {
protected void sync(int i) { super.sync(i); if ( hide.contains(get(i).getType()) ) get(i).setChannel(Token.HIDDEN_CHANNEL); } public void setTokenTypeChannel(int ttype, int channel) {
protected void sync(int i) { super.sync(i); if ( hide.contains(get(i).getType()) ) get(i).setChannel(Token.HIDDEN_CHANNEL); } public void setTokenTypeChannel(int ttype, int channel) {
channelOverrideMap.get(new Integer(t.getType())); if ( channelI!=null ) { t.setChannel(channelI.intValue());
Integer channelI = channelOverrideMap.get(t.getType()); if ( channelI!=null ) { t.setChannel(channelI);
Integer channelI = channelOverrideMap.get(t.getType()); if ( channelI!=null ) { t.setChannel(channelI);
tmpToken.setChannel(99/*lexer.getIgnoreChannelNumber()*/); tmpArrayList.set(i, tmpToken); tmpToken.setChannel(99/*lexer.getIgnoreChannelNumber()*/); tmpArrayList.set(k, tmpToken);
Integer channelI = channelOverrideMap.get(t.getType()); if ( channelI!=null ) { t.setChannel(channelI);
Integer channelI = channelOverrideMap.get(t.getType()); if ( channelI!=null ) { t.setChannel(channelI);
Integer channelI = channelOverrideMap.get(t.getType()); if ( channelI!=null ) { t.setChannel(channelI);
packedList.get(j).setChannel( 99/*lexer.getIgnoreChannelNumber()*/); packedList.get(i+1).setChannel( 99/*lexer.getIgnoreChannelNumber()*/); packedList.get(firstContCharOffset).setChannel( 99/*lexer.getIgnoreChannelNumber()*/); firstContCharOffset = i;
tmpToken.setChannel(99/*lexer.getIgnoreChannelNumber()*/);
state.token.setChannel(Token.INVALID_TOKEN_TYPE); state.token.setInputStream(input); state.token.setLine(state.tokenStartLine);
state.token.setChannel(Token.INVALID_TOKEN_TYPE); state.token.setInputStream(input); state.token.setLine(state.tokenStartLine);