public class ExtendedEarlyExitComputer
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
ExtendedEarlyExitComputer.AbstractThrownExceptionDelegate |
protected class |
ExtendedEarlyExitComputer.FilteringThrownExceptionDelegate |
protected class |
ExtendedEarlyExitComputer.ThrownExceptionDelegate |
| Constructor and Description |
|---|
ExtendedEarlyExitComputer() |
| Modifier and Type | Method and Description |
|---|---|
protected ExtendedEarlyExitComputer.ThrownExceptionDelegate |
createDelegate(java.util.List<LightweightTypeReference> result,
IResolvedTypes types,
ITypeReferenceOwner owner) |
protected org.eclipse.emf.ecore.util.Switch<java.lang.Boolean> |
createThrownExceptionCollector(IThrownExceptionDelegate delegate) |
java.util.List<LightweightTypeReference> |
getThrownExceptions(XExpression obj,
IResolvedTypes types,
ITypeReferenceOwner owner) |
boolean |
isDefiniteEarlyExit(XExpression expression) |
boolean |
isIntentionalEarlyExit(XExpression expression)
Returns
true for expressions that seem to be early exit expressions, e.g. |
public boolean isIntentionalEarlyExit(XExpression expression)
true for expressions that seem to be early exit expressions, e.g.
while(condition) {
if (anotherCondition)
return value
changeResultOfFirstCondition
}
public boolean isDefiniteEarlyExit(XExpression expression)
public java.util.List<LightweightTypeReference> getThrownExceptions(XExpression obj, IResolvedTypes types, ITypeReferenceOwner owner)
protected ExtendedEarlyExitComputer.ThrownExceptionDelegate createDelegate(java.util.List<LightweightTypeReference> result, IResolvedTypes types, ITypeReferenceOwner owner)
protected org.eclipse.emf.ecore.util.Switch<java.lang.Boolean> createThrownExceptionCollector(IThrownExceptionDelegate delegate)