Returns i-th operand (0-based). Note: the result might be null, so the proper signature would be , however, it would trigger to many changes to the current codebase. @param i operand index (0-based) @param type of the result @return i-th operand (0-based
(int i)
| 101 | * @return i-th operand (0-based), the result might be null |
| 102 | */ |
| 103 | @SuppressWarnings("unchecked") |
| 104 | public <S extends /*Nullable*/ SqlNode> S operand(int i) { |
| 105 | // Note: in general, null elements exist in the list, however, the code |
| 106 | // assumes operand(..) is non-nullable, so we add a cast here |
| 107 | return (S) castNonNull(getOperandList().get(i)); |
| 108 | } |
| 109 | |
| 110 | public int operandCount() { |
| 111 | return getOperandList().size(); |