Interface InputLocationTracker
- All Known Implementing Classes:
CoreExtension,CoreExtensions,InputLocation
public interface InputLocationTracker
Tracks input source locations for model fields.
Implementations provide a mapping from keys (typically field names or indices) to
InputLocation instances to support precise error reporting and diagnostics.
Keys must be non-null.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionGets the parent InputLocation where this InputLocation may have been imported from.getLocation(Object field) Gets the location of the specified field in the input source.
-
Method Details
-
getLocation
Gets the location of the specified field in the input source.- Parameters:
field- the key of the field, must not benull- Returns:
- the location of the field in the input source or
nullif unknown - Throws:
NullPointerException- iffieldisnull
-
getImportedFrom
InputLocation getImportedFrom()Gets the parent InputLocation where this InputLocation may have been imported from. Can returnnull.- Returns:
- InputLocation
- Since:
- 4.0.0
-