@Pure public ExtendedEarlyExitComputer getEarlyExitComputer() { return this.earlyExitComputer; }
public void setEarlyExitComputer(final ExtendedEarlyExitComputer earlyExitComputer) { this.earlyExitComputer = earlyExitComputer; }
public Class<? extends ExtendedEarlyExitComputer> bindExtendedEarlyExitComputer() { return XtxtUMLEarlyExitComputer.class; }
/** * Returns <code>true</code> for expressions that seem to be early exit expressions, e.g. * <pre> * while(condition) { * if (anotherCondition) * return value * changeResultOfFirstCondition * } * </pre> */ protected boolean isIntentionalEarlyExit(/* @Nullable */ XExpression expression) { ExtendedEarlyExitComputer earlyExitComputer = getReferenceOwner().getServices().getEarlyExitComputer(); return earlyExitComputer.isIntentionalEarlyExit(expression); }