groovy

Add toXXX methiods to GPath expressions for objects produced by XMLSlurper

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0-JSR-5
  • Fix Version/s: 1.0-JSR-6
  • Component/s: groovy-jdk
  • Labels:
    None
  • Number of attachments :
    0

Description

It would be nice to be able to write

a.b.c.toInteger()

rather than

a.b.c.text().toInteger()

We should support

toInteger()
toLong()
toFloat()
toDouble()
toBigInteger()
toBigDecimal()
toBoolean()
toURL()
toURI()

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: