Converts the text of this GPathResult to an Integer object. @return the GPathResult, converted to a Integer
()
| 819 | * @return the GPathResult, converted to a <code>Integer</code> |
| 820 | */ |
| 821 | public Integer toInteger() { |
| 822 | if(textIsEmptyOrNull()){ |
| 823 | return null; |
| 824 | } |
| 825 | return StringGroovyMethods.toInteger((CharSequence)text()); |
| 826 | } |
| 827 | |
| 828 | /** |
| 829 | * Converts the text of this GPathResult to a Long object. |
nothing calls this directly
no test coverage detected