Pops the top element off of the stack. @return non-null; the type formerly on the top of the stack @throws SimException thrown if the stack is empty
()
| 248 | * @throws SimException thrown if the stack is empty |
| 249 | */ |
| 250 | public TypeBearer pop() { |
| 251 | throwIfImmutable(); |
| 252 | |
| 253 | TypeBearer result = peek(0); |
| 254 | |
| 255 | stack[stackPtr - 1] = null; |
| 256 | local[stackPtr - 1] = false; |
| 257 | stackPtr -= result.getType().getCategory(); |
| 258 | |
| 259 | return result; |
| 260 | } |
| 261 | |
| 262 | /** |
| 263 | * Changes an element already on a stack. This method is useful in limited |
no test coverage detected