Uses of Class
net.ssehub.easy.varModel.cst.ConstraintSyntaxTree
Packages that use ConstraintSyntaxTree
Package
Description
This package represents a specific variability model configuration.
Package for elements of the constraint syntax tree.
Implements the evaluation of constraint syntax trees.
Base package for the variability model.
Base directory for the main datatype classes.
This package contains utility classes for filtering the model for specific model elements.
Classes for creating an (adapted) copy of the
Project.Modifier for the
ProjectRewriteVisitor.Instances of the datatypes.
These package is for reading and saving the variability model and the configuration.
Currently supported file formats: EASy-Producer 2.0 config files (xml) IVML
Currently supported file formats: EASy-Producer 2.0 config files (xml) IVML
Classes for validating e variability model, e.g.
-
Uses of ConstraintSyntaxTree in net.ssehub.easy.varModel.confModel
Fields in net.ssehub.easy.varModel.confModel with type parameters of type ConstraintSyntaxTreeModifier and TypeFieldDescriptionprivate Map<IDatatype, List<ConstraintSyntaxTree>> QueryCache.refValuesTuple of (Reference.getType(), possible values for the reference).Methods in net.ssehub.easy.varModel.confModel that return ConstraintSyntaxTreeModifier and TypeMethodDescriptionprotected 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 ConstraintSyntaxTreeModifier and TypeMethodDescriptionQueryCache.getPossibleValues(Reference refType) Calculates possible values (ConstraintSyntaxTree-based) for a givenReferencevariable.SharedQueryCache.getPossibleValues(Reference refType) (package private) static 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 ConstraintSyntaxTreeModifier and TypeMethodDescriptionDisplayNameProvider.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.cstModifier and TypeClassDescriptionclassA variable which represents an attribute.classRepresents a block of expressions.classRepresents a comment in a parse tree.classRepresents an expression which accesses a compound slot where the compound is specified as aConstraintSyntaxTree.classRepresents a typed initializer for compounds.classClass for a constant value.classRepresents an initializer for containers.classRepresents a set operation call with declarators, e.g.classAn expression to indicate that the contained expression shall not be evaluated rather than used as value.classAn internal temporary node representing an untyped empty initializer.classRepresents a conditional expression.classClass for leaves in the ConstraintSyntaxTree.classRepresents a let expression, i.e.classRepresents a multi-and expression.classImplements a named argument as a transparent constraint syntax tree.classClass for OCLFeatureCall.classRepresents a parenthesis.classCarries a resolved variable.classRepresents the a compound itself (for constraints within compounds).classDenotes an expression (tree) which is currently unresolved due to deferred imports, e.g.classClass for a variable value.Fields in net.ssehub.easy.varModel.cst declared as ConstraintSyntaxTreeModifier and TypeFieldDescriptionprivate ConstraintSyntaxTreeUnresolvedExpression.actualExpressionprivate ConstraintSyntaxTreeCompoundAccess.compoundExpressionprivate ConstraintSyntaxTreeContainerOperationCall.containerprivate ConstraintSyntaxTreeConstraintReplacer.copiedConstraintprivate ConstraintSyntaxTreeDeferInitExpression.cstprivate 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 ConstraintSyntaxTreeModifier and TypeMethodDescriptionUnresolvedExpression.getActualExpression()Returns the actual expression.CompoundAccess.getCompoundExpression()The expression denoting the compound to access.ContainerOperationCall.getContainer()Returns the set to operate on (given as an expression).IfThen.getElseExpr()Returns the else-expression.Comment.getExpr()Returns the commented expression.Parenthesis.getExpr()Returns the nested expression.BlockExpression.getExpression(int index) Returns the specified expression.CompoundInitializer.getExpression(int index) Returns the specified expression.ContainerInitializer.getExpression(int index) Returns the specified expression.ContainerOperationCall.getExpression()Returns the iterating expression.DeferInitExpression.getExpression()Returns the deferred expression.IfThen.getIfExpr()Returns the condition expression.Let.getInExpression()Returns the expression the local variable may be used in.Let.getInitExpression()Returns the initialization expression.OCLFeatureCall.getOperand()Returns the operand.OCLFeatureCall.getParameter(int index) Returns a specific parameter.AttributeVariable.getQualifier()Returns the qualifier for accessing the variable, e.g., an expression to be put before.Variable.getQualifier()Returns the qualifier for accessing the variable, e.g., an expression to be put before.BasicCopyVisitor.getResult()Returns the copied syntax tree.ContainerOperationCall.getSet()Deprecated.IfThen.getThenExpr()Returns the then-expression.protected ConstraintSyntaxTreeBasicCopyVisitor.inferDatatype(ConstraintSyntaxTree cst) Performs datatype validation if requested.Maps a leaf variable.Maps a leaf node.ConstraintReplacer.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 ConstraintSyntaxTreeModifier and TypeMethodDescriptionprotected ConstraintSyntaxTreeBasicCopyVisitor.inferDatatype(ConstraintSyntaxTree cst) Performs datatype validation if requested.static booleanCSTUtils.isAssignment(ConstraintSyntaxTree completeCST) Checks whether the givenConstraintSyntaxTreeis a assignment or a constraint.static final 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 ConstraintSyntaxTreeModifierConstructorDescriptionAttributeVariable(ConstraintSyntaxTree qualifier, Attribute attribute) Creates an attribute variable.BlockExpression(ConstraintSyntaxTree[] exprs) Creates a block expression.Comment(ConstraintSyntaxTree expr, String comment) Creates a new comment node.CompoundAccess(ConstraintSyntaxTree compoundExpression, String slotName) Creates a compound access node.CompoundInitializer(Compound type, String[] slots, AbstractVariable[] slotDecls, ConstraintSyntaxTree[] expressions) Creates a new compound initializer.Creates a ConstraintReplacer witch is needed to copy a OCLFeatureCall.ContainerInitializer(Container type, ConstraintSyntaxTree[] expressions) Creates a new container initializer.ContainerOperationCall(ConstraintSyntaxTree container, String operation, ConstraintSyntaxTree expression, DecisionVariableDeclaration... declarators) Creates a new let expression.Creates the 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(String name, ConstraintSyntaxTree expression) Creates a named argument.OCLFeatureCall(ConstraintSyntaxTree operand, String operation, ConstraintSyntaxTree... parameters) Constructs an OCL feature call as a node of a constraint syntax tree.OCLFeatureCall(ConstraintSyntaxTree operand, String operation, ICustomOperationAccessor opAccessor, ConstraintSyntaxTree... parameters) Constructs an OCL feature call as a node of a constraint syntax tree.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.cstEvaluationModifier and TypeClassDescription(package private) classImplements a specific expression for defining local variables with variable initialization expressions in iterator expressions.Fields in net.ssehub.easy.varModel.cstEvaluation declared as ConstraintSyntaxTreeModifier and TypeFieldDescriptionprivate ConstraintSyntaxTreeEvaluationVisitor.CompoundSlotInit.exprprivate ConstraintSyntaxTreeIterLet.initprivate ConstraintSyntaxTreeEvaluationVisitor.innermostFailedMethods in net.ssehub.easy.varModel.cstEvaluation that return ConstraintSyntaxTreeModifier and TypeMethodDescriptionprivate ConstraintSyntaxTreeEvaluationVisitor.bindFreeVarsByQuantors(ConstraintSyntaxTree cst, Map<IDatatype, List<AbstractVariable>> quantorGroups) Binds the free variables by one quantor per quantor group.VariableValueCopier.EnumAttributeFreezeProvider.createButExpression(DecisionVariableDeclaration freezeIter) VariableValueCopier.IFreezeProvider.createButExpression(DecisionVariableDeclaration freezeIter) Creates the freeze-but expression.VariableValueCopier.SourceBasedFreezeProvider.createButExpression(DecisionVariableDeclaration freezeIter) EvaluationVisitor.getFailedExpression()Returns the innermost failed expression(s).IterLet.getInitExpression()EvaluationVisitor.visit(ConstraintSyntaxTree cst) Visits a constraint syntax tree.Methods in net.ssehub.easy.varModel.cstEvaluation with parameters of type ConstraintSyntaxTreeModifier and TypeMethodDescriptionprivate LocalDecisionVariableEvaluationVisitor.addLocalVariable(LocalConfiguration cfg, DecisionVariableDeclaration decl, ConstraintSyntaxTree initEx, boolean notify) Adds a new local decision variable based ondecltocfg.private ConstraintSyntaxTreeEvaluationVisitor.bindFreeVarsByQuantors(ConstraintSyntaxTree cst, Map<IDatatype, 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.EvaluationVisitor.visit(ConstraintSyntaxTree cst) Visits a constraint syntax tree.Constructors in net.ssehub.easy.varModel.cstEvaluation with parameters of type ConstraintSyntaxTreeModifierConstructorDescriptionIterLet(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 ConstraintSyntaxTreeModifier and TypeFieldDescriptionprivate ConstraintSyntaxTreeConstraint.consSyntaxprivate ConstraintSyntaxTreeAbstractVariable.defaultValueprivate ConstraintSyntaxTreeExpressionVersionRestriction.exprprivate ConstraintSyntaxTreeAttributeAssignment.Assignment.expressionprivate ConstraintSyntaxTreeFreezeBlock.selectorMethods in net.ssehub.easy.varModel.model that return ConstraintSyntaxTreeModifier and TypeMethodDescriptionstatic ConstraintSyntaxTreeExpressionVersionRestriction.createSingleRestriction(DecisionVariableDeclaration var, String operator, net.ssehub.easy.basics.modelManagement.Version version) Creates a typical single restriction from the given variable (seeExpressionVersionRestriction.createRestrictionVars(String), the operator and the version.Constraint.getConsSyntax()Getter-Method for the ConstraintSyntaxTree.AbstractVariable.getDefaultValue()Getter for the value.AttributeAssignment.Assignment.getExpression()Returns the expression representing the actual value of the assignment.FreezeBlock.getSelector()Returns the selector.Methods in net.ssehub.easy.varModel.model with parameters of type ConstraintSyntaxTreeModifier and TypeMethodDescriptionprivate static StringConstraint.check(ConstraintSyntaxTree cst) Checks a constraint syntax tree for validation properties.Constraint.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 ConstraintSyntaxTreeModifierConstructorDescriptionAssignment(String name, String operation, ConstraintSyntaxTree expression) Creates an attribute-value assignment.Constraint(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 ConstraintSyntaxTreeMethods in net.ssehub.easy.varModel.model.datatypes that return ConstraintSyntaxTreeModifier and TypeMethodDescriptionCustomOperation.getFunction()Operation.getFunction()Returns the function expression calculated by this operation.Operation.getParameterDefaultValue(int index) Returns the parameter default value at positionindex.Methods in net.ssehub.easy.varModel.model.datatypes with parameters of type ConstraintSyntaxTreeModifier and TypeMethodDescriptionvoidCustomOperation.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 ConstraintSyntaxTreeModifierConstructorDescriptionCustomDynamicOperation(IDatatype returns, String methodname, IDatatype operand, ConstraintSyntaxTree function, DecisionVariableDeclaration[] parameters) Operation Constructor.CustomOperation(IDatatype returns, 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 ConstraintSyntaxTreeModifierConstructorDescriptionCreates a constraint finder for single use directly oncst.(package private)Sole constructor for this class, classifies exactly one constraint, whether it is an AssignmentConstraint.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 ConstraintSyntaxTreeModifier and TypeFieldDescriptionprivate ConstraintSyntaxTreeAssignmentReducer.resultprivate ConstraintSyntaxTreeUncopiedElementsContainer.UnresolvedSyntaxContainer.uncopiedCSTMethods in net.ssehub.easy.varModel.model.rewrite that return ConstraintSyntaxTreeModifier and TypeMethodDescription(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 ConstraintSyntaxTreeModifier and TypeMethodDescription(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.protected voidCSTCopyVisitor.setResult(ConstraintSyntaxTree cst) -
Uses of ConstraintSyntaxTree in net.ssehub.easy.varModel.model.rewrite.modifier
Methods in net.ssehub.easy.varModel.model.rewrite.modifier with parameters of type ConstraintSyntaxTreeModifier and TypeMethodDescriptionprotected 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 ConstraintSyntaxTreeModifier and TypeFieldDescriptionprivate ConstraintSyntaxTreeConstraintValue.valueprivate ConstraintSyntaxTreeReferenceValue.valueExMethods in net.ssehub.easy.varModel.model.values that return ConstraintSyntaxTreeModifier and TypeMethodDescriptionConstraintValue.getValue()Returns the stored value.ReferenceValue.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 -
Uses of ConstraintSyntaxTree in net.ssehub.easy.varModel.persistency
Fields in net.ssehub.easy.varModel.persistency declared as ConstraintSyntaxTreeModifier and TypeFieldDescriptionprivate ConstraintSyntaxTreeConstraintSplitWriter.IdentityConstraintFilter.constraintFields in net.ssehub.easy.varModel.persistency with type parameters of type ConstraintSyntaxTreeModifier and TypeFieldDescriptionprivate Stack<ConstraintSyntaxTree> IVMLWriter.nestedExpressionsMethods in net.ssehub.easy.varModel.persistency with parameters of type ConstraintSyntaxTreeModifier and TypeMethodDescriptionprotected 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 final StringStringProvider.toIvmlString(ConstraintSyntaxTree cst) Turns a syntax tree into a string containing IVML (without context).static final 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 ConstraintSyntaxTreeModifierConstructorDescriptionIdentityConstraintFilter(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 ConstraintSyntaxTreeModifier and TypeMethodDescriptionprivate booleanIvmlValidationVisitor.checkExpression(ConstraintSyntaxTree expression, String info, Object cause) Checks for a valid (sub-)expression.
ContainerOperationCall.getContainer()instead