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
-
public class LocalObjectReference extends ObjectReference
The local implementation of an object reference. Adapted from org.eclipse.m2m.atl.engine.emfvm.launch.debug.LocalObjectReference.
-
-
Field Summary
Fields Modifier and Type Field Description protected NetworkDebuggerdebuggerprotected java.lang.Objectobject-
Fields inherited from class org.eclipse.m2m.atl.debug.core.adwp.ObjectReference
id
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLocalObjectReference(java.lang.Object object, int id, NetworkDebugger debugger)Creates a new LocalObjectReference.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Valuecall(java.lang.String opName, java.util.List<Value> args)Calls an operation with the given arguments.Valueget(java.lang.String propName)Gets a value for the given property.java.lang.ObjectgetObject()static Valueobject2value(java.lang.Object o, NetworkDebugger debugger)Converts an Object into aValue.voidset(java.lang.String propName, Value value)Sets a value for the given property.java.lang.StringtoString()static ObjectReferencevalueOf(int objectId)Returns the object reference matching the given id.static ObjectReferencevalueOf(java.lang.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 Detail
-
object
protected java.lang.Object object
-
debugger
protected NetworkDebugger debugger
-
-
Constructor Detail
-
LocalObjectReference
protected LocalObjectReference(java.lang.Object object, int id, NetworkDebugger debugger)Creates a new LocalObjectReference.- Parameters:
object- the objectid- the objecct iddebugger- the debugger
-
-
Method Detail
-
getObject
public java.lang.Object getObject()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classObjectReference- See Also:
ObjectReference.toString()
-
valueOf
public static ObjectReference valueOf(int objectId)
Returns the object reference matching the given id.- Parameters:
objectId- the object id- Returns:
- the object reference matching the given id
-
valueOf
public static ObjectReference valueOf(java.lang.Object object, NetworkDebugger debugger)
Returns an object reference for the given object.- Parameters:
object- the objectdebugger- the current debugger- Returns:
- the object reference
-
get
public Value get(java.lang.String propName)
Gets a value for the given property.- Specified by:
getin classObjectReference- Parameters:
propName- the property name- Returns:
- the value
- See Also:
ObjectReference.get(java.lang.String)
-
set
public void set(java.lang.String propName, Value value)Sets a value for the given property.- Specified by:
setin classObjectReference- Parameters:
propName- the property namevalue- the value to set- See Also:
ObjectReference.set(java.lang.String, org.eclipse.m2m.atl.debug.core.adwp.Value)
-
call
public Value call(java.lang.String opName, java.util.List<Value> args)
Calls an operation with the given arguments.- Specified by:
callin classObjectReference- Parameters:
opName- the operation nameargs- the arguments- Returns:
- the operation call result
- See Also:
ObjectReference.call(java.lang.String, java.util.List)
-
object2value
public static Value object2value(java.lang.Object o, NetworkDebugger debugger)
Converts an Object into aValue.- Parameters:
o- the objectdebugger- the current debugger- Returns:
- the
Value
-
-