QDox

Improved annotation support including types, fields and expressions

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.6
  • Fix Version/s: 1.7
  • Component/s: Java API, Parser
  • Labels:
    None
  • Testcase included:
    yes
  • Patch Submitted:
    Yes
  • Number of attachments :
    2

Description

The attached patch improves annotation support to allow full access to annotations. It provides a full model for annotation expressions and a visitor class for it.

For example,

@Annotation( value1 = { @Sub("a"), @Sub("b") }, value2 = "2 * PI = " + (Math.PI * 2) )

is parsed and all expression parts are accessible through the model.

  1. QDOX-126.patch
    06/Jul/07 2:04 AM
    112 kB
    Jochen Kuhnle
  2. QDOX-126b.patch
    31/Jul/07 4:35 PM
    122 kB
    Jochen Kuhnle

Issue Links

Activity

Hide
Jochen Kuhnle added a comment -

This patch obsoletes QDOX-122 and QDOX-123

Show
Jochen Kuhnle added a comment - This patch obsoletes QDOX-122 and QDOX-123
Hide
Jochen Kuhnle added a comment -

Updated patch, replaces previous patch file.

Show
Jochen Kuhnle added a comment - Updated patch, replaces previous patch file.
Hide
Jochen Kuhnle added a comment -

Updated the patch:

  • Grammar rule names are now all lower case
  • Added cast expression
  • Operator precedence now through rule hierarchy, not through flex directives (%left etc).
Show
Jochen Kuhnle added a comment - Updated the patch:
  • Grammar rule names are now all lower case
  • Added cast expression
  • Operator precedence now through rule hierarchy, not through flex directives (%left etc).
Hide
Paul Hammant added a comment -

applied - thanks.

Show
Paul Hammant added a comment - applied - thanks.
Hide
Dennis Lundberg added a comment -

Reopen to set correct version.

Show
Dennis Lundberg added a comment - Reopen to set correct version.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: