gov.nasa.arc.brahms.vm.data
Interface IVMAssignmentLhs

All Known Implementing Classes:
VMArrayAccess, VMOperand

public interface IVMAssignmentLhs

The IVMAssignmentLhs interface tags VM objects as being suitable for serving as the left-hand expression in a VMAssignment operation

Version:
$Revision: 1.1 $ $Date: 2009/11/23 20:41:40 $ $Author: rnado $
Author:
Bob Nado

Method Summary
 void assign(java.util.List<java.lang.Object> values, VMActiveInstanceCtx agent, VMFrameCtx frame, Type collectType)
          Assigns a list of values to the element resulting from evaluating the left-hand side expression.
 

Method Detail

assign

void assign(java.util.List<java.lang.Object> values,
            VMActiveInstanceCtx agent,
            VMFrameCtx frame,
            Type collectType)
            throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
Assigns a list of values to the element resulting from evaluating the left-hand side expression. the boolean collect parameter is true, the list of values is assigned as a single collection value to the left-hand side element. If the collect parameter is false only the first value in the list is assigned.

Parameters:
values - the list of values to be assigned
agent - the VMActiveInstanceCtx for the agent performing the assignment operation
frame - the VMFrameCtx for the frame that is being executed
collectType - the collection element type if the values should be assigned as a collection to the left-hand side, else null
Throws:
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if an error occurs during the assignment


Copyright © 1997-2012 All Rights Reserved.