Class LanguageParamOrReturn

    • Constructor Detail

      • LanguageParamOrReturn

        public LanguageParamOrReturn()
        For yaml serialization.
      • LanguageParamOrReturn

        public LanguageParamOrReturn​(DataClayJavaWrapper thewrapper)
        Constructor
        Parameters:
        thewrapper - Wrapper containing Java object.
      • LanguageParamOrReturn

        public LanguageParamOrReturn​(DataClayObjectMetaData themetaData,
                                     DataClayByteArray thebytes)
        Constructor
        Parameters:
        themetaData - MetaData of the java object
        thebytes - Bytes of language object
    • Method Detail

      • serialize

        public void serialize​(DataClayByteBuffer dcBuffer,
                              boolean ignoreUserTypes,
                              Map<MetaClassID,​byte[]> ifaceBitMaps,
                              IdentityHashMap<Object,​Integer> curSerializedObjs,
                              ListIterator<DataClayObject> pendingObjs,
                              ReferenceCounting referenceCounting)
        Description copied from interface: DataClaySerializable
        Serializes the object into the buffer provided using the interface represented in the bitmap specified.
        Specified by:
        serialize in interface DataClaySerializable
        Parameters:
        dcBuffer - Buffer in which to serialize the object
        ignoreUserTypes - Indicates if user types found during serialization must be ignored or not (for instance, non recursive make persistent)
        ifaceBitMaps - Map of bitmaps representing the interfaces to use
        curSerializedObjs - Current serialized objects Object -> OID tag. This structure must be different during each serialization since OID tags are not shared.
        pendingObjs - Pending objs.
        referenceCounting - Reference counting from this object.
      • deserialize

        public void deserialize​(DataClayByteBuffer dcBuffer,
                                Map<MetaClassID,​byte[]> ifaceBitMaps,
                                DataClayObjectMetaData metadata,
                                Map<Integer,​Object> curDeserializedJavaObjs)
        Description copied from interface: DataClaySerializable
        Deserializes the object from the buffer provided using the interface represented in the bitmap specified.
        Specified by:
        deserialize in interface DataClaySerializable
        Parameters:
        dcBuffer - Buffer from which to deserialize the object
        ifaceBitMaps - Map of bitmaps representing the interfaces to use
        metadata - Useful metadata of the object for execution
        curDeserializedJavaObjs - Currently deserialized Java objects
      • getSerializedBytes

        public DataClayByteArray getSerializedBytes()
        Returns:
        the serializedBytes
      • setSerializedBytes

        public void setSerializedBytes​(DataClayByteArray theserializedBytes)
        Parameters:
        theserializedBytes - the serializedBytes to set
      • setMetaData

        public void setMetaData​(DataClayObjectMetaData themetaData)
        Parameters:
        themetaData - the metaData to set
      • setWrapper

        public void setWrapper​(DataClayJavaWrapper thewrapper)
        Parameters:
        thewrapper - the wrapper to set