Skip to content
Snippets Groups Projects
Commit f71a700b authored by Matthew Dawson's avatar Matthew Dawson
Browse files

And EventB's GenerateVariableType changes as well.

EventB's GenerateVariableType is now GenerateType.  Also narrow its visibility
to private, as it doesn't need to be public.
parent 5228f432
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ import java.util.Collection;
final public class EventBVariablesDeclarationGenerator implements VariablesDeclarationGenerator {
public final static EventBVariablesDeclarationGenerator Generator = new EventBVariablesDeclarationGenerator();
public String GenerateVariableType(Type type) {
private String GenerateType(Type type) {
if (type instanceof RealType) {
return "ℤ";
} else {
......@@ -93,7 +93,7 @@ final public class EventBVariablesDeclarationGenerator implements VariablesDecla
generateInvariantXmlPre(ret, invariantsNum);
ret.append(var.outputName());
ret.append(" ∈ ");
ret.append(GenerateVariableType(var.type()));
ret.append(GenerateType(var.type()));
ret.append(invariantXmlPost);
invariantsNum++;
}
......@@ -134,7 +134,7 @@ final public class EventBVariablesDeclarationGenerator implements VariablesDecla
generateInitEventActionXmlPre(ret, actionNo);
ret.append(var.outputName());
ret.append(" :∈ ");
ret.append(GenerateVariableType(var.type()));
ret.append(GenerateType(var.type()));
generateInitEventActionXmlPost(ret, actionNo);
ret.append("\n");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment