/** * Converts the text of this GPathResult to a Double object. * * @return the GPathResult, converted to a <code>Double</code> */ public Double toDouble() { if(textIsEmptyOrNull()){ return null; } return StringGroovyMethods.toDouble((CharSequence)text()); }
/** * Converts the text of this GPathResult to a Float object. * * @return the GPathResult, converted to a <code>Float</code> */ public Float toFloat() { if(textIsEmptyOrNull()){ return null; } return StringGroovyMethods.toFloat((CharSequence)text()); }
/** * Converts the text of this GPathResult to a BigInteger object. * * @return the GPathResult, converted to a <code>BigInteger</code> */ public BigInteger toBigInteger() { if(textIsEmptyOrNull()){ return null; } return StringGroovyMethods.toBigInteger((CharSequence)text()); }
/** * Converts the text of this GPathResult to a Integer object. * * @return the GPathResult, converted to a <code>Integer</code> */ public Integer toInteger() { if(textIsEmptyOrNull()){ return null; } return StringGroovyMethods.toInteger((CharSequence)text()); }
/** * Converts the text of this GPathResult to a Long object. * * @return the GPathResult, converted to a <code>Long</code> */ public Long toLong() { if(textIsEmptyOrNull()){ return null; } return StringGroovyMethods.toLong((CharSequence)text()); }
/** * Converts the text of this GPathResult to a BigDecimal object. * * @return the GPathResult, converted to a <code>BigDecimal</code> */ public BigDecimal toBigDecimal() { if(textIsEmptyOrNull()){ return null; } return StringGroovyMethods.toBigDecimal((CharSequence)text()); }