jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • groovy
  • GROOVY-17

Support @ as a new operation via BinaryOperation for accessing fields

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.0-JSR-2
  • Component/s: lexer
  • Labels:
    None

Description

This would allow tree structures to be used in an XPath kinda way. e.g. if you had a tree of nodes you could do

node.@x

to refer to an attribute rather than

node.x

which can refer to children.

Then Groovy would have similar operations to XPath

Similarly @x could be used too.

This would also allow fields to be explicitly referenced as opposed to properties. e.g. something.@foo if something is a friend/in same package etc.

Issue Links

is depended upon by

Task - A task that needs to be done. GROOVY-762 implement syntax improvements

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Guillaume Laforge added a comment - 07/Jun/05 8:20 AM

Already done in the JSR grammar.

Show
Guillaume Laforge added a comment - 07/Jun/05 8:20 AM Already done in the JSR grammar.

People

  • Assignee:
    Guillaume Laforge
    Reporter:
    james strachan
Vote (0)
Watch (0)

Dates

  • Created:
    02/Oct/03 2:40 AM
    Updated:
    07/Jun/05 8:20 AM
    Resolved:
    07/Jun/05 8:20 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.