org.openarchitectureware.xtend.ast
Class Check
java.lang.Object
org.openarchitectureware.expression.ast.SyntaxElement
org.openarchitectureware.xtend.ast.Check
- All Implemented Interfaces:
- ISyntaxElement
public class Check
- extends SyntaxElement
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Check
public Check(Identifier type,
Expression guard,
boolean errorSeverity,
Expression msg,
Expression constraint)
analyze
public final void analyze(ExecutionContext ctx,
java.util.Set<AnalysationIssue> issues)
validate
public void validate(ExecutionContext ctx,
java.util.Collection<?> colToCheck,
Issues issues,
boolean warnIfNothingChecked)
- Executes the check.
- Parameters:
ctx
- The current execution contextcolToCheck
- Collection of objects on which the check is evaluatedissues
- Errors and warnings are reported to this instancewarnIfNothingChecked
- true
: If this check is not evaluated for any
elements an warning will be added to issues
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
isErrorCheck
public boolean isErrorCheck()
getConstraint
public Expression getConstraint()
getGuard
public Expression getGuard()
getMsg
public Expression getMsg()
getType
public Identifier getType()