Class StringProvider
java.lang.Object
net.ssehub.easy.varModel.persistency.StringProvider
Turns model (parts) into strings.
- Author:
- Holger Eichelberger, Christian Kröher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final StringTurns a syntax tree into a string containing IVML (without context).static final StringtoIvmlString(ConstraintSyntaxTree cst, IModelElement context) Turns a syntax tree into a string containing IVML.static final StringtoIvmlString(IDatatype type) Turns a type into a string containing IVML.static final StringtoIvmlString(IPartialEvaluable element) Turns an evaluable element into a string containing IVML.static final StringtoIvmlString(ModelElement element) Turns a model element into a string containing IVML.static final StringtoIvmlString(Value value) Turns a value into a string containing IVML.
-
Constructor Details
-
StringProvider
public StringProvider()
-
-
Method Details
-
toIvmlString
Turns a model element into a string containing IVML.- Parameters:
element- the element to be turned into a string- Returns:
- The resulting string
-
toIvmlString
Turns a syntax tree into a string containing IVML (without context).- Parameters:
cst- the constraint syntax tree to be turned into a string- Returns:
- The resulting string
-
toIvmlString
Turns a syntax tree into a string containing IVML.- Parameters:
cst- the constraint syntax tree to be turned into a stringcontext- the context within thecstshall be printed, e.g., to exploit implicitly qualified variable names- Returns:
- The resulting string
-
toIvmlString
Turns a value into a string containing IVML.- Parameters:
value- the value to be turned into a string- Returns:
- The resulting string
-
toIvmlString
Turns a type into a string containing IVML.- Parameters:
type- the type to be turned into a string- Returns:
- The resulting string as unique string using
IvmlDatatypeVisitor
-
toIvmlString
Turns an evaluable element into a string containing IVML.- Parameters:
element- the evaluable element to be turned into a string- Returns:
- The resulting string
-