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

Allow capturing field values with path syntax

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 8.0.0
    • None
    • Mission Control Core
    • None

      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_]*

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

              Created:
              Updated:
              Resolved: