public class DefaultEarlyExitComputer extends Object implements IEarlyExitComputer
IEarlyExitComputer.ExitPoint| Constructor and Description |
|---|
DefaultEarlyExitComputer() |
public boolean isEarlyExit(XExpression expression)
IEarlyExitComputerisEarlyExit in interface IEarlyExitComputertrue if the given expression will definitely exit early.protected boolean isNotEmpty(Collection<IEarlyExitComputer.ExitPoint> exitPoints)
public Collection<IEarlyExitComputer.ExitPoint> getExitPoints(XExpression expression)
getExitPoints in interface IEarlyExitComputerprotected Collection<IEarlyExitComputer.ExitPoint> _exitPoints(XExpression expression)
expression - unused in this context but required in dispatch signatureprotected Collection<IEarlyExitComputer.ExitPoint> _exitPoints(XReturnExpression expression)
protected Collection<IEarlyExitComputer.ExitPoint> _exitPoints(XThrowExpression expression)
protected Collection<IEarlyExitComputer.ExitPoint> _exitPoints(XBlockExpression expression)
protected Collection<IEarlyExitComputer.ExitPoint> _exitPoints(XBasicForLoopExpression expression)
protected Collection<IEarlyExitComputer.ExitPoint> _exitPoints(XForLoopExpression expression)
protected Collection<IEarlyExitComputer.ExitPoint> _exitPoints(XWhileExpression expression)
protected boolean isBooleanConstant(XExpression expression, boolean value)
protected Collection<IEarlyExitComputer.ExitPoint> _exitPoints(XDoWhileExpression expression)
protected Collection<IEarlyExitComputer.ExitPoint> _exitPoints(XVariableDeclaration expression)
protected Collection<IEarlyExitComputer.ExitPoint> _exitPoints(XIfExpression expression)
protected Collection<IEarlyExitComputer.ExitPoint> _exitPoints(XSwitchExpression expression)
protected Collection<IEarlyExitComputer.ExitPoint> _exitPoints(XAbstractFeatureCall expression)
protected Collection<IEarlyExitComputer.ExitPoint> _exitPoints(XConstructorCall expression)
protected Collection<IEarlyExitComputer.ExitPoint> _exitPoints(XTryCatchFinallyExpression expression)
protected Collection<IEarlyExitComputer.ExitPoint> _exitPoints(XSynchronizedExpression expression)
protected Collection<IEarlyExitComputer.ExitPoint> exitPoints(XExpression expression)
Copyright © 2015. All Rights Reserved.