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 |
nameExpressionannotationBlock| 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, setNameExpressiongetAnnotation, getAnnotationBlock, getAnnotations, getAnnotationsValues, getBooleanAnnotationValue, getBooleanAnnotationValue, hasAnnotation, setAnnotationBlockgetChildren, getComments, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUriprotected 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 ModuleElementbuild in class NamedRulepublic boolean isInfo()
public boolean isLazy(IEvlContext context) throws EolRuntimeException
EolRuntimeExceptionpublic boolean appliesTo(Object object, IEvlContext context) throws EolRuntimeException
appliesTo(Object, IEvlContext) for old clients.EolRuntimeExceptionpublic boolean appliesTo(Object object, IEvlContext context, boolean checkType) throws EolRuntimeException
EolRuntimeExceptionpublic boolean check(Object self, IEvlContext context) throws EolRuntimeException
check(Object, IEvlContext, boolean) for old clients.EolRuntimeExceptionpublic boolean check(Object self, IEvlContext context, boolean checkType) throws EolRuntimeException
EolRuntimeExceptionprotected boolean postprocessCheck(Object self, IEvlContext context, UnsatisfiedConstraint unsatisfiedConstraint, Boolean result) throws EolRuntimeException
EolRuntimeExceptionprotected UnsatisfiedConstraint preprocessCheck(Object self, IEvlContext context)
public List<?> getModuleElements()
getModuleElements in class NamedRulepublic ConstraintContext getConstraintContext()
public void setConstraintContext(ConstraintContext constraintContext)
public boolean isCritique()
public void setCritique(boolean isCritique)
Copyright © 2016. All rights reserved.