io.sarl.lang.jvmmodel
Class SARLReadAndWriteTracking
@javax.inject.Singleton
class SARLReadAndWriteTracking
extends java.lang.Object
Track the initialization, read and write accesses to a field.

This implementation extends the Xbase one with the write accesses.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
Since:
0.7
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
boolean isAssigned(EObject)
Replies if the given object was marked as assigned within the current compilation unit.
boolean markAssignmentAccess(EObject)
Mark the given object as an assigned object after its initialization.
Constructor Details
new
new
Action Details
isAssigned(EObject)
def isAssigned(EObject) : boolean
Replies if the given object was marked as assigned within the current compilation unit.
Parameters:
object - the object to test.
Returns:
true if the object was written within the current compilation unit; false if is is not written within the current compilation unit.
markAssignmentAccess(EObject)
def markAssignmentAccess(EObject) : boolean
Mark the given object as an assigned object after its initialization.

The given object has its value changed by a assignment operation.
Parameters:
object - the written object.
Returns:
true if the write flag has changed.