Lines Matching refs:token
89 for (String token : tokens) {
90 if (token.startsWith("'") && token.endsWith("'")) {
91 for (int i = 1; i < token.length() - 1; ++i) {
92 final char ch = token.charAt(1);
99 sb.append(token.substring(1, token.length() - 1));
100 } else if (token.startsWith("U+")) {
101 final int codePoint = Integer.parseInt(token.substring(2), 16);
103 throw new IllegalArgumentException("Invalid code point is specified:" + token);
106 } else if (token.equals(CURSOR)) {
112 } else if (token.equals(SELECTION_START)) {
118 } else if (token.equals(SELECTION_END)) {
124 } else if (token.equals(REPLACEMENT_SPAN_START)) {
130 } else if (token.equals(REPLACEMENT_SPAN_END)) {
137 throw new IllegalArgumentException("Unknown or invalid token: " + token);