Class QvtResolveUtil
- java.lang.Object
-
- org.eclipse.m2m.internal.qvt.oml.library.QvtResolveUtil
-
public class QvtResolveUtil extends Object
- Author:
- aigdalov
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AssignExpgetDeferredAssignmentFor(ResolveExp resolveExp)Gets deferred assignment used with the given resolve expression which is to be executed in the end of the transformation.static booleanhasDeferredRightSideValue(AssignExp assignExp)Indicates whether the given assignment has late resolved right value and is to be executed as deferred assignment.static booleanisSuppportedAsDeferredAssigned(ResolveExp resolveExp)Indicates whether the given resolve expression can be used in conjunction with deferred assignment.static ObjectresolveInNow(ResolveInExp resolveInExp, QvtOperationalEvaluationVisitor visitor, QvtOperationalEvaluationEnv env)static ObjectresolveNow(ResolveExp resolveExp, QvtOperationalEvaluationVisitor visitor, QvtOperationalEvaluationEnv env)
-
-
-
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:
trueif the assignment is to receive a future value from late resolve;falseotherwise
-
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:
trueif there is a supported deferred assignment to receive the future value;falseotherwise.- 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,
nullis returned.
-
resolveNow
public static final Object resolveNow(ResolveExp resolveExp, QvtOperationalEvaluationVisitor visitor, QvtOperationalEvaluationEnv env)
-
resolveInNow
public static final Object resolveInNow(ResolveInExp resolveInExp, QvtOperationalEvaluationVisitor visitor, QvtOperationalEvaluationEnv env)
-
-