Class QvtResolveUtil


  • public class QvtResolveUtil
    extends Object
    Author:
    aigdalov
    • Method Detail

      • hasDeferredRightSideValue

        public static boolean hasDeferredRightSideValue​(AssignExp assignExp)
        Indicates whether the given assignment has late resolved right value and is to be executed as deferred assignment.
        Parameters:
        resolveExp - the resolve expression to analyze
        Returns:
        true if the assignment is to receive a future value from late resolve; false otherwise
      • isSuppportedAsDeferredAssigned

        public static boolean isSuppportedAsDeferredAssigned​(ResolveExp resolveExp)
        Indicates whether the given resolve expression can be used in conjunction with deferred assignment.

        Note: The late resolve call result is assigned at deferred time if is assigned to a property directly or by calling a single ->as... collection type conversion method.

        Parameters:
        resolveExp - the resolve expression to analyze.
        Returns:
        true if there is a supported deferred assignment to receive the future value; false otherwise.
        See Also:
        getDeferredAssignmentFor(ResolveExp)
      • getDeferredAssignmentFor

        public static AssignExp getDeferredAssignmentFor​(ResolveExp resolveExp)
        Gets deferred assignment used with the given resolve expression which is to be executed in the end of the transformation.
        Parameters:
        resolveExp - a resolve expression
        Returns:
        the assignment receiving the late resolve result, if the resolve expression is deferred and its result is assigned to it directly or by using a collection type conversion. Otherwise, null is returned.