Class OpResizingMemberParser

    • Constructor Detail

      • OpResizingMemberParser

        public OpResizingMemberParser()
    • Method Detail

      • parse

        public List<Member<?>> parse​(RetypingRequest source,
                                     Type structType)
        Generates a new List with retyped Members. Using originalStruct as a template, this method retypes the inputs of originalStruct using inputs, and the output using output.

        This method makes a couple of assumptions:

        1. That srcStruct is valid
        2. That there are inputs.length input Members in srcStruct
        3. That there is one output Member in srcStruct
        We should consider adding the evaluation of these assumptions
        Specified by:
        parse in interface MemberParser<RetypingRequest,​Member<?>>
        Parameters:
        source - the RetypingRequest from which we create the new List of Members
        Returns:
        a new List reflecting the reduced number of Op inputs.