public class ThrownExceptionSwitch extends XbaseSwitch<java.lang.Boolean>
modelPackage| Constructor and Description |
|---|
ThrownExceptionSwitch(IThrownExceptionDelegate delegate) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
accept(org.eclipse.xtext.common.types.JvmExecutable executable) |
protected void |
accept(LightweightTypeReference type) |
java.lang.Boolean |
caseXAbstractFeatureCall(XAbstractFeatureCall object)
Returns the result of interpreting the object as an instance of 'XAbstract Feature Call'.
|
java.lang.Boolean |
caseXCasePart(XCasePart object)
Returns the result of interpreting the object as an instance of 'XCase Part'.
|
java.lang.Boolean |
caseXCatchClause(XCatchClause object)
Returns the result of interpreting the object as an instance of 'XCatch Clause'.
|
java.lang.Boolean |
caseXClosure(XClosure object)
Returns the result of interpreting the object as an instance of 'XClosure'.
|
java.lang.Boolean |
caseXConstructorCall(XConstructorCall object)
Returns the result of interpreting the object as an instance of 'XConstructor Call'.
|
java.lang.Boolean |
caseXExpression(XExpression object)
Returns the result of interpreting the object as an instance of 'XExpression'.
|
java.lang.Boolean |
caseXThrowExpression(XThrowExpression object)
Returns the result of interpreting the object as an instance of 'XThrow Expression'.
|
java.lang.Boolean |
caseXTryCatchFinallyExpression(XTryCatchFinallyExpression object)
Returns the result of interpreting the object as an instance of 'XTry Catch Finally Expression'.
|
java.lang.Boolean |
defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.
|
protected org.eclipse.xtext.common.types.JvmOperation |
findCloseMethod(LightweightTypeReference resourceType) |
protected LightweightTypeReference |
getType(XExpression expr) |
protected void |
processExceptionsFromAutoclosable(java.util.List<XVariableDeclaration> resources,
IThrownExceptionDelegate thrownExceptionDelegate)
Checks if the automatically called close method of resources in
try block (implementing AutoCloseable) throws exceptions.
|
caseJvmIdentifiableElement, caseXAbstractWhileExpression, caseXAssignment, caseXBasicForLoopExpression, caseXBinaryOperation, caseXBlockExpression, caseXBooleanLiteral, caseXCastedExpression, caseXCollectionLiteral, caseXDoWhileExpression, caseXFeatureCall, caseXForLoopExpression, caseXIfExpression, caseXInstanceOfExpression, caseXListLiteral, caseXMemberFeatureCall, caseXNullLiteral, caseXNumberLiteral, caseXPostfixOperation, caseXReturnExpression, caseXSetLiteral, caseXStringLiteral, caseXSwitchExpression, caseXSynchronizedExpression, caseXTypeLiteral, caseXUnaryOperation, caseXVariableDeclaration, caseXWhileExpression, doSwitch, isSwitchForpublic ThrownExceptionSwitch(IThrownExceptionDelegate delegate)
protected void accept(LightweightTypeReference type)
protected LightweightTypeReference getType(XExpression expr)
public java.lang.Boolean defaultCase(org.eclipse.emf.ecore.EObject object)
XbaseSwitchdefaultCase in class XbaseSwitch<java.lang.Boolean>object - the target of the switch.Switch.doSwitch(org.eclipse.emf.ecore.EObject)public java.lang.Boolean caseXExpression(XExpression object)
XbaseSwitchcaseXExpression in class XbaseSwitch<java.lang.Boolean>object - the target of the switch.doSwitch(EObject)public java.lang.Boolean caseXClosure(XClosure object)
XbaseSwitchcaseXClosure in class XbaseSwitch<java.lang.Boolean>object - the target of the switch.doSwitch(EObject)public java.lang.Boolean caseXCasePart(XCasePart object)
XbaseSwitchcaseXCasePart in class XbaseSwitch<java.lang.Boolean>object - the target of the switch.doSwitch(EObject)public java.lang.Boolean caseXThrowExpression(XThrowExpression object)
XbaseSwitchcaseXThrowExpression in class XbaseSwitch<java.lang.Boolean>object - the target of the switch.doSwitch(EObject)public java.lang.Boolean caseXCatchClause(XCatchClause object)
XbaseSwitchcaseXCatchClause in class XbaseSwitch<java.lang.Boolean>object - the target of the switch.doSwitch(EObject)public java.lang.Boolean caseXTryCatchFinallyExpression(XTryCatchFinallyExpression object)
XbaseSwitchcaseXTryCatchFinallyExpression in class XbaseSwitch<java.lang.Boolean>object - the target of the switch.doSwitch(EObject)protected void processExceptionsFromAutoclosable(java.util.List<XVariableDeclaration> resources, IThrownExceptionDelegate thrownExceptionDelegate)
resources - the resources of the try statementthrownExceptionDelegate - the (filtered) delegate holding the utilitiesprotected org.eclipse.xtext.common.types.JvmOperation findCloseMethod(LightweightTypeReference resourceType)
public java.lang.Boolean caseXAbstractFeatureCall(XAbstractFeatureCall object)
XbaseSwitchcaseXAbstractFeatureCall in class XbaseSwitch<java.lang.Boolean>object - the target of the switch.doSwitch(EObject)public java.lang.Boolean caseXConstructorCall(XConstructorCall object)
XbaseSwitchcaseXConstructorCall in class XbaseSwitch<java.lang.Boolean>object - the target of the switch.doSwitch(EObject)protected void accept(org.eclipse.xtext.common.types.JvmExecutable executable)