Interface IEarlyExitComputer
-
- All Known Implementing Classes:
DefaultEarlyExitComputer
public interface IEarlyExitComputer
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIEarlyExitComputer.ExitPoint
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<IEarlyExitComputer.ExitPoint>getExitPoints(XExpression expression)booleanisEarlyExit(XExpression expression)An expression is considered to be left early if all branches end with an explicit termination, e.g.
-
-
-
Method Detail
-
isEarlyExit
boolean isEarlyExit(XExpression expression)
An expression is considered to be left early if all branches end with an explicit termination, e.g. a return or throw expression.- Returns:
trueif the given expression will definitely exit early.
-
getExitPoints
java.util.Collection<IEarlyExitComputer.ExitPoint> getExitPoints(XExpression expression)
-
-