- All Known Implementing Classes:
public interface IPropertyAccessRecorderA PropertyAccessRecorder can be attached to an
IEolContextin order to be notified when a program execution reads a property value from a model element. For example, execution of the EOL code: `Person.all.first.name` would result in a PropertyAccessRecorder being notified of a property access for the `name` property of the `Person.all.first` model element. Recording is separated into sessions. A session is started using
startRecording()and ended with
stopRecording(). Property accesses for the most recently started session are available from
getPropertyAccesses(). Clients that wish to access property accesses from earlier recording sessions are expected to call
getPropertyAccesses()and store the resulting value before calling
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
getPropertyAccesses()Returns the property accesses that have occurred in the most recently started recording session.
record(Object modelElement, String propertyName)Tells the
PropertyAccessRecorderthat a property access for the specified model element and property name has occurred.
startRecording()Tells the PropertyAccessRecorder to start a new recording session.
stopRecording()Tells the PropertyAccessRecorder to finalise the current recording session.
void startRecording()Tells the PropertyAccessRecorder to start a new recording session. Any subsequent notifications of property accesses are recorded and are accessible via
getPropertyAccesses(). Property accesses from any previous recording session are disregarded (i.e., are no longer accessible from
PropertyAccesses getPropertyAccesses()Returns the property accesses that have occurred in the most recently started recording session.