Return the top object on the stack without removing it. If there are no objects on the stack, return null . @return the top object
()
| 1883 | * @return the top object |
| 1884 | */ |
| 1885 | public Object peek() { |
| 1886 | try { |
| 1887 | return stack.peek(); |
| 1888 | } catch (EmptyStackException e) { |
| 1889 | log.warn(sm.getString("digester.emptyStack")); |
| 1890 | return null; |
| 1891 | } |
| 1892 | } |
| 1893 | |
| 1894 | |
| 1895 | /** |