private class Resolver.OtherConstraintsProcessor extends AbstractConstraintProcessor
Resolver.otherConstraints. Call
#setParameter(CompoundAccess, AbstractVariable) before
processing and clear() afterwards before reuse.AbstractConstraintProcessor.ExpressionType| Modifier and Type | Field and Description |
|---|---|
private net.ssehub.easy.varModel.model.AbstractVariable |
self |
private net.ssehub.easy.varModel.cst.ConstraintSyntaxTree |
selfEx |
private net.ssehub.easy.varModel.confModel.IDecisionVariable |
variable |
| Modifier | Constructor and Description |
|---|---|
private |
OtherConstraintsProcessor() |
| Modifier and Type | Method and Description |
|---|---|
private void |
clear()
Clears the parameters for reuse.
|
ContextStack |
getContextStack()
Returns the context stack, e.g., for type exclusions.
|
net.ssehub.easy.varModel.cst.ConstraintSyntaxTree |
process(net.ssehub.easy.varModel.cst.ConstraintSyntaxTree cst,
AbstractConstraintProcessor.ExpressionType type,
java.lang.String slot,
net.ssehub.easy.varModel.model.IModelElement parent)
Processes a constraint syntax tree.
|
private void |
setParameter(net.ssehub.easy.varModel.cst.ConstraintSyntaxTree selfEx,
net.ssehub.easy.varModel.model.AbstractVariable self,
net.ssehub.easy.varModel.confModel.IDecisionVariable variable)
Sets the parameters for processing.
|
processprivate net.ssehub.easy.varModel.cst.ConstraintSyntaxTree selfEx
private net.ssehub.easy.varModel.model.AbstractVariable self
private net.ssehub.easy.varModel.confModel.IDecisionVariable variable
private void setParameter(net.ssehub.easy.varModel.cst.ConstraintSyntaxTree selfEx,
net.ssehub.easy.varModel.model.AbstractVariable self,
net.ssehub.easy.varModel.confModel.IDecisionVariable variable)
selfEx - an expression representing self (ignored if null, self and
selfEx shall never both be specified/not null).self - an variable declaration representing self (ignored if null).variable - the variable the constraints are processed for (may be null)private void clear()
public net.ssehub.easy.varModel.cst.ConstraintSyntaxTree process(net.ssehub.easy.varModel.cst.ConstraintSyntaxTree cst,
AbstractConstraintProcessor.ExpressionType type,
java.lang.String slot,
net.ssehub.easy.varModel.model.IModelElement parent)
AbstractConstraintProcessorprocess in class AbstractConstraintProcessorcst - the constraint syntax treetype - the type of cstslot - the slot name, only in case of AbstractConstraintProcessor.ExpressionType.DEFAULT or
AbstractConstraintProcessor.ExpressionType.ANNOTATION_DEFAULTparent - the actual/intended parent if not determined otherwisecstpublic ContextStack getContextStack()
AbstractConstraintProcessorgetContextStack in class AbstractConstraintProcessorCopyright © 2009 - 2018 SSE. All Rights Reserved.