Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1293

Add toXXX methiods to GPath expressions for objects produced by XMLSlurper

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-5
    • 1.0-JSR-6
    • groovy-jdk
    • None

    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()

      Attachments

        Activity

          People

            tug John Wilson
            tug John Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: