()
| 165 | } |
| 166 | |
| 167 | public byte getByte() { |
| 168 | eatws(); |
| 169 | char[] arr = new char[end - pos]; |
| 170 | int i; |
| 171 | for (i = 0; i < arr.length; i++) { |
| 172 | char ch = val.charAt(pos); |
| 173 | if ((ch >= '0' && ch <= '9') || ch == '+' || ch == '-') { |
| 174 | pos++; |
| 175 | arr[i] = ch; |
| 176 | } else { |
| 177 | break; |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | return Byte.parseByte(new String(arr, 0, i)); |
| 182 | } |
| 183 | |
| 184 | public String getId() throws SyntaxError { |
| 185 | return getId("Expected identifier"); |
no test coverage detected