Class LocalObjectReference
java.lang.Object
org.eclipse.m2m.atl.debug.core.adwp.Value
org.eclipse.m2m.atl.debug.core.adwp.ObjectReference
org.eclipse.m2m.atl.emftvm.launcher.debug.LocalObjectReference
The local implementation of an object reference.
Adapted from org.eclipse.m2m.atl.engine.emfvm.launch.debug.LocalObjectReference.
-
Field Summary
Fields inherited from class org.eclipse.m2m.atl.debug.core.adwp.ObjectReference
id
-
Constructor Summary
ModifierConstructorDescriptionprotected
LocalObjectReference
(Object object, int id, NetworkDebugger debugger) Creates a new LocalObjectReference. -
Method Summary
Modifier and TypeMethodDescriptionCalls an operation with the given arguments.Gets a value for the given property.static Value
object2value
(Object o, NetworkDebugger debugger) Converts an Object into aValue
.void
Sets a value for the given property.toString()
static ObjectReference
valueOf
(int objectId) Returns the object reference matching the given id.static ObjectReference
valueOf
(Object object, NetworkDebugger debugger) Returns an object reference for the given object.Methods inherited from class org.eclipse.m2m.atl.debug.core.adwp.ObjectReference
getId
-
Field Details
-
object
-
debugger
-
-
Constructor Details
-
LocalObjectReference
Creates a new LocalObjectReference.- Parameters:
object
- the objectid
- the objecct iddebugger
- the debugger
-
-
Method Details
-
getObject
-
toString
- Overrides:
toString
in classObjectReference
- See Also:
-
valueOf
Returns the object reference matching the given id.- Parameters:
objectId
- the object id- Returns:
- the object reference matching the given id
-
valueOf
Returns an object reference for the given object.- Parameters:
object
- the objectdebugger
- the current debugger- Returns:
- the object reference
-
get
Gets a value for the given property.- Specified by:
get
in classObjectReference
- Parameters:
propName
- the property name- Returns:
- the value
- See Also:
-
set
Sets a value for the given property.- Specified by:
set
in classObjectReference
- Parameters:
propName
- the property namevalue
- the value to set- See Also:
-
call
Calls an operation with the given arguments.- Specified by:
call
in classObjectReference
- Parameters:
opName
- the operation nameargs
- the arguments- Returns:
- the operation call result
- See Also:
-
object2value
Converts an Object into aValue
.- Parameters:
o
- the objectdebugger
- the current debugger- Returns:
- the
Value
-