(ParseStatus status, int n)
| 61 | } |
| 62 | |
| 63 | public static String getArg(ParseStatus status, int n) { |
| 64 | List<CharSequence> args = status.getArgs(); |
| 65 | if (args == null) { |
| 66 | return null; |
| 67 | } |
| 68 | int i = 0; |
| 69 | for (CharSequence arg : args) { |
| 70 | if (i == n) { |
| 71 | return TableUtil.toString(arg); |
| 72 | } |
| 73 | i++; |
| 74 | } |
| 75 | return null; |
| 76 | } |
| 77 | |
| 78 | public static Parse getEmptyParse(Exception e, Configuration conf) { |
| 79 | ParseStatus status = ParseStatus.newBuilder().build(); |
no test coverage detected