public class DefaultValueTranslator
extends java.lang.Object
| Constructor and Description |
|---|
DefaultValueTranslator() |
| Modifier and Type | Method and Description |
|---|---|
private static net.ssehub.easy.varModel.cst.CompoundInitializer |
createTranslatedCompoundInitializer(net.ssehub.easy.varModel.model.datatypes.Compound type,
java.util.Map<java.lang.String,net.ssehub.easy.varModel.cst.ConstraintSyntaxTree> values,
java.util.Map<java.lang.String,net.ssehub.easy.varModel.model.AbstractVariable> decls)
Creates a translated compound initializer.
|
static net.ssehub.easy.varModel.cst.ConstraintSyntaxTree |
translateDefaultValue(net.ssehub.easy.varModel.cst.ConstraintSyntaxTree cst)
Translates a default value into its complete one-time default assignment value by including
nested default values of the defining compound/container types.
|
private static void |
translateDefaultValues(net.ssehub.easy.varModel.model.datatypes.Compound type,
java.util.Map<java.lang.String,net.ssehub.easy.varModel.cst.ConstraintSyntaxTree> values,
java.util.Map<java.lang.String,net.ssehub.easy.varModel.model.AbstractVariable> decls)
Recursively translates the default values of type into
values and decls,
but only if the slots are not already allocated. |
static net.ssehub.easy.varModel.cst.ConstraintSyntaxTree |
translateDefaultValueSafe(net.ssehub.easy.varModel.cst.ConstraintSyntaxTree cst)
Calls
translateDefaultValue(ConstraintSyntaxTree) catching/logging exceptions. |
public static net.ssehub.easy.varModel.cst.ConstraintSyntaxTree translateDefaultValueSafe(net.ssehub.easy.varModel.cst.ConstraintSyntaxTree cst)
translateDefaultValue(ConstraintSyntaxTree) catching/logging exceptions.cst - the constraint to be translatedcstpublic static net.ssehub.easy.varModel.cst.ConstraintSyntaxTree translateDefaultValue(net.ssehub.easy.varModel.cst.ConstraintSyntaxTree cst)
throws net.ssehub.easy.varModel.cst.CSTSemanticException
cst - the constraint to be translatedcstnet.ssehub.easy.varModel.cst.CSTSemanticException - if constraint expressions cannot correctly be builtprivate static void translateDefaultValues(net.ssehub.easy.varModel.model.datatypes.Compound type,
java.util.Map<java.lang.String,net.ssehub.easy.varModel.cst.ConstraintSyntaxTree> values,
java.util.Map<java.lang.String,net.ssehub.easy.varModel.model.AbstractVariable> decls)
throws net.ssehub.easy.varModel.cst.CSTSemanticException
values and decls,
but only if the slots are not already allocated.type - the type to be translatedvalues - the values, i.e., slot name to value expression mappingsdecls - the declarations, i.e., slot name to declaration mappingsnet.ssehub.easy.varModel.cst.CSTSemanticException - if constraint expressions cannot correctly be builtprivate static net.ssehub.easy.varModel.cst.CompoundInitializer createTranslatedCompoundInitializer(net.ssehub.easy.varModel.model.datatypes.Compound type,
java.util.Map<java.lang.String,net.ssehub.easy.varModel.cst.ConstraintSyntaxTree> values,
java.util.Map<java.lang.String,net.ssehub.easy.varModel.model.AbstractVariable> decls)
throws net.ssehub.easy.varModel.cst.CSTSemanticException
type - the type initializer representsvalues - the values, i.e., slot name to value expression mappingsdecls - the declarations, i.e., slot name to declaration mappingsnet.ssehub.easy.varModel.cst.CSTSemanticException - if constraint expressions cannot correctly be builtCopyright © 2009 - 2018 SSE. All Rights Reserved.