-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
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_]*