From 0be8ac9989d7af31c7e3b9f923fbbd7ed9f540ea Mon Sep 17 00:00:00 2001 From: OszkarSemerath Date: Thu, 15 Feb 2018 22:55:47 +0100 Subject: First complete scope grammar --- .../ApplicationConfigurationAdapterFactory.java | 220 +++++++++++++++++ .../util/ApplicationConfigurationSwitch.java | 263 +++++++++++++++++++++ 2 files changed, 483 insertions(+) (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/util') diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/util/ApplicationConfigurationAdapterFactory.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/util/ApplicationConfigurationAdapterFactory.java index 58c9881e..7a472842 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/util/ApplicationConfigurationAdapterFactory.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/util/ApplicationConfigurationAdapterFactory.java @@ -266,6 +266,31 @@ public class ApplicationConfigurationAdapterFactory extends AdapterFactoryImpl return createTypeScopeAdapter(); } @Override + public Adapter caseClassTypeScope(ClassTypeScope object) + { + return createClassTypeScopeAdapter(); + } + @Override + public Adapter caseObjectTypeScope(ObjectTypeScope object) + { + return createObjectTypeScopeAdapter(); + } + @Override + public Adapter caseIntegerTypeScope(IntegerTypeScope object) + { + return createIntegerTypeScopeAdapter(); + } + @Override + public Adapter caseRealTypeScope(RealTypeScope object) + { + return createRealTypeScopeAdapter(); + } + @Override + public Adapter caseStringTypeScope(StringTypeScope object) + { + return createStringTypeScopeAdapter(); + } + @Override public Adapter caseTypeReference(TypeReference object) { return createTypeReferenceAdapter(); @@ -296,6 +321,36 @@ public class ApplicationConfigurationAdapterFactory extends AdapterFactoryImpl return createStringReferenceAdapter(); } @Override + public Adapter caseNumberSpecification(NumberSpecification object) + { + return createNumberSpecificationAdapter(); + } + @Override + public Adapter caseExactNumber(ExactNumber object) + { + return createExactNumberAdapter(); + } + @Override + public Adapter caseIntervallNumber(IntervallNumber object) + { + return createIntervallNumberAdapter(); + } + @Override + public Adapter caseIntEnumberation(IntEnumberation object) + { + return createIntEnumberationAdapter(); + } + @Override + public Adapter caseRealEnumeration(RealEnumeration object) + { + return createRealEnumerationAdapter(); + } + @Override + public Adapter caseStringEnumeration(StringEnumeration object) + { + return createStringEnumerationAdapter(); + } + @Override public Adapter caseScopeDeclaration(ScopeDeclaration object) { return createScopeDeclarationAdapter(); @@ -927,6 +982,81 @@ public class ApplicationConfigurationAdapterFactory extends AdapterFactoryImpl return null; } + /** + * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ClassTypeScope Class Type Scope}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ClassTypeScope + * @generated + */ + public Adapter createClassTypeScopeAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectTypeScope Object Type Scope}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ObjectTypeScope + * @generated + */ + public Adapter createObjectTypeScopeAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.IntegerTypeScope Integer Type Scope}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.IntegerTypeScope + * @generated + */ + public Adapter createIntegerTypeScopeAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.RealTypeScope Real Type Scope}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.RealTypeScope + * @generated + */ + public Adapter createRealTypeScopeAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.StringTypeScope String Type Scope}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.StringTypeScope + * @generated + */ + public Adapter createStringTypeScopeAdapter() + { + return null; + } + /** * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.TypeReference Type Reference}'. * @@ -1017,6 +1147,96 @@ public class ApplicationConfigurationAdapterFactory extends AdapterFactoryImpl return null; } + /** + * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.NumberSpecification Number Specification}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.NumberSpecification + * @generated + */ + public Adapter createNumberSpecificationAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ExactNumber Exact Number}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ExactNumber + * @generated + */ + public Adapter createExactNumberAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.IntervallNumber Intervall Number}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.IntervallNumber + * @generated + */ + public Adapter createIntervallNumberAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.IntEnumberation Int Enumberation}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.IntEnumberation + * @generated + */ + public Adapter createIntEnumberationAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.RealEnumeration Real Enumeration}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.RealEnumeration + * @generated + */ + public Adapter createRealEnumerationAdapter() + { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.StringEnumeration String Enumeration}'. + * + * This default implementation returns null so that we can easily ignore cases; + * it's useful to ignore a case when inheritance will catch all the cases anyway. + * + * @return the new adapter. + * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.StringEnumeration + * @generated + */ + public Adapter createStringEnumerationAdapter() + { + return null; + } + /** * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ScopeDeclaration Scope Declaration}'. * diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/util/ApplicationConfigurationSwitch.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/util/ApplicationConfigurationSwitch.java index fbcf4041..a579f3f1 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/util/ApplicationConfigurationSwitch.java +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/util/ApplicationConfigurationSwitch.java @@ -369,6 +369,46 @@ public class ApplicationConfigurationSwitch extends Switch if (result == null) result = defaultCase(theEObject); return result; } + case ApplicationConfigurationPackage.CLASS_TYPE_SCOPE: + { + ClassTypeScope classTypeScope = (ClassTypeScope)theEObject; + T result = caseClassTypeScope(classTypeScope); + if (result == null) result = caseTypeScope(classTypeScope); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ApplicationConfigurationPackage.OBJECT_TYPE_SCOPE: + { + ObjectTypeScope objectTypeScope = (ObjectTypeScope)theEObject; + T result = caseObjectTypeScope(objectTypeScope); + if (result == null) result = caseTypeScope(objectTypeScope); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ApplicationConfigurationPackage.INTEGER_TYPE_SCOPE: + { + IntegerTypeScope integerTypeScope = (IntegerTypeScope)theEObject; + T result = caseIntegerTypeScope(integerTypeScope); + if (result == null) result = caseTypeScope(integerTypeScope); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ApplicationConfigurationPackage.REAL_TYPE_SCOPE: + { + RealTypeScope realTypeScope = (RealTypeScope)theEObject; + T result = caseRealTypeScope(realTypeScope); + if (result == null) result = caseTypeScope(realTypeScope); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ApplicationConfigurationPackage.STRING_TYPE_SCOPE: + { + StringTypeScope stringTypeScope = (StringTypeScope)theEObject; + T result = caseStringTypeScope(stringTypeScope); + if (result == null) result = caseTypeScope(stringTypeScope); + if (result == null) result = defaultCase(theEObject); + return result; + } case ApplicationConfigurationPackage.TYPE_REFERENCE: { TypeReference typeReference = (TypeReference)theEObject; @@ -416,6 +456,53 @@ public class ApplicationConfigurationSwitch extends Switch if (result == null) result = defaultCase(theEObject); return result; } + case ApplicationConfigurationPackage.NUMBER_SPECIFICATION: + { + NumberSpecification numberSpecification = (NumberSpecification)theEObject; + T result = caseNumberSpecification(numberSpecification); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ApplicationConfigurationPackage.EXACT_NUMBER: + { + ExactNumber exactNumber = (ExactNumber)theEObject; + T result = caseExactNumber(exactNumber); + if (result == null) result = caseNumberSpecification(exactNumber); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ApplicationConfigurationPackage.INTERVALL_NUMBER: + { + IntervallNumber intervallNumber = (IntervallNumber)theEObject; + T result = caseIntervallNumber(intervallNumber); + if (result == null) result = caseNumberSpecification(intervallNumber); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ApplicationConfigurationPackage.INT_ENUMBERATION: + { + IntEnumberation intEnumberation = (IntEnumberation)theEObject; + T result = caseIntEnumberation(intEnumberation); + if (result == null) result = caseNumberSpecification(intEnumberation); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ApplicationConfigurationPackage.REAL_ENUMERATION: + { + RealEnumeration realEnumeration = (RealEnumeration)theEObject; + T result = caseRealEnumeration(realEnumeration); + if (result == null) result = caseNumberSpecification(realEnumeration); + if (result == null) result = defaultCase(theEObject); + return result; + } + case ApplicationConfigurationPackage.STRING_ENUMERATION: + { + StringEnumeration stringEnumeration = (StringEnumeration)theEObject; + T result = caseStringEnumeration(stringEnumeration); + if (result == null) result = caseNumberSpecification(stringEnumeration); + if (result == null) result = defaultCase(theEObject); + return result; + } case ApplicationConfigurationPackage.SCOPE_DECLARATION: { ScopeDeclaration scopeDeclaration = (ScopeDeclaration)theEObject; @@ -1096,6 +1183,86 @@ public class ApplicationConfigurationSwitch extends Switch return null; } + /** + * Returns the result of interpreting the object as an instance of 'Class Type Scope'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Class Type Scope'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseClassTypeScope(ClassTypeScope object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Object Type Scope'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Object Type Scope'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseObjectTypeScope(ObjectTypeScope object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Integer Type Scope'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Integer Type Scope'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseIntegerTypeScope(IntegerTypeScope object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Real Type Scope'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Real Type Scope'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRealTypeScope(RealTypeScope object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'String Type Scope'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'String Type Scope'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseStringTypeScope(StringTypeScope object) + { + return null; + } + /** * Returns the result of interpreting the object as an instance of 'Type Reference'. * @@ -1192,6 +1359,102 @@ public class ApplicationConfigurationSwitch extends Switch return null; } + /** + * Returns the result of interpreting the object as an instance of 'Number Specification'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Number Specification'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNumberSpecification(NumberSpecification object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Exact Number'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Exact Number'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseExactNumber(ExactNumber object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Intervall Number'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Intervall Number'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseIntervallNumber(IntervallNumber object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Int Enumberation'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Int Enumberation'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseIntEnumberation(IntEnumberation object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'Real Enumeration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Real Enumeration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseRealEnumeration(RealEnumeration object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of 'String Enumeration'. + * + * This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'String Enumeration'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseStringEnumeration(StringEnumeration object) + { + return null; + } + /** * Returns the result of interpreting the object as an instance of 'Scope Declaration'. * -- cgit v1.2.3-54-g00ecf