MethodElementReturnTypeGoal g = (MethodElementReturnTypeGoal) goal;
if (g.getArgNames() != null && g.getArgNames().length > 0 && g.getArgNames()[0] != null) {
if (g.getMethodName().equals("get")) {
return new ServiceGoalEvaluator(g, ASTUtils.stripQuotes(g.getArgNames()[0]));
} else if (g.getMethodName().equals("getManager")) {
return new DoctrineManagerGoalEvaluator(g, ASTUtils.stripQuotes(g.getArgNames()[0]));
}
}
} else if (goalClass == ServiceTypeGoal.class) {
return new ServiceTypeGoalEvaluator((ServiceTypeGoal)goal);
}