small changes

This commit is contained in:
2018-05-18 19:56:28 +02:00
parent 4761ae72c2
commit 9f99e6f4e1
2 changed files with 20 additions and 4 deletions

View File

@@ -1039,7 +1039,8 @@ public class Facade implements IFacade {
*/
@Override
public void loadProgramOnWorm(Worm worm, Program program, IActionHandler actionHandler) throws ModelException {
actionHandler.toString();
program.toString();
}
/**

View File

@@ -212,7 +212,12 @@ public class ProgramFactory implements IProgramFactory<Expression, Statement, Pr
*/
@Override
public Expression createDoubleLiteralExpression(double value, SourceLocation location) throws ModelException {
return () -> value;
return new Expression() {
@Override
public Object execute() {
return value;
}
};
}
/**
@@ -223,7 +228,12 @@ public class ProgramFactory implements IProgramFactory<Expression, Statement, Pr
*/
@Override
public Expression createBooleanLiteralExpression(boolean value, SourceLocation location) throws ModelException {
return () -> value;
return new Expression() {
@Override
public Object execute() {
return value;
}
};
}
/**
@@ -233,7 +243,12 @@ public class ProgramFactory implements IProgramFactory<Expression, Statement, Pr
*/
@Override
public Expression createNullExpression(SourceLocation location) throws ModelException {
return () -> null;
return new Expression() {
@Override
public Object execute() {
return null;
}
};
}
/**