if (t.getChannel()>0) { channelStr=",channel="+t.getChannel();
if (token.getChannel() == smaliParser.HIDDEN) { continue;
if (token.getChannel() != Lexer.HIDDEN) { String tokenText = token.getText(); if (!caseSensitive) {
if (token.getChannel() == smaliParser.HIDDEN) { continue;
protected int skipOffTokenChannelsReverse(int i) { while ( i>=0 && tokens.get(i).getChannel()!=channel ) { i--; } return i; }
protected int skipOffTokenChannelsReverse(int i) { while ( i>=0 && tokens.get(i).getChannel()!=channel ) { i--; } return i; }
protected int skipOffTokenChannelsReverse(int i) { while ( i>=0 && ((Token)tokens.get(i)).getChannel()!=channel ) { i--; } return i; }
protected int skipOffTokenChannelsReverse(int i) { while ( i>=0 && tokens.get(i).getChannel()!=channel ) { i--; } return i; }
protected int skipOffTokenChannelsReverse(int i) { while ( i>=0 && ((Token)tokens.get(i)).getChannel()!=channel ) { i--; } return i; }
/** Given a starting index, return the index of the first on-channel * token. */ protected int skipOffTokenChannels(int i) { int n = tokens.size(); while ( i<n && tokens.get(i).getChannel()!=channel ) { i++; } return i; }
/** Given a starting index, return the index of the first on-channel * token. */ protected int skipOffTokenChannels(int i) { int n = tokens.size(); while ( i<n && tokens.get(i).getChannel()!=channel ) { i++; } return i; }
/** Given a starting index, return the index of the first on-channel * token. */ protected int skipOffTokenChannels(int i) { int n = tokens.size(); while ( i<n && ((Token)tokens.get(i)).getChannel()!=channel ) { i++; } return i; }
/** Count EOF just once. */ public int getNumberOfOnChannelTokens() { int n = 0; fill(); for (int i = 0; i < tokens.size(); i++) { Token t = tokens.get(i); if ( t.getChannel()==channel ) n++; if ( t.getType()==Token.EOF ) break; } return n; }
@Override protected void setup() { p = 0; sync(0); int i = 0; while ( tokens.get(i).getChannel()!=channel ) { i++; sync(i); } p = i; }
/** Given a starting index, return the index of the first on-channel * token. */ protected int skipOffTokenChannels(int i) { sync(i); while ( tokens.get(i).getChannel()!=channel ) { // also stops at EOF (it's onchannel) i++; sync(i); } return i; }
protected String serializeToken(Token t) { StringBuffer buf = new StringBuffer(50); buf.append(t.getTokenIndex()); buf.append('\t'); buf.append(t.getType()); buf.append('\t'); buf.append(t.getChannel()); buf.append('\t'); buf.append(t.getLine()); buf.append('\t'); buf.append(t.getCharPositionInLine()); serializeText(buf, t.getText()); return buf.toString(); }
/** Always leave p on an on-channel token. */ public void consume() { if ( p == -1 ) setup(); p++; sync(p); while ( tokens.get(p).getChannel()!=channel ) { p++; sync(p); } }
public ClassicToken(Token oldToken) { text = oldToken.getText(); type = oldToken.getType(); line = oldToken.getLine(); charPositionInLine = oldToken.getCharPositionInLine(); channel = oldToken.getChannel(); }
public ClassicToken(Token oldToken) { text = oldToken.getText(); type = oldToken.getType(); line = oldToken.getLine(); charPositionInLine = oldToken.getCharPositionInLine(); channel = oldToken.getChannel(); }
public ClassicToken(Token oldToken) { text = oldToken.getText(); type = oldToken.getType(); line = oldToken.getLine(); charPositionInLine = oldToken.getCharPositionInLine(); channel = oldToken.getChannel(); }