private Evaluator evaluatorFactory(Backend evaluator) throws HaskellException {
switch (evaluator) {
case GHCi:
    return new GhciEvaluator();
case Clash:
  return new ClashEvaluator();
default :
return new GhciEvaluator();
}
}

private Evaluator evaluatorFactory ( Backend evaluator ) throws HaskellException { switch ( evaluator ) { case GHCi : return new GhciEvaluator ( ) ; case Clash : return new ClashEvaluator ( ) ; default : return new GhciEvaluator ( ) ; } }
build the evaluator that corresponds to the given backend identifier .
