Uploaded image for project: 'Java Mission Control'
  1. Java Mission Control
  2. JMC-6656

Allow capturing field values with path syntax

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.0.0
    • Component/s: Mission Control Core
    • Labels:
      None

      Description

      There should be an optional configuration for capturing field values with path syntax, generating the code to access the field. The injected code must not make reflection calls. The injected code must check for null reference and avoid NPEs.

      As defined below, the path syntax is a subset of Java primary expression:

      Syntax
          -> this
           | TypeName . this
           | FieldAccess
      
      TypeName
          -> TypeIdentifier
           | PackageOrTypeName . TypeIdentifier
      
      PackageOrTypeName
          -> identifier
           | PackageOrTypeName . identifier
      
      TypeIdentifier
          -> identifier
      
      FieldAccess
          -> Expression . identifier
           | super . identifier
           | TypeName . super . identifier
           | FieldName
      
      FieldName
          -> identifier
      
      identifier // terminal symbols
          -> [A-z_][A-z0-9_]*

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kxu Kangcheng Xu
              Reporter:
              kxu Kangcheng Xu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: