Package helma.scripting.rhino
Interface PropertyRecorder
- All Known Implementing Classes:
GlobalObject
,HopObject
public interface PropertyRecorder
An interface that allows us to keep track of changed properties in
JavaScript objects. This is used when compiling prototypes in order
to be able to remove properties from prototypes that haven't been
renewed in the compilation step.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear the set of changed properties.Returns a set containing the names of properties changed since the last time startRecording() was called.void
Tell this PropertyRecorder to start recording changes to propertiesvoid
Tell this PropertyRecorder to stop recording changes to properties
-
Method Details
-
startRecording
void startRecording()Tell this PropertyRecorder to start recording changes to properties -
stopRecording
void stopRecording()Tell this PropertyRecorder to stop recording changes to properties -
getChangeSet
Set getChangeSet()Returns a set containing the names of properties changed since the last time startRecording() was called.- Returns:
- a Set containing the names of changed properties
-
clearChangeSet
void clearChangeSet()Clear the set of changed properties.
-