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-25

MetaData parsing

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Wish Wish
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.1-rc-3
  • Component/s: None
  • Labels:
    None

Description

We need a way to parse metadata at the class, field, property, method level. We should go for .NET / JDK 1.5 format. I'm no expert on this - I think Jon Tirsen seems to know about it. Examples include

[indentity foo, bar]

[pre results.each { i | assert i > 100 }]

So I'm assuming that the syntax is something like [nameOfAttribute ...] where ... can be any groovy expression/statement

Issue Links

duplicates

Sub-task - The sub-task of the issue GROOVY-1715 Annotation support

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

Task - A task that needs to be done. GROOVY-753 complete parser

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

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Sam Pullara added a comment - 16/Nov/03 8:52 PM

Attributes are actually just classes with properties. Basically you should allow any class to be used as an attribute and then assign property like this:

[MyAttributeClass(property1=..., property2=...)]

and then be able to process those attributes at runtime. Possibly put in hooks for validation at compile time as well.

Show
Sam Pullara added a comment - 16/Nov/03 8:52 PM Attributes are actually just classes with properties. Basically you should allow any class to be used as an attribute and then assign property like this: [MyAttributeClass(property1=..., property2=...)] and then be able to process those attributes at runtime. Possibly put in hooks for validation at compile time as well.
Hide
Permalink
james strachan added a comment - 31/Jan/04 6:48 AM

We could really use some good documentation on what 1.5 metadata looks like & acts like. I'd like us to follow similar syntax where possible.

Show
james strachan added a comment - 31/Jan/04 6:48 AM We could really use some good documentation on what 1.5 metadata looks like & acts like. I'd like us to follow similar syntax where possible.
Hide
Permalink
Alexandru Popescu added a comment - 13/Feb/07 11:47 AM

I am wondering if annotations are not enough good for this, or would we like something else?

Show
Alexandru Popescu added a comment - 13/Feb/07 11:47 AM I am wondering if annotations are not enough good for this, or would we like something else?
Hide
Permalink
Guillaume Laforge added a comment - 13/Feb/07 12:51 PM

Yes, this old metadata jira issue is related to Java 1.5 metadata.

Show
Guillaume Laforge added a comment - 13/Feb/07 12:51 PM Yes, this old metadata jira issue is related to Java 1.5 metadata.
Hide
Permalink
Guillaume Laforge added a comment - 02/Nov/07 4:36 AM

Standard Java 5 annotations are now supported in Groovy 1.1

Show
Guillaume Laforge added a comment - 02/Nov/07 4:36 AM Standard Java 5 annotations are now supported in Groovy 1.1

People

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

Dates

  • Created:
    09/Oct/03 12:29 PM
    Updated:
    02/Nov/07 4:36 AM
    Resolved:
    02/Nov/07 4:36 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.