()
| 73 | } |
| 74 | |
| 75 | @Override |
| 76 | public String toString() { |
| 77 | String channelStr = ""; |
| 78 | if ( channel>0) { |
| 79 | channelStr = ",channel="+channel; |
| 80 | } |
| 81 | String txt = getText(); |
| 82 | if ( txt!=null ) txt = Misc.replaceEscapes(txt); |
| 83 | else txt = "<no text>"; |
| 84 | String tokenName; |
| 85 | if ( type==EOF_TYPE ) tokenName = "EOF"; |
| 86 | else tokenName = STParser.tokenNames[type]; |
| 87 | return "[@"+getTokenIndex()+","+start+":"+stop+"='"+txt+"',<"+tokenName+">"+channelStr+","+line+":"+getCharPositionInLine()+"]"; |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | public static final Token SKIP = new STToken(-1, "<skip>"); |
nothing calls this directly
no test coverage detected