Home | History | Annotate | Download | only in src

Lines Matching defs:checks

212         String[] checks = mChecker.getChecks(cfunc.getName());
214 if (checks != null) {
215 while (index < checks.length) {
216 if (checks[index].equals("return")) {
218 } else if (checks[index].startsWith("check")) {
220 } else if (checks[index].equals("ifcheck")) {
222 } else if (checks[index].equals("unsupported")) {
224 } else if (checks[index].equals("requires")) {
226 } else if (checks[index].equals("nullAllowed")) {
230 checks[index] + "\"");
245 String[] checks = mChecker.getChecks(cfunc.getName());
248 if (checks != null) {
249 while (index < checks.length) {
250 if (checks[index].equals("return")) {
251 return checks[index + 1];
252 } else if (checks[index].startsWith("check")) {
254 } else if (checks[index].equals("ifcheck")) {
256 } else if (checks[index].equals("unsupported")) {
258 } else if (checks[index].equals("requires")) {
260 } else if (checks[index].equals("nullAllowed")) {
264 checks[index] + "\"");
274 String[] checks = mChecker.getChecks(cfunc.getName());
276 if (checks != null) {
277 while (index < checks.length) {
278 if (checks[index].equals("unsupported")) {
280 } else if (checks[index].equals("requires")) {
282 } else if (checks[index].equals("return")) {
284 } else if (checks[index].startsWith("check")) {
286 } else if (checks[index].equals("ifcheck")) {
288 } else if (checks[index].equals("nullAllowed")) {
292 checks[index] + "\"");
301 String[] checks = mChecker.getChecks(cfunc.getName());
303 if (checks != null) {
304 while (index < checks.length) {
305 if (checks[index].equals("unsupported")) {
307 } else if (checks[index].equals("requires")) {
308 return checks[index+1];
309 } else if (checks[index].equals("return")) {
311 } else if (checks[index].startsWith("check")) {
313 } else if (checks[index].equals("ifcheck")) {
315 } else if (checks[index].equals("nullAllowed")) {
319 checks[index] + "\"");
330 String[] checks = mChecker.getChecks(cfunc.getName());
335 if (checks != null) {
336 while (index < checks.length) {
337 if (checks[index].startsWith("check")) {
343 if (cname != null && !cname.equals(checks[index + 1])) {
347 out.println(iii + "if (" + remaining + " < " + checks[index + 2] + ") {");
355 int underscore = checks[index].indexOf('_');
357 String abbr = checks[index].substring(underscore + 1);
366 "\"" + (isBuffer ? "remaining()" : "length - " + offset) + " < " + checks[index + 2] + "\");");
373 } else if (checks[index].equals("ifcheck")) {
374 String[] matches = checks[index + 4].split(",");
378 out.println(iii + "switch (" + checks[index + 3] + ") {");
386 out.println(iii + " _needed = " + checks[index + 2] + ";");
391 } else if (checks[index].equals("return")) {
394 } else if (checks[index].equals("unsupported")) {
397 } else if (checks[index].equals("requires")) {
400 } else if (checks[index].equals("nullAllowed")) {
404 System.out.println("Error: unknown keyword \"" + checks[index] + "\"");
838 // Emit an _exeption variable if there will be error checks
917 // Null pointer checks and GetStringUTFChars