Uses of Class
net.ssehub.easy.varModel.cst.ConstraintSyntaxTree
-
Packages that use ConstraintSyntaxTree Package Description de.uni_hildesheim.sse IVML core main classes (exported).de.uni_hildesheim.sse.translation The mechanisms needed to translate an IVML Ecore model into an IVML object model.net.ssehub.easy.reasoning.core.reasoner All classes and interfaces needed to implement a reasoner.
How to write a reasoner: Create an Eclipse Plugin project with Activator (even if "empty"). Addorg.eclipse.equinox.dsto the required plugins andorg.osgi.service.componentto the imported packages as your reasoner will be linked using OSGi descriptive services (DS) to the reasoner core.net.ssehub.easy.reasoning.sseReasoner Package contains the EASy-Producer reasoner implementation classes.net.ssehub.easy.reasoning.sseReasoner.functions Package contains custom functions for IVML.net.ssehub.easy.reasoning.sseReasoner.model Package for creating a reasoning model: constraint container, project hierachy evaluator and other.net.ssehub.easy.varModel.confModel This package represents a specific variability model configuration.net.ssehub.easy.varModel.cst Package for elements of the constraint syntax tree.net.ssehub.easy.varModel.cstEvaluation Implements the evaluation of constraint syntax trees.net.ssehub.easy.varModel.model Base package for the variability model.net.ssehub.easy.varModel.model.datatypes Base directory for the main datatype classes.net.ssehub.easy.varModel.model.filter This package contains utility classes for filtering the model for specific model elements.net.ssehub.easy.varModel.model.rewrite Classes for creating an (adapted) copy of theProject.net.ssehub.easy.varModel.model.rewrite.modifier Modifier for theProjectRewriteVisitor.net.ssehub.easy.varModel.model.values Instances of the datatypes.net.ssehub.easy.varModel.persistency These package is for reading and saving the variability model and the configuration.
Currently supported file formats: EASy-Producer 2.0 config files (xml) IVMLnet.ssehub.easy.varModel.validation Classes for validating e variability model, e.g. -
-
Uses of ConstraintSyntaxTree in de.uni_hildesheim.sse
Methods in de.uni_hildesheim.sse that return ConstraintSyntaxTree Modifier and Type Method Description ConstraintSyntaxTreeModelUtility. createExpression(java.lang.String text, IModelElement parent)Parses a text into an expression in the context ofproject. -
Uses of ConstraintSyntaxTree in de.uni_hildesheim.sse.translation
Methods in de.uni_hildesheim.sse.translation that return ConstraintSyntaxTree Modifier and Type Method Description private ConstraintSyntaxTreeTypeContext. createValueTree(java.lang.String sValue, IDatatype type, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)Creates a value tree for a giventype.private ConstraintSyntaxTreeExpressionTranslator. getAccessor(de.uni_hildesheim.sse.ivml.AdditiveExpression ex, DecisionVariableDeclaration decl)Extracts a compound accessor/slot name from the given expression.private ConstraintSyntaxTreeExpressionTranslator. getAccessor(de.uni_hildesheim.sse.ivml.AssignmentExpression ex, DecisionVariableDeclaration decl)Extracts a compound accessor/slot name from the given expression.private ConstraintSyntaxTreeExpressionTranslator. getAccessor(de.uni_hildesheim.sse.ivml.EqualityExpression ex, DecisionVariableDeclaration decl)Extracts a compound accessor/slot name from the given expression.private ConstraintSyntaxTreeExpressionTranslator. getAccessor(de.uni_hildesheim.sse.ivml.ImplicationExpression ex, DecisionVariableDeclaration decl)Extracts a compound accessor/slot name from the given expression.private ConstraintSyntaxTreeExpressionTranslator. getAccessor(de.uni_hildesheim.sse.ivml.Literal ex, DecisionVariableDeclaration decl)Extracts a compound accessor/slot name from the given expression.private ConstraintSyntaxTreeExpressionTranslator. getAccessor(de.uni_hildesheim.sse.ivml.LogicalExpression ex, DecisionVariableDeclaration decl)Extracts a compound accessor/slot name from the given expression.private ConstraintSyntaxTreeExpressionTranslator. getAccessor(de.uni_hildesheim.sse.ivml.MultiplicativeExpression ex, DecisionVariableDeclaration decl)Extracts a compound accessor/slot name from the given expression.private ConstraintSyntaxTreeExpressionTranslator. getAccessor(de.uni_hildesheim.sse.ivml.PostfixExpression ex, DecisionVariableDeclaration decl)Extracts a compound accessor/slot name from the given expression.private ConstraintSyntaxTreeExpressionTranslator. getAccessor(de.uni_hildesheim.sse.ivml.PrimaryExpression ex, DecisionVariableDeclaration decl)Extracts a compound accessor/slot name from the given expression.private ConstraintSyntaxTreeExpressionTranslator. getAccessor(de.uni_hildesheim.sse.ivml.RelationalExpression ex, DecisionVariableDeclaration decl)Extracts a compound accessor/slot name from the given expression.private ConstraintSyntaxTreeExpressionTranslator. getAccessor(de.uni_hildesheim.sse.ivml.UnaryExpression ex, DecisionVariableDeclaration decl)Extracts a compound accessor/slot name from the given expression.private ConstraintSyntaxTreeExpressionTranslator. getAccessor(de.uni_hildesheim.sse.ivml.Value ex, DecisionVariableDeclaration decl)Extracts a compound accessor/slot name from the given expression.private ConstraintSyntaxTreeExpressionTranslator. getAccessor(java.util.List<de.uni_hildesheim.sse.ivml.ActualArgument> args, DecisionVariableDeclaration decl)Extracts a compound accessor/slot name from the given arguments.private ConstraintSyntaxTreeExpressionTranslator. handleBasicComment(org.eclipse.emf.ecore.EObject object, ConstraintSyntaxTree subtree)Handles the comments assigned to the EMF AST elementobjectand inserts a comment node as top of thesubtreeif required.private ConstraintSyntaxTreeExpressionTranslator. processAccess(ConstraintSyntaxTree lhs, de.uni_hildesheim.sse.ivml.ExpressionAccess access, TypeContext context, IModelElement parent)Process an access expression.private ConstraintSyntaxTreeExpressionTranslator. processAdditiveExpression(de.uni_hildesheim.sse.ivml.AdditiveExpression expr, TypeContext context, IModelElement parent)Process an additive expression and turn it into a feature call.private ConstraintSyntaxTreeExpressionTranslator. processArgument(IDatatype lhsType, de.uni_hildesheim.sse.ivml.ActualArgument arg, TypeContext context, IModelElement parent)Process an argument and returns a (named) expression.private ConstraintSyntaxTreeExpressionTranslator. processAssignmentExpression(de.uni_hildesheim.sse.ivml.AssignmentExpression expr, TypeContext context, IModelElement parent)Process an assignment expression and turn it into a feature call.(package private) ConstraintSyntaxTreeExpressionTranslator. processBlockExpression(de.uni_hildesheim.sse.ivml.BlockExpression block, TypeContext context, IModelElement parent)Processes a block expression.private ConstraintSyntaxTreeExpressionTranslator. processCallsAndAccess(ConstraintSyntaxTree lhs, java.util.List<de.uni_hildesheim.sse.ivml.Call> calls, de.uni_hildesheim.sse.ivml.ExpressionAccess access, TypeContext context, IModelElement parent)Process a possible empty list of calls and a possible empty access expression.private ConstraintSyntaxTreeExpressionTranslator. processCompoundInitializer(IDatatype lhsType, TypeContext context, IModelElement parent, IDatatype specificType, org.eclipse.emf.common.util.EList<de.uni_hildesheim.sse.ivml.ExpressionListEntry> entryList)Processes a compound initializer.private ConstraintSyntaxTreeExpressionTranslator. processContainerInitializer(IDatatype lhsType, TypeContext context, IModelElement parent, org.eclipse.emf.common.util.EList<de.uni_hildesheim.sse.ivml.ExpressionListEntry> entryList)Processes a container initializer.private ConstraintSyntaxTreeExpressionTranslator. processContainerInitializer(IDatatype lhsType, org.eclipse.emf.ecore.EObject expr, de.uni_hildesheim.sse.ivml.ContainerInitializer initializer, TypeContext context, IModelElement parent)Processes a container initializer.private ConstraintSyntaxTreeExpressionTranslator. processContainerOp(ConstraintSyntaxTree lhs, de.uni_hildesheim.sse.ivml.ContainerOp op, TypeContext context, IModelElement parent)Processes a container operation.private ConstraintSyntaxTreeExpressionTranslator. processContainerOp(ConstraintSyntaxTree lhs, de.uni_hildesheim.sse.ivml.ContainerOp op, java.util.List<DecisionVariableDeclaration> declarators, ConstraintSyntaxTree declEx, TypeContext context, IModelElement parent)Processes a container operation.private ConstraintSyntaxTreeExpressionTranslator. processEqualityExpression(de.uni_hildesheim.sse.ivml.EqualityExpression expr, TypeContext context, IModelElement parent)Process a equality expression and turn it into a feature call.ConstraintSyntaxTreeExpressionTranslator. processExpression(de.uni_hildesheim.sse.ivml.Expression expr, TypeContext context, IModelElement parent)Processes an expression and returns the result as a syntax tree.(package private) ConstraintSyntaxTreeExpressionTranslator. processExpression(IDatatype lhsType, de.uni_hildesheim.sse.ivml.Expression expr, TypeContext context, IModelElement parent)Processes an expression and returns the result as a syntax tree.private ConstraintSyntaxTreeExpressionTranslator. processExpression(IDatatype lhsType, de.uni_hildesheim.sse.ivml.OptBlockExpression expr, TypeContext context, IModelElement parent)Processes an (optional block) expression.private ConstraintSyntaxTreeExpressionTranslator. processFeatureCall(ConstraintSyntaxTree lhs, de.uni_hildesheim.sse.ivml.FeatureCall call, TypeContext context, IModelElement parent)Processes a feature call.private ConstraintSyntaxTreeExpressionTranslator. processFeatureCallImpl(ConstraintSyntaxTree lhs, de.uni_hildesheim.sse.ivml.ActualArgumentList call, TypeContext context, IModelElement parent, boolean checkOclCompliance)Processes a feature call.private ConstraintSyntaxTreeExpressionTranslator. processImplicationExpression(de.uni_hildesheim.sse.ivml.ImplicationExpression expr, TypeContext context, IModelElement parent)Process an implication expression and turn it into a feature call.private ConstraintSyntaxTreeExpressionTranslator. processLiteralContainer(IDatatype lhsType, de.uni_hildesheim.sse.ivml.ContainerInitializer initializer, TypeContext context, IModelElement parent)Processes a collection initializer and returns the related constraint syntax tree node.(package private) ConstraintSyntaxTreeExpressionTranslator. processLogicalExpression(de.uni_hildesheim.sse.ivml.LogicalExpression expr, TypeContext context, IModelElement parent)Process a logical expression and turn it into a feature call.private ConstraintSyntaxTreeExpressionTranslator. processMultiplicativeExpression(de.uni_hildesheim.sse.ivml.MultiplicativeExpression expr, TypeContext context, IModelElement parent)Process a multiplicative expression and turn it into a feature call.private ConstraintSyntaxTreeModelTranslator. processOpDefImpl(de.uni_hildesheim.sse.ivml.OpDefStatement op, TypeContext context, IModelElement parent)Processes an operation definition implementation.private ConstraintSyntaxTreeExpressionTranslator. processPostfixExpression(de.uni_hildesheim.sse.ivml.PostfixExpression expr, TypeContext context, IModelElement parent)Process a postfix expression and turn it into a feature call.private ConstraintSyntaxTreeExpressionTranslator. processPrimaryExpression(de.uni_hildesheim.sse.ivml.PrimaryExpression expr, TypeContext context, IModelElement parent)Process a primary expression.(package private) ConstraintSyntaxTreeTypeContext. processQValue(java.lang.String sValue, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)Processes a qualified name as value.private ConstraintSyntaxTreeExpressionTranslator. processRelationalExpression(de.uni_hildesheim.sse.ivml.RelationalExpression expr, TypeContext context, IModelElement parent)Process a relational expression and turn it into a feature call.private ConstraintSyntaxTreeExpressionTranslator. processUnaryExpression(de.uni_hildesheim.sse.ivml.UnaryExpression expr, TypeContext context, IModelElement parent)Process a unary expression and turn it into a feature call.private ConstraintSyntaxTreeTypeContext. resolveSelf(IModelElement parent, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)Resolves "self" and returns the corresponding syntax tree (one node).ConstraintSyntaxTreeTypeContext. resolveValue(de.uni_hildesheim.sse.ivml.Value value, IModelElement parent, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)Resolves a value and returns the corresponding syntax tree (one node).Methods in de.uni_hildesheim.sse.translation with parameters of type ConstraintSyntaxTree Modifier and Type Method Description private static booleanExpressionTranslator. allConstant(ConstraintSyntaxTree[] exprs)Returns whether allexprsare constant.private voidExpressionTranslator. checkForAssigment(ConstraintSyntaxTree cst, boolean error, org.eclipse.emf.ecore.EObject cause, org.eclipse.emf.ecore.EStructuralFeature causingFeature)Checks for an assignment operation directly incstand emits an error or a warning in case that the operation is found.private voidExpressionTranslator. checkForSameTypeWarning(ConstraintSyntaxTree lhs, java.lang.String op, ConstraintSyntaxTree rhs, org.eclipse.emf.ecore.EObject cause, org.eclipse.emf.ecore.EStructuralFeature feature)Checks whether the operationopmay return wrong results if types on both sides are not somehow assignable.private ConstraintSyntaxTreeExpressionTranslator. handleBasicComment(org.eclipse.emf.ecore.EObject object, ConstraintSyntaxTree subtree)Handles the comments assigned to the EMF AST elementobjectand inserts a comment node as top of thesubtreeif required.private IDatatypeExpressionTranslator. inferDatatypeQuietly(ConstraintSyntaxTree cst)Infers the datatype ofcst.private ConstraintSyntaxTreeExpressionTranslator. processAccess(ConstraintSyntaxTree lhs, de.uni_hildesheim.sse.ivml.ExpressionAccess access, TypeContext context, IModelElement parent)Process an access expression.private ConstraintSyntaxTreeExpressionTranslator. processCallsAndAccess(ConstraintSyntaxTree lhs, java.util.List<de.uni_hildesheim.sse.ivml.Call> calls, de.uni_hildesheim.sse.ivml.ExpressionAccess access, TypeContext context, IModelElement parent)Process a possible empty list of calls and a possible empty access expression.private ConstraintSyntaxTreeExpressionTranslator. processContainerOp(ConstraintSyntaxTree lhs, de.uni_hildesheim.sse.ivml.ContainerOp op, TypeContext context, IModelElement parent)Processes a container operation.private ConstraintSyntaxTreeExpressionTranslator. processContainerOp(ConstraintSyntaxTree lhs, de.uni_hildesheim.sse.ivml.ContainerOp op, java.util.List<DecisionVariableDeclaration> declarators, ConstraintSyntaxTree declEx, TypeContext context, IModelElement parent)Processes a container operation.private voidExpressionTranslator. processDeclaration(ConstraintSyntaxTree lhs, de.uni_hildesheim.sse.ivml.ContainerOp op, TypeContext context, IModelElement parent, de.uni_hildesheim.sse.ivml.Declaration declaration, java.util.List<DecisionVariableDeclaration> declarators)Processes a valid declaration.private ConstraintSyntaxTreeExpressionTranslator. processFeatureCall(ConstraintSyntaxTree lhs, de.uni_hildesheim.sse.ivml.FeatureCall call, TypeContext context, IModelElement parent)Processes a feature call.private ConstraintSyntaxTreeExpressionTranslator. processFeatureCallImpl(ConstraintSyntaxTree lhs, de.uni_hildesheim.sse.ivml.ActualArgumentList call, TypeContext context, IModelElement parent, boolean checkOclCompliance)Processes a feature call. -
Uses of ConstraintSyntaxTree in net.ssehub.easy.reasoning.core.reasoner
Fields in net.ssehub.easy.reasoning.core.reasoner with type parameters of type ConstraintSyntaxTree Modifier and Type Field Description private java.util.List<ConstraintSyntaxTree>Message. problemConstraintPartsMethods in net.ssehub.easy.reasoning.core.reasoner that return types with arguments of type ConstraintSyntaxTree Modifier and Type Method Description java.util.List<ConstraintSyntaxTree>Message. getProblemConstraintParts()Method for returning a list of partialConstraintSyntaxTrees that are involved in each failed constraint.Methods in net.ssehub.easy.reasoning.core.reasoner with parameters of type ConstraintSyntaxTree Modifier and Type Method Description ConstraintAnnotationAssignmentConstraint. createConstraint(ConstraintSyntaxTree consSyntax)ConstraintAttachedConstraint. createConstraint(ConstraintSyntaxTree consSyntax)ConstraintConstraintVariableConstraint. createConstraint(ConstraintSyntaxTree consSyntax)ConstraintDefaultConstraint. createConstraint(ConstraintSyntaxTree consSyntax)ConstraintTypedConstraint. createConstraint(ConstraintSyntaxTree consSyntax)Method parameters in net.ssehub.easy.reasoning.core.reasoner with type arguments of type ConstraintSyntaxTree Modifier and Type Method Description voidMessage. addProblemConstraintParts(java.util.List<ConstraintSyntaxTree> constraints)Method for adding a list of partialConstraintSyntaxTrees that are involved in each failed constraint.Constructors in net.ssehub.easy.reasoning.core.reasoner with parameters of type ConstraintSyntaxTree Constructor Description AnnotationAssignmentConstraint(ConstraintSyntaxTree consSyntax, IModelElement parent)Creates a new constraint from an already parsed syntax tree.AttachedConstraint(ConstraintSyntaxTree consSyntax, IDatatype type, IModelElement parent)Creates a new constraint from an already parsed syntax tree.ConstraintVariableConstraint(ConstraintSyntaxTree consSyntax, IModelElement parent)Creates a new constraint from an already parsed syntax tree.DefaultConstraint(ConstraintSyntaxTree consSyntax, IModelElement parent)Creates a new constraint from an already parsed syntax tree.TypedConstraint(ConstraintSyntaxTree consSyntax, Constraint.IConstraintType type, IModelElement parent)Creates a new constraint from an already parsed syntax tree. -
Uses of ConstraintSyntaxTree in net.ssehub.easy.reasoning.sseReasoner
Fields in net.ssehub.easy.reasoning.sseReasoner declared as ConstraintSyntaxTree Modifier and Type Field Description private ConstraintSyntaxTreeResolver.CompoundAnnotationMapper. cAccprivate ConstraintSyntaxTreeCheckInitializerVisitor. expressionprivate ConstraintSyntaxTreeResolver.OtherConstraintsProcessor. selfExFields in net.ssehub.easy.reasoning.sseReasoner with type parameters of type ConstraintSyntaxTree Modifier and Type Field Description private java.util.List<ConstraintSyntaxTree>Engine. problemConstraintPartsMethods in net.ssehub.easy.reasoning.sseReasoner that return ConstraintSyntaxTree Modifier and Type Method Description private static ConstraintSyntaxTreeResolver. checkTypeCast(IDatatype declType, IDatatype actType, AbstractVariable decl, ConstraintSyntaxTree cAcc)Inserts a type cast if needed.private ConstraintSyntaxTreeResolver. getFailedConstraintPart()Method for checking part of a failed constraints against null.private ConstraintSyntaxTreeResolver. getNestedAccessor(AbstractVariable nestedDecl, ConstraintSyntaxTree cAcc)Returns the accessor for a nested variable declaration.ConstraintSyntaxTreeResolver.OtherConstraintsProcessor. process(ConstraintSyntaxTree cst, AbstractConstraintProcessor.ExpressionType type, java.lang.String slot, IModelElement parent)(package private) ConstraintSyntaxTreeResolver. substituteVariables(ConstraintSyntaxTree cst, ConstraintSyntaxTree selfEx, AbstractVariable self, ConstraintSyntaxTree acc)Method for usingSubstitutionVisitorfor constraint transformation.Methods in net.ssehub.easy.reasoning.sseReasoner with parameters of type ConstraintSyntaxTree Modifier and Type Method Description voidCheckInitializerVisitor. accept(ConstraintSyntaxTree cst, IModelElement parent, IDecisionVariable variable)Accepts the results of a container constraints finder and derives constraints from the contained constraints / constraint values.private voidCheckInitializerVisitor. checkForConstraint(IDatatype type, ConstraintSyntaxTree cst)Checks for a constraint expression.private static ConstraintSyntaxTreeResolver. checkTypeCast(IDatatype declType, IDatatype actType, AbstractVariable decl, ConstraintSyntaxTree cAcc)Inserts a type cast if needed.(package private) voidResolver. contextRegisterMapping(AbstractVariable var, ConstraintSyntaxTree acc)Registers a mapping between the variablevarand its actual access expressionaccinto the current top-most context.(package private) ConstraintResolver. createConstraintVariableConstraint(ConstraintSyntaxTree cst, ConstraintSyntaxTree selfEx, AbstractVariable self, IModelElement parent, IDecisionVariable variable)Creates a constraint for a (nested) constraint variable adding the result to#constraintVariablesConstraints.(package private) ConstraintResolver. createConstraintVariableConstraint(ConstraintSyntaxTree cst, AbstractVariable self, boolean checkForInitializers, IModelElement parent, IDecisionVariable variable)Creates a constraint for a (nested) constraint variable adding the result toResolver.otherConstraints.(package private) voidResolver. createContainerConstraintValueConstraints(ContainerValue val, ConstraintSyntaxTree selfEx, AbstractVariable self, IModelElement parent, IDecisionVariable nestedVariable)Checks a container value for nested constraint values, i.e., values of nested constraint variables.private ConstraintSyntaxTreeResolver. getNestedAccessor(AbstractVariable nestedDecl, ConstraintSyntaxTree cAcc)Returns the accessor for a nested variable declaration.protected voidResolver.CompoundAnnotationMapper. initialize(ConstraintSyntaxTree cAcc, Variable declVar)Initializes the mapper.ConstraintSyntaxTreeResolver.OtherConstraintsProcessor. process(ConstraintSyntaxTree cst, AbstractConstraintProcessor.ExpressionType type, java.lang.String slot, IModelElement parent)private voidResolver. processCompoundEvals(Compound cmpType, ConstraintSyntaxTree selfEx, AbstractVariable self, IDecisionVariable variable)Method for extracting constraints from compounds eval blocks (also refined compounds).private voidResolver. processEvalConstraints(PartialEvaluationBlock evalBlock, ConstraintSyntaxTree selfEx, AbstractVariable self, IDecisionVariable variable)Method for handling eval blocks - searching for nested eval blocks and extracting constraints.private voidResolver. registerCompoundMapping(Compound type, ConstraintSyntaxTree cAcc, Variable declVar)Registers the mapping for a compound type.private voidResolver. registerCompoundSlotMapping(Compound type, ConstraintSyntaxTree cAcc, Variable declVar)Registers the slot mappings for compound slots oftype.private voidResolver.OtherConstraintsProcessor. setParameter(ConstraintSyntaxTree selfEx, AbstractVariable self, IDecisionVariable variable)Sets the parameters for processing.(package private) ConstraintSyntaxTreeResolver. substituteVariables(ConstraintSyntaxTree cst, ConstraintSyntaxTree selfEx, AbstractVariable self, ConstraintSyntaxTree acc)Method for usingSubstitutionVisitorfor constraint transformation.private voidResolver. translateAnnotationAssignment(AttributeAssignment.Assignment assignment, DecisionVariableDeclaration element, ConstraintSyntaxTree compound)Method for creating attribute constraint for a specific element.private voidResolver. translateAnnotationAssignments(AttributeAssignment assignment, IDecisionVariable var, java.util.List<AttributeAssignment.Assignment> effectiveAssignments, ConstraintSyntaxTree compound)Translates attribute assignments.private voidResolver. translateAnnotationDeclaration(Attribute decl, IDecisionVariable variable, ConstraintSyntaxTree cAcc, boolean qualifyAttribute)Translates an annotation declaration.private voidResolver. translateAnnotationDeclarations(AbstractVariable decl, IDecisionVariable variable, ConstraintSyntaxTree cAcc)Translates annotation declarations.private voidResolver. translateCompoundContainer(AbstractVariable decl, Compound type, IDatatype declaredContainedType, ConstraintSyntaxTree cAcc)Translates an entire compound containerdeclincluding defaults and constraints for the specific typecmpType(iterate through all relevant types).private voidResolver. translateCompoundContent(AbstractVariable decl, IDecisionVariable variable, Compound type, ConstraintSyntaxTree cAcc)Translates the compound content.private intResolver. translateCompoundDeclaration(AbstractVariable decl, IDecisionVariable variable, ConstraintSyntaxTree cAcc, Compound type, int mode)Translates translating compound type declarations, but only if notContextStack.alreadyProcessed(IDatatype)in nested collection/compound types.private voidResolver. translateContainerDeclaration(AbstractVariable decl, IDecisionVariable var, IDatatype type, ConstraintSyntaxTree cAcc)Translates the (transitive) defaults and type constraints for a container declaration.private voidResolver. translateDeclaration(AbstractVariable decl, IDecisionVariable var, ConstraintSyntaxTree cAcc)Translates the (transitive) defaults and type constraints for a declaration.private voidResolver. translateDerivedDatatypeConstraints(AbstractVariable decl, IDatatype type, DecisionVariableDeclaration localDecl, IModelElement parent, int refCounter, ConstraintSyntaxTree cAcc)Extracts, translates and collects the internal constraints oftype(if derived or, transitively, a reference datatype) and stores the constraints in#derivedTypeConstraints. -
Uses of ConstraintSyntaxTree in net.ssehub.easy.reasoning.sseReasoner.functions
Fields in net.ssehub.easy.reasoning.sseReasoner.functions declared as ConstraintSyntaxTree Modifier and Type Field Description private ConstraintSyntaxTreeFailedElementDetails. problemConstraintPartMethods in net.ssehub.easy.reasoning.sseReasoner.functions that return ConstraintSyntaxTree Modifier and Type Method Description ConstraintSyntaxTreeFailedElementDetails. getProblemConstraintPart()Method for returning a part of failed ConstraintsConstraintSyntaxTree.abstract ConstraintSyntaxTreeAbstractConstraintProcessor. process(ConstraintSyntaxTree cst, AbstractConstraintProcessor.ExpressionType type, java.lang.String slot, IModelElement parent)Processes a constraint syntax tree.ConstraintSyntaxTreeAbstractConstraintProcessor. process(Constraint constraint, AbstractConstraintProcessor.ExpressionType type)Processes a constraint (taking over the parent ofconstraint).Methods in net.ssehub.easy.reasoning.sseReasoner.functions with parameters of type ConstraintSyntaxTree Modifier and Type Method Description abstract ConstraintSyntaxTreeAbstractConstraintProcessor. process(ConstraintSyntaxTree cst, AbstractConstraintProcessor.ExpressionType type, java.lang.String slot, IModelElement parent)Processes a constraint syntax tree.voidFailedElementDetails. setProblemConstraintPart(ConstraintSyntaxTree problemConstraintPart)Method for adding a part of failed ConstraintsConstraintSyntaxTree. -
Uses of ConstraintSyntaxTree in net.ssehub.easy.reasoning.sseReasoner.model
Fields in net.ssehub.easy.reasoning.sseReasoner.model declared as ConstraintSyntaxTree Modifier and Type Field Description private ConstraintSyntaxTreeContextStack.Context. containerContainer accessor for incremental container quantification.private ConstraintSyntaxTreeSubstitutionVisitor. excludeFromMappingprivate ConstraintSyntaxTreeSubstitutionVisitor. selfExFields in net.ssehub.easy.reasoning.sseReasoner.model with type parameters of type ConstraintSyntaxTree Modifier and Type Field Description private java.util.Map<AbstractVariable,ConstraintSyntaxTree>SubstitutionVisitor. mappingprivate java.util.Map<java.lang.String,ConstraintSyntaxTree>ContextStack.Context. nameMapSecundary name-accessor mapping, consistent withContextStack.Context.varMap.private java.util.Map<java.lang.String,ConstraintSyntaxTree>TypeCache.Entry. nameMapprivate java.util.Map<AbstractVariable,ConstraintSyntaxTree>ContextStack.Context. varMapVariable-accessor mapping.private java.util.Map<AbstractVariable,ConstraintSyntaxTree>TypeCache.Entry. varMapMethods in net.ssehub.easy.reasoning.sseReasoner.model that return ConstraintSyntaxTree Modifier and Type Method Description ConstraintSyntaxTreeSubstitutionVisitor. accept(ConstraintSyntaxTree cst)Accepts this oncstand returnsBasicCopyVisitor.getResult().ConstraintSyntaxTreeSubstitutionVisitor. acceptAndClear(ConstraintSyntaxTree cst)ConstraintSyntaxTreeContextStack. composeExpression(ConstraintSyntaxTree cst)Composes an all-quantified expression over the contexts of the stack.static ConstraintSyntaxTreeReasoningUtils. createAsTypeCast(ConstraintSyntaxTree exp, IDatatype targetType)Creates a type cast ("asType" operation, if needed) from the type ofexptotargetTypeapplied toexp.static ConstraintSyntaxTreeReasoningUtils. createAsTypeCast(ConstraintSyntaxTree exp, IDatatype sourceType, IDatatype targetType)Creates a type cast ("asType" operation, if needed) fromsourceTypetotargetTypeapplied toexp.static ConstraintSyntaxTreeReasoningUtils. createParentExpression(IDecisionVariable variable)Creates an expression representing the parent ofvariable.static ConstraintSyntaxTreeReasoningUtils. createTypeValueConstant(IDatatype type)Creates a type value constraint tree node.static ConstraintSyntaxTreeReasoningUtils. createTypeValueConstantSafe(IDatatype type)Creates a type value constraint tree node and logs occurring exceptions.static ConstraintSyntaxTreeReasoningUtils. getConstraintValueExpression(Value value)Returns the expression for a constraint to be created for a constraint variable.ConstraintSyntaxTreeContextStack. getCurrentContainer()Returns the current container expression from the top-most context.ConstraintSyntaxTreeContextStack. getLocalMapping(java.lang.String name)Returns the local mapping for the given variablenamejust from the current context.ConstraintSyntaxTreeTypeCache.Entry. getLocalMapping(java.lang.String name, AbstractVariable self)Returns the local mapping for the given variablenamejust from the current context.ConstraintSyntaxTreeContextStack. getMapping(AbstractVariable var)Returns the mapped access expression forvartaking into account all current contexts of the stack starting with the current top-most one.ConstraintSyntaxTreeTypeCache.Entry. getMapping(AbstractVariable var, AbstractVariable self)Returns the mapped access expression forvartaking into account all current contexts of the stack starting with the current top-most one.private ConstraintSyntaxTreeTypeCache.Entry. instantiate(ConstraintSyntaxTree cst, AbstractVariable var)Instantiates a the given constraint.private ConstraintSyntaxTreeSubstitutionVisitor. map(Variable variable)Maps a variable to its accessor expression.Methods in net.ssehub.easy.reasoning.sseReasoner.model with parameters of type ConstraintSyntaxTree Modifier and Type Method Description ConstraintSyntaxTreeSubstitutionVisitor. accept(ConstraintSyntaxTree cst)Accepts this oncstand returnsBasicCopyVisitor.getResult().ConstraintSyntaxTreeSubstitutionVisitor. acceptAndClear(ConstraintSyntaxTree cst)SubstitutionVisitorSubstitutionVisitor. addVariableMapping(AbstractVariable orig, ConstraintSyntaxTree ex)Adds a variable mapping to be considered during substitution.ConstraintSyntaxTreeContextStack. composeExpression(ConstraintSyntaxTree cst)Composes an all-quantified expression over the contexts of the stack.static ConstraintSyntaxTreeReasoningUtils. createAsTypeCast(ConstraintSyntaxTree exp, IDatatype targetType)Creates a type cast ("asType" operation, if needed) from the type ofexptotargetTypeapplied toexp.static ConstraintSyntaxTreeReasoningUtils. createAsTypeCast(ConstraintSyntaxTree exp, IDatatype sourceType, IDatatype targetType)Creates a type cast ("asType" operation, if needed) fromsourceTypetotargetTypeapplied toexp.static ContainerOperationCallReasoningUtils. createContainerCall(ConstraintSyntaxTree container, Operation op, ConstraintSyntaxTree iterEx, DecisionVariableDeclaration... decl)Creates a container operation call ("shortcut").voidSubstitutionVisitor. excludeFromMapping(ConstraintSyntaxTree cst)Excludes the given expression from mapping, e.g., if the expression is an already complete accessor expression and a mapping would be based on a previously registered (incorrect) mapping.static IDatatypeReasoningUtils. inferTypeSafe(ConstraintSyntaxTree cst, IDatatype dflt)Infers the type ofcstusingdfltas fallback.private ConstraintSyntaxTreeTypeCache.Entry. instantiate(ConstraintSyntaxTree cst, AbstractVariable var)Instantiates a the given constraint.private booleanVariablesInNotSimpleAssignmentConstraintsFinder. isConstraint(ConstraintSyntaxTree cst)Returns whether the type ofcstis a constraint type.voidContextStack. pushContext(AbstractVariable decl, ConstraintSyntaxTree container, DecisionVariableDeclaration iterator, boolean recordProcessedTypes)Pushes a new container context to the stack.voidContextStack. registerMapping(AbstractVariable var, ConstraintSyntaxTree acc)Registers a mapping between the variablevarand its actual access expressionaccinto the current top-most context.SubstitutionVisitorSubstitutionVisitor. setSelf(ConstraintSyntaxTree selfEx)Defines self in terms of an expression.static java.lang.StringReasoningUtils. toIvmlString(ConstraintSyntaxTree cst)Turns a constraint syntax tree into a string.Method parameters in net.ssehub.easy.reasoning.sseReasoner.model with type arguments of type ConstraintSyntaxTree Modifier and Type Method Description voidTypeCache. transferContext(IDatatype type, java.util.Map<AbstractVariable,ConstraintSyntaxTree> varMap, java.util.Map<java.lang.String,ConstraintSyntaxTree> nameMap)Transfers the mappings of the givencontextinto the cache entry oftype.Constructors in net.ssehub.easy.reasoning.sseReasoner.model with parameters of type ConstraintSyntaxTree Constructor Description VariablesInConstraintFinder(ConstraintSyntaxTree cst, Configuration config)Creates a constraint finder for single use directly oncst. -
Uses of ConstraintSyntaxTree in net.ssehub.easy.varModel.confModel
Fields in net.ssehub.easy.varModel.confModel with type parameters of type ConstraintSyntaxTree Modifier and Type Field Description private java.util.Map<IDatatype,java.util.List<ConstraintSyntaxTree>>QueryCache. refValuesTuple of (Reference.getType(), possible values for the reference).Methods in net.ssehub.easy.varModel.confModel that return ConstraintSyntaxTree Modifier and Type Method Description protected ConstraintSyntaxTreeConfigurationSaver. createAssignmentConstraint(Project dstProject, AbstractVariable decl, IDecisionVariable var, Value value)Creates an assignment constraint.protected ConstraintSyntaxTreeConfigurationSaver. deriveOperand(AbstractVariable decl, IDecisionVariable var)Derives the operand expression for turning a configuration into a project.static ConstraintSyntaxTreeConfigQuery. toCST(IDecisionVariable variable)Converts anIDecisionVariableof the configuration to aVariableexpression, so that it can be used for a value assignment, e.g.Methods in net.ssehub.easy.varModel.confModel that return types with arguments of type ConstraintSyntaxTree Modifier and Type Method Description java.util.List<ConstraintSyntaxTree>QueryCache. getPossibleValues(Reference refType)Calculates possible values (ConstraintSyntaxTree-based) for a givenReferencevariable.java.util.List<ConstraintSyntaxTree>SharedQueryCache. getPossibleValues(Reference refType)(package private) static java.util.List<ConstraintSyntaxTree>ConfigQuery. possibleValuesForReferences(Configuration config, Reference refType)Calculates possible values (ConstraintSyntaxTree-based) for a givenReferencevariable.Methods in net.ssehub.easy.varModel.confModel with parameters of type ConstraintSyntaxTree Modifier and Type Method Description java.lang.StringDisplayNameProvider. getDisplayName(ConstraintSyntaxTree constraint, Configuration configuration)Returns the display name of a constraint, e.g., for a value of a reference.protected voidAbstractConfigurationStatisticsVisitor. visitDefaultValue(ConstraintSyntaxTree constraint)Processes a default value. -
Uses of ConstraintSyntaxTree in net.ssehub.easy.varModel.cst
Subclasses of ConstraintSyntaxTree in net.ssehub.easy.varModel.cst Modifier and Type Class Description classAttributeVariableA variable which represents an attribute.classBlockExpressionRepresents a block of expressions.classCommentRepresents a comment in a parse tree.classCompoundAccessRepresents an expression which accesses a compound slot where the compound is specified as aConstraintSyntaxTree.classCompoundInitializerRepresents a typed initializer for compounds.classConstantValueClass for a constant value.classContainerInitializerRepresents an initializer for containers.classContainerOperationCallRepresents a set operation call with declarators, e.g.classEmptyInitializerAn internal temporary node representing an untyped empty initializer.classIfThenRepresents a conditional expression.classLeafClass for leaves in the ConstraintSyntaxTree.classLetRepresents a let expression, i.e.classMultiAndExpressionRepresents a multi-and expression.classNamedArgumentImplements a named argument as a transparent constraint syntax tree.classOCLFeatureCallClass for OCLFeatureCall.classParenthesisRepresents a parenthesis.classResolvedVariableCarries a resolved variable.classSelfRepresents the a compound itself (for constraints within compounds).classUnresolvedExpressionDenotes an expression (tree) which is currently unresolved due to deferred imports, e.g.classVariableClass for a variable value.Fields in net.ssehub.easy.varModel.cst declared as ConstraintSyntaxTree Modifier and Type Field Description private ConstraintSyntaxTreeUnresolvedExpression. actualExpressionprivate ConstraintSyntaxTreeCompoundAccess. compoundExpressionprivate ConstraintSyntaxTreeContainerOperationCall. containerprivate ConstraintSyntaxTreeConstraintReplacer. copiedConstraintprivate ConstraintSyntaxTreeIfThen. elseExprprivate ConstraintSyntaxTreeComment. exprStores the commented expression.private ConstraintSyntaxTreeParenthesis. exprStores the expression in the parenthesis.private ConstraintSyntaxTreeContainerOperationCall. expressionprivate ConstraintSyntaxTreeNamedArgument. expressionprivate ConstraintSyntaxTreeUnresolvedExpression. expressionprivate ConstraintSyntaxTree[]CompoundInitializer. expressionsprivate ConstraintSyntaxTree[]ContainerInitializer. expressionsprivate ConstraintSyntaxTree[]BlockExpression. exprsprivate ConstraintSyntaxTreeIfThen. ifExprprivate ConstraintSyntaxTreeLet. inExprprivate ConstraintSyntaxTreeOCLFeatureCall. operandprivate ConstraintSyntaxTreeConstraintReplacer. originprivate ConstraintSyntaxTree[]OCLFeatureCall. parametersprivate ConstraintSyntaxTreeAttributeVariable. qualifierprivate ConstraintSyntaxTreeBasicCopyVisitor. resultprivate ConstraintSyntaxTreeIfThen. thenExprMethods in net.ssehub.easy.varModel.cst that return ConstraintSyntaxTree Modifier and Type Method Description ConstraintSyntaxTreeUnresolvedExpression. getActualExpression()Returns the actual expression.ConstraintSyntaxTreeCompoundAccess. getCompoundExpression()The expression denoting the compound to access.ConstraintSyntaxTreeContainerOperationCall. getContainer()Returns the set to operate on (given as an expression).ConstraintSyntaxTreeIfThen. getElseExpr()Returns the else-expression.ConstraintSyntaxTreeComment. getExpr()Returns the commented expression.ConstraintSyntaxTreeParenthesis. getExpr()Returns the nested expression.ConstraintSyntaxTreeBlockExpression. getExpression(int index)Returns the specified expression.ConstraintSyntaxTreeCompoundInitializer. getExpression(int index)Returns the specified expression.ConstraintSyntaxTreeContainerInitializer. getExpression(int index)Returns the specified expression.ConstraintSyntaxTreeContainerOperationCall. getExpression()Returns the iterating expression.ConstraintSyntaxTreeIfThen. getIfExpr()Returns the condition expression.ConstraintSyntaxTreeLet. getInExpression()Returns the expression the local variable may be used in.ConstraintSyntaxTreeLet. getInitExpression()Returns the initialization expression.ConstraintSyntaxTreeOCLFeatureCall. getOperand()Returns the operand.ConstraintSyntaxTreeOCLFeatureCall. getParameter(int index)Returns a specific parameter.ConstraintSyntaxTreeAttributeVariable. getQualifier()Returns the qualifier for accessing the variable, e.g., an expression to be put before.ConstraintSyntaxTreeVariable. getQualifier()Returns the qualifier for accessing the variable, e.g., an expression to be put before.ConstraintSyntaxTreeBasicCopyVisitor. getResult()Returns the copied syntax tree.ConstraintSyntaxTreeContainerOperationCall. getSet()Deprecated.useContainerOperationCall.getContainer()insteadConstraintSyntaxTreeIfThen. getThenExpr()Returns the then-expression.protected ConstraintSyntaxTreeBasicCopyVisitor. inferDatatype(ConstraintSyntaxTree cst)Performs datatype validation if requested.ConstraintSyntaxTreeCopyVisitor.IVariableReplacer. mapLeaf(Variable variable)Maps a leaf variable.ConstraintSyntaxTreeCopyVisitor.IVariableReplacer. mapSelf(Self self)Maps a leaf node.ConstraintSyntaxTreeConstraintReplacer. replaceVariable(Leaf oldLeaf, Leaf newLeaf)Copies a ConstraintSyntaxTree and replaces all occurrences of oldLeaf with newLeaf.Methods in net.ssehub.easy.varModel.cst with parameters of type ConstraintSyntaxTree Modifier and Type Method Description protected ConstraintSyntaxTreeBasicCopyVisitor. inferDatatype(ConstraintSyntaxTree cst)Performs datatype validation if requested.static booleanCSTUtils. isAssignment(ConstraintSyntaxTree completeCST)Checks whether the givenConstraintSyntaxTreeis a assignment or a constraint.static booleanConstantValue. isNull(ConstraintSyntaxTree cst)Returns whether the given constraint is exactly the IVML null value.booleanConstraintSyntaxTree. isSemanticallyEqual(ConstraintSyntaxTree otherTree)Checks whether thisConstraintSyntaxTreeis semantically equal to anotherConstraintSyntaxTree.booleanOCLFeatureCall. isSemanticallyEqual(ConstraintSyntaxTree otherTree)booleanParenthesis. isSemanticallyEqual(ConstraintSyntaxTree otherTree)booleanVariable. isSemanticallyEqual(ConstraintSyntaxTree otherTree)static booleanCSTUtils. isSimpleAssignment(ConstraintSyntaxTree completeCST)Checks whether the givenConstraintSyntaxTreeis a simple assignment (variable assigned with constant or compound/container initializer).private static voidOCLFeatureCall. resolveFully(ConstraintSyntaxTree[] parameter, IDatatype[] types)Dereferencestypesifparameterdoes not indicate a refBy.(package private) voidUnresolvedExpression. setActualExpression(ConstraintSyntaxTree actualExpression)Changes the actual expression.protected voidBasicCopyVisitor. setResult(ConstraintSyntaxTree cst)Allows inherited classed to overwrite visiting method and to return a partially translated cst.Constructors in net.ssehub.easy.varModel.cst with parameters of type ConstraintSyntaxTree Constructor Description AttributeVariable(ConstraintSyntaxTree qualifier, Attribute attribute)Creates an attribute variable.BlockExpression(ConstraintSyntaxTree[] exprs)Creates a block expression.Comment(ConstraintSyntaxTree expr, java.lang.String comment)Creates a new comment node.CompoundAccess(ConstraintSyntaxTree compoundExpression, java.lang.String slotName)Creates a compound access node.CompoundInitializer(Compound type, java.lang.String[] slots, AbstractVariable[] slotDecls, ConstraintSyntaxTree[] expressions)Creates a new compound initializer.ConstraintReplacer(ConstraintSyntaxTree origin)Creates a ConstraintReplacer witch is needed to copy a OCLFeatureCall.ContainerInitializer(Container type, ConstraintSyntaxTree[] expressions)Creates a new container initializer.ContainerOperationCall(ConstraintSyntaxTree container, java.lang.String operation, ConstraintSyntaxTree expression, DecisionVariableDeclaration... declarators)Creates a new let expression.IfThen(ConstraintSyntaxTree ifExpr, ConstraintSyntaxTree thenExpr, ConstraintSyntaxTree elseExpr)Creates a new if-then-else node.Let(DecisionVariableDeclaration var, ConstraintSyntaxTree inExpr)Creates a new let expression.NamedArgument(java.lang.String name, ConstraintSyntaxTree expression)Creates a named argument.OCLFeatureCall(ConstraintSyntaxTree operand, java.lang.String operation, ConstraintSyntaxTree... parameters)Constructs an OCL feature call as a node of a constraint syntax tree.OCLFeatureCall(ConstraintSyntaxTree operand, java.lang.String operation, ICustomOperationAccessor opAccessor, ConstraintSyntaxTree... parameters)Constructs an OCL feature call as a node of a constraint syntax tree.Parenthesis(ConstraintSyntaxTree expr)Creates a new parenthesis node.UnresolvedExpression(ConstraintSyntaxTree expression)Creates an unresolved expression as an inner tree node. -
Uses of ConstraintSyntaxTree in net.ssehub.easy.varModel.cstEvaluation
Subclasses of ConstraintSyntaxTree in net.ssehub.easy.varModel.cstEvaluation Modifier and Type Class Description (package private) classIterLetImplements a specific expression for defining local variables with variable initialization expressions in iterator expressions.Fields in net.ssehub.easy.varModel.cstEvaluation declared as ConstraintSyntaxTree Modifier and Type Field Description private ConstraintSyntaxTreeIterLet. initprivate ConstraintSyntaxTreeEvaluationVisitor. innermostFailedMethods in net.ssehub.easy.varModel.cstEvaluation that return ConstraintSyntaxTree Modifier and Type Method Description private ConstraintSyntaxTreeEvaluationVisitor. bindFreeVarsByQuantors(ConstraintSyntaxTree cst, java.util.Map<IDatatype,java.util.List<AbstractVariable>> quantorGroups)Binds the free variables by one quantor per quantor group.ConstraintSyntaxTreeVariableValueCopier.EnumAttributeFreezeProvider. createButExpression(DecisionVariableDeclaration freezeIter)ConstraintSyntaxTreeVariableValueCopier.IFreezeProvider. createButExpression(DecisionVariableDeclaration freezeIter)Creates the freeze-but expression.ConstraintSyntaxTreeVariableValueCopier.SourceBasedFreezeProvider. createButExpression(DecisionVariableDeclaration freezeIter)ConstraintSyntaxTree[]EvaluationVisitor. getFailedExpression()Returns the innermost failed expression(s).ConstraintSyntaxTreeIterLet. getInitExpression()ConstraintSyntaxTreeEvaluationUtils.VariableReplacer. mapLeaf(Variable variable)ConstraintSyntaxTreeEvaluationUtils.VariableReplacer. mapSelf(Self self)ConstraintSyntaxTreeEvaluationVisitor. visit(ConstraintSyntaxTree cst)Visits a constraint syntax tree.Methods in net.ssehub.easy.varModel.cstEvaluation with parameters of type ConstraintSyntaxTree Modifier and Type Method Description private LocalDecisionVariableEvaluationVisitor. addLocalVariable(LocalConfiguration cfg, DecisionVariableDeclaration decl, ConstraintSyntaxTree initEx, boolean notify)Adds a new local decision variable based ondecltocfg.private ConstraintSyntaxTreeEvaluationVisitor. bindFreeVarsByQuantors(ConstraintSyntaxTree cst, java.util.Map<IDatatype,java.util.List<AbstractVariable>> quantorGroups)Binds the free variables by one quantor per quantor group.private booleanEvaluationVisitor. containsIsDefined(ConstraintSyntaxTree constraint)Returns whetherconstraintsomewhere contains/calls an isDefined operation.private EvaluationAccessorEvaluationVisitor. getAccessor(EvaluationAccessor accessor, ConstraintSyntaxTree expression)Returns an evaluation accessor forexpressionifaccessoris not already determined.(package private) static EvaluationAccessorConstraintOperations. handleConstraintAssignment(EvaluationAccessor operand, ConstraintSyntaxTree cst)Handles a constraint assignment, i.e., assigns thecst.(package private) static EvaluationAccessorConstraintOperations. handleConstraintEquals(EvaluationAccessor operand, ConstraintSyntaxTree cst, boolean negate)Handles a constraint equality with propagation, i.e., assigns thecst.private booleanEvaluationVisitor. isFreezeVariable(ConstraintSyntaxTree cst)Returns whethercstis a freeze variable.private voidEvaluationVisitor. recordIfFailed(ConstraintSyntaxTree cst)Records a constraint syntax tree if it failed.ConstraintSyntaxTreeEvaluationVisitor. visit(ConstraintSyntaxTree cst)Visits a constraint syntax tree.Constructors in net.ssehub.easy.varModel.cstEvaluation with parameters of type ConstraintSyntaxTree Constructor Description IterLet(DecisionVariableDeclaration var, ConstraintSyntaxTree init, ConstraintSyntaxTree inExpr)Creates an iterator let-expression. -
Uses of ConstraintSyntaxTree in net.ssehub.easy.varModel.model
Fields in net.ssehub.easy.varModel.model declared as ConstraintSyntaxTree Modifier and Type Field Description private ConstraintSyntaxTreeConstraint. consSyntaxprivate ConstraintSyntaxTreeAbstractVariable. defaultValueprivate ConstraintSyntaxTreeExpressionVersionRestriction. exprprivate ConstraintSyntaxTreeAttributeAssignment.Assignment. expressionprivate ConstraintSyntaxTreeFreezeBlock. selectorMethods in net.ssehub.easy.varModel.model that return ConstraintSyntaxTree Modifier and Type Method Description static ConstraintSyntaxTreeExpressionVersionRestriction. createSingleRestriction(DecisionVariableDeclaration var, java.lang.String operator, Version version)Creates a typical single restriction from the given variable (seeExpressionVersionRestriction.createRestrictionVars(String), the operator and the version.ConstraintSyntaxTreeConstraint. getConsSyntax()Getter-Method for the ConstraintSyntaxTree.ConstraintSyntaxTreeAbstractVariable. getDefaultValue()Getter for the value.ConstraintSyntaxTreeAttributeAssignment.Assignment. getExpression()Returns the expression representing the actual value of the assignment.ConstraintSyntaxTreeFreezeBlock. getSelector()Returns the selector.Methods in net.ssehub.easy.varModel.model with parameters of type ConstraintSyntaxTree Modifier and Type Method Description private static java.lang.StringConstraint. check(ConstraintSyntaxTree cst)Checks a constraint syntax tree for validation properties.ConstraintConstraint. createConstraint(ConstraintSyntaxTree consSyntax)Creates a new constraint with same properties but changed constraint syntax tree.voidConstraint. setConsSyntax(ConstraintSyntaxTree consSyntax)Changes the constraint syntax tree.voidAbstractVariable. setValue(ConstraintSyntaxTree value)Defines the default value.Constructors in net.ssehub.easy.varModel.model with parameters of type ConstraintSyntaxTree Constructor Description Assignment(java.lang.String name, java.lang.String operation, ConstraintSyntaxTree expression)Creates an attribute-value assignment.Constraint(java.lang.String name, ConstraintSyntaxTree consSyntax, IModelElement parent)Creates a new constraint from an already parsed syntax tree.Constraint(ConstraintSyntaxTree consSyntax, IModelElement parent)Creates a new constraint from an already parsed syntax tree.ExpressionVersionRestriction(ConstraintSyntaxTree expr, DecisionVariableDeclaration versionVariable, DecisionVariableDeclaration compoundVersionVariable)Creates a new expression version restriction.FreezeBlock(IFreezable[] freezables, DecisionVariableDeclaration iter, ConstraintSyntaxTree selector, IModelElement parent)Constructor for containable model element. -
Uses of ConstraintSyntaxTree in net.ssehub.easy.varModel.model.datatypes
Fields in net.ssehub.easy.varModel.model.datatypes declared as ConstraintSyntaxTree Modifier and Type Field Description private ConstraintSyntaxTreeCustomOperation. functionMethods in net.ssehub.easy.varModel.model.datatypes that return ConstraintSyntaxTree Modifier and Type Method Description ConstraintSyntaxTreeCustomOperation. getFunction()ConstraintSyntaxTreeOperation. getFunction()Returns the function expression calculated by this operation.ConstraintSyntaxTreeOperation. getParameterDefaultValue(int index)Returns the parameter default value at positionindex.Methods in net.ssehub.easy.varModel.model.datatypes with parameters of type ConstraintSyntaxTree Modifier and Type Method Description voidCustomOperation. setFunction(ConstraintSyntaxTree function)Changes the function determining the implementation of this custom operation.Constructors in net.ssehub.easy.varModel.model.datatypes with parameters of type ConstraintSyntaxTree Constructor Description CustomDynamicOperation(IDatatype returns, java.lang.String methodname, IDatatype operand, ConstraintSyntaxTree function, DecisionVariableDeclaration[] parameters)Operation Constructor.CustomOperation(IDatatype returns, java.lang.String methodname, IDatatype operand, ConstraintSyntaxTree function, DecisionVariableDeclaration[] parameters)Operation Constructor. -
Uses of ConstraintSyntaxTree in net.ssehub.easy.varModel.model.filter
Constructors in net.ssehub.easy.varModel.model.filter with parameters of type ConstraintSyntaxTree Constructor Description AbstractStateVariablesInConstraintFinder(ConstraintSyntaxTree cst, Configuration config)Creates a constraint finder for single use directly oncst.ConstraintClassifier(ConstraintSyntaxTree tree)Sole constructor for this class, classifies exactly one constraint, whether it is an AssignmentConstraint.DeclrationInConstraintFinder(ConstraintSyntaxTree cst)Default constructor for this class.DeclrationInConstraintFinder(ConstraintSyntaxTree cst, boolean considerReferences)Constructor for this class to specify whether (reference) values should also be visited.VariablesInConstraintFinder(ConstraintSyntaxTree cst, Configuration config)Creates a constraint finder for single use directly oncst. -
Uses of ConstraintSyntaxTree in net.ssehub.easy.varModel.model.rewrite
Fields in net.ssehub.easy.varModel.model.rewrite declared as ConstraintSyntaxTree Modifier and Type Field Description private ConstraintSyntaxTreeAssignmentReducer. resultprivate ConstraintSyntaxTreeUncopiedElementsContainer.UnresolvedSyntaxContainer. uncopiedCSTMethods in net.ssehub.easy.varModel.model.rewrite that return ConstraintSyntaxTree Modifier and Type Method Description (package private) ConstraintSyntaxTreeUncopiedElementsContainer.UnresolvedSyntaxContainer. getOriginalSyntax()Returns the uncopiedConstraintSyntaxTree, which must still be translated.protected ConstraintSyntaxTreeAssignmentReducer. reduce(OCLFeatureCall assignment)Start method for reducing assignments.Methods in net.ssehub.easy.varModel.model.rewrite with parameters of type ConstraintSyntaxTree Modifier and Type Method Description (package private) voidUncopiedElementsContainer. addUncopyableCST(ContainableModelElement copiedParent, ConstraintSyntaxTree originalCST)Adds an CST which could not be copied so far, also not partially.private voidInitialStructureCollector. collectNestedConstraintVariables(ConstraintSyntaxTree cst, ContainableModelElement element)Finds all nested constraint variables in the givenConstraintSyntaxTreeand adds them to theVariableLookUpTable. -
Uses of ConstraintSyntaxTree in net.ssehub.easy.varModel.model.rewrite.modifier
Methods in net.ssehub.easy.varModel.model.rewrite.modifier with parameters of type ConstraintSyntaxTree Modifier and Type Method Description protected booleanAbstractFrozenChecker. constraintIsFrozen(ConstraintSyntaxTree constraint, RewriteContext context)Checks whether the given constraint contains only constant values or frozen variables. -
Uses of ConstraintSyntaxTree in net.ssehub.easy.varModel.model.values
Fields in net.ssehub.easy.varModel.model.values declared as ConstraintSyntaxTree Modifier and Type Field Description private ConstraintSyntaxTreeConstraintValue. valueprivate ConstraintSyntaxTreeReferenceValue. valueExMethods in net.ssehub.easy.varModel.model.values that return ConstraintSyntaxTree Modifier and Type Method Description ConstraintSyntaxTreeConstraintValue. getValue()Returns the stored value.ConstraintSyntaxTreeReferenceValue. getValueEx()IfReferenceValue.getValue()is null, the actual value is determined by an expression that needs to be evaluated.Constructors in net.ssehub.easy.varModel.model.values with parameters of type ConstraintSyntaxTree Constructor Description ConstraintValue(ConstraintSyntaxTree value)Constructor. -
Uses of ConstraintSyntaxTree in net.ssehub.easy.varModel.persistency
Fields in net.ssehub.easy.varModel.persistency declared as ConstraintSyntaxTree Modifier and Type Field Description private ConstraintSyntaxTreeConstraintSplitWriter.IdentityConstraintFilter. constraintFields in net.ssehub.easy.varModel.persistency with type parameters of type ConstraintSyntaxTree Modifier and Type Field Description private java.util.Stack<ConstraintSyntaxTree>IVMLWriter. nestedExpressionsMethods in net.ssehub.easy.varModel.persistency with parameters of type ConstraintSyntaxTree Modifier and Type Method Description protected voidAbstractVarModelWriter. emitConstraintExpression(IModelElement context, ConstraintSyntaxTree constraint)Visits the expression of a constraint (for extension).protected voidConstraintSplitWriter. emitConstraintExpression(IModelElement context, ConstraintSyntaxTree constraint)protected voidConstraintSplitWriter. emitDecisionVariableDeclarationDefault(DecisionVariableDeclaration decl, ConstraintSyntaxTree defaultValue)protected voidIVMLWriter. emitDecisionVariableDeclarationDefault(DecisionVariableDeclaration decl, ConstraintSyntaxTree defaultValue)Emits the default value of a decision variable declaration (for extension).private voidIVMLWriter. emitDecisionVariableDeclarationExpression(DecisionVariableDeclaration decl, ConstraintSyntaxTree defaultValue)Emits the expression part of a variable declaration without the statement part.private booleanConstraintSplitWriter. pre(IModelElement context, ConstraintSyntaxTree constraint)To be called before a potential split point (checking the filter).booleanConstraintSplitWriter.IConstraintFilter. splitAt(IModelElement context, ConstraintSyntaxTree constraint)Returns whether the split shall happen atconstraint.booleanConstraintSplitWriter.IdentityConstraintFilter. splitAt(IModelElement context, ConstraintSyntaxTree constraint)static java.lang.StringStringProvider. toIvmlString(ConstraintSyntaxTree cst)Turns a syntax tree into a string containing IVML (without context).static java.lang.StringStringProvider. toIvmlString(ConstraintSyntaxTree cst, IModelElement context)Turns a syntax tree into a string containing IVML.Constructors in net.ssehub.easy.varModel.persistency with parameters of type ConstraintSyntaxTree Constructor Description IdentityConstraintFilter(ConstraintSyntaxTree constraint)Creates a constraint filter which reacts on identity withconstraint. -
Uses of ConstraintSyntaxTree in net.ssehub.easy.varModel.validation
Methods in net.ssehub.easy.varModel.validation with parameters of type ConstraintSyntaxTree Modifier and Type Method Description private booleanIvmlValidationVisitor. checkExpression(ConstraintSyntaxTree expression, java.lang.String info, java.lang.Object cause)Checks for a valid (sub-)expression.
-