Class PropertyAccessRecorder
java.lang.Object
org.eclipse.epsilon.eol.execute.introspection.recording.PropertyAccessRecorder
- All Implemented Interfaces:
IPropertyAccessRecorder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PropertyAccess
createPropertyAccess
(Object modelElement, String propertyName) Subclasses should override this method to customise the type of PropertyAccess that is created.Returns the property accesses that have occurred in the most recently started recording session.void
Tells thePropertyAccessRecorder
that a property access for the specified model element and property name has occurred.void
Tells the PropertyAccessRecorder to start a new recording session.void
Tells the PropertyAccessRecorder to finalise the current recording session.
-
Constructor Details
-
PropertyAccessRecorder
public PropertyAccessRecorder()
-
-
Method Details
-
record
Description copied from interface:IPropertyAccessRecorder
Tells thePropertyAccessRecorder
that a property access for the specified model element and property name has occurred.- Specified by:
record
in interfaceIPropertyAccessRecorder
-
createPropertyAccess
Subclasses should override this method to customise the type of PropertyAccess that is created. -
startRecording
public void startRecording()Description copied from interface:IPropertyAccessRecorder
Tells the PropertyAccessRecorder to start a new recording session. Any subsequent notifications of property accesses are recorded and are accessible viaIPropertyAccessRecorder.getPropertyAccesses()
. Property accesses from any previous recording session are disregarded (i.e., are no longer accessible fromIPropertyAccessRecorder.getPropertyAccesses()
)- Specified by:
startRecording
in interfaceIPropertyAccessRecorder
-
stopRecording
public void stopRecording()Description copied from interface:IPropertyAccessRecorder
Tells the PropertyAccessRecorder to finalise the current recording session. Any subsequent notifications of property accesses are not recorded, untilIPropertyAccessRecorder.startRecording()
is called. Property accesses from the ended recording session are available viaIPropertyAccessRecorder.getPropertyAccesses()
.- Specified by:
stopRecording
in interfaceIPropertyAccessRecorder
-
getPropertyAccesses
Description copied from interface:IPropertyAccessRecorder
Returns the property accesses that have occurred in the most recently started recording session.- Specified by:
getPropertyAccesses
in interfaceIPropertyAccessRecorder
-