public class Constraint extends NamedRule
Modifier and Type | Field and Description |
---|---|
protected ExecutableBlock<Boolean> |
checkBlock |
protected ConstraintContext |
constraintContext |
protected ArrayList<Fix> |
fixes |
protected ExecutableBlock<Boolean> |
guardBlock |
protected boolean |
isCritique |
protected ExecutableBlock<String> |
messageBlock |
nameExpression
annotationBlock
Constructor and Description |
---|
Constraint() |
Modifier and Type | Method and Description |
---|---|
boolean |
appliesTo(Object object,
IEvlContext context)
Compatibility version of
appliesTo(Object, IEvlContext) for old clients. |
boolean |
appliesTo(Object object,
IEvlContext context,
boolean checkType) |
void |
build(AST cst,
IModule module) |
boolean |
check(Object self,
IEvlContext context)
Compatibility version of
check(Object, IEvlContext, boolean) for old clients. |
boolean |
check(Object self,
IEvlContext context,
boolean checkType) |
ConstraintContext |
getConstraintContext() |
List<?> |
getModuleElements() |
boolean |
isCritique() |
boolean |
isInfo() |
boolean |
isLazy(IEvlContext context) |
protected boolean |
postprocessCheck(Object self,
IEvlContext context,
UnsatisfiedConstraint unsatisfiedConstraint,
Boolean result) |
protected UnsatisfiedConstraint |
preprocessCheck(Object self,
IEvlContext context) |
void |
setConstraintContext(ConstraintContext constraintContext) |
void |
setCritique(boolean isCritique) |
String |
toString() |
getName, getNameAst, getNameExpression, setNameExpression
getAnnotation, getAnnotationBlock, getAnnotations, getAnnotationsValues, getBooleanAnnotationValue, getBooleanAnnotationValue, hasAnnotation, setAnnotationBlock
getChildren, getComments, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
protected boolean isCritique
protected ConstraintContext constraintContext
protected ExecutableBlock<Boolean> guardBlock
protected ExecutableBlock<Boolean> checkBlock
protected ExecutableBlock<String> messageBlock
public void build(AST cst, IModule module)
build
in interface ModuleElement
build
in class NamedRule
public boolean isInfo()
public boolean isLazy(IEvlContext context) throws EolRuntimeException
EolRuntimeException
public boolean appliesTo(Object object, IEvlContext context) throws EolRuntimeException
appliesTo(Object, IEvlContext)
for old clients.EolRuntimeException
public boolean appliesTo(Object object, IEvlContext context, boolean checkType) throws EolRuntimeException
EolRuntimeException
public boolean check(Object self, IEvlContext context) throws EolRuntimeException
check(Object, IEvlContext, boolean)
for old clients.EolRuntimeException
public boolean check(Object self, IEvlContext context, boolean checkType) throws EolRuntimeException
EolRuntimeException
protected boolean postprocessCheck(Object self, IEvlContext context, UnsatisfiedConstraint unsatisfiedConstraint, Boolean result) throws EolRuntimeException
EolRuntimeException
protected UnsatisfiedConstraint preprocessCheck(Object self, IEvlContext context)
public List<?> getModuleElements()
getModuleElements
in class NamedRule
public ConstraintContext getConstraintContext()
public void setConstraintContext(ConstraintContext constraintContext)
public boolean isCritique()
public void setCritique(boolean isCritique)
Copyright © 2016. All rights reserved.