Package org.eclipse.epsilon.evl.dom
Class ConstraintSelectTransfomer
java.lang.Object
org.eclipse.epsilon.evl.dom.ConstraintSelectTransfomer
Decides if a constraint with context T, guard G and check C can be rephrased
into a single T.all.select(x|G and not C) query, which can be efficiently
executed by certain
IModel
implementations (e.g. Hawk or SQL).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canBeTransformed
(Constraint constraint) transformIntoSelect
(Constraint constraint) Produces a new ExecutableBlock that will find all invalid objects at once.
-
Constructor Details
-
ConstraintSelectTransfomer
public ConstraintSelectTransfomer()
-
-
Method Details
-
canBeTransformed
-
transformIntoSelect
Produces a new ExecutableBlock that will find all invalid objects at once. This method assumes thatcanBeTransformed(Constraint)
was checked first, and that it returnedtrue
.
-