/** * Instantiates a new draw statement. * * @param receiverName * the receiver name * @param returnee * the returnee * @param returnValue * the return value * @param jpInfo * the jp info */ public DrawStatement(final String receiverName, final String returnee, final Object returnValue, final StaticPart jpInfo) { this.type = DrawType.RETURN_MESSAGE; this.sender = receiverName; this.target = returnee; this.jpInfo = jpInfo; this.args = Converter.toArray(returnValue); }
/** * Instantiates a new draw statement. * * @param senderName * the sender name * @param createdObject * the created object * @param typeName * the type name * @param jpInfo * the jp info */ public DrawStatement(final String senderName, final Object createdObject, final String typeName, final StaticPart jpInfo) { this.type = DrawType.CREATE_MESSAGE; this.sender = senderName; this.target = typeName; this.jpInfo = jpInfo; this.args = Converter.toArray(createTargetName(createdObject)); }