Class PropertyAccessRecorder
- java.lang.Object
-
- org.eclipse.epsilon.eol.execute.introspection.recording.PropertyAccessRecorder
-
- All Implemented Interfaces:
IPropertyAccessRecorder
public class PropertyAccessRecorder extends java.lang.Object implements IPropertyAccessRecorder
-
-
Constructor Summary
Constructors Constructor Description PropertyAccessRecorder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PropertyAccess
createPropertyAccess(java.lang.Object modelElement, java.lang.String propertyName)
Subclasses should override this method to customise the type of PropertyAccess that is created.PropertyAccesses
getPropertyAccesses()
Returns the property accesses that have occurred in the most recently started recording session.void
record(java.lang.Object modelElement, java.lang.String propertyName)
Tells thePropertyAccessRecorder
that a property access for the specified model element and property name has occurred.void
startRecording()
Tells the PropertyAccessRecorder to start a new recording session.void
stopRecording()
Tells the PropertyAccessRecorder to finalise the current recording session.
-
-
-
Method Detail
-
record
public void record(java.lang.Object modelElement, java.lang.String propertyName)
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
protected PropertyAccess createPropertyAccess(java.lang.Object modelElement, java.lang.String propertyName)
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
public PropertyAccesses 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
-
-