Class SerializedParametersOrReturn


  • public final class SerializedParametersOrReturn
    extends Object
    Serialized parameters or returns.
    • Constructor Detail

      • SerializedParametersOrReturn

        public SerializedParametersOrReturn()
        Empty constructor for YAML.
      • SerializedParametersOrReturn

        public SerializedParametersOrReturn​(int theNumParams,
                                            Map<Integer,​ImmutableParamOrReturn> theimmObjs,
                                            Map<Integer,​LanguageParamOrReturn> thelangObjs,
                                            Map<Integer,​ObjectWithDataParamOrReturn> thevolatileObjs,
                                            Map<Integer,​PersistentParamOrReturn> thepersistentRefs)
        Constructor
        Parameters:
        theNumParams - Number of declared parameters of the method.
        theimmObjs - Immutable parameters or return
        thelangObjs - Language parameters or reutrn
        thevolatileObjs - Volatile parameters or return
        thepersistentRefs - Persistent params or return Mandatory for: Returns to client and Volatile parameters (execute or mkPersistent)
      • SerializedParametersOrReturn

        public SerializedParametersOrReturn​(List<ObjectWithDataParamOrReturn> thevolatileObjs)
        Constructor for volatiles
        Parameters:
        thevolatileObjs - Volatile parameters or return
    • Method Detail

      • getNumParams

        public int getNumParams()
        Returns:
        the numParams
      • removeReferencesForYaml

        public void removeReferencesForYaml()
        Remove DataClayObjects for yaml serialization
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • setNumParams

        public void setNumParams​(int newnumParams)
        Set numParams
        Parameters:
        newnumParams - the numParams to set
      • setPersistentRefs

        public void setPersistentRefs​(Map<Integer,​PersistentParamOrReturn> newpersistentRefs)
        Set persistentRefs
        Parameters:
        newpersistentRefs - the persistentRefs to set
      • needWrappers

        public boolean needWrappers()
        Indicates if serialized parameters need wrappers for language/immutable objects.
        Returns:
        TRUE if serialized parameters need wrappers for language/immutable objects.