- * The following features are supported: - *
- *- * The following features are supported: - *
- *- * The following features are supported: - *
- *- * The following features are supported: - *
- *- * The following features are supported: - *
- *- * The following features are supported: - *
- *- * The following features are implemented: - *
- *Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage#eNS_URI - * @see #init() - * @generated - */ - private DomainmodelPackageImpl() - { - super(eNS_URI, DomainmodelFactory.eINSTANCE); - } - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *
This method is used to initialize {@link DomainmodelPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static DomainmodelPackage init() - { - if (isInited) return (DomainmodelPackage)EPackage.Registry.INSTANCE.getEPackage(DomainmodelPackage.eNS_URI); - - // Obtain or create and register package - Object registeredDomainmodelPackage = EPackage.Registry.INSTANCE.get(eNS_URI); - DomainmodelPackageImpl theDomainmodelPackage = registeredDomainmodelPackage instanceof DomainmodelPackageImpl ? (DomainmodelPackageImpl)registeredDomainmodelPackage : new DomainmodelPackageImpl(); - - isInited = true; - - // Initialize simple dependencies - TypesPackage.eINSTANCE.eClass(); - XbasePackage.eINSTANCE.eClass(); - XtypePackage.eINSTANCE.eClass(); - - // Create package meta-data objects - theDomainmodelPackage.createPackageContents(); - - // Initialize created meta-data - theDomainmodelPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theDomainmodelPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(DomainmodelPackage.eNS_URI, theDomainmodelPackage); - return theDomainmodelPackage; - } - - /** - * - * - * @generated - */ - @Override - public EClass getEntities() - { - return entitiesEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getEntities_ImportSection() - { - return (EReference)entitiesEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getEntities_Elements() - { - return (EReference)entitiesEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getAbstractElement() - { - return abstractElementEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getAbstractElement_Name() - { - return (EAttribute)abstractElementEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getPackageDeclaration() - { - return packageDeclarationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getPackageDeclaration_Elements() - { - return (EReference)packageDeclarationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getEntity() - { - return entityEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getEntity_SuperType() - { - return (EReference)entityEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getEntity_Features() - { - return (EReference)entityEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getFeature() - { - return featureEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getFeature_Name() - { - return (EAttribute)featureEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getFeature_Type() - { - return (EReference)featureEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getProperty() - { - return propertyEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getOperation() - { - return operationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getOperation_Params() - { - return (EReference)operationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getOperation_Body() - { - return (EReference)operationEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public DomainmodelFactory getDomainmodelFactory() - { - return (DomainmodelFactory)getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void createPackageContents() - { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - entitiesEClass = createEClass(ENTITIES); - createEReference(entitiesEClass, ENTITIES__IMPORT_SECTION); - createEReference(entitiesEClass, ENTITIES__ELEMENTS); - - abstractElementEClass = createEClass(ABSTRACT_ELEMENT); - createEAttribute(abstractElementEClass, ABSTRACT_ELEMENT__NAME); - - packageDeclarationEClass = createEClass(PACKAGE_DECLARATION); - createEReference(packageDeclarationEClass, PACKAGE_DECLARATION__ELEMENTS); - - entityEClass = createEClass(ENTITY); - createEReference(entityEClass, ENTITY__SUPER_TYPE); - createEReference(entityEClass, ENTITY__FEATURES); - - featureEClass = createEClass(FEATURE); - createEAttribute(featureEClass, FEATURE__NAME); - createEReference(featureEClass, FEATURE__TYPE); - - propertyEClass = createEClass(PROPERTY); - - operationEClass = createEClass(OPERATION); - createEReference(operationEClass, OPERATION__PARAMS); - createEReference(operationEClass, OPERATION__BODY); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void initializePackageContents() - { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - XtypePackage theXtypePackage = (XtypePackage)EPackage.Registry.INSTANCE.getEPackage(XtypePackage.eNS_URI); - TypesPackage theTypesPackage = (TypesPackage)EPackage.Registry.INSTANCE.getEPackage(TypesPackage.eNS_URI); - XbasePackage theXbasePackage = (XbasePackage)EPackage.Registry.INSTANCE.getEPackage(XbasePackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - packageDeclarationEClass.getESuperTypes().add(this.getAbstractElement()); - entityEClass.getESuperTypes().add(this.getAbstractElement()); - propertyEClass.getESuperTypes().add(this.getFeature()); - operationEClass.getESuperTypes().add(this.getFeature()); - - // Initialize classes and features; add operations and parameters - initEClass(entitiesEClass, Entities.class, "Entities", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getEntities_ImportSection(), theXtypePackage.getXImportSection(), null, "importSection", null, 0, 1, Entities.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEntities_Elements(), this.getAbstractElement(), null, "elements", null, 0, -1, Entities.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(abstractElementEClass, AbstractElement.class, "AbstractElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getAbstractElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, AbstractElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(packageDeclarationEClass, PackageDeclaration.class, "PackageDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getPackageDeclaration_Elements(), this.getAbstractElement(), null, "elements", null, 0, -1, PackageDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(entityEClass, Entity.class, "Entity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getEntity_SuperType(), theTypesPackage.getJvmParameterizedTypeReference(), null, "superType", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEntity_Features(), this.getFeature(), null, "features", null, 0, -1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(featureEClass, Feature.class, "Feature", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getFeature_Name(), ecorePackage.getEString(), "name", null, 0, 1, Feature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getFeature_Type(), theTypesPackage.getJvmTypeReference(), null, "type", null, 0, 1, Feature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(propertyEClass, Property.class, "Property", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(operationEClass, Operation.class, "Operation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getOperation_Params(), theTypesPackage.getJvmFormalParameter(), null, "params", null, 0, -1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getOperation_Body(), theXbasePackage.getXExpression(), null, "body", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Create resource - createResource(eNS_URI); - } - -} //DomainmodelPackageImpl diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/EntitiesImpl.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/EntitiesImpl.java deleted file mode 100644 index b5a0ef27456..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/EntitiesImpl.java +++ /dev/null @@ -1,251 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.entities.domainmodel.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.xtext.web.example.entities.domainmodel.AbstractElement; -import org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage; -import org.eclipse.xtext.web.example.entities.domainmodel.Entities; - -import org.eclipse.xtext.xtype.XImportSection; - -/** - * - * An implementation of the model object 'Entities'. - * - *
- * The following features are implemented: - *
- *- * The following features are implemented: - *
- *- * The following features are implemented: - *
- *- * The following features are implemented: - *
- *- * The following features are implemented: - *
- *createXXX method for each class of the model.
- *
- * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage
- * @generated
- */
-public class DomainmodelAdapterFactory extends AdapterFactoryImpl
-{
- /**
- * The cached model package.
- *
- *
- * @generated
- */
- protected static DomainmodelPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- *
- *
- * @generated
- */
- public DomainmodelAdapterFactory()
- {
- if (modelPackage == null)
- {
- modelPackage = DomainmodelPackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- *
- * This implementation returns true if the object is either the model's package or is an instance object of the model.
- *
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object object)
- {
- if (object == modelPackage)
- {
- return true;
- }
- if (object instanceof EObject)
- {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch that delegates to the createXXX methods.
- *
- *
- * @generated
- */
- protected DomainmodelSwitchtarget.
- *
- *
- * @param target the object to adapt.
- * @return the adapter for the target.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target)
- {
- return modelSwitch.doSwitch((EObject)target);
- }
-
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.entities.domainmodel.Entities Entities}'.
- *
- * 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 org.eclipse.xtext.web.example.entities.domainmodel.Entities
- * @generated
- */
- public Adapter createEntitiesAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.entities.domainmodel.AbstractElement Abstract Element}'.
- *
- * 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 org.eclipse.xtext.web.example.entities.domainmodel.AbstractElement
- * @generated
- */
- public Adapter createAbstractElementAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.entities.domainmodel.PackageDeclaration Package Declaration}'.
- *
- * 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 org.eclipse.xtext.web.example.entities.domainmodel.PackageDeclaration
- * @generated
- */
- public Adapter createPackageDeclarationAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.entities.domainmodel.Entity Entity}'.
- *
- * 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 org.eclipse.xtext.web.example.entities.domainmodel.Entity
- * @generated
- */
- public Adapter createEntityAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.entities.domainmodel.Feature Feature}'.
- *
- * 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 org.eclipse.xtext.web.example.entities.domainmodel.Feature
- * @generated
- */
- public Adapter createFeatureAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.entities.domainmodel.Property Property}'.
- *
- * 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 org.eclipse.xtext.web.example.entities.domainmodel.Property
- * @generated
- */
- public Adapter createPropertyAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.entities.domainmodel.Operation Operation}'.
- *
- * 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 org.eclipse.xtext.web.example.entities.domainmodel.Operation
- * @generated
- */
- public Adapter createOperationAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case.
- *
- * This default implementation returns null.
- *
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter()
- {
- return null;
- }
-
-} //DomainmodelAdapterFactory
diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/util/DomainmodelSwitch.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/util/DomainmodelSwitch.java
deleted file mode 100644
index bf9d1d28e31..00000000000
--- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/util/DomainmodelSwitch.java
+++ /dev/null
@@ -1,267 +0,0 @@
-/**
- * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others.
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License 2.0 which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * SPDX-License-Identifier: EPL-2.0
- */
-package org.eclipse.xtext.web.example.entities.domainmodel.util;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.util.Switch;
-
-import org.eclipse.xtext.web.example.entities.domainmodel.*;
-
-/**
- *
- * The Switch for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
- * to invoke the caseXXX method for each class of the model,
- * starting with the actual class of the object
- * and proceeding up the inheritance hierarchy
- * until a non-null result is returned,
- * which is the result of the switch.
- *
- * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage
- * @generated
- */
-public class DomainmodelSwitchcaseXXX for each class of the model until one returns a non null result; it yields that result.
- *
- *
- * @return the first non-null result returned by a caseXXX call.
- * @generated
- */
- @Override
- protected T doSwitch(int classifierID, EObject theEObject)
- {
- switch (classifierID)
- {
- case DomainmodelPackage.ENTITIES:
- {
- Entities entities = (Entities)theEObject;
- T result = caseEntities(entities);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case DomainmodelPackage.ABSTRACT_ELEMENT:
- {
- AbstractElement abstractElement = (AbstractElement)theEObject;
- T result = caseAbstractElement(abstractElement);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case DomainmodelPackage.PACKAGE_DECLARATION:
- {
- PackageDeclaration packageDeclaration = (PackageDeclaration)theEObject;
- T result = casePackageDeclaration(packageDeclaration);
- if (result == null) result = caseAbstractElement(packageDeclaration);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case DomainmodelPackage.ENTITY:
- {
- Entity entity = (Entity)theEObject;
- T result = caseEntity(entity);
- if (result == null) result = caseAbstractElement(entity);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case DomainmodelPackage.FEATURE:
- {
- Feature feature = (Feature)theEObject;
- T result = caseFeature(feature);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case DomainmodelPackage.PROPERTY:
- {
- Property property = (Property)theEObject;
- T result = caseProperty(property);
- if (result == null) result = caseFeature(property);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case DomainmodelPackage.OPERATION:
- {
- Operation operation = (Operation)theEObject;
- T result = caseOperation(operation);
- if (result == null) result = caseFeature(operation);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Entities'.
- *
- * 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 'Entities'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseEntities(Entities object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Abstract Element'.
- *
- * 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 'Abstract Element'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseAbstractElement(AbstractElement object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Package Declaration'.
- *
- * 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 'Package Declaration'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T casePackageDeclaration(PackageDeclaration object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Entity'.
- *
- * 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 'Entity'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseEntity(Entity object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Feature'.
- *
- * 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 'Feature'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseFeature(Feature object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Property'.
- *
- * 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 'Property'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseProperty(Property object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Operation'.
- *
- * 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 'Operation'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseOperation(Operation object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'EObject'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch, but this is the last case anyway.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'EObject'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- @Override
- public T defaultCase(EObject object)
- {
- return null;
- }
-
-} //DomainmodelSwitch
diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/EntitiesAntlrTokenFileProvider.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/EntitiesAntlrTokenFileProvider.java
deleted file mode 100644
index ada3d9a0e19..00000000000
--- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/EntitiesAntlrTokenFileProvider.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others.
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License 2.0 which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * SPDX-License-Identifier: EPL-2.0
- *******************************************************************************/
-package org.eclipse.xtext.web.example.entities.parser.antlr;
-
-import java.io.InputStream;
-import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider;
-
-public class EntitiesAntlrTokenFileProvider implements IAntlrTokenFileProvider {
-
- @Override
- public InputStream getAntlrTokenFile() {
- ClassLoader classLoader = getClass().getClassLoader();
- return classLoader.getResourceAsStream("org/eclipse/xtext/web/example/entities/parser/antlr/internal/InternalEntities.tokens");
- }
-}
diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/EntitiesParser.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/EntitiesParser.java
deleted file mode 100644
index 14645b3c0ff..00000000000
--- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/EntitiesParser.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others.
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License 2.0 which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * SPDX-License-Identifier: EPL-2.0
- *******************************************************************************/
-package org.eclipse.xtext.web.example.entities.parser.antlr;
-
-import com.google.inject.Inject;
-import org.eclipse.xtext.parser.antlr.AbstractAntlrParser;
-import org.eclipse.xtext.parser.antlr.XtextTokenStream;
-import org.eclipse.xtext.web.example.entities.parser.antlr.internal.InternalEntitiesParser;
-import org.eclipse.xtext.web.example.entities.services.EntitiesGrammarAccess;
-
-public class EntitiesParser extends AbstractAntlrParser {
-
- @Inject
- private EntitiesGrammarAccess grammarAccess;
-
- @Override
- protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
- tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
- }
-
-
- @Override
- protected InternalEntitiesParser createParser(XtextTokenStream stream) {
- return new InternalEntitiesParser(stream, getGrammarAccess());
- }
-
- @Override
- protected String getDefaultRuleName() {
- return "Entities";
- }
-
- public EntitiesGrammarAccess getGrammarAccess() {
- return this.grammarAccess;
- }
-
- public void setGrammarAccess(EntitiesGrammarAccess grammarAccess) {
- this.grammarAccess = grammarAccess;
- }
-}
diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/internal/InternalEntities.g b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/internal/InternalEntities.g
deleted file mode 100644
index 2804be75cc8..00000000000
--- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/internal/InternalEntities.g
+++ /dev/null
@@ -1,6895 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others.
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License 2.0 which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * SPDX-License-Identifier: EPL-2.0
- *******************************************************************************/
-grammar InternalEntities;
-
-options {
- superClass=AbstractInternalAntlrParser;
-}
-
-@lexer::header {
-package org.eclipse.xtext.web.example.entities.parser.antlr.internal;
-
-// Hack: Use our own Lexer superclass by means of import.
-// Currently there is no other way to specify the superclass for the lexer.
-import org.eclipse.xtext.parser.antlr.Lexer;
-}
-
-@parser::header {
-package org.eclipse.xtext.web.example.entities.parser.antlr.internal;
-
-import org.eclipse.xtext.*;
-import org.eclipse.xtext.parser.*;
-import org.eclipse.xtext.parser.impl.*;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser;
-import org.eclipse.xtext.parser.antlr.XtextTokenStream;
-import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
-import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken;
-import org.eclipse.xtext.web.example.entities.services.EntitiesGrammarAccess;
-
-}
-
-@parser::members {
-
- private EntitiesGrammarAccess grammarAccess;
-
- public InternalEntitiesParser(TokenStream input, EntitiesGrammarAccess grammarAccess) {
- this(input);
- this.grammarAccess = grammarAccess;
- registerRules(grammarAccess.getGrammar());
- }
-
- @Override
- protected String getFirstRuleName() {
- return "Entities";
- }
-
- @Override
- protected EntitiesGrammarAccess getGrammarAccess() {
- return grammarAccess;
- }
-
-}
-
-@rulecatch {
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
-}
-
-// Entry rule entryRuleEntities
-entryRuleEntities returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getEntitiesRule()); }
- iv_ruleEntities=ruleEntities
- { $current=$iv_ruleEntities.current; }
- EOF;
-
-// Rule Entities
-ruleEntities returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- (
- {
- newCompositeNode(grammarAccess.getEntitiesAccess().getImportSectionXImportSectionParserRuleCall_0_0());
- }
- lv_importSection_0_0=ruleXImportSection
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getEntitiesRule());
- }
- set(
- $current,
- "importSection",
- lv_importSection_0_0,
- "org.eclipse.xtext.xbase.Xtype.XImportSection");
- afterParserOrEnumRuleCall();
- }
- )
- )?
- (
- (
- {
- newCompositeNode(grammarAccess.getEntitiesAccess().getElementsAbstractElementParserRuleCall_1_0());
- }
- lv_elements_1_0=ruleAbstractElement
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getEntitiesRule());
- }
- add(
- $current,
- "elements",
- lv_elements_1_0,
- "org.eclipse.xtext.web.example.entities.Entities.AbstractElement");
- afterParserOrEnumRuleCall();
- }
- )
- )*
- )
-;
-
-// Entry rule entryRuleAbstractElement
-entryRuleAbstractElement returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getAbstractElementRule()); }
- iv_ruleAbstractElement=ruleAbstractElement
- { $current=$iv_ruleAbstractElement.current; }
- EOF;
-
-// Rule AbstractElement
-ruleAbstractElement returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- {
- newCompositeNode(grammarAccess.getAbstractElementAccess().getPackageDeclarationParserRuleCall_0());
- }
- this_PackageDeclaration_0=rulePackageDeclaration
- {
- $current = $this_PackageDeclaration_0.current;
- afterParserOrEnumRuleCall();
- }
- |
- {
- newCompositeNode(grammarAccess.getAbstractElementAccess().getEntityParserRuleCall_1());
- }
- this_Entity_1=ruleEntity
- {
- $current = $this_Entity_1.current;
- afterParserOrEnumRuleCall();
- }
- )
-;
-
-// Entry rule entryRulePackageDeclaration
-entryRulePackageDeclaration returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getPackageDeclarationRule()); }
- iv_rulePackageDeclaration=rulePackageDeclaration
- { $current=$iv_rulePackageDeclaration.current; }
- EOF;
-
-// Rule PackageDeclaration
-rulePackageDeclaration returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- otherlv_0='package'
- {
- newLeafNode(otherlv_0, grammarAccess.getPackageDeclarationAccess().getPackageKeyword_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getPackageDeclarationAccess().getNameQualifiedNameParserRuleCall_1_0());
- }
- lv_name_1_0=ruleQualifiedName
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPackageDeclarationRule());
- }
- set(
- $current,
- "name",
- lv_name_1_0,
- "org.eclipse.xtext.xbase.Xbase.QualifiedName");
- afterParserOrEnumRuleCall();
- }
- )
- )
- otherlv_2='{'
- {
- newLeafNode(otherlv_2, grammarAccess.getPackageDeclarationAccess().getLeftCurlyBracketKeyword_2());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getPackageDeclarationAccess().getElementsAbstractElementParserRuleCall_3_0());
- }
- lv_elements_3_0=ruleAbstractElement
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPackageDeclarationRule());
- }
- add(
- $current,
- "elements",
- lv_elements_3_0,
- "org.eclipse.xtext.web.example.entities.Entities.AbstractElement");
- afterParserOrEnumRuleCall();
- }
- )
- )*
- otherlv_4='}'
- {
- newLeafNode(otherlv_4, grammarAccess.getPackageDeclarationAccess().getRightCurlyBracketKeyword_4());
- }
- )
-;
-
-// Entry rule entryRuleEntity
-entryRuleEntity returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getEntityRule()); }
- iv_ruleEntity=ruleEntity
- { $current=$iv_ruleEntity.current; }
- EOF;
-
-// Rule Entity
-ruleEntity returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- otherlv_0='entity'
- {
- newLeafNode(otherlv_0, grammarAccess.getEntityAccess().getEntityKeyword_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getEntityAccess().getNameValidIDParserRuleCall_1_0());
- }
- lv_name_1_0=ruleValidID
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getEntityRule());
- }
- set(
- $current,
- "name",
- lv_name_1_0,
- "org.eclipse.xtext.xbase.Xtype.ValidID");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- otherlv_2='extends'
- {
- newLeafNode(otherlv_2, grammarAccess.getEntityAccess().getExtendsKeyword_2_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getEntityAccess().getSuperTypeJvmParameterizedTypeReferenceParserRuleCall_2_1_0());
- }
- lv_superType_3_0=ruleJvmParameterizedTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getEntityRule());
- }
- set(
- $current,
- "superType",
- lv_superType_3_0,
- "org.eclipse.xtext.xbase.Xtype.JvmParameterizedTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )?
- otherlv_4='{'
- {
- newLeafNode(otherlv_4, grammarAccess.getEntityAccess().getLeftCurlyBracketKeyword_3());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getEntityAccess().getFeaturesFeatureParserRuleCall_4_0());
- }
- lv_features_5_0=ruleFeature
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getEntityRule());
- }
- add(
- $current,
- "features",
- lv_features_5_0,
- "org.eclipse.xtext.web.example.entities.Entities.Feature");
- afterParserOrEnumRuleCall();
- }
- )
- )*
- otherlv_6='}'
- {
- newLeafNode(otherlv_6, grammarAccess.getEntityAccess().getRightCurlyBracketKeyword_5());
- }
- )
-;
-
-// Entry rule entryRuleFeature
-entryRuleFeature returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getFeatureRule()); }
- iv_ruleFeature=ruleFeature
- { $current=$iv_ruleFeature.current; }
- EOF;
-
-// Rule Feature
-ruleFeature returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- {
- newCompositeNode(grammarAccess.getFeatureAccess().getPropertyParserRuleCall_0());
- }
- this_Property_0=ruleProperty
- {
- $current = $this_Property_0.current;
- afterParserOrEnumRuleCall();
- }
- |
- {
- newCompositeNode(grammarAccess.getFeatureAccess().getOperationParserRuleCall_1());
- }
- this_Operation_1=ruleOperation
- {
- $current = $this_Operation_1.current;
- afterParserOrEnumRuleCall();
- }
- )
-;
-
-// Entry rule entryRuleProperty
-entryRuleProperty returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getPropertyRule()); }
- iv_ruleProperty=ruleProperty
- { $current=$iv_ruleProperty.current; }
- EOF;
-
-// Rule Property
-ruleProperty returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- (
- {
- newCompositeNode(grammarAccess.getPropertyAccess().getNameValidIDParserRuleCall_0_0());
- }
- lv_name_0_0=ruleValidID
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPropertyRule());
- }
- set(
- $current,
- "name",
- lv_name_0_0,
- "org.eclipse.xtext.xbase.Xtype.ValidID");
- afterParserOrEnumRuleCall();
- }
- )
- )
- otherlv_1=':'
- {
- newLeafNode(otherlv_1, grammarAccess.getPropertyAccess().getColonKeyword_1());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getPropertyAccess().getTypeJvmTypeReferenceParserRuleCall_2_0());
- }
- lv_type_2_0=ruleJvmTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPropertyRule());
- }
- set(
- $current,
- "type",
- lv_type_2_0,
- "org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
-;
-
-// Entry rule entryRuleOperation
-entryRuleOperation returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getOperationRule()); }
- iv_ruleOperation=ruleOperation
- { $current=$iv_ruleOperation.current; }
- EOF;
-
-// Rule Operation
-ruleOperation returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- otherlv_0='op'
- {
- newLeafNode(otherlv_0, grammarAccess.getOperationAccess().getOpKeyword_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getOperationAccess().getNameValidIDParserRuleCall_1_0());
- }
- lv_name_1_0=ruleValidID
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getOperationRule());
- }
- set(
- $current,
- "name",
- lv_name_1_0,
- "org.eclipse.xtext.xbase.Xtype.ValidID");
- afterParserOrEnumRuleCall();
- }
- )
- )
- otherlv_2='('
- {
- newLeafNode(otherlv_2, grammarAccess.getOperationAccess().getLeftParenthesisKeyword_2());
- }
- (
- (
- (
- {
- newCompositeNode(grammarAccess.getOperationAccess().getParamsFullJvmFormalParameterParserRuleCall_3_0_0());
- }
- lv_params_3_0=ruleFullJvmFormalParameter
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getOperationRule());
- }
- add(
- $current,
- "params",
- lv_params_3_0,
- "org.eclipse.xtext.xbase.Xbase.FullJvmFormalParameter");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- otherlv_4=','
- {
- newLeafNode(otherlv_4, grammarAccess.getOperationAccess().getCommaKeyword_3_1_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getOperationAccess().getParamsFullJvmFormalParameterParserRuleCall_3_1_1_0());
- }
- lv_params_5_0=ruleFullJvmFormalParameter
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getOperationRule());
- }
- add(
- $current,
- "params",
- lv_params_5_0,
- "org.eclipse.xtext.xbase.Xbase.FullJvmFormalParameter");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )*
- )?
- otherlv_6=')'
- {
- newLeafNode(otherlv_6, grammarAccess.getOperationAccess().getRightParenthesisKeyword_4());
- }
- (
- otherlv_7=':'
- {
- newLeafNode(otherlv_7, grammarAccess.getOperationAccess().getColonKeyword_5_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getOperationAccess().getTypeJvmTypeReferenceParserRuleCall_5_1_0());
- }
- lv_type_8_0=ruleJvmTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getOperationRule());
- }
- set(
- $current,
- "type",
- lv_type_8_0,
- "org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )?
- (
- (
- {
- newCompositeNode(grammarAccess.getOperationAccess().getBodyXBlockExpressionParserRuleCall_6_0());
- }
- lv_body_9_0=ruleXBlockExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getOperationRule());
- }
- set(
- $current,
- "body",
- lv_body_9_0,
- "org.eclipse.xtext.xbase.Xbase.XBlockExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
-;
-
-// Entry rule entryRuleXExpression
-entryRuleXExpression returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXExpressionRule()); }
- iv_ruleXExpression=ruleXExpression
- { $current=$iv_ruleXExpression.current; }
- EOF;
-
-// Rule XExpression
-ruleXExpression returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- {
- newCompositeNode(grammarAccess.getXExpressionAccess().getXAssignmentParserRuleCall());
- }
- this_XAssignment_0=ruleXAssignment
- {
- $current = $this_XAssignment_0.current;
- afterParserOrEnumRuleCall();
- }
-;
-
-// Entry rule entryRuleXAssignment
-entryRuleXAssignment returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXAssignmentRule()); }
- iv_ruleXAssignment=ruleXAssignment
- { $current=$iv_ruleXAssignment.current; }
- EOF;
-
-// Rule XAssignment
-ruleXAssignment returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXAssignmentAccess().getXAssignmentAction_0_0(),
- $current);
- }
- )
- (
- (
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXAssignmentRule());
- }
- }
- {
- newCompositeNode(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0());
- }
- ruleFeatureCallID
- {
- afterParserOrEnumRuleCall();
- }
- )
- )
- {
- newCompositeNode(grammarAccess.getXAssignmentAccess().getOpSingleAssignParserRuleCall_0_2());
- }
- ruleOpSingleAssign
- {
- afterParserOrEnumRuleCall();
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXAssignmentAccess().getValueXAssignmentParserRuleCall_0_3_0());
- }
- lv_value_3_0=ruleXAssignment
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXAssignmentRule());
- }
- set(
- $current,
- "value",
- lv_value_3_0,
- "org.eclipse.xtext.xbase.Xbase.XAssignment");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
- |
- (
- {
- newCompositeNode(grammarAccess.getXAssignmentAccess().getXOrExpressionParserRuleCall_1_0());
- }
- this_XOrExpression_4=ruleXOrExpression
- {
- $current = $this_XOrExpression_4.current;
- afterParserOrEnumRuleCall();
- }
- (
- (
- ((
- (
- )
- (
- (
- ruleOpMultiAssign
- )
- )
- )
- )=>
- (
- (
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getXAssignmentAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(),
- $current);
- }
- )
- (
- (
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXAssignmentRule());
- }
- }
- {
- newCompositeNode(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0());
- }
- ruleOpMultiAssign
- {
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getXAssignmentAccess().getRightOperandXAssignmentParserRuleCall_1_1_1_0());
- }
- lv_rightOperand_7_0=ruleXAssignment
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXAssignmentRule());
- }
- set(
- $current,
- "rightOperand",
- lv_rightOperand_7_0,
- "org.eclipse.xtext.xbase.Xbase.XAssignment");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )?
- )
- )
-;
-
-// Entry rule entryRuleOpSingleAssign
-entryRuleOpSingleAssign returns [String current=null]:
- { newCompositeNode(grammarAccess.getOpSingleAssignRule()); }
- iv_ruleOpSingleAssign=ruleOpSingleAssign
- { $current=$iv_ruleOpSingleAssign.current.getText(); }
- EOF;
-
-// Rule OpSingleAssign
-ruleOpSingleAssign returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- kw='='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword());
- }
-;
-
-// Entry rule entryRuleOpMultiAssign
-entryRuleOpMultiAssign returns [String current=null]:
- { newCompositeNode(grammarAccess.getOpMultiAssignRule()); }
- iv_ruleOpMultiAssign=ruleOpMultiAssign
- { $current=$iv_ruleOpMultiAssign.current.getText(); }
- EOF;
-
-// Rule OpMultiAssign
-ruleOpMultiAssign returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- kw='+='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword_0());
- }
- |
- kw='-='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getHyphenMinusEqualsSignKeyword_1());
- }
- |
- kw='*='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getAsteriskEqualsSignKeyword_2());
- }
- |
- kw='/='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getSolidusEqualsSignKeyword_3());
- }
- |
- kw='%='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPercentSignEqualsSignKeyword_4());
- }
- |
- (
- kw='<'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_0());
- }
- kw='<'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_1());
- }
- kw='='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getEqualsSignKeyword_5_2());
- }
- )
- |
- (
- kw='>'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_0());
- }
- (
- kw='>'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_1());
- }
- )?
- kw='>='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignEqualsSignKeyword_6_2());
- }
- )
- )
-;
-
-// Entry rule entryRuleXOrExpression
-entryRuleXOrExpression returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXOrExpressionRule()); }
- iv_ruleXOrExpression=ruleXOrExpression
- { $current=$iv_ruleXOrExpression.current; }
- EOF;
-
-// Rule XOrExpression
-ruleXOrExpression returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- {
- newCompositeNode(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0());
- }
- this_XAndExpression_0=ruleXAndExpression
- {
- $current = $this_XAndExpression_0.current;
- afterParserOrEnumRuleCall();
- }
- (
- (
- ((
- (
- )
- (
- (
- ruleOpOr
- )
- )
- )
- )=>
- (
- (
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getXOrExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(),
- $current);
- }
- )
- (
- (
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXOrExpressionRule());
- }
- }
- {
- newCompositeNode(grammarAccess.getXOrExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0());
- }
- ruleOpOr
- {
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getXOrExpressionAccess().getRightOperandXAndExpressionParserRuleCall_1_1_0());
- }
- lv_rightOperand_3_0=ruleXAndExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXOrExpressionRule());
- }
- set(
- $current,
- "rightOperand",
- lv_rightOperand_3_0,
- "org.eclipse.xtext.xbase.Xbase.XAndExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )*
- )
-;
-
-// Entry rule entryRuleOpOr
-entryRuleOpOr returns [String current=null]:
- { newCompositeNode(grammarAccess.getOpOrRule()); }
- iv_ruleOpOr=ruleOpOr
- { $current=$iv_ruleOpOr.current.getText(); }
- EOF;
-
-// Rule OpOr
-ruleOpOr returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- kw='||'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpOrAccess().getVerticalLineVerticalLineKeyword());
- }
-;
-
-// Entry rule entryRuleXAndExpression
-entryRuleXAndExpression returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXAndExpressionRule()); }
- iv_ruleXAndExpression=ruleXAndExpression
- { $current=$iv_ruleXAndExpression.current; }
- EOF;
-
-// Rule XAndExpression
-ruleXAndExpression returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- {
- newCompositeNode(grammarAccess.getXAndExpressionAccess().getXEqualityExpressionParserRuleCall_0());
- }
- this_XEqualityExpression_0=ruleXEqualityExpression
- {
- $current = $this_XEqualityExpression_0.current;
- afterParserOrEnumRuleCall();
- }
- (
- (
- ((
- (
- )
- (
- (
- ruleOpAnd
- )
- )
- )
- )=>
- (
- (
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getXAndExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(),
- $current);
- }
- )
- (
- (
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXAndExpressionRule());
- }
- }
- {
- newCompositeNode(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0());
- }
- ruleOpAnd
- {
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getXAndExpressionAccess().getRightOperandXEqualityExpressionParserRuleCall_1_1_0());
- }
- lv_rightOperand_3_0=ruleXEqualityExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXAndExpressionRule());
- }
- set(
- $current,
- "rightOperand",
- lv_rightOperand_3_0,
- "org.eclipse.xtext.xbase.Xbase.XEqualityExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )*
- )
-;
-
-// Entry rule entryRuleOpAnd
-entryRuleOpAnd returns [String current=null]:
- { newCompositeNode(grammarAccess.getOpAndRule()); }
- iv_ruleOpAnd=ruleOpAnd
- { $current=$iv_ruleOpAnd.current.getText(); }
- EOF;
-
-// Rule OpAnd
-ruleOpAnd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- kw='&&'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword());
- }
-;
-
-// Entry rule entryRuleXEqualityExpression
-entryRuleXEqualityExpression returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXEqualityExpressionRule()); }
- iv_ruleXEqualityExpression=ruleXEqualityExpression
- { $current=$iv_ruleXEqualityExpression.current; }
- EOF;
-
-// Rule XEqualityExpression
-ruleXEqualityExpression returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- {
- newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getXRelationalExpressionParserRuleCall_0());
- }
- this_XRelationalExpression_0=ruleXRelationalExpression
- {
- $current = $this_XRelationalExpression_0.current;
- afterParserOrEnumRuleCall();
- }
- (
- (
- ((
- (
- )
- (
- (
- ruleOpEquality
- )
- )
- )
- )=>
- (
- (
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getXEqualityExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(),
- $current);
- }
- )
- (
- (
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXEqualityExpressionRule());
- }
- }
- {
- newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0());
- }
- ruleOpEquality
- {
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getRightOperandXRelationalExpressionParserRuleCall_1_1_0());
- }
- lv_rightOperand_3_0=ruleXRelationalExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXEqualityExpressionRule());
- }
- set(
- $current,
- "rightOperand",
- lv_rightOperand_3_0,
- "org.eclipse.xtext.xbase.Xbase.XRelationalExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )*
- )
-;
-
-// Entry rule entryRuleOpEquality
-entryRuleOpEquality returns [String current=null]:
- { newCompositeNode(grammarAccess.getOpEqualityRule()); }
- iv_ruleOpEquality=ruleOpEquality
- { $current=$iv_ruleOpEquality.current.getText(); }
- EOF;
-
-// Rule OpEquality
-ruleOpEquality returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- kw='=='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0());
- }
- |
- kw='!='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1());
- }
- |
- kw='==='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignEqualsSignKeyword_2());
- }
- |
- kw='!=='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignEqualsSignKeyword_3());
- }
- )
-;
-
-// Entry rule entryRuleXRelationalExpression
-entryRuleXRelationalExpression returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXRelationalExpressionRule()); }
- iv_ruleXRelationalExpression=ruleXRelationalExpression
- { $current=$iv_ruleXRelationalExpression.current; }
- EOF;
-
-// Rule XRelationalExpression
-ruleXRelationalExpression returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- {
- newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getXOtherOperatorExpressionParserRuleCall_0());
- }
- this_XOtherOperatorExpression_0=ruleXOtherOperatorExpression
- {
- $current = $this_XOtherOperatorExpression_0.current;
- afterParserOrEnumRuleCall();
- }
- (
- (
- (
- ((
- (
- )
- 'instanceof'
- )
- )=>
- (
- (
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0(),
- $current);
- }
- )
- otherlv_2='instanceof'
- {
- newLeafNode(otherlv_2, grammarAccess.getXRelationalExpressionAccess().getInstanceofKeyword_1_0_0_0_1());
- }
- )
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_0_1_0());
- }
- lv_type_3_0=ruleJvmTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXRelationalExpressionRule());
- }
- set(
- $current,
- "type",
- lv_type_3_0,
- "org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
- |
- (
- (
- ((
- (
- )
- (
- (
- ruleOpCompare
- )
- )
- )
- )=>
- (
- (
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getXRelationalExpressionAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(),
- $current);
- }
- )
- (
- (
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXRelationalExpressionRule());
- }
- }
- {
- newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0());
- }
- ruleOpCompare
- {
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getRightOperandXOtherOperatorExpressionParserRuleCall_1_1_1_0());
- }
- lv_rightOperand_6_0=ruleXOtherOperatorExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXRelationalExpressionRule());
- }
- set(
- $current,
- "rightOperand",
- lv_rightOperand_6_0,
- "org.eclipse.xtext.xbase.Xbase.XOtherOperatorExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
- )*
- )
-;
-
-// Entry rule entryRuleOpCompare
-entryRuleOpCompare returns [String current=null]:
- { newCompositeNode(grammarAccess.getOpCompareRule()); }
- iv_ruleOpCompare=ruleOpCompare
- { $current=$iv_ruleOpCompare.current.getText(); }
- EOF;
-
-// Rule OpCompare
-ruleOpCompare returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- kw='>='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignEqualsSignKeyword_0());
- }
- |
- (
- kw='<'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpCompareAccess().getLessThanSignKeyword_1_0());
- }
- kw='='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpCompareAccess().getEqualsSignKeyword_1_1());
- }
- )
- |
- kw='>'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignKeyword_2());
- }
- |
- kw='<'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpCompareAccess().getLessThanSignKeyword_3());
- }
- )
-;
-
-// Entry rule entryRuleXOtherOperatorExpression
-entryRuleXOtherOperatorExpression returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXOtherOperatorExpressionRule()); }
- iv_ruleXOtherOperatorExpression=ruleXOtherOperatorExpression
- { $current=$iv_ruleXOtherOperatorExpression.current; }
- EOF;
-
-// Rule XOtherOperatorExpression
-ruleXOtherOperatorExpression returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- {
- newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getXAdditiveExpressionParserRuleCall_0());
- }
- this_XAdditiveExpression_0=ruleXAdditiveExpression
- {
- $current = $this_XAdditiveExpression_0.current;
- afterParserOrEnumRuleCall();
- }
- (
- (
- ((
- (
- )
- (
- (
- ruleOpOther
- )
- )
- )
- )=>
- (
- (
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getXOtherOperatorExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(),
- $current);
- }
- )
- (
- (
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXOtherOperatorExpressionRule());
- }
- }
- {
- newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0());
- }
- ruleOpOther
- {
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0());
- }
- lv_rightOperand_3_0=ruleXAdditiveExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXOtherOperatorExpressionRule());
- }
- set(
- $current,
- "rightOperand",
- lv_rightOperand_3_0,
- "org.eclipse.xtext.xbase.Xbase.XAdditiveExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )*
- )
-;
-
-// Entry rule entryRuleOpOther
-entryRuleOpOther returns [String current=null]:
- { newCompositeNode(grammarAccess.getOpOtherRule()); }
- iv_ruleOpOther=ruleOpOther
- { $current=$iv_ruleOpOther.current.getText(); }
- EOF;
-
-// Rule OpOther
-ruleOpOther returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- kw='->'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpOtherAccess().getHyphenMinusGreaterThanSignKeyword_0());
- }
- |
- kw='..<'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopLessThanSignKeyword_1());
- }
- |
- (
- kw='>'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_2_0());
- }
- kw='..'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_2_1());
- }
- )
- |
- kw='..'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_3());
- }
- |
- kw='=>'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_4());
- }
- |
- (
- kw='>'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_0());
- }
- (
- (
- ((
- '>'
- '>'
- )
- )=>
- (
- kw='>'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_0_0_0());
- }
- kw='>'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_0_0_1());
- }
- )
- )
- |
- kw='>'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_1());
- }
- )
- )
- |
- (
- kw='<'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_0());
- }
- (
- (
- ((
- '<'
- '<'
- )
- )=>
- (
- kw='<'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_0_0_0());
- }
- kw='<'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_0_0_1());
- }
- )
- )
- |
- kw='<'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_1());
- }
- |
- kw='=>'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_6_1_2());
- }
- )
- )
- |
- kw='<>'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignGreaterThanSignKeyword_7());
- }
- |
- kw='?:'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpOtherAccess().getQuestionMarkColonKeyword_8());
- }
- )
-;
-
-// Entry rule entryRuleXAdditiveExpression
-entryRuleXAdditiveExpression returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXAdditiveExpressionRule()); }
- iv_ruleXAdditiveExpression=ruleXAdditiveExpression
- { $current=$iv_ruleXAdditiveExpression.current; }
- EOF;
-
-// Rule XAdditiveExpression
-ruleXAdditiveExpression returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- {
- newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getXMultiplicativeExpressionParserRuleCall_0());
- }
- this_XMultiplicativeExpression_0=ruleXMultiplicativeExpression
- {
- $current = $this_XMultiplicativeExpression_0.current;
- afterParserOrEnumRuleCall();
- }
- (
- (
- ((
- (
- )
- (
- (
- ruleOpAdd
- )
- )
- )
- )=>
- (
- (
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getXAdditiveExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(),
- $current);
- }
- )
- (
- (
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXAdditiveExpressionRule());
- }
- }
- {
- newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0());
- }
- ruleOpAdd
- {
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getRightOperandXMultiplicativeExpressionParserRuleCall_1_1_0());
- }
- lv_rightOperand_3_0=ruleXMultiplicativeExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXAdditiveExpressionRule());
- }
- set(
- $current,
- "rightOperand",
- lv_rightOperand_3_0,
- "org.eclipse.xtext.xbase.Xbase.XMultiplicativeExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )*
- )
-;
-
-// Entry rule entryRuleOpAdd
-entryRuleOpAdd returns [String current=null]:
- { newCompositeNode(grammarAccess.getOpAddRule()); }
- iv_ruleOpAdd=ruleOpAdd
- { $current=$iv_ruleOpAdd.current.getText(); }
- EOF;
-
-// Rule OpAdd
-ruleOpAdd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- kw='+'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpAddAccess().getPlusSignKeyword_0());
- }
- |
- kw='-'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpAddAccess().getHyphenMinusKeyword_1());
- }
- )
-;
-
-// Entry rule entryRuleXMultiplicativeExpression
-entryRuleXMultiplicativeExpression returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXMultiplicativeExpressionRule()); }
- iv_ruleXMultiplicativeExpression=ruleXMultiplicativeExpression
- { $current=$iv_ruleXMultiplicativeExpression.current; }
- EOF;
-
-// Rule XMultiplicativeExpression
-ruleXMultiplicativeExpression returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- {
- newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_0());
- }
- this_XUnaryOperation_0=ruleXUnaryOperation
- {
- $current = $this_XUnaryOperation_0.current;
- afterParserOrEnumRuleCall();
- }
- (
- (
- ((
- (
- )
- (
- (
- ruleOpMulti
- )
- )
- )
- )=>
- (
- (
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getXMultiplicativeExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(),
- $current);
- }
- )
- (
- (
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXMultiplicativeExpressionRule());
- }
- }
- {
- newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0());
- }
- ruleOpMulti
- {
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0());
- }
- lv_rightOperand_3_0=ruleXUnaryOperation
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXMultiplicativeExpressionRule());
- }
- set(
- $current,
- "rightOperand",
- lv_rightOperand_3_0,
- "org.eclipse.xtext.xbase.Xbase.XUnaryOperation");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )*
- )
-;
-
-// Entry rule entryRuleOpMulti
-entryRuleOpMulti returns [String current=null]:
- { newCompositeNode(grammarAccess.getOpMultiRule()); }
- iv_ruleOpMulti=ruleOpMulti
- { $current=$iv_ruleOpMulti.current.getText(); }
- EOF;
-
-// Rule OpMulti
-ruleOpMulti returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- kw='*'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskKeyword_0());
- }
- |
- kw='**'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskAsteriskKeyword_1());
- }
- |
- kw='/'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpMultiAccess().getSolidusKeyword_2());
- }
- |
- kw='%'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpMultiAccess().getPercentSignKeyword_3());
- }
- )
-;
-
-// Entry rule entryRuleXUnaryOperation
-entryRuleXUnaryOperation returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXUnaryOperationRule()); }
- iv_ruleXUnaryOperation=ruleXUnaryOperation
- { $current=$iv_ruleXUnaryOperation.current; }
- EOF;
-
-// Rule XUnaryOperation
-ruleXUnaryOperation returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0(),
- $current);
- }
- )
- (
- (
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXUnaryOperationRule());
- }
- }
- {
- newCompositeNode(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0());
- }
- ruleOpUnary
- {
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getXUnaryOperationAccess().getOperandXUnaryOperationParserRuleCall_0_2_0());
- }
- lv_operand_2_0=ruleXUnaryOperation
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXUnaryOperationRule());
- }
- set(
- $current,
- "operand",
- lv_operand_2_0,
- "org.eclipse.xtext.xbase.Xbase.XUnaryOperation");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
- |
- {
- newCompositeNode(grammarAccess.getXUnaryOperationAccess().getXCastedExpressionParserRuleCall_1());
- }
- this_XCastedExpression_3=ruleXCastedExpression
- {
- $current = $this_XCastedExpression_3.current;
- afterParserOrEnumRuleCall();
- }
- )
-;
-
-// Entry rule entryRuleOpUnary
-entryRuleOpUnary returns [String current=null]:
- { newCompositeNode(grammarAccess.getOpUnaryRule()); }
- iv_ruleOpUnary=ruleOpUnary
- { $current=$iv_ruleOpUnary.current.getText(); }
- EOF;
-
-// Rule OpUnary
-ruleOpUnary returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- kw='!'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpUnaryAccess().getExclamationMarkKeyword_0());
- }
- |
- kw='-'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpUnaryAccess().getHyphenMinusKeyword_1());
- }
- |
- kw='+'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpUnaryAccess().getPlusSignKeyword_2());
- }
- )
-;
-
-// Entry rule entryRuleXCastedExpression
-entryRuleXCastedExpression returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXCastedExpressionRule()); }
- iv_ruleXCastedExpression=ruleXCastedExpression
- { $current=$iv_ruleXCastedExpression.current; }
- EOF;
-
-// Rule XCastedExpression
-ruleXCastedExpression returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- {
- newCompositeNode(grammarAccess.getXCastedExpressionAccess().getXPostfixOperationParserRuleCall_0());
- }
- this_XPostfixOperation_0=ruleXPostfixOperation
- {
- $current = $this_XPostfixOperation_0.current;
- afterParserOrEnumRuleCall();
- }
- (
- (
- ((
- (
- )
- 'as'
- )
- )=>
- (
- (
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getXCastedExpressionAccess().getXCastedExpressionTargetAction_1_0_0_0(),
- $current);
- }
- )
- otherlv_2='as'
- {
- newLeafNode(otherlv_2, grammarAccess.getXCastedExpressionAccess().getAsKeyword_1_0_0_1());
- }
- )
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getXCastedExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_1_0());
- }
- lv_type_3_0=ruleJvmTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXCastedExpressionRule());
- }
- set(
- $current,
- "type",
- lv_type_3_0,
- "org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )*
- )
-;
-
-// Entry rule entryRuleXPostfixOperation
-entryRuleXPostfixOperation returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXPostfixOperationRule()); }
- iv_ruleXPostfixOperation=ruleXPostfixOperation
- { $current=$iv_ruleXPostfixOperation.current; }
- EOF;
-
-// Rule XPostfixOperation
-ruleXPostfixOperation returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- {
- newCompositeNode(grammarAccess.getXPostfixOperationAccess().getXMemberFeatureCallParserRuleCall_0());
- }
- this_XMemberFeatureCall_0=ruleXMemberFeatureCall
- {
- $current = $this_XMemberFeatureCall_0.current;
- afterParserOrEnumRuleCall();
- }
- (
- ((
- (
- )
- (
- (
- ruleOpPostfix
- )
- )
- )
- )=>
- (
- (
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getXPostfixOperationAccess().getXPostfixOperationOperandAction_1_0_0(),
- $current);
- }
- )
- (
- (
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXPostfixOperationRule());
- }
- }
- {
- newCompositeNode(grammarAccess.getXPostfixOperationAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_1_0());
- }
- ruleOpPostfix
- {
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
- )?
- )
-;
-
-// Entry rule entryRuleOpPostfix
-entryRuleOpPostfix returns [String current=null]:
- { newCompositeNode(grammarAccess.getOpPostfixRule()); }
- iv_ruleOpPostfix=ruleOpPostfix
- { $current=$iv_ruleOpPostfix.current.getText(); }
- EOF;
-
-// Rule OpPostfix
-ruleOpPostfix returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- kw='++'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpPostfixAccess().getPlusSignPlusSignKeyword_0());
- }
- |
- kw='--'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getOpPostfixAccess().getHyphenMinusHyphenMinusKeyword_1());
- }
- )
-;
-
-// Entry rule entryRuleXMemberFeatureCall
-entryRuleXMemberFeatureCall returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXMemberFeatureCallRule()); }
- iv_ruleXMemberFeatureCall=ruleXMemberFeatureCall
- { $current=$iv_ruleXMemberFeatureCall.current; }
- EOF;
-
-// Rule XMemberFeatureCall
-ruleXMemberFeatureCall returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- {
- newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getXPrimaryExpressionParserRuleCall_0());
- }
- this_XPrimaryExpression_0=ruleXPrimaryExpression
- {
- $current = $this_XPrimaryExpression_0.current;
- afterParserOrEnumRuleCall();
- }
- (
- (
- (
- ((
- (
- )
- (
- '.'
- |
- (
- (
- '::'
- )
- )
- )
- (
- (
- ruleFeatureCallID
- )
- )
- ruleOpSingleAssign
- )
- )=>
- (
- (
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getXMemberFeatureCallAccess().getXAssignmentAssignableAction_1_0_0_0_0(),
- $current);
- }
- )
- (
- otherlv_2='.'
- {
- newLeafNode(otherlv_2, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_0_0_0_1_0());
- }
- |
- (
- (
- lv_explicitStatic_3_0='::'
- {
- newLeafNode(lv_explicitStatic_3_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_0_0_0_1_1_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXMemberFeatureCallRule());
- }
- setWithLastConsumed($current, "explicitStatic", lv_explicitStatic_3_0 != null, "::");
- }
- )
- )
- )
- (
- (
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXMemberFeatureCallRule());
- }
- }
- {
- newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_0_2_0());
- }
- ruleFeatureCallID
- {
- afterParserOrEnumRuleCall();
- }
- )
- )
- {
- newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getOpSingleAssignParserRuleCall_1_0_0_0_3());
- }
- ruleOpSingleAssign
- {
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getValueXAssignmentParserRuleCall_1_0_1_0());
- }
- lv_value_6_0=ruleXAssignment
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule());
- }
- set(
- $current,
- "value",
- lv_value_6_0,
- "org.eclipse.xtext.xbase.Xbase.XAssignment");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
- |
- (
- (
- ((
- (
- )
- (
- '.'
- |
- (
- (
- '?.'
- )
- )
- |
- (
- (
- '::'
- )
- )
- )
- )
- )=>
- (
- (
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0(),
- $current);
- }
- )
- (
- otherlv_8='.'
- {
- newLeafNode(otherlv_8, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_1_0_0_1_0());
- }
- |
- (
- (
- lv_nullSafe_9_0='?.'
- {
- newLeafNode(lv_nullSafe_9_0, grammarAccess.getXMemberFeatureCallAccess().getNullSafeQuestionMarkFullStopKeyword_1_1_0_0_1_1_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXMemberFeatureCallRule());
- }
- setWithLastConsumed($current, "nullSafe", lv_nullSafe_9_0 != null, "?.");
- }
- )
- )
- |
- (
- (
- lv_explicitStatic_10_0='::'
- {
- newLeafNode(lv_explicitStatic_10_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_1_0_0_1_2_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXMemberFeatureCallRule());
- }
- setWithLastConsumed($current, "explicitStatic", lv_explicitStatic_10_0 != null, "::");
- }
- )
- )
- )
- )
- )
- (
- otherlv_11='<'
- {
- newLeafNode(otherlv_11, grammarAccess.getXMemberFeatureCallAccess().getLessThanSignKeyword_1_1_1_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_1_0());
- }
- lv_typeArguments_12_0=ruleJvmArgumentTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule());
- }
- add(
- $current,
- "typeArguments",
- lv_typeArguments_12_0,
- "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- otherlv_13=','
- {
- newLeafNode(otherlv_13, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_2_1_0());
- }
- lv_typeArguments_14_0=ruleJvmArgumentTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule());
- }
- add(
- $current,
- "typeArguments",
- lv_typeArguments_14_0,
- "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )*
- otherlv_15='>'
- {
- newLeafNode(otherlv_15, grammarAccess.getXMemberFeatureCallAccess().getGreaterThanSignKeyword_1_1_1_3());
- }
- )?
- (
- (
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXMemberFeatureCallRule());
- }
- }
- {
- newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_2_0());
- }
- ruleIdOrSuper
- {
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- (
- ((
- '('
- )
- )=>
- (
- lv_explicitOperationCall_17_0='('
- {
- newLeafNode(lv_explicitOperationCall_17_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_1_1_3_0_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXMemberFeatureCallRule());
- }
- setWithLastConsumed($current, "explicitOperationCall", lv_explicitOperationCall_17_0 != null, "(");
- }
- )
- )
- (
- (
- ((
- (
- )
- (
- (
- (
- ruleJvmFormalParameter
- )
- )
- (
- ','
- (
- (
- ruleJvmFormalParameter
- )
- )
- )*
- )?
- (
- (
- '|'
- )
- )
- )
- )=>
- (
- {
- newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXShortClosureParserRuleCall_1_1_3_1_0_0());
- }
- lv_memberCallArguments_18_0=ruleXShortClosure
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule());
- }
- add(
- $current,
- "memberCallArguments",
- lv_memberCallArguments_18_0,
- "org.eclipse.xtext.xbase.Xbase.XShortClosure");
- afterParserOrEnumRuleCall();
- }
- )
- )
- |
- (
- (
- (
- {
- newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_0_0());
- }
- lv_memberCallArguments_19_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule());
- }
- add(
- $current,
- "memberCallArguments",
- lv_memberCallArguments_19_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- otherlv_20=','
- {
- newLeafNode(otherlv_20, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_3_1_1_1_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_1_1_0());
- }
- lv_memberCallArguments_21_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule());
- }
- add(
- $current,
- "memberCallArguments",
- lv_memberCallArguments_21_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )*
- )
- )?
- otherlv_22=')'
- {
- newLeafNode(otherlv_22, grammarAccess.getXMemberFeatureCallAccess().getRightParenthesisKeyword_1_1_3_2());
- }
- )?
- (
- ((
- (
- )
- '['
- )
- )=>
- (
- {
- newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXClosureParserRuleCall_1_1_4_0());
- }
- lv_memberCallArguments_23_0=ruleXClosure
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule());
- }
- add(
- $current,
- "memberCallArguments",
- lv_memberCallArguments_23_0,
- "org.eclipse.xtext.xbase.Xbase.XClosure");
- afterParserOrEnumRuleCall();
- }
- )
- )?
- )
- )*
- )
-;
-
-// Entry rule entryRuleXPrimaryExpression
-entryRuleXPrimaryExpression returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXPrimaryExpressionRule()); }
- iv_ruleXPrimaryExpression=ruleXPrimaryExpression
- { $current=$iv_ruleXPrimaryExpression.current; }
- EOF;
-
-// Rule XPrimaryExpression
-ruleXPrimaryExpression returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- {
- newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXConstructorCallParserRuleCall_0());
- }
- this_XConstructorCall_0=ruleXConstructorCall
- {
- $current = $this_XConstructorCall_0.current;
- afterParserOrEnumRuleCall();
- }
- |
- {
- newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXBlockExpressionParserRuleCall_1());
- }
- this_XBlockExpression_1=ruleXBlockExpression
- {
- $current = $this_XBlockExpression_1.current;
- afterParserOrEnumRuleCall();
- }
- |
- {
- newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXSwitchExpressionParserRuleCall_2());
- }
- this_XSwitchExpression_2=ruleXSwitchExpression
- {
- $current = $this_XSwitchExpression_2.current;
- afterParserOrEnumRuleCall();
- }
- |
- (
- ((
- (
- )
- 'synchronized'
- '('
- )
- )=>
- {
- newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXSynchronizedExpressionParserRuleCall_3());
- }
- this_XSynchronizedExpression_3=ruleXSynchronizedExpression
- {
- $current = $this_XSynchronizedExpression_3.current;
- afterParserOrEnumRuleCall();
- }
- )
- |
- {
- newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXFeatureCallParserRuleCall_4());
- }
- this_XFeatureCall_4=ruleXFeatureCall
- {
- $current = $this_XFeatureCall_4.current;
- afterParserOrEnumRuleCall();
- }
- |
- {
- newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXLiteralParserRuleCall_5());
- }
- this_XLiteral_5=ruleXLiteral
- {
- $current = $this_XLiteral_5.current;
- afterParserOrEnumRuleCall();
- }
- |
- {
- newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXIfExpressionParserRuleCall_6());
- }
- this_XIfExpression_6=ruleXIfExpression
- {
- $current = $this_XIfExpression_6.current;
- afterParserOrEnumRuleCall();
- }
- |
- (
- ((
- (
- )
- 'for'
- '('
- (
- (
- ruleJvmFormalParameter
- )
- )
- ':'
- )
- )=>
- {
- newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXForLoopExpressionParserRuleCall_7());
- }
- this_XForLoopExpression_7=ruleXForLoopExpression
- {
- $current = $this_XForLoopExpression_7.current;
- afterParserOrEnumRuleCall();
- }
- )
- |
- {
- newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXBasicForLoopExpressionParserRuleCall_8());
- }
- this_XBasicForLoopExpression_8=ruleXBasicForLoopExpression
- {
- $current = $this_XBasicForLoopExpression_8.current;
- afterParserOrEnumRuleCall();
- }
- |
- {
- newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXWhileExpressionParserRuleCall_9());
- }
- this_XWhileExpression_9=ruleXWhileExpression
- {
- $current = $this_XWhileExpression_9.current;
- afterParserOrEnumRuleCall();
- }
- |
- {
- newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXDoWhileExpressionParserRuleCall_10());
- }
- this_XDoWhileExpression_10=ruleXDoWhileExpression
- {
- $current = $this_XDoWhileExpression_10.current;
- afterParserOrEnumRuleCall();
- }
- |
- {
- newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXThrowExpressionParserRuleCall_11());
- }
- this_XThrowExpression_11=ruleXThrowExpression
- {
- $current = $this_XThrowExpression_11.current;
- afterParserOrEnumRuleCall();
- }
- |
- {
- newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXReturnExpressionParserRuleCall_12());
- }
- this_XReturnExpression_12=ruleXReturnExpression
- {
- $current = $this_XReturnExpression_12.current;
- afterParserOrEnumRuleCall();
- }
- |
- {
- newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXTryCatchFinallyExpressionParserRuleCall_13());
- }
- this_XTryCatchFinallyExpression_13=ruleXTryCatchFinallyExpression
- {
- $current = $this_XTryCatchFinallyExpression_13.current;
- afterParserOrEnumRuleCall();
- }
- |
- {
- newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXParenthesizedExpressionParserRuleCall_14());
- }
- this_XParenthesizedExpression_14=ruleXParenthesizedExpression
- {
- $current = $this_XParenthesizedExpression_14.current;
- afterParserOrEnumRuleCall();
- }
- )
-;
-
-// Entry rule entryRuleXLiteral
-entryRuleXLiteral returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXLiteralRule()); }
- iv_ruleXLiteral=ruleXLiteral
- { $current=$iv_ruleXLiteral.current; }
- EOF;
-
-// Rule XLiteral
-ruleXLiteral returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- {
- newCompositeNode(grammarAccess.getXLiteralAccess().getXCollectionLiteralParserRuleCall_0());
- }
- this_XCollectionLiteral_0=ruleXCollectionLiteral
- {
- $current = $this_XCollectionLiteral_0.current;
- afterParserOrEnumRuleCall();
- }
- |
- (
- ((
- (
- )
- '['
- )
- )=>
- {
- newCompositeNode(grammarAccess.getXLiteralAccess().getXClosureParserRuleCall_1());
- }
- this_XClosure_1=ruleXClosure
- {
- $current = $this_XClosure_1.current;
- afterParserOrEnumRuleCall();
- }
- )
- |
- {
- newCompositeNode(grammarAccess.getXLiteralAccess().getXBooleanLiteralParserRuleCall_2());
- }
- this_XBooleanLiteral_2=ruleXBooleanLiteral
- {
- $current = $this_XBooleanLiteral_2.current;
- afterParserOrEnumRuleCall();
- }
- |
- {
- newCompositeNode(grammarAccess.getXLiteralAccess().getXNumberLiteralParserRuleCall_3());
- }
- this_XNumberLiteral_3=ruleXNumberLiteral
- {
- $current = $this_XNumberLiteral_3.current;
- afterParserOrEnumRuleCall();
- }
- |
- {
- newCompositeNode(grammarAccess.getXLiteralAccess().getXNullLiteralParserRuleCall_4());
- }
- this_XNullLiteral_4=ruleXNullLiteral
- {
- $current = $this_XNullLiteral_4.current;
- afterParserOrEnumRuleCall();
- }
- |
- {
- newCompositeNode(grammarAccess.getXLiteralAccess().getXStringLiteralParserRuleCall_5());
- }
- this_XStringLiteral_5=ruleXStringLiteral
- {
- $current = $this_XStringLiteral_5.current;
- afterParserOrEnumRuleCall();
- }
- |
- {
- newCompositeNode(grammarAccess.getXLiteralAccess().getXTypeLiteralParserRuleCall_6());
- }
- this_XTypeLiteral_6=ruleXTypeLiteral
- {
- $current = $this_XTypeLiteral_6.current;
- afterParserOrEnumRuleCall();
- }
- )
-;
-
-// Entry rule entryRuleXCollectionLiteral
-entryRuleXCollectionLiteral returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXCollectionLiteralRule()); }
- iv_ruleXCollectionLiteral=ruleXCollectionLiteral
- { $current=$iv_ruleXCollectionLiteral.current; }
- EOF;
-
-// Rule XCollectionLiteral
-ruleXCollectionLiteral returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- {
- newCompositeNode(grammarAccess.getXCollectionLiteralAccess().getXSetLiteralParserRuleCall_0());
- }
- this_XSetLiteral_0=ruleXSetLiteral
- {
- $current = $this_XSetLiteral_0.current;
- afterParserOrEnumRuleCall();
- }
- |
- {
- newCompositeNode(grammarAccess.getXCollectionLiteralAccess().getXListLiteralParserRuleCall_1());
- }
- this_XListLiteral_1=ruleXListLiteral
- {
- $current = $this_XListLiteral_1.current;
- afterParserOrEnumRuleCall();
- }
- )
-;
-
-// Entry rule entryRuleXSetLiteral
-entryRuleXSetLiteral returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXSetLiteralRule()); }
- iv_ruleXSetLiteral=ruleXSetLiteral
- { $current=$iv_ruleXSetLiteral.current; }
- EOF;
-
-// Rule XSetLiteral
-ruleXSetLiteral returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXSetLiteralAccess().getXSetLiteralAction_0(),
- $current);
- }
- )
- otherlv_1='#'
- {
- newLeafNode(otherlv_1, grammarAccess.getXSetLiteralAccess().getNumberSignKeyword_1());
- }
- otherlv_2='{'
- {
- newLeafNode(otherlv_2, grammarAccess.getXSetLiteralAccess().getLeftCurlyBracketKeyword_2());
- }
- (
- (
- (
- {
- newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0());
- }
- lv_elements_3_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXSetLiteralRule());
- }
- add(
- $current,
- "elements",
- lv_elements_3_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- otherlv_4=','
- {
- newLeafNode(otherlv_4, grammarAccess.getXSetLiteralAccess().getCommaKeyword_3_1_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0());
- }
- lv_elements_5_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXSetLiteralRule());
- }
- add(
- $current,
- "elements",
- lv_elements_5_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )*
- )?
- otherlv_6='}'
- {
- newLeafNode(otherlv_6, grammarAccess.getXSetLiteralAccess().getRightCurlyBracketKeyword_4());
- }
- )
-;
-
-// Entry rule entryRuleXListLiteral
-entryRuleXListLiteral returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXListLiteralRule()); }
- iv_ruleXListLiteral=ruleXListLiteral
- { $current=$iv_ruleXListLiteral.current; }
- EOF;
-
-// Rule XListLiteral
-ruleXListLiteral returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXListLiteralAccess().getXListLiteralAction_0(),
- $current);
- }
- )
- otherlv_1='#'
- {
- newLeafNode(otherlv_1, grammarAccess.getXListLiteralAccess().getNumberSignKeyword_1());
- }
- otherlv_2='['
- {
- newLeafNode(otherlv_2, grammarAccess.getXListLiteralAccess().getLeftSquareBracketKeyword_2());
- }
- (
- (
- (
- {
- newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0());
- }
- lv_elements_3_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXListLiteralRule());
- }
- add(
- $current,
- "elements",
- lv_elements_3_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- otherlv_4=','
- {
- newLeafNode(otherlv_4, grammarAccess.getXListLiteralAccess().getCommaKeyword_3_1_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0());
- }
- lv_elements_5_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXListLiteralRule());
- }
- add(
- $current,
- "elements",
- lv_elements_5_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )*
- )?
- otherlv_6=']'
- {
- newLeafNode(otherlv_6, grammarAccess.getXListLiteralAccess().getRightSquareBracketKeyword_4());
- }
- )
-;
-
-// Entry rule entryRuleXClosure
-entryRuleXClosure returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXClosureRule()); }
- iv_ruleXClosure=ruleXClosure
- { $current=$iv_ruleXClosure.current; }
- EOF;
-
-// Rule XClosure
-ruleXClosure returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- ((
- (
- )
- '['
- )
- )=>
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXClosureAccess().getXClosureAction_0_0_0(),
- $current);
- }
- )
- otherlv_1='['
- {
- newLeafNode(otherlv_1, grammarAccess.getXClosureAccess().getLeftSquareBracketKeyword_0_0_1());
- }
- )
- )
- (
- ((
- (
- (
- (
- ruleJvmFormalParameter
- )
- )
- (
- ','
- (
- (
- ruleJvmFormalParameter
- )
- )
- )*
- )?
- (
- (
- '|'
- )
- )
- )
- )=>
- (
- (
- (
- (
- {
- newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_0_0());
- }
- lv_declaredFormalParameters_2_0=ruleJvmFormalParameter
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXClosureRule());
- }
- add(
- $current,
- "declaredFormalParameters",
- lv_declaredFormalParameters_2_0,
- "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- otherlv_3=','
- {
- newLeafNode(otherlv_3, grammarAccess.getXClosureAccess().getCommaKeyword_1_0_0_1_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_1_1_0());
- }
- lv_declaredFormalParameters_4_0=ruleJvmFormalParameter
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXClosureRule());
- }
- add(
- $current,
- "declaredFormalParameters",
- lv_declaredFormalParameters_4_0,
- "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )*
- )?
- (
- (
- lv_explicitSyntax_5_0='|'
- {
- newLeafNode(lv_explicitSyntax_5_0, grammarAccess.getXClosureAccess().getExplicitSyntaxVerticalLineKeyword_1_0_1_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXClosureRule());
- }
- setWithLastConsumed($current, "explicitSyntax", lv_explicitSyntax_5_0 != null, "|");
- }
- )
- )
- )
- )?
- (
- (
- {
- newCompositeNode(grammarAccess.getXClosureAccess().getExpressionXExpressionInClosureParserRuleCall_2_0());
- }
- lv_expression_6_0=ruleXExpressionInClosure
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXClosureRule());
- }
- set(
- $current,
- "expression",
- lv_expression_6_0,
- "org.eclipse.xtext.xbase.Xbase.XExpressionInClosure");
- afterParserOrEnumRuleCall();
- }
- )
- )
- otherlv_7=']'
- {
- newLeafNode(otherlv_7, grammarAccess.getXClosureAccess().getRightSquareBracketKeyword_3());
- }
- )
-;
-
-// Entry rule entryRuleXExpressionInClosure
-entryRuleXExpressionInClosure returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXExpressionInClosureRule()); }
- iv_ruleXExpressionInClosure=ruleXExpressionInClosure
- { $current=$iv_ruleXExpressionInClosure.current; }
- EOF;
-
-// Rule XExpressionInClosure
-ruleXExpressionInClosure returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXExpressionInClosureAccess().getXBlockExpressionAction_0(),
- $current);
- }
- )
- (
- (
- (
- {
- newCompositeNode(grammarAccess.getXExpressionInClosureAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_1_0_0());
- }
- lv_expressions_1_0=ruleXExpressionOrVarDeclaration
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXExpressionInClosureRule());
- }
- add(
- $current,
- "expressions",
- lv_expressions_1_0,
- "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- otherlv_2=';'
- {
- newLeafNode(otherlv_2, grammarAccess.getXExpressionInClosureAccess().getSemicolonKeyword_1_1());
- }
- )?
- )*
- )
-;
-
-// Entry rule entryRuleXShortClosure
-entryRuleXShortClosure returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXShortClosureRule()); }
- iv_ruleXShortClosure=ruleXShortClosure
- { $current=$iv_ruleXShortClosure.current; }
- EOF;
-
-// Rule XShortClosure
-ruleXShortClosure returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- ((
- (
- )
- (
- (
- (
- ruleJvmFormalParameter
- )
- )
- (
- ','
- (
- (
- ruleJvmFormalParameter
- )
- )
- )*
- )?
- (
- (
- '|'
- )
- )
- )
- )=>
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXShortClosureAccess().getXClosureAction_0_0_0(),
- $current);
- }
- )
- (
- (
- (
- {
- newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_0_0());
- }
- lv_declaredFormalParameters_1_0=ruleJvmFormalParameter
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXShortClosureRule());
- }
- add(
- $current,
- "declaredFormalParameters",
- lv_declaredFormalParameters_1_0,
- "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- otherlv_2=','
- {
- newLeafNode(otherlv_2, grammarAccess.getXShortClosureAccess().getCommaKeyword_0_0_1_1_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_1_1_0());
- }
- lv_declaredFormalParameters_3_0=ruleJvmFormalParameter
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXShortClosureRule());
- }
- add(
- $current,
- "declaredFormalParameters",
- lv_declaredFormalParameters_3_0,
- "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )*
- )?
- (
- (
- lv_explicitSyntax_4_0='|'
- {
- newLeafNode(lv_explicitSyntax_4_0, grammarAccess.getXShortClosureAccess().getExplicitSyntaxVerticalLineKeyword_0_0_2_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXShortClosureRule());
- }
- setWithLastConsumed($current, "explicitSyntax", lv_explicitSyntax_4_0 != null, "|");
- }
- )
- )
- )
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getXShortClosureAccess().getExpressionXExpressionParserRuleCall_1_0());
- }
- lv_expression_5_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXShortClosureRule());
- }
- set(
- $current,
- "expression",
- lv_expression_5_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
-;
-
-// Entry rule entryRuleXParenthesizedExpression
-entryRuleXParenthesizedExpression returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXParenthesizedExpressionRule()); }
- iv_ruleXParenthesizedExpression=ruleXParenthesizedExpression
- { $current=$iv_ruleXParenthesizedExpression.current; }
- EOF;
-
-// Rule XParenthesizedExpression
-ruleXParenthesizedExpression returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- otherlv_0='('
- {
- newLeafNode(otherlv_0, grammarAccess.getXParenthesizedExpressionAccess().getLeftParenthesisKeyword_0());
- }
- {
- newCompositeNode(grammarAccess.getXParenthesizedExpressionAccess().getXExpressionParserRuleCall_1());
- }
- this_XExpression_1=ruleXExpression
- {
- $current = $this_XExpression_1.current;
- afterParserOrEnumRuleCall();
- }
- otherlv_2=')'
- {
- newLeafNode(otherlv_2, grammarAccess.getXParenthesizedExpressionAccess().getRightParenthesisKeyword_2());
- }
- )
-;
-
-// Entry rule entryRuleXIfExpression
-entryRuleXIfExpression returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXIfExpressionRule()); }
- iv_ruleXIfExpression=ruleXIfExpression
- { $current=$iv_ruleXIfExpression.current; }
- EOF;
-
-// Rule XIfExpression
-ruleXIfExpression returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXIfExpressionAccess().getXIfExpressionAction_0(),
- $current);
- }
- )
- otherlv_1='if'
- {
- newLeafNode(otherlv_1, grammarAccess.getXIfExpressionAccess().getIfKeyword_1());
- }
- otherlv_2='('
- {
- newLeafNode(otherlv_2, grammarAccess.getXIfExpressionAccess().getLeftParenthesisKeyword_2());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXIfExpressionAccess().getIfXExpressionParserRuleCall_3_0());
- }
- lv_if_3_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXIfExpressionRule());
- }
- set(
- $current,
- "if",
- lv_if_3_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- otherlv_4=')'
- {
- newLeafNode(otherlv_4, grammarAccess.getXIfExpressionAccess().getRightParenthesisKeyword_4());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXIfExpressionAccess().getThenXExpressionParserRuleCall_5_0());
- }
- lv_then_5_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXIfExpressionRule());
- }
- set(
- $current,
- "then",
- lv_then_5_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- (
- ('else')=>
- otherlv_6='else'
- {
- newLeafNode(otherlv_6, grammarAccess.getXIfExpressionAccess().getElseKeyword_6_0());
- }
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getXIfExpressionAccess().getElseXExpressionParserRuleCall_6_1_0());
- }
- lv_else_7_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXIfExpressionRule());
- }
- set(
- $current,
- "else",
- lv_else_7_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )?
- )
-;
-
-// Entry rule entryRuleXSwitchExpression
-entryRuleXSwitchExpression returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXSwitchExpressionRule()); }
- iv_ruleXSwitchExpression=ruleXSwitchExpression
- { $current=$iv_ruleXSwitchExpression.current; }
- EOF;
-
-// Rule XSwitchExpression
-ruleXSwitchExpression returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXSwitchExpressionAccess().getXSwitchExpressionAction_0(),
- $current);
- }
- )
- otherlv_1='switch'
- {
- newLeafNode(otherlv_1, grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1());
- }
- (
- (
- (
- ((
- '('
- (
- (
- ruleJvmFormalParameter
- )
- )
- ':'
- )
- )=>
- (
- otherlv_2='('
- {
- newLeafNode(otherlv_2, grammarAccess.getXSwitchExpressionAccess().getLeftParenthesisKeyword_2_0_0_0_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_0_0_0_1_0());
- }
- lv_declaredParam_3_0=ruleJvmFormalParameter
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule());
- }
- set(
- $current,
- "declaredParam",
- lv_declaredParam_3_0,
- "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter");
- afterParserOrEnumRuleCall();
- }
- )
- )
- otherlv_4=':'
- {
- newLeafNode(otherlv_4, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_0_0_0_2());
- }
- )
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_0_1_0());
- }
- lv_switch_5_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule());
- }
- set(
- $current,
- "switch",
- lv_switch_5_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- otherlv_6=')'
- {
- newLeafNode(otherlv_6, grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_0_2());
- }
- )
- |
- (
- (
- ((
- (
- (
- ruleJvmFormalParameter
- )
- )
- ':'
- )
- )=>
- (
- (
- (
- {
- newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_1_0_0_0_0());
- }
- lv_declaredParam_7_0=ruleJvmFormalParameter
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule());
- }
- set(
- $current,
- "declaredParam",
- lv_declaredParam_7_0,
- "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter");
- afterParserOrEnumRuleCall();
- }
- )
- )
- otherlv_8=':'
- {
- newLeafNode(otherlv_8, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_1_0_0_1());
- }
- )
- )?
- (
- (
- {
- newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_1_1_0());
- }
- lv_switch_9_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule());
- }
- set(
- $current,
- "switch",
- lv_switch_9_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
- )
- otherlv_10='{'
- {
- newLeafNode(otherlv_10, grammarAccess.getXSwitchExpressionAccess().getLeftCurlyBracketKeyword_3());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getCasesXCasePartParserRuleCall_4_0());
- }
- lv_cases_11_0=ruleXCasePart
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule());
- }
- add(
- $current,
- "cases",
- lv_cases_11_0,
- "org.eclipse.xtext.xbase.Xbase.XCasePart");
- afterParserOrEnumRuleCall();
- }
- )
- )*
- (
- otherlv_12='default'
- {
- newLeafNode(otherlv_12, grammarAccess.getXSwitchExpressionAccess().getDefaultKeyword_5_0());
- }
- otherlv_13=':'
- {
- newLeafNode(otherlv_13, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_5_1());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDefaultXExpressionParserRuleCall_5_2_0());
- }
- lv_default_14_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule());
- }
- set(
- $current,
- "default",
- lv_default_14_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )?
- otherlv_15='}'
- {
- newLeafNode(otherlv_15, grammarAccess.getXSwitchExpressionAccess().getRightCurlyBracketKeyword_6());
- }
- )
-;
-
-// Entry rule entryRuleXCasePart
-entryRuleXCasePart returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXCasePartRule()); }
- iv_ruleXCasePart=ruleXCasePart
- { $current=$iv_ruleXCasePart.current; }
- EOF;
-
-// Rule XCasePart
-ruleXCasePart returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXCasePartAccess().getXCasePartAction_0(),
- $current);
- }
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getXCasePartAccess().getTypeGuardJvmTypeReferenceParserRuleCall_1_0());
- }
- lv_typeGuard_1_0=ruleJvmTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXCasePartRule());
- }
- set(
- $current,
- "typeGuard",
- lv_typeGuard_1_0,
- "org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )?
- (
- otherlv_2='case'
- {
- newLeafNode(otherlv_2, grammarAccess.getXCasePartAccess().getCaseKeyword_2_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXCasePartAccess().getCaseXExpressionParserRuleCall_2_1_0());
- }
- lv_case_3_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXCasePartRule());
- }
- set(
- $current,
- "case",
- lv_case_3_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )?
- (
- (
- otherlv_4=':'
- {
- newLeafNode(otherlv_4, grammarAccess.getXCasePartAccess().getColonKeyword_3_0_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXCasePartAccess().getThenXExpressionParserRuleCall_3_0_1_0());
- }
- lv_then_5_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXCasePartRule());
- }
- set(
- $current,
- "then",
- lv_then_5_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
- |
- (
- (
- lv_fallThrough_6_0=','
- {
- newLeafNode(lv_fallThrough_6_0, grammarAccess.getXCasePartAccess().getFallThroughCommaKeyword_3_1_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXCasePartRule());
- }
- setWithLastConsumed($current, "fallThrough", lv_fallThrough_6_0 != null, ",");
- }
- )
- )
- )
- )
-;
-
-// Entry rule entryRuleXForLoopExpression
-entryRuleXForLoopExpression returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXForLoopExpressionRule()); }
- iv_ruleXForLoopExpression=ruleXForLoopExpression
- { $current=$iv_ruleXForLoopExpression.current; }
- EOF;
-
-// Rule XForLoopExpression
-ruleXForLoopExpression returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- ((
- (
- )
- 'for'
- '('
- (
- (
- ruleJvmFormalParameter
- )
- )
- ':'
- )
- )=>
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXForLoopExpressionAccess().getXForLoopExpressionAction_0_0_0(),
- $current);
- }
- )
- otherlv_1='for'
- {
- newLeafNode(otherlv_1, grammarAccess.getXForLoopExpressionAccess().getForKeyword_0_0_1());
- }
- otherlv_2='('
- {
- newLeafNode(otherlv_2, grammarAccess.getXForLoopExpressionAccess().getLeftParenthesisKeyword_0_0_2());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_0_0_3_0());
- }
- lv_declaredParam_3_0=ruleJvmFormalParameter
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXForLoopExpressionRule());
- }
- set(
- $current,
- "declaredParam",
- lv_declaredParam_3_0,
- "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter");
- afterParserOrEnumRuleCall();
- }
- )
- )
- otherlv_4=':'
- {
- newLeafNode(otherlv_4, grammarAccess.getXForLoopExpressionAccess().getColonKeyword_0_0_4());
- }
- )
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getForExpressionXExpressionParserRuleCall_1_0());
- }
- lv_forExpression_5_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXForLoopExpressionRule());
- }
- set(
- $current,
- "forExpression",
- lv_forExpression_5_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- otherlv_6=')'
- {
- newLeafNode(otherlv_6, grammarAccess.getXForLoopExpressionAccess().getRightParenthesisKeyword_2());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getEachExpressionXExpressionParserRuleCall_3_0());
- }
- lv_eachExpression_7_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXForLoopExpressionRule());
- }
- set(
- $current,
- "eachExpression",
- lv_eachExpression_7_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
-;
-
-// Entry rule entryRuleXBasicForLoopExpression
-entryRuleXBasicForLoopExpression returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXBasicForLoopExpressionRule()); }
- iv_ruleXBasicForLoopExpression=ruleXBasicForLoopExpression
- { $current=$iv_ruleXBasicForLoopExpression.current; }
- EOF;
-
-// Rule XBasicForLoopExpression
-ruleXBasicForLoopExpression returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXBasicForLoopExpressionAccess().getXBasicForLoopExpressionAction_0(),
- $current);
- }
- )
- otherlv_1='for'
- {
- newLeafNode(otherlv_1, grammarAccess.getXBasicForLoopExpressionAccess().getForKeyword_1());
- }
- otherlv_2='('
- {
- newLeafNode(otherlv_2, grammarAccess.getXBasicForLoopExpressionAccess().getLeftParenthesisKeyword_2());
- }
- (
- (
- (
- {
- newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_0_0());
- }
- lv_initExpressions_3_0=ruleXExpressionOrVarDeclaration
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule());
- }
- add(
- $current,
- "initExpressions",
- lv_initExpressions_3_0,
- "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- otherlv_4=','
- {
- newLeafNode(otherlv_4, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_3_1_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_1_1_0());
- }
- lv_initExpressions_5_0=ruleXExpressionOrVarDeclaration
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule());
- }
- add(
- $current,
- "initExpressions",
- lv_initExpressions_5_0,
- "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )*
- )?
- otherlv_6=';'
- {
- newLeafNode(otherlv_6, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_4());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getExpressionXExpressionParserRuleCall_5_0());
- }
- lv_expression_7_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule());
- }
- set(
- $current,
- "expression",
- lv_expression_7_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )?
- otherlv_8=';'
- {
- newLeafNode(otherlv_8, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_6());
- }
- (
- (
- (
- {
- newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_0_0());
- }
- lv_updateExpressions_9_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule());
- }
- add(
- $current,
- "updateExpressions",
- lv_updateExpressions_9_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- otherlv_10=','
- {
- newLeafNode(otherlv_10, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_7_1_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_1_1_0());
- }
- lv_updateExpressions_11_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule());
- }
- add(
- $current,
- "updateExpressions",
- lv_updateExpressions_11_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )*
- )?
- otherlv_12=')'
- {
- newLeafNode(otherlv_12, grammarAccess.getXBasicForLoopExpressionAccess().getRightParenthesisKeyword_8());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getEachExpressionXExpressionParserRuleCall_9_0());
- }
- lv_eachExpression_13_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule());
- }
- set(
- $current,
- "eachExpression",
- lv_eachExpression_13_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
-;
-
-// Entry rule entryRuleXWhileExpression
-entryRuleXWhileExpression returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXWhileExpressionRule()); }
- iv_ruleXWhileExpression=ruleXWhileExpression
- { $current=$iv_ruleXWhileExpression.current; }
- EOF;
-
-// Rule XWhileExpression
-ruleXWhileExpression returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXWhileExpressionAccess().getXWhileExpressionAction_0(),
- $current);
- }
- )
- otherlv_1='while'
- {
- newLeafNode(otherlv_1, grammarAccess.getXWhileExpressionAccess().getWhileKeyword_1());
- }
- otherlv_2='('
- {
- newLeafNode(otherlv_2, grammarAccess.getXWhileExpressionAccess().getLeftParenthesisKeyword_2());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXWhileExpressionAccess().getPredicateXExpressionParserRuleCall_3_0());
- }
- lv_predicate_3_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXWhileExpressionRule());
- }
- set(
- $current,
- "predicate",
- lv_predicate_3_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- otherlv_4=')'
- {
- newLeafNode(otherlv_4, grammarAccess.getXWhileExpressionAccess().getRightParenthesisKeyword_4());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXWhileExpressionAccess().getBodyXExpressionParserRuleCall_5_0());
- }
- lv_body_5_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXWhileExpressionRule());
- }
- set(
- $current,
- "body",
- lv_body_5_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
-;
-
-// Entry rule entryRuleXDoWhileExpression
-entryRuleXDoWhileExpression returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXDoWhileExpressionRule()); }
- iv_ruleXDoWhileExpression=ruleXDoWhileExpression
- { $current=$iv_ruleXDoWhileExpression.current; }
- EOF;
-
-// Rule XDoWhileExpression
-ruleXDoWhileExpression returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXDoWhileExpressionAccess().getXDoWhileExpressionAction_0(),
- $current);
- }
- )
- otherlv_1='do'
- {
- newLeafNode(otherlv_1, grammarAccess.getXDoWhileExpressionAccess().getDoKeyword_1());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getBodyXExpressionParserRuleCall_2_0());
- }
- lv_body_2_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXDoWhileExpressionRule());
- }
- set(
- $current,
- "body",
- lv_body_2_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- otherlv_3='while'
- {
- newLeafNode(otherlv_3, grammarAccess.getXDoWhileExpressionAccess().getWhileKeyword_3());
- }
- otherlv_4='('
- {
- newLeafNode(otherlv_4, grammarAccess.getXDoWhileExpressionAccess().getLeftParenthesisKeyword_4());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getPredicateXExpressionParserRuleCall_5_0());
- }
- lv_predicate_5_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXDoWhileExpressionRule());
- }
- set(
- $current,
- "predicate",
- lv_predicate_5_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- otherlv_6=')'
- {
- newLeafNode(otherlv_6, grammarAccess.getXDoWhileExpressionAccess().getRightParenthesisKeyword_6());
- }
- )
-;
-
-// Entry rule entryRuleXBlockExpression
-entryRuleXBlockExpression returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXBlockExpressionRule()); }
- iv_ruleXBlockExpression=ruleXBlockExpression
- { $current=$iv_ruleXBlockExpression.current; }
- EOF;
-
-// Rule XBlockExpression
-ruleXBlockExpression returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0(),
- $current);
- }
- )
- otherlv_1='{'
- {
- newLeafNode(otherlv_1, grammarAccess.getXBlockExpressionAccess().getLeftCurlyBracketKeyword_1());
- }
- (
- (
- (
- {
- newCompositeNode(grammarAccess.getXBlockExpressionAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_2_0_0());
- }
- lv_expressions_2_0=ruleXExpressionOrVarDeclaration
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXBlockExpressionRule());
- }
- add(
- $current,
- "expressions",
- lv_expressions_2_0,
- "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- otherlv_3=';'
- {
- newLeafNode(otherlv_3, grammarAccess.getXBlockExpressionAccess().getSemicolonKeyword_2_1());
- }
- )?
- )*
- otherlv_4='}'
- {
- newLeafNode(otherlv_4, grammarAccess.getXBlockExpressionAccess().getRightCurlyBracketKeyword_3());
- }
- )
-;
-
-// Entry rule entryRuleXExpressionOrVarDeclaration
-entryRuleXExpressionOrVarDeclaration returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXExpressionOrVarDeclarationRule()); }
- iv_ruleXExpressionOrVarDeclaration=ruleXExpressionOrVarDeclaration
- { $current=$iv_ruleXExpressionOrVarDeclaration.current; }
- EOF;
-
-// Rule XExpressionOrVarDeclaration
-ruleXExpressionOrVarDeclaration returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- {
- newCompositeNode(grammarAccess.getXExpressionOrVarDeclarationAccess().getXVariableDeclarationParserRuleCall_0());
- }
- this_XVariableDeclaration_0=ruleXVariableDeclaration
- {
- $current = $this_XVariableDeclaration_0.current;
- afterParserOrEnumRuleCall();
- }
- |
- {
- newCompositeNode(grammarAccess.getXExpressionOrVarDeclarationAccess().getXExpressionParserRuleCall_1());
- }
- this_XExpression_1=ruleXExpression
- {
- $current = $this_XExpression_1.current;
- afterParserOrEnumRuleCall();
- }
- )
-;
-
-// Entry rule entryRuleXVariableDeclaration
-entryRuleXVariableDeclaration returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXVariableDeclarationRule()); }
- iv_ruleXVariableDeclaration=ruleXVariableDeclaration
- { $current=$iv_ruleXVariableDeclaration.current; }
- EOF;
-
-// Rule XVariableDeclaration
-ruleXVariableDeclaration returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXVariableDeclarationAccess().getXVariableDeclarationAction_0(),
- $current);
- }
- )
- (
- (
- (
- lv_writeable_1_0='var'
- {
- newLeafNode(lv_writeable_1_0, grammarAccess.getXVariableDeclarationAccess().getWriteableVarKeyword_1_0_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXVariableDeclarationRule());
- }
- setWithLastConsumed($current, "writeable", lv_writeable_1_0 != null, "var");
- }
- )
- )
- |
- otherlv_2='val'
- {
- newLeafNode(otherlv_2, grammarAccess.getXVariableDeclarationAccess().getValKeyword_1_1());
- }
- )
- (
- (
- ((
- (
- (
- ruleJvmTypeReference
- )
- )
- (
- (
- ruleValidID
- )
- )
- )
- )=>
- (
- (
- (
- {
- newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getTypeJvmTypeReferenceParserRuleCall_2_0_0_0_0());
- }
- lv_type_3_0=ruleJvmTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule());
- }
- set(
- $current,
- "type",
- lv_type_3_0,
- "org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0());
- }
- lv_name_4_0=ruleValidID
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule());
- }
- set(
- $current,
- "name",
- lv_name_4_0,
- "org.eclipse.xtext.xbase.Xtype.ValidID");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
- )
- |
- (
- (
- {
- newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0());
- }
- lv_name_5_0=ruleValidID
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule());
- }
- set(
- $current,
- "name",
- lv_name_5_0,
- "org.eclipse.xtext.xbase.Xtype.ValidID");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
- (
- otherlv_6='='
- {
- newLeafNode(otherlv_6, grammarAccess.getXVariableDeclarationAccess().getEqualsSignKeyword_3_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getRightXExpressionParserRuleCall_3_1_0());
- }
- lv_right_7_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule());
- }
- set(
- $current,
- "right",
- lv_right_7_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )?
- )
-;
-
-// Entry rule entryRuleJvmFormalParameter
-entryRuleJvmFormalParameter returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getJvmFormalParameterRule()); }
- iv_ruleJvmFormalParameter=ruleJvmFormalParameter
- { $current=$iv_ruleJvmFormalParameter.current; }
- EOF;
-
-// Rule JvmFormalParameter
-ruleJvmFormalParameter returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- (
- {
- newCompositeNode(grammarAccess.getJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0());
- }
- lv_parameterType_0_0=ruleJvmTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getJvmFormalParameterRule());
- }
- set(
- $current,
- "parameterType",
- lv_parameterType_0_0,
- "org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )?
- (
- (
- {
- newCompositeNode(grammarAccess.getJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0());
- }
- lv_name_1_0=ruleValidID
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getJvmFormalParameterRule());
- }
- set(
- $current,
- "name",
- lv_name_1_0,
- "org.eclipse.xtext.xbase.Xtype.ValidID");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
-;
-
-// Entry rule entryRuleFullJvmFormalParameter
-entryRuleFullJvmFormalParameter returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getFullJvmFormalParameterRule()); }
- iv_ruleFullJvmFormalParameter=ruleFullJvmFormalParameter
- { $current=$iv_ruleFullJvmFormalParameter.current; }
- EOF;
-
-// Rule FullJvmFormalParameter
-ruleFullJvmFormalParameter returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- (
- {
- newCompositeNode(grammarAccess.getFullJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0());
- }
- lv_parameterType_0_0=ruleJvmTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getFullJvmFormalParameterRule());
- }
- set(
- $current,
- "parameterType",
- lv_parameterType_0_0,
- "org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getFullJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0());
- }
- lv_name_1_0=ruleValidID
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getFullJvmFormalParameterRule());
- }
- set(
- $current,
- "name",
- lv_name_1_0,
- "org.eclipse.xtext.xbase.Xtype.ValidID");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
-;
-
-// Entry rule entryRuleXFeatureCall
-entryRuleXFeatureCall returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXFeatureCallRule()); }
- iv_ruleXFeatureCall=ruleXFeatureCall
- { $current=$iv_ruleXFeatureCall.current; }
- EOF;
-
-// Rule XFeatureCall
-ruleXFeatureCall returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0(),
- $current);
- }
- )
- (
- otherlv_1='<'
- {
- newLeafNode(otherlv_1, grammarAccess.getXFeatureCallAccess().getLessThanSignKeyword_1_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0());
- }
- lv_typeArguments_2_0=ruleJvmArgumentTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXFeatureCallRule());
- }
- add(
- $current,
- "typeArguments",
- lv_typeArguments_2_0,
- "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- otherlv_3=','
- {
- newLeafNode(otherlv_3, grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0());
- }
- lv_typeArguments_4_0=ruleJvmArgumentTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXFeatureCallRule());
- }
- add(
- $current,
- "typeArguments",
- lv_typeArguments_4_0,
- "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )*
- otherlv_5='>'
- {
- newLeafNode(otherlv_5, grammarAccess.getXFeatureCallAccess().getGreaterThanSignKeyword_1_3());
- }
- )?
- (
- (
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXFeatureCallRule());
- }
- }
- {
- newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_2_0());
- }
- ruleIdOrSuper
- {
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- (
- ((
- '('
- )
- )=>
- (
- lv_explicitOperationCall_7_0='('
- {
- newLeafNode(lv_explicitOperationCall_7_0, grammarAccess.getXFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_3_0_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXFeatureCallRule());
- }
- setWithLastConsumed($current, "explicitOperationCall", lv_explicitOperationCall_7_0 != null, "(");
- }
- )
- )
- (
- (
- ((
- (
- )
- (
- (
- (
- ruleJvmFormalParameter
- )
- )
- (
- ','
- (
- (
- ruleJvmFormalParameter
- )
- )
- )*
- )?
- (
- (
- '|'
- )
- )
- )
- )=>
- (
- {
- newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXShortClosureParserRuleCall_3_1_0_0());
- }
- lv_featureCallArguments_8_0=ruleXShortClosure
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXFeatureCallRule());
- }
- add(
- $current,
- "featureCallArguments",
- lv_featureCallArguments_8_0,
- "org.eclipse.xtext.xbase.Xbase.XShortClosure");
- afterParserOrEnumRuleCall();
- }
- )
- )
- |
- (
- (
- (
- {
- newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_0_0());
- }
- lv_featureCallArguments_9_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXFeatureCallRule());
- }
- add(
- $current,
- "featureCallArguments",
- lv_featureCallArguments_9_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- otherlv_10=','
- {
- newLeafNode(otherlv_10, grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_1_1_0());
- }
- lv_featureCallArguments_11_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXFeatureCallRule());
- }
- add(
- $current,
- "featureCallArguments",
- lv_featureCallArguments_11_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )*
- )
- )?
- otherlv_12=')'
- {
- newLeafNode(otherlv_12, grammarAccess.getXFeatureCallAccess().getRightParenthesisKeyword_3_2());
- }
- )?
- (
- ((
- (
- )
- '['
- )
- )=>
- (
- {
- newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXClosureParserRuleCall_4_0());
- }
- lv_featureCallArguments_13_0=ruleXClosure
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXFeatureCallRule());
- }
- add(
- $current,
- "featureCallArguments",
- lv_featureCallArguments_13_0,
- "org.eclipse.xtext.xbase.Xbase.XClosure");
- afterParserOrEnumRuleCall();
- }
- )
- )?
- )
-;
-
-// Entry rule entryRuleFeatureCallID
-entryRuleFeatureCallID returns [String current=null]:
- { newCompositeNode(grammarAccess.getFeatureCallIDRule()); }
- iv_ruleFeatureCallID=ruleFeatureCallID
- { $current=$iv_ruleFeatureCallID.current.getText(); }
- EOF;
-
-// Rule FeatureCallID
-ruleFeatureCallID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- {
- newCompositeNode(grammarAccess.getFeatureCallIDAccess().getValidIDParserRuleCall_0());
- }
- this_ValidID_0=ruleValidID
- {
- $current.merge(this_ValidID_0);
- }
- {
- afterParserOrEnumRuleCall();
- }
- |
- kw='extends'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getExtendsKeyword_1());
- }
- |
- kw='static'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getStaticKeyword_2());
- }
- |
- kw='import'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getImportKeyword_3());
- }
- |
- kw='extension'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getExtensionKeyword_4());
- }
- )
-;
-
-// Entry rule entryRuleIdOrSuper
-entryRuleIdOrSuper returns [String current=null]:
- { newCompositeNode(grammarAccess.getIdOrSuperRule()); }
- iv_ruleIdOrSuper=ruleIdOrSuper
- { $current=$iv_ruleIdOrSuper.current.getText(); }
- EOF;
-
-// Rule IdOrSuper
-ruleIdOrSuper returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- {
- newCompositeNode(grammarAccess.getIdOrSuperAccess().getFeatureCallIDParserRuleCall_0());
- }
- this_FeatureCallID_0=ruleFeatureCallID
- {
- $current.merge(this_FeatureCallID_0);
- }
- {
- afterParserOrEnumRuleCall();
- }
- |
- kw='super'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getIdOrSuperAccess().getSuperKeyword_1());
- }
- )
-;
-
-// Entry rule entryRuleXConstructorCall
-entryRuleXConstructorCall returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXConstructorCallRule()); }
- iv_ruleXConstructorCall=ruleXConstructorCall
- { $current=$iv_ruleXConstructorCall.current; }
- EOF;
-
-// Rule XConstructorCall
-ruleXConstructorCall returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXConstructorCallAccess().getXConstructorCallAction_0(),
- $current);
- }
- )
- otherlv_1='new'
- {
- newLeafNode(otherlv_1, grammarAccess.getXConstructorCallAccess().getNewKeyword_1());
- }
- (
- (
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXConstructorCallRule());
- }
- }
- {
- newCompositeNode(grammarAccess.getXConstructorCallAccess().getConstructorJvmConstructorCrossReference_2_0());
- }
- ruleQualifiedName
- {
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- (
- ('<')=>
- otherlv_3='<'
- {
- newLeafNode(otherlv_3, grammarAccess.getXConstructorCallAccess().getLessThanSignKeyword_3_0());
- }
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_1_0());
- }
- lv_typeArguments_4_0=ruleJvmArgumentTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXConstructorCallRule());
- }
- add(
- $current,
- "typeArguments",
- lv_typeArguments_4_0,
- "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- otherlv_5=','
- {
- newLeafNode(otherlv_5, grammarAccess.getXConstructorCallAccess().getCommaKeyword_3_2_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_2_1_0());
- }
- lv_typeArguments_6_0=ruleJvmArgumentTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXConstructorCallRule());
- }
- add(
- $current,
- "typeArguments",
- lv_typeArguments_6_0,
- "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )*
- otherlv_7='>'
- {
- newLeafNode(otherlv_7, grammarAccess.getXConstructorCallAccess().getGreaterThanSignKeyword_3_3());
- }
- )?
- (
- (
- ((
- '('
- )
- )=>
- (
- lv_explicitConstructorCall_8_0='('
- {
- newLeafNode(lv_explicitConstructorCall_8_0, grammarAccess.getXConstructorCallAccess().getExplicitConstructorCallLeftParenthesisKeyword_4_0_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXConstructorCallRule());
- }
- setWithLastConsumed($current, "explicitConstructorCall", lv_explicitConstructorCall_8_0 != null, "(");
- }
- )
- )
- (
- (
- ((
- (
- )
- (
- (
- (
- ruleJvmFormalParameter
- )
- )
- (
- ','
- (
- (
- ruleJvmFormalParameter
- )
- )
- )*
- )?
- (
- (
- '|'
- )
- )
- )
- )=>
- (
- {
- newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXShortClosureParserRuleCall_4_1_0_0());
- }
- lv_arguments_9_0=ruleXShortClosure
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXConstructorCallRule());
- }
- add(
- $current,
- "arguments",
- lv_arguments_9_0,
- "org.eclipse.xtext.xbase.Xbase.XShortClosure");
- afterParserOrEnumRuleCall();
- }
- )
- )
- |
- (
- (
- (
- {
- newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_0_0());
- }
- lv_arguments_10_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXConstructorCallRule());
- }
- add(
- $current,
- "arguments",
- lv_arguments_10_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- otherlv_11=','
- {
- newLeafNode(otherlv_11, grammarAccess.getXConstructorCallAccess().getCommaKeyword_4_1_1_1_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_1_1_0());
- }
- lv_arguments_12_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXConstructorCallRule());
- }
- add(
- $current,
- "arguments",
- lv_arguments_12_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )*
- )
- )?
- otherlv_13=')'
- {
- newLeafNode(otherlv_13, grammarAccess.getXConstructorCallAccess().getRightParenthesisKeyword_4_2());
- }
- )?
- (
- ((
- (
- )
- '['
- )
- )=>
- (
- {
- newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXClosureParserRuleCall_5_0());
- }
- lv_arguments_14_0=ruleXClosure
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXConstructorCallRule());
- }
- add(
- $current,
- "arguments",
- lv_arguments_14_0,
- "org.eclipse.xtext.xbase.Xbase.XClosure");
- afterParserOrEnumRuleCall();
- }
- )
- )?
- )
-;
-
-// Entry rule entryRuleXBooleanLiteral
-entryRuleXBooleanLiteral returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXBooleanLiteralRule()); }
- iv_ruleXBooleanLiteral=ruleXBooleanLiteral
- { $current=$iv_ruleXBooleanLiteral.current; }
- EOF;
-
-// Rule XBooleanLiteral
-ruleXBooleanLiteral returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXBooleanLiteralAccess().getXBooleanLiteralAction_0(),
- $current);
- }
- )
- (
- otherlv_1='false'
- {
- newLeafNode(otherlv_1, grammarAccess.getXBooleanLiteralAccess().getFalseKeyword_1_0());
- }
- |
- (
- (
- lv_isTrue_2_0='true'
- {
- newLeafNode(lv_isTrue_2_0, grammarAccess.getXBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXBooleanLiteralRule());
- }
- setWithLastConsumed($current, "isTrue", lv_isTrue_2_0 != null, "true");
- }
- )
- )
- )
- )
-;
-
-// Entry rule entryRuleXNullLiteral
-entryRuleXNullLiteral returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXNullLiteralRule()); }
- iv_ruleXNullLiteral=ruleXNullLiteral
- { $current=$iv_ruleXNullLiteral.current; }
- EOF;
-
-// Rule XNullLiteral
-ruleXNullLiteral returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXNullLiteralAccess().getXNullLiteralAction_0(),
- $current);
- }
- )
- otherlv_1='null'
- {
- newLeafNode(otherlv_1, grammarAccess.getXNullLiteralAccess().getNullKeyword_1());
- }
- )
-;
-
-// Entry rule entryRuleXNumberLiteral
-entryRuleXNumberLiteral returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXNumberLiteralRule()); }
- iv_ruleXNumberLiteral=ruleXNumberLiteral
- { $current=$iv_ruleXNumberLiteral.current; }
- EOF;
-
-// Rule XNumberLiteral
-ruleXNumberLiteral returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXNumberLiteralAccess().getXNumberLiteralAction_0(),
- $current);
- }
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getXNumberLiteralAccess().getValueNumberParserRuleCall_1_0());
- }
- lv_value_1_0=ruleNumber
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXNumberLiteralRule());
- }
- set(
- $current,
- "value",
- lv_value_1_0,
- "org.eclipse.xtext.xbase.Xbase.Number");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
-;
-
-// Entry rule entryRuleXStringLiteral
-entryRuleXStringLiteral returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXStringLiteralRule()); }
- iv_ruleXStringLiteral=ruleXStringLiteral
- { $current=$iv_ruleXStringLiteral.current; }
- EOF;
-
-// Rule XStringLiteral
-ruleXStringLiteral returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXStringLiteralAccess().getXStringLiteralAction_0(),
- $current);
- }
- )
- (
- (
- lv_value_1_0=RULE_STRING
- {
- newLeafNode(lv_value_1_0, grammarAccess.getXStringLiteralAccess().getValueSTRINGTerminalRuleCall_1_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXStringLiteralRule());
- }
- setWithLastConsumed(
- $current,
- "value",
- lv_value_1_0,
- "org.eclipse.xtext.xbase.Xtype.STRING");
- }
- )
- )
- )
-;
-
-// Entry rule entryRuleXTypeLiteral
-entryRuleXTypeLiteral returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXTypeLiteralRule()); }
- iv_ruleXTypeLiteral=ruleXTypeLiteral
- { $current=$iv_ruleXTypeLiteral.current; }
- EOF;
-
-// Rule XTypeLiteral
-ruleXTypeLiteral returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXTypeLiteralAccess().getXTypeLiteralAction_0(),
- $current);
- }
- )
- otherlv_1='typeof'
- {
- newLeafNode(otherlv_1, grammarAccess.getXTypeLiteralAccess().getTypeofKeyword_1());
- }
- otherlv_2='('
- {
- newLeafNode(otherlv_2, grammarAccess.getXTypeLiteralAccess().getLeftParenthesisKeyword_2());
- }
- (
- (
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXTypeLiteralRule());
- }
- }
- {
- newCompositeNode(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeCrossReference_3_0());
- }
- ruleQualifiedName
- {
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getXTypeLiteralAccess().getArrayDimensionsArrayBracketsParserRuleCall_4_0());
- }
- lv_arrayDimensions_4_0=ruleArrayBrackets
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXTypeLiteralRule());
- }
- add(
- $current,
- "arrayDimensions",
- lv_arrayDimensions_4_0,
- "org.eclipse.xtext.xbase.Xtype.ArrayBrackets");
- afterParserOrEnumRuleCall();
- }
- )
- )*
- otherlv_5=')'
- {
- newLeafNode(otherlv_5, grammarAccess.getXTypeLiteralAccess().getRightParenthesisKeyword_5());
- }
- )
-;
-
-// Entry rule entryRuleXThrowExpression
-entryRuleXThrowExpression returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXThrowExpressionRule()); }
- iv_ruleXThrowExpression=ruleXThrowExpression
- { $current=$iv_ruleXThrowExpression.current; }
- EOF;
-
-// Rule XThrowExpression
-ruleXThrowExpression returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXThrowExpressionAccess().getXThrowExpressionAction_0(),
- $current);
- }
- )
- otherlv_1='throw'
- {
- newLeafNode(otherlv_1, grammarAccess.getXThrowExpressionAccess().getThrowKeyword_1());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXThrowExpressionAccess().getExpressionXExpressionParserRuleCall_2_0());
- }
- lv_expression_2_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXThrowExpressionRule());
- }
- set(
- $current,
- "expression",
- lv_expression_2_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
-;
-
-// Entry rule entryRuleXReturnExpression
-entryRuleXReturnExpression returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXReturnExpressionRule()); }
- iv_ruleXReturnExpression=ruleXReturnExpression
- { $current=$iv_ruleXReturnExpression.current; }
- EOF;
-
-// Rule XReturnExpression
-ruleXReturnExpression returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0(),
- $current);
- }
- )
- otherlv_1='return'
- {
- newLeafNode(otherlv_1, grammarAccess.getXReturnExpressionAccess().getReturnKeyword_1());
- }
- (
- ('extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING)=>
- (
- {
- newCompositeNode(grammarAccess.getXReturnExpressionAccess().getExpressionXExpressionParserRuleCall_2_0());
- }
- lv_expression_2_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXReturnExpressionRule());
- }
- set(
- $current,
- "expression",
- lv_expression_2_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )?
- )
-;
-
-// Entry rule entryRuleXTryCatchFinallyExpression
-entryRuleXTryCatchFinallyExpression returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionRule()); }
- iv_ruleXTryCatchFinallyExpression=ruleXTryCatchFinallyExpression
- { $current=$iv_ruleXTryCatchFinallyExpression.current; }
- EOF;
-
-// Rule XTryCatchFinallyExpression
-ruleXTryCatchFinallyExpression returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0(),
- $current);
- }
- )
- otherlv_1='try'
- {
- newLeafNode(otherlv_1, grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionXExpressionParserRuleCall_2_0());
- }
- lv_expression_2_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule());
- }
- set(
- $current,
- "expression",
- lv_expression_2_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- (
- (
- ('catch')=>
- (
- {
- newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesXCatchClauseParserRuleCall_3_0_0_0());
- }
- lv_catchClauses_3_0=ruleXCatchClause
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule());
- }
- add(
- $current,
- "catchClauses",
- lv_catchClauses_3_0,
- "org.eclipse.xtext.xbase.Xbase.XCatchClause");
- afterParserOrEnumRuleCall();
- }
- )
- )+
- (
- (
- ('finally')=>
- otherlv_4='finally'
- {
- newLeafNode(otherlv_4, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0());
- }
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_0_1_1_0());
- }
- lv_finallyExpression_5_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule());
- }
- set(
- $current,
- "finallyExpression",
- lv_finallyExpression_5_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )?
- )
- |
- (
- otherlv_6='finally'
- {
- newLeafNode(otherlv_6, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_1_1_0());
- }
- lv_finallyExpression_7_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule());
- }
- set(
- $current,
- "finallyExpression",
- lv_finallyExpression_7_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
- )
- )
-;
-
-// Entry rule entryRuleXSynchronizedExpression
-entryRuleXSynchronizedExpression returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXSynchronizedExpressionRule()); }
- iv_ruleXSynchronizedExpression=ruleXSynchronizedExpression
- { $current=$iv_ruleXSynchronizedExpression.current; }
- EOF;
-
-// Rule XSynchronizedExpression
-ruleXSynchronizedExpression returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- ((
- (
- )
- 'synchronized'
- '('
- )
- )=>
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getXSynchronizedExpressionAccess().getXSynchronizedExpressionAction_0_0_0(),
- $current);
- }
- )
- otherlv_1='synchronized'
- {
- newLeafNode(otherlv_1, grammarAccess.getXSynchronizedExpressionAccess().getSynchronizedKeyword_0_0_1());
- }
- otherlv_2='('
- {
- newLeafNode(otherlv_2, grammarAccess.getXSynchronizedExpressionAccess().getLeftParenthesisKeyword_0_0_2());
- }
- )
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getXSynchronizedExpressionAccess().getParamXExpressionParserRuleCall_1_0());
- }
- lv_param_3_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXSynchronizedExpressionRule());
- }
- set(
- $current,
- "param",
- lv_param_3_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- otherlv_4=')'
- {
- newLeafNode(otherlv_4, grammarAccess.getXSynchronizedExpressionAccess().getRightParenthesisKeyword_2());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXSynchronizedExpressionAccess().getExpressionXExpressionParserRuleCall_3_0());
- }
- lv_expression_5_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXSynchronizedExpressionRule());
- }
- set(
- $current,
- "expression",
- lv_expression_5_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
-;
-
-// Entry rule entryRuleXCatchClause
-entryRuleXCatchClause returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXCatchClauseRule()); }
- iv_ruleXCatchClause=ruleXCatchClause
- { $current=$iv_ruleXCatchClause.current; }
- EOF;
-
-// Rule XCatchClause
-ruleXCatchClause returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- ('catch')=>
- otherlv_0='catch'
- {
- newLeafNode(otherlv_0, grammarAccess.getXCatchClauseAccess().getCatchKeyword_0());
- }
- )
- otherlv_1='('
- {
- newLeafNode(otherlv_1, grammarAccess.getXCatchClauseAccess().getLeftParenthesisKeyword_1());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXCatchClauseAccess().getDeclaredParamFullJvmFormalParameterParserRuleCall_2_0());
- }
- lv_declaredParam_2_0=ruleFullJvmFormalParameter
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXCatchClauseRule());
- }
- set(
- $current,
- "declaredParam",
- lv_declaredParam_2_0,
- "org.eclipse.xtext.xbase.Xbase.FullJvmFormalParameter");
- afterParserOrEnumRuleCall();
- }
- )
- )
- otherlv_3=')'
- {
- newLeafNode(otherlv_3, grammarAccess.getXCatchClauseAccess().getRightParenthesisKeyword_3());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXCatchClauseAccess().getExpressionXExpressionParserRuleCall_4_0());
- }
- lv_expression_4_0=ruleXExpression
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXCatchClauseRule());
- }
- set(
- $current,
- "expression",
- lv_expression_4_0,
- "org.eclipse.xtext.xbase.Xbase.XExpression");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
-;
-
-// Entry rule entryRuleQualifiedName
-entryRuleQualifiedName returns [String current=null]:
- { newCompositeNode(grammarAccess.getQualifiedNameRule()); }
- iv_ruleQualifiedName=ruleQualifiedName
- { $current=$iv_ruleQualifiedName.current.getText(); }
- EOF;
-
-// Rule QualifiedName
-ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- {
- newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_0());
- }
- this_ValidID_0=ruleValidID
- {
- $current.merge(this_ValidID_0);
- }
- {
- afterParserOrEnumRuleCall();
- }
- (
- (
- ('.')=>
- kw='.'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0());
- }
- )
- {
- newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_1_1());
- }
- this_ValidID_2=ruleValidID
- {
- $current.merge(this_ValidID_2);
- }
- {
- afterParserOrEnumRuleCall();
- }
- )*
- )
-;
-
-// Entry rule entryRuleNumber
-entryRuleNumber returns [String current=null]@init {
- HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
-}:
- { newCompositeNode(grammarAccess.getNumberRule()); }
- iv_ruleNumber=ruleNumber
- { $current=$iv_ruleNumber.current.getText(); }
- EOF;
-finally {
- myHiddenTokenState.restore();
-}
-
-// Rule Number
-ruleNumber returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
-@init {
- enterRule();
- HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
-}
-@after {
- leaveRule();
-}:
- (
- this_HEX_0=RULE_HEX
- {
- $current.merge(this_HEX_0);
- }
- {
- newLeafNode(this_HEX_0, grammarAccess.getNumberAccess().getHEXTerminalRuleCall_0());
- }
- |
- (
- (
- this_INT_1=RULE_INT
- {
- $current.merge(this_INT_1);
- }
- {
- newLeafNode(this_INT_1, grammarAccess.getNumberAccess().getINTTerminalRuleCall_1_0_0());
- }
- |
- this_DECIMAL_2=RULE_DECIMAL
- {
- $current.merge(this_DECIMAL_2);
- }
- {
- newLeafNode(this_DECIMAL_2, grammarAccess.getNumberAccess().getDECIMALTerminalRuleCall_1_0_1());
- }
- )
- (
- kw='.'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getNumberAccess().getFullStopKeyword_1_1_0());
- }
- (
- this_INT_4=RULE_INT
- {
- $current.merge(this_INT_4);
- }
- {
- newLeafNode(this_INT_4, grammarAccess.getNumberAccess().getINTTerminalRuleCall_1_1_1_0());
- }
- |
- this_DECIMAL_5=RULE_DECIMAL
- {
- $current.merge(this_DECIMAL_5);
- }
- {
- newLeafNode(this_DECIMAL_5, grammarAccess.getNumberAccess().getDECIMALTerminalRuleCall_1_1_1_1());
- }
- )
- )?
- )
- )
-;
-finally {
- myHiddenTokenState.restore();
-}
-
-// Entry rule entryRuleJvmTypeReference
-entryRuleJvmTypeReference returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getJvmTypeReferenceRule()); }
- iv_ruleJvmTypeReference=ruleJvmTypeReference
- { $current=$iv_ruleJvmTypeReference.current; }
- EOF;
-
-// Rule JvmTypeReference
-ruleJvmTypeReference returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getJvmParameterizedTypeReferenceParserRuleCall_0_0());
- }
- this_JvmParameterizedTypeReference_0=ruleJvmParameterizedTypeReference
- {
- $current = $this_JvmParameterizedTypeReference_0.current;
- afterParserOrEnumRuleCall();
- }
- (
- ((
- (
- )
- ruleArrayBrackets
- )
- )=>
- (
- (
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getJvmTypeReferenceAccess().getJvmGenericArrayTypeReferenceComponentTypeAction_0_1_0_0(),
- $current);
- }
- )
- {
- newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getArrayBracketsParserRuleCall_0_1_0_1());
- }
- ruleArrayBrackets
- {
- afterParserOrEnumRuleCall();
- }
- )
- )*
- )
- |
- {
- newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getXFunctionTypeRefParserRuleCall_1());
- }
- this_XFunctionTypeRef_3=ruleXFunctionTypeRef
- {
- $current = $this_XFunctionTypeRef_3.current;
- afterParserOrEnumRuleCall();
- }
- )
-;
-
-// Entry rule entryRuleArrayBrackets
-entryRuleArrayBrackets returns [String current=null]:
- { newCompositeNode(grammarAccess.getArrayBracketsRule()); }
- iv_ruleArrayBrackets=ruleArrayBrackets
- { $current=$iv_ruleArrayBrackets.current.getText(); }
- EOF;
-
-// Rule ArrayBrackets
-ruleArrayBrackets returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- kw='['
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getLeftSquareBracketKeyword_0());
- }
- kw=']'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getRightSquareBracketKeyword_1());
- }
- )
-;
-
-// Entry rule entryRuleXFunctionTypeRef
-entryRuleXFunctionTypeRef returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXFunctionTypeRefRule()); }
- iv_ruleXFunctionTypeRef=ruleXFunctionTypeRef
- { $current=$iv_ruleXFunctionTypeRef.current; }
- EOF;
-
-// Rule XFunctionTypeRef
-ruleXFunctionTypeRef returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- otherlv_0='('
- {
- newLeafNode(otherlv_0, grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0());
- }
- (
- (
- (
- {
- newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_0_0());
- }
- lv_paramTypes_1_0=ruleJvmTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule());
- }
- add(
- $current,
- "paramTypes",
- lv_paramTypes_1_0,
- "org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- otherlv_2=','
- {
- newLeafNode(otherlv_2, grammarAccess.getXFunctionTypeRefAccess().getCommaKeyword_0_1_1_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_1_1_0());
- }
- lv_paramTypes_3_0=ruleJvmTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule());
- }
- add(
- $current,
- "paramTypes",
- lv_paramTypes_3_0,
- "org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )*
- )?
- otherlv_4=')'
- {
- newLeafNode(otherlv_4, grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2());
- }
- )?
- otherlv_5='=>'
- {
- newLeafNode(otherlv_5, grammarAccess.getXFunctionTypeRefAccess().getEqualsSignGreaterThanSignKeyword_1());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getReturnTypeJvmTypeReferenceParserRuleCall_2_0());
- }
- lv_returnType_6_0=ruleJvmTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule());
- }
- set(
- $current,
- "returnType",
- lv_returnType_6_0,
- "org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
-;
-
-// Entry rule entryRuleJvmParameterizedTypeReference
-entryRuleJvmParameterizedTypeReference returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceRule()); }
- iv_ruleJvmParameterizedTypeReference=ruleJvmParameterizedTypeReference
- { $current=$iv_ruleJvmParameterizedTypeReference.current; }
- EOF;
-
-// Rule JvmParameterizedTypeReference
-ruleJvmParameterizedTypeReference returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- (
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getJvmParameterizedTypeReferenceRule());
- }
- }
- {
- newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_0_0());
- }
- ruleQualifiedName
- {
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- (
- ('<')=>
- otherlv_1='<'
- {
- newLeafNode(otherlv_1, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_0());
- }
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0());
- }
- lv_arguments_2_0=ruleJvmArgumentTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule());
- }
- add(
- $current,
- "arguments",
- lv_arguments_2_0,
- "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- otherlv_3=','
- {
- newLeafNode(otherlv_3, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_2_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0());
- }
- lv_arguments_4_0=ruleJvmArgumentTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule());
- }
- add(
- $current,
- "arguments",
- lv_arguments_4_0,
- "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )*
- otherlv_5='>'
- {
- newLeafNode(otherlv_5, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_3());
- }
- (
- (
- ((
- (
- )
- '.'
- )
- )=>
- (
- (
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getJvmParameterizedTypeReferenceAccess().getJvmInnerTypeReferenceOuterAction_1_4_0_0_0(),
- $current);
- }
- )
- otherlv_7='.'
- {
- newLeafNode(otherlv_7, grammarAccess.getJvmParameterizedTypeReferenceAccess().getFullStopKeyword_1_4_0_0_1());
- }
- )
- )
- (
- (
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getJvmParameterizedTypeReferenceRule());
- }
- }
- {
- newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_1_4_1_0());
- }
- ruleValidID
- {
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- (
- ('<')=>
- otherlv_9='<'
- {
- newLeafNode(otherlv_9, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_4_2_0());
- }
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_1_0());
- }
- lv_arguments_10_0=ruleJvmArgumentTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule());
- }
- add(
- $current,
- "arguments",
- lv_arguments_10_0,
- "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- otherlv_11=','
- {
- newLeafNode(otherlv_11, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_4_2_2_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_2_1_0());
- }
- lv_arguments_12_0=ruleJvmArgumentTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule());
- }
- add(
- $current,
- "arguments",
- lv_arguments_12_0,
- "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )*
- otherlv_13='>'
- {
- newLeafNode(otherlv_13, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_4_2_3());
- }
- )?
- )*
- )?
- )
-;
-
-// Entry rule entryRuleJvmArgumentTypeReference
-entryRuleJvmArgumentTypeReference returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceRule()); }
- iv_ruleJvmArgumentTypeReference=ruleJvmArgumentTypeReference
- { $current=$iv_ruleJvmArgumentTypeReference.current; }
- EOF;
-
-// Rule JvmArgumentTypeReference
-ruleJvmArgumentTypeReference returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- {
- newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmTypeReferenceParserRuleCall_0());
- }
- this_JvmTypeReference_0=ruleJvmTypeReference
- {
- $current = $this_JvmTypeReference_0.current;
- afterParserOrEnumRuleCall();
- }
- |
- {
- newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmWildcardTypeReferenceParserRuleCall_1());
- }
- this_JvmWildcardTypeReference_1=ruleJvmWildcardTypeReference
- {
- $current = $this_JvmWildcardTypeReference_1.current;
- afterParserOrEnumRuleCall();
- }
- )
-;
-
-// Entry rule entryRuleJvmWildcardTypeReference
-entryRuleJvmWildcardTypeReference returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceRule()); }
- iv_ruleJvmWildcardTypeReference=ruleJvmWildcardTypeReference
- { $current=$iv_ruleJvmWildcardTypeReference.current; }
- EOF;
-
-// Rule JvmWildcardTypeReference
-ruleJvmWildcardTypeReference returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- $current = forceCreateModelElement(
- grammarAccess.getJvmWildcardTypeReferenceAccess().getJvmWildcardTypeReferenceAction_0(),
- $current);
- }
- )
- otherlv_1='?'
- {
- newLeafNode(otherlv_1, grammarAccess.getJvmWildcardTypeReferenceAccess().getQuestionMarkKeyword_1());
- }
- (
- (
- (
- (
- {
- newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundParserRuleCall_2_0_0_0());
- }
- lv_constraints_2_0=ruleJvmUpperBound
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule());
- }
- add(
- $current,
- "constraints",
- lv_constraints_2_0,
- "org.eclipse.xtext.xbase.Xtype.JvmUpperBound");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundAndedParserRuleCall_2_0_1_0());
- }
- lv_constraints_3_0=ruleJvmUpperBoundAnded
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule());
- }
- add(
- $current,
- "constraints",
- lv_constraints_3_0,
- "org.eclipse.xtext.xbase.Xtype.JvmUpperBoundAnded");
- afterParserOrEnumRuleCall();
- }
- )
- )*
- )
- |
- (
- (
- (
- {
- newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundParserRuleCall_2_1_0_0());
- }
- lv_constraints_4_0=ruleJvmLowerBound
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule());
- }
- add(
- $current,
- "constraints",
- lv_constraints_4_0,
- "org.eclipse.xtext.xbase.Xtype.JvmLowerBound");
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- (
- {
- newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundAndedParserRuleCall_2_1_1_0());
- }
- lv_constraints_5_0=ruleJvmLowerBoundAnded
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule());
- }
- add(
- $current,
- "constraints",
- lv_constraints_5_0,
- "org.eclipse.xtext.xbase.Xtype.JvmLowerBoundAnded");
- afterParserOrEnumRuleCall();
- }
- )
- )*
- )
- )?
- )
-;
-
-// Entry rule entryRuleJvmUpperBound
-entryRuleJvmUpperBound returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getJvmUpperBoundRule()); }
- iv_ruleJvmUpperBound=ruleJvmUpperBound
- { $current=$iv_ruleJvmUpperBound.current; }
- EOF;
-
-// Rule JvmUpperBound
-ruleJvmUpperBound returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- otherlv_0='extends'
- {
- newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAccess().getExtendsKeyword_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getJvmUpperBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0());
- }
- lv_typeReference_1_0=ruleJvmTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getJvmUpperBoundRule());
- }
- set(
- $current,
- "typeReference",
- lv_typeReference_1_0,
- "org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
-;
-
-// Entry rule entryRuleJvmUpperBoundAnded
-entryRuleJvmUpperBoundAnded returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getJvmUpperBoundAndedRule()); }
- iv_ruleJvmUpperBoundAnded=ruleJvmUpperBoundAnded
- { $current=$iv_ruleJvmUpperBoundAnded.current; }
- EOF;
-
-// Rule JvmUpperBoundAnded
-ruleJvmUpperBoundAnded returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- otherlv_0='&'
- {
- newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAndedAccess().getAmpersandKeyword_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getJvmUpperBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0());
- }
- lv_typeReference_1_0=ruleJvmTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getJvmUpperBoundAndedRule());
- }
- set(
- $current,
- "typeReference",
- lv_typeReference_1_0,
- "org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
-;
-
-// Entry rule entryRuleJvmLowerBound
-entryRuleJvmLowerBound returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getJvmLowerBoundRule()); }
- iv_ruleJvmLowerBound=ruleJvmLowerBound
- { $current=$iv_ruleJvmLowerBound.current; }
- EOF;
-
-// Rule JvmLowerBound
-ruleJvmLowerBound returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- otherlv_0='super'
- {
- newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAccess().getSuperKeyword_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getJvmLowerBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0());
- }
- lv_typeReference_1_0=ruleJvmTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getJvmLowerBoundRule());
- }
- set(
- $current,
- "typeReference",
- lv_typeReference_1_0,
- "org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
-;
-
-// Entry rule entryRuleJvmLowerBoundAnded
-entryRuleJvmLowerBoundAnded returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getJvmLowerBoundAndedRule()); }
- iv_ruleJvmLowerBoundAnded=ruleJvmLowerBoundAnded
- { $current=$iv_ruleJvmLowerBoundAnded.current; }
- EOF;
-
-// Rule JvmLowerBoundAnded
-ruleJvmLowerBoundAnded returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- otherlv_0='&'
- {
- newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAndedAccess().getAmpersandKeyword_0());
- }
- (
- (
- {
- newCompositeNode(grammarAccess.getJvmLowerBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0());
- }
- lv_typeReference_1_0=ruleJvmTypeReference
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getJvmLowerBoundAndedRule());
- }
- set(
- $current,
- "typeReference",
- lv_typeReference_1_0,
- "org.eclipse.xtext.xbase.Xtype.JvmTypeReference");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
-;
-
-// Entry rule entryRuleQualifiedNameWithWildcard
-entryRuleQualifiedNameWithWildcard returns [String current=null]:
- { newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); }
- iv_ruleQualifiedNameWithWildcard=ruleQualifiedNameWithWildcard
- { $current=$iv_ruleQualifiedNameWithWildcard.current.getText(); }
- EOF;
-
-// Rule QualifiedNameWithWildcard
-ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- {
- newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0());
- }
- this_QualifiedName_0=ruleQualifiedName
- {
- $current.merge(this_QualifiedName_0);
- }
- {
- afterParserOrEnumRuleCall();
- }
- kw='.'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1());
- }
- kw='*'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_2());
- }
- )
-;
-
-// Entry rule entryRuleValidID
-entryRuleValidID returns [String current=null]:
- { newCompositeNode(grammarAccess.getValidIDRule()); }
- iv_ruleValidID=ruleValidID
- { $current=$iv_ruleValidID.current.getText(); }
- EOF;
-
-// Rule ValidID
-ruleValidID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- this_ID_0=RULE_ID
- {
- $current.merge(this_ID_0);
- }
- {
- newLeafNode(this_ID_0, grammarAccess.getValidIDAccess().getIDTerminalRuleCall());
- }
-;
-
-// Entry rule entryRuleXImportSection
-entryRuleXImportSection returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXImportSectionRule()); }
- iv_ruleXImportSection=ruleXImportSection
- { $current=$iv_ruleXImportSection.current; }
- EOF;
-
-// Rule XImportSection
-ruleXImportSection returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- (
- {
- newCompositeNode(grammarAccess.getXImportSectionAccess().getImportDeclarationsXImportDeclarationParserRuleCall_0());
- }
- lv_importDeclarations_0_0=ruleXImportDeclaration
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXImportSectionRule());
- }
- add(
- $current,
- "importDeclarations",
- lv_importDeclarations_0_0,
- "org.eclipse.xtext.xbase.Xtype.XImportDeclaration");
- afterParserOrEnumRuleCall();
- }
- )
- )+
-;
-
-// Entry rule entryRuleXImportDeclaration
-entryRuleXImportDeclaration returns [EObject current=null]:
- { newCompositeNode(grammarAccess.getXImportDeclarationRule()); }
- iv_ruleXImportDeclaration=ruleXImportDeclaration
- { $current=$iv_ruleXImportDeclaration.current; }
- EOF;
-
-// Rule XImportDeclaration
-ruleXImportDeclaration returns [EObject current=null]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- otherlv_0='import'
- {
- newLeafNode(otherlv_0, grammarAccess.getXImportDeclarationAccess().getImportKeyword_0());
- }
- (
- (
- (
- (
- lv_static_1_0='static'
- {
- newLeafNode(lv_static_1_0, grammarAccess.getXImportDeclarationAccess().getStaticStaticKeyword_1_0_0_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXImportDeclarationRule());
- }
- setWithLastConsumed($current, "static", lv_static_1_0 != null, "static");
- }
- )
- )
- (
- (
- lv_extension_2_0='extension'
- {
- newLeafNode(lv_extension_2_0, grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_1_0_1_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXImportDeclarationRule());
- }
- setWithLastConsumed($current, "extension", lv_extension_2_0 != null, "extension");
- }
- )
- )?
- (
- (
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXImportDeclarationRule());
- }
- }
- {
- newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_1_0_2_0());
- }
- ruleQualifiedNameInStaticImport
- {
- afterParserOrEnumRuleCall();
- }
- )
- )
- (
- (
- (
- lv_wildcard_4_0='*'
- {
- newLeafNode(lv_wildcard_4_0, grammarAccess.getXImportDeclarationAccess().getWildcardAsteriskKeyword_1_0_3_0_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXImportDeclarationRule());
- }
- setWithLastConsumed($current, "wildcard", lv_wildcard_4_0 != null, "*");
- }
- )
- )
- |
- (
- (
- {
- newCompositeNode(grammarAccess.getXImportDeclarationAccess().getMemberNameValidIDParserRuleCall_1_0_3_1_0());
- }
- lv_memberName_5_0=ruleValidID
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXImportDeclarationRule());
- }
- set(
- $current,
- "memberName",
- lv_memberName_5_0,
- "org.eclipse.xtext.xbase.Xtype.ValidID");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
- )
- |
- (
- (
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getXImportDeclarationRule());
- }
- }
- {
- newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_1_1_0());
- }
- ruleQualifiedName
- {
- afterParserOrEnumRuleCall();
- }
- )
- )
- |
- (
- (
- {
- newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_2_0());
- }
- lv_importedNamespace_7_0=ruleQualifiedNameWithWildcard
- {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getXImportDeclarationRule());
- }
- set(
- $current,
- "importedNamespace",
- lv_importedNamespace_7_0,
- "org.eclipse.xtext.xbase.Xtype.QualifiedNameWithWildcard");
- afterParserOrEnumRuleCall();
- }
- )
- )
- )
- (
- otherlv_8=';'
- {
- newLeafNode(otherlv_8, grammarAccess.getXImportDeclarationAccess().getSemicolonKeyword_2());
- }
- )?
- )
-;
-
-// Entry rule entryRuleQualifiedNameInStaticImport
-entryRuleQualifiedNameInStaticImport returns [String current=null]:
- { newCompositeNode(grammarAccess.getQualifiedNameInStaticImportRule()); }
- iv_ruleQualifiedNameInStaticImport=ruleQualifiedNameInStaticImport
- { $current=$iv_ruleQualifiedNameInStaticImport.current.getText(); }
- EOF;
-
-// Rule QualifiedNameInStaticImport
-ruleQualifiedNameInStaticImport returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
-@init {
- enterRule();
-}
-@after {
- leaveRule();
-}:
- (
- {
- newCompositeNode(grammarAccess.getQualifiedNameInStaticImportAccess().getValidIDParserRuleCall_0());
- }
- this_ValidID_0=ruleValidID
- {
- $current.merge(this_ValidID_0);
- }
- {
- afterParserOrEnumRuleCall();
- }
- kw='.'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getQualifiedNameInStaticImportAccess().getFullStopKeyword_1());
- }
- )+
-;
-
-RULE_HEX : ('0x'|'0X') ('0'..'9'|'a'..'f'|'A'..'F'|'_')+ ('#' (('b'|'B') ('i'|'I')|('l'|'L')))?;
-
-RULE_INT : '0'..'9' ('0'..'9'|'_')*;
-
-RULE_DECIMAL : RULE_INT (('e'|'E') ('+'|'-')? RULE_INT)? (('b'|'B') ('i'|'I'|'d'|'D')|('l'|'L'|'d'|'D'|'f'|'F'))?;
-
-RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'$'|'_') ('a'..'z'|'A'..'Z'|'$'|'_'|'0'..'9')*;
-
-RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'?|'\'' ('\\' .|~(('\\'|'\'')))* '\''?);
-
-RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/';
-
-RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?;
-
-RULE_WS : (' '|'\t'|'\r'|'\n')+;
-
-RULE_ANY_OTHER : .;
diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/internal/InternalEntities.tokens b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/internal/InternalEntities.tokens
deleted file mode 100644
index a5426d07a1f..00000000000
--- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/internal/InternalEntities.tokens
+++ /dev/null
@@ -1,163 +0,0 @@
-'!'=51
-'!='=35
-'!=='=37
-'#'=58
-'%'=50
-'%='=28
-'&&'=33
-'&'=89
-'('=20
-')'=22
-'*'=47
-'**'=48
-'*='=26
-'+'=45
-'++'=53
-'+='=24
-','=21
-'-'=46
-'--'=54
-'-='=25
-'->'=39
-'.'=55
-'..'=41
-'..<'=40
-'/'=49
-'/='=27
-':'=18
-'::'=56
-';'=62
-'<'=29
-'<>'=43
-'='=23
-'=='=34
-'==='=36
-'=>'=42
-'>'=30
-'>='=31
-'?'=88
-'?.'=57
-'?:'=44
-'['=59
-']'=60
-'as'=52
-'case'=67
-'catch'=87
-'default'=66
-'do'=70
-'else'=64
-'entity'=16
-'extends'=17
-'extension'=75
-'false'=78
-'finally'=85
-'for'=68
-'if'=63
-'import'=74
-'instanceof'=38
-'new'=77
-'null'=80
-'op'=19
-'package'=13
-'return'=83
-'static'=73
-'super'=76
-'switch'=65
-'synchronized'=86
-'throw'=82
-'true'=79
-'try'=84
-'typeof'=81
-'val'=72
-'var'=71
-'while'=69
-'{'=14
-'|'=61
-'||'=32
-'}'=15
-RULE_ANY_OTHER=12
-RULE_DECIMAL=7
-RULE_HEX=5
-RULE_ID=8
-RULE_INT=6
-RULE_ML_COMMENT=9
-RULE_SL_COMMENT=10
-RULE_STRING=4
-RULE_WS=11
-T__13=13
-T__14=14
-T__15=15
-T__16=16
-T__17=17
-T__18=18
-T__19=19
-T__20=20
-T__21=21
-T__22=22
-T__23=23
-T__24=24
-T__25=25
-T__26=26
-T__27=27
-T__28=28
-T__29=29
-T__30=30
-T__31=31
-T__32=32
-T__33=33
-T__34=34
-T__35=35
-T__36=36
-T__37=37
-T__38=38
-T__39=39
-T__40=40
-T__41=41
-T__42=42
-T__43=43
-T__44=44
-T__45=45
-T__46=46
-T__47=47
-T__48=48
-T__49=49
-T__50=50
-T__51=51
-T__52=52
-T__53=53
-T__54=54
-T__55=55
-T__56=56
-T__57=57
-T__58=58
-T__59=59
-T__60=60
-T__61=61
-T__62=62
-T__63=63
-T__64=64
-T__65=65
-T__66=66
-T__67=67
-T__68=68
-T__69=69
-T__70=70
-T__71=71
-T__72=72
-T__73=73
-T__74=74
-T__75=75
-T__76=76
-T__77=77
-T__78=78
-T__79=79
-T__80=80
-T__81=81
-T__82=82
-T__83=83
-T__84=84
-T__85=85
-T__86=86
-T__87=87
-T__88=88
-T__89=89
diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/internal/InternalEntitiesLexer.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/internal/InternalEntitiesLexer.java
deleted file mode 100644
index aeb884bbd72..00000000000
--- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/internal/InternalEntitiesLexer.java
+++ /dev/null
@@ -1,3578 +0,0 @@
-package org.eclipse.xtext.web.example.entities.parser.antlr.internal;
-
-// Hack: Use our own Lexer superclass by means of import.
-// Currently there is no other way to specify the superclass for the lexer.
-import org.eclipse.xtext.parser.antlr.Lexer;
-
-
-import org.antlr.runtime.*;
-import java.util.Stack;
-import java.util.List;
-import java.util.ArrayList;
-
-@SuppressWarnings("all")
-public class InternalEntitiesLexer extends Lexer {
- public static final int RULE_HEX=5;
- public static final int T__50=50;
- public static final int T__19=19;
- public static final int T__15=15;
- public static final int T__59=59;
- public static final int T__16=16;
- public static final int T__17=17;
- public static final int T__18=18;
- public static final int T__55=55;
- public static final int T__56=56;
- public static final int T__13=13;
- public static final int T__57=57;
- public static final int T__14=14;
- public static final int T__58=58;
- public static final int T__51=51;
- public static final int T__52=52;
- public static final int T__53=53;
- public static final int T__54=54;
- public static final int T__60=60;
- public static final int T__61=61;
- public static final int RULE_ID=8;
- public static final int RULE_DECIMAL=7;
- public static final int T__26=26;
- public static final int T__27=27;
- public static final int T__28=28;
- public static final int RULE_INT=6;
- public static final int T__29=29;
- public static final int T__22=22;
- public static final int T__66=66;
- public static final int RULE_ML_COMMENT=9;
- public static final int T__23=23;
- public static final int T__67=67;
- public static final int T__24=24;
- public static final int T__68=68;
- public static final int T__25=25;
- public static final int T__69=69;
- public static final int T__62=62;
- public static final int T__63=63;
- public static final int T__20=20;
- public static final int T__64=64;
- public static final int T__21=21;
- public static final int T__65=65;
- public static final int T__70=70;
- public static final int T__71=71;
- public static final int T__72=72;
- public static final int RULE_STRING=4;
- public static final int RULE_SL_COMMENT=10;
- public static final int T__37=37;
- public static final int T__38=38;
- public static final int T__39=39;
- public static final int T__33=33;
- public static final int T__77=77;
- public static final int T__34=34;
- public static final int T__78=78;
- public static final int T__35=35;
- public static final int T__79=79;
- public static final int T__36=36;
- public static final int T__73=73;
- public static final int EOF=-1;
- public static final int T__30=30;
- public static final int T__74=74;
- public static final int T__31=31;
- public static final int T__75=75;
- public static final int T__32=32;
- public static final int T__76=76;
- public static final int T__80=80;
- public static final int T__81=81;
- public static final int T__82=82;
- public static final int T__83=83;
- public static final int RULE_WS=11;
- public static final int RULE_ANY_OTHER=12;
- public static final int T__48=48;
- public static final int T__49=49;
- public static final int T__44=44;
- public static final int T__88=88;
- public static final int T__45=45;
- public static final int T__89=89;
- public static final int T__46=46;
- public static final int T__47=47;
- public static final int T__40=40;
- public static final int T__84=84;
- public static final int T__41=41;
- public static final int T__85=85;
- public static final int T__42=42;
- public static final int T__86=86;
- public static final int T__43=43;
- public static final int T__87=87;
-
- // delegates
- // delegators
-
- public InternalEntitiesLexer() {;}
- public InternalEntitiesLexer(CharStream input) {
- this(input, new RecognizerSharedState());
- }
- public InternalEntitiesLexer(CharStream input, RecognizerSharedState state) {
- super(input,state);
-
- }
- public String getGrammarFileName() { return "InternalEntities.g"; }
-
- // $ANTLR start "T__13"
- public final void mT__13() throws RecognitionException {
- try {
- int _type = T__13;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:11:7: ( 'package' )
- // InternalEntities.g:11:9: 'package'
- {
- match("package");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__13"
-
- // $ANTLR start "T__14"
- public final void mT__14() throws RecognitionException {
- try {
- int _type = T__14;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:12:7: ( '{' )
- // InternalEntities.g:12:9: '{'
- {
- match('{');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__14"
-
- // $ANTLR start "T__15"
- public final void mT__15() throws RecognitionException {
- try {
- int _type = T__15;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:13:7: ( '}' )
- // InternalEntities.g:13:9: '}'
- {
- match('}');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__15"
-
- // $ANTLR start "T__16"
- public final void mT__16() throws RecognitionException {
- try {
- int _type = T__16;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:14:7: ( 'entity' )
- // InternalEntities.g:14:9: 'entity'
- {
- match("entity");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__16"
-
- // $ANTLR start "T__17"
- public final void mT__17() throws RecognitionException {
- try {
- int _type = T__17;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:15:7: ( 'extends' )
- // InternalEntities.g:15:9: 'extends'
- {
- match("extends");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__17"
-
- // $ANTLR start "T__18"
- public final void mT__18() throws RecognitionException {
- try {
- int _type = T__18;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:16:7: ( ':' )
- // InternalEntities.g:16:9: ':'
- {
- match(':');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__18"
-
- // $ANTLR start "T__19"
- public final void mT__19() throws RecognitionException {
- try {
- int _type = T__19;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:17:7: ( 'op' )
- // InternalEntities.g:17:9: 'op'
- {
- match("op");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__19"
-
- // $ANTLR start "T__20"
- public final void mT__20() throws RecognitionException {
- try {
- int _type = T__20;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:18:7: ( '(' )
- // InternalEntities.g:18:9: '('
- {
- match('(');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__20"
-
- // $ANTLR start "T__21"
- public final void mT__21() throws RecognitionException {
- try {
- int _type = T__21;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:19:7: ( ',' )
- // InternalEntities.g:19:9: ','
- {
- match(',');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__21"
-
- // $ANTLR start "T__22"
- public final void mT__22() throws RecognitionException {
- try {
- int _type = T__22;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:20:7: ( ')' )
- // InternalEntities.g:20:9: ')'
- {
- match(')');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__22"
-
- // $ANTLR start "T__23"
- public final void mT__23() throws RecognitionException {
- try {
- int _type = T__23;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:21:7: ( '=' )
- // InternalEntities.g:21:9: '='
- {
- match('=');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__23"
-
- // $ANTLR start "T__24"
- public final void mT__24() throws RecognitionException {
- try {
- int _type = T__24;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:22:7: ( '+=' )
- // InternalEntities.g:22:9: '+='
- {
- match("+=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__24"
-
- // $ANTLR start "T__25"
- public final void mT__25() throws RecognitionException {
- try {
- int _type = T__25;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:23:7: ( '-=' )
- // InternalEntities.g:23:9: '-='
- {
- match("-=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__25"
-
- // $ANTLR start "T__26"
- public final void mT__26() throws RecognitionException {
- try {
- int _type = T__26;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:24:7: ( '*=' )
- // InternalEntities.g:24:9: '*='
- {
- match("*=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__26"
-
- // $ANTLR start "T__27"
- public final void mT__27() throws RecognitionException {
- try {
- int _type = T__27;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:25:7: ( '/=' )
- // InternalEntities.g:25:9: '/='
- {
- match("/=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__27"
-
- // $ANTLR start "T__28"
- public final void mT__28() throws RecognitionException {
- try {
- int _type = T__28;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:26:7: ( '%=' )
- // InternalEntities.g:26:9: '%='
- {
- match("%=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__28"
-
- // $ANTLR start "T__29"
- public final void mT__29() throws RecognitionException {
- try {
- int _type = T__29;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:27:7: ( '<' )
- // InternalEntities.g:27:9: '<'
- {
- match('<');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__29"
-
- // $ANTLR start "T__30"
- public final void mT__30() throws RecognitionException {
- try {
- int _type = T__30;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:28:7: ( '>' )
- // InternalEntities.g:28:9: '>'
- {
- match('>');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__30"
-
- // $ANTLR start "T__31"
- public final void mT__31() throws RecognitionException {
- try {
- int _type = T__31;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:29:7: ( '>=' )
- // InternalEntities.g:29:9: '>='
- {
- match(">=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__31"
-
- // $ANTLR start "T__32"
- public final void mT__32() throws RecognitionException {
- try {
- int _type = T__32;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:30:7: ( '||' )
- // InternalEntities.g:30:9: '||'
- {
- match("||");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__32"
-
- // $ANTLR start "T__33"
- public final void mT__33() throws RecognitionException {
- try {
- int _type = T__33;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:31:7: ( '&&' )
- // InternalEntities.g:31:9: '&&'
- {
- match("&&");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__33"
-
- // $ANTLR start "T__34"
- public final void mT__34() throws RecognitionException {
- try {
- int _type = T__34;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:32:7: ( '==' )
- // InternalEntities.g:32:9: '=='
- {
- match("==");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__34"
-
- // $ANTLR start "T__35"
- public final void mT__35() throws RecognitionException {
- try {
- int _type = T__35;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:33:7: ( '!=' )
- // InternalEntities.g:33:9: '!='
- {
- match("!=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__35"
-
- // $ANTLR start "T__36"
- public final void mT__36() throws RecognitionException {
- try {
- int _type = T__36;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:34:7: ( '===' )
- // InternalEntities.g:34:9: '==='
- {
- match("===");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__36"
-
- // $ANTLR start "T__37"
- public final void mT__37() throws RecognitionException {
- try {
- int _type = T__37;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:35:7: ( '!==' )
- // InternalEntities.g:35:9: '!=='
- {
- match("!==");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__37"
-
- // $ANTLR start "T__38"
- public final void mT__38() throws RecognitionException {
- try {
- int _type = T__38;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:36:7: ( 'instanceof' )
- // InternalEntities.g:36:9: 'instanceof'
- {
- match("instanceof");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__38"
-
- // $ANTLR start "T__39"
- public final void mT__39() throws RecognitionException {
- try {
- int _type = T__39;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:37:7: ( '->' )
- // InternalEntities.g:37:9: '->'
- {
- match("->");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__39"
-
- // $ANTLR start "T__40"
- public final void mT__40() throws RecognitionException {
- try {
- int _type = T__40;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:38:7: ( '..<' )
- // InternalEntities.g:38:9: '..<'
- {
- match("..<");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__40"
-
- // $ANTLR start "T__41"
- public final void mT__41() throws RecognitionException {
- try {
- int _type = T__41;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:39:7: ( '..' )
- // InternalEntities.g:39:9: '..'
- {
- match("..");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__41"
-
- // $ANTLR start "T__42"
- public final void mT__42() throws RecognitionException {
- try {
- int _type = T__42;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:40:7: ( '=>' )
- // InternalEntities.g:40:9: '=>'
- {
- match("=>");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__42"
-
- // $ANTLR start "T__43"
- public final void mT__43() throws RecognitionException {
- try {
- int _type = T__43;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:41:7: ( '<>' )
- // InternalEntities.g:41:9: '<>'
- {
- match("<>");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__43"
-
- // $ANTLR start "T__44"
- public final void mT__44() throws RecognitionException {
- try {
- int _type = T__44;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:42:7: ( '?:' )
- // InternalEntities.g:42:9: '?:'
- {
- match("?:");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__44"
-
- // $ANTLR start "T__45"
- public final void mT__45() throws RecognitionException {
- try {
- int _type = T__45;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:43:7: ( '+' )
- // InternalEntities.g:43:9: '+'
- {
- match('+');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__45"
-
- // $ANTLR start "T__46"
- public final void mT__46() throws RecognitionException {
- try {
- int _type = T__46;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:44:7: ( '-' )
- // InternalEntities.g:44:9: '-'
- {
- match('-');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__46"
-
- // $ANTLR start "T__47"
- public final void mT__47() throws RecognitionException {
- try {
- int _type = T__47;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:45:7: ( '*' )
- // InternalEntities.g:45:9: '*'
- {
- match('*');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__47"
-
- // $ANTLR start "T__48"
- public final void mT__48() throws RecognitionException {
- try {
- int _type = T__48;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:46:7: ( '**' )
- // InternalEntities.g:46:9: '**'
- {
- match("**");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__48"
-
- // $ANTLR start "T__49"
- public final void mT__49() throws RecognitionException {
- try {
- int _type = T__49;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:47:7: ( '/' )
- // InternalEntities.g:47:9: '/'
- {
- match('/');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__49"
-
- // $ANTLR start "T__50"
- public final void mT__50() throws RecognitionException {
- try {
- int _type = T__50;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:48:7: ( '%' )
- // InternalEntities.g:48:9: '%'
- {
- match('%');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__50"
-
- // $ANTLR start "T__51"
- public final void mT__51() throws RecognitionException {
- try {
- int _type = T__51;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:49:7: ( '!' )
- // InternalEntities.g:49:9: '!'
- {
- match('!');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__51"
-
- // $ANTLR start "T__52"
- public final void mT__52() throws RecognitionException {
- try {
- int _type = T__52;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:50:7: ( 'as' )
- // InternalEntities.g:50:9: 'as'
- {
- match("as");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__52"
-
- // $ANTLR start "T__53"
- public final void mT__53() throws RecognitionException {
- try {
- int _type = T__53;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:51:7: ( '++' )
- // InternalEntities.g:51:9: '++'
- {
- match("++");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__53"
-
- // $ANTLR start "T__54"
- public final void mT__54() throws RecognitionException {
- try {
- int _type = T__54;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:52:7: ( '--' )
- // InternalEntities.g:52:9: '--'
- {
- match("--");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__54"
-
- // $ANTLR start "T__55"
- public final void mT__55() throws RecognitionException {
- try {
- int _type = T__55;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:53:7: ( '.' )
- // InternalEntities.g:53:9: '.'
- {
- match('.');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__55"
-
- // $ANTLR start "T__56"
- public final void mT__56() throws RecognitionException {
- try {
- int _type = T__56;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:54:7: ( '::' )
- // InternalEntities.g:54:9: '::'
- {
- match("::");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__56"
-
- // $ANTLR start "T__57"
- public final void mT__57() throws RecognitionException {
- try {
- int _type = T__57;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:55:7: ( '?.' )
- // InternalEntities.g:55:9: '?.'
- {
- match("?.");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__57"
-
- // $ANTLR start "T__58"
- public final void mT__58() throws RecognitionException {
- try {
- int _type = T__58;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:56:7: ( '#' )
- // InternalEntities.g:56:9: '#'
- {
- match('#');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__58"
-
- // $ANTLR start "T__59"
- public final void mT__59() throws RecognitionException {
- try {
- int _type = T__59;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:57:7: ( '[' )
- // InternalEntities.g:57:9: '['
- {
- match('[');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__59"
-
- // $ANTLR start "T__60"
- public final void mT__60() throws RecognitionException {
- try {
- int _type = T__60;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:58:7: ( ']' )
- // InternalEntities.g:58:9: ']'
- {
- match(']');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__60"
-
- // $ANTLR start "T__61"
- public final void mT__61() throws RecognitionException {
- try {
- int _type = T__61;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:59:7: ( '|' )
- // InternalEntities.g:59:9: '|'
- {
- match('|');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__61"
-
- // $ANTLR start "T__62"
- public final void mT__62() throws RecognitionException {
- try {
- int _type = T__62;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:60:7: ( ';' )
- // InternalEntities.g:60:9: ';'
- {
- match(';');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__62"
-
- // $ANTLR start "T__63"
- public final void mT__63() throws RecognitionException {
- try {
- int _type = T__63;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:61:7: ( 'if' )
- // InternalEntities.g:61:9: 'if'
- {
- match("if");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__63"
-
- // $ANTLR start "T__64"
- public final void mT__64() throws RecognitionException {
- try {
- int _type = T__64;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:62:7: ( 'else' )
- // InternalEntities.g:62:9: 'else'
- {
- match("else");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__64"
-
- // $ANTLR start "T__65"
- public final void mT__65() throws RecognitionException {
- try {
- int _type = T__65;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:63:7: ( 'switch' )
- // InternalEntities.g:63:9: 'switch'
- {
- match("switch");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__65"
-
- // $ANTLR start "T__66"
- public final void mT__66() throws RecognitionException {
- try {
- int _type = T__66;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:64:7: ( 'default' )
- // InternalEntities.g:64:9: 'default'
- {
- match("default");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__66"
-
- // $ANTLR start "T__67"
- public final void mT__67() throws RecognitionException {
- try {
- int _type = T__67;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:65:7: ( 'case' )
- // InternalEntities.g:65:9: 'case'
- {
- match("case");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__67"
-
- // $ANTLR start "T__68"
- public final void mT__68() throws RecognitionException {
- try {
- int _type = T__68;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:66:7: ( 'for' )
- // InternalEntities.g:66:9: 'for'
- {
- match("for");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__68"
-
- // $ANTLR start "T__69"
- public final void mT__69() throws RecognitionException {
- try {
- int _type = T__69;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:67:7: ( 'while' )
- // InternalEntities.g:67:9: 'while'
- {
- match("while");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__69"
-
- // $ANTLR start "T__70"
- public final void mT__70() throws RecognitionException {
- try {
- int _type = T__70;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:68:7: ( 'do' )
- // InternalEntities.g:68:9: 'do'
- {
- match("do");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__70"
-
- // $ANTLR start "T__71"
- public final void mT__71() throws RecognitionException {
- try {
- int _type = T__71;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:69:7: ( 'var' )
- // InternalEntities.g:69:9: 'var'
- {
- match("var");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__71"
-
- // $ANTLR start "T__72"
- public final void mT__72() throws RecognitionException {
- try {
- int _type = T__72;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:70:7: ( 'val' )
- // InternalEntities.g:70:9: 'val'
- {
- match("val");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__72"
-
- // $ANTLR start "T__73"
- public final void mT__73() throws RecognitionException {
- try {
- int _type = T__73;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:71:7: ( 'static' )
- // InternalEntities.g:71:9: 'static'
- {
- match("static");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__73"
-
- // $ANTLR start "T__74"
- public final void mT__74() throws RecognitionException {
- try {
- int _type = T__74;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:72:7: ( 'import' )
- // InternalEntities.g:72:9: 'import'
- {
- match("import");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__74"
-
- // $ANTLR start "T__75"
- public final void mT__75() throws RecognitionException {
- try {
- int _type = T__75;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:73:7: ( 'extension' )
- // InternalEntities.g:73:9: 'extension'
- {
- match("extension");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__75"
-
- // $ANTLR start "T__76"
- public final void mT__76() throws RecognitionException {
- try {
- int _type = T__76;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:74:7: ( 'super' )
- // InternalEntities.g:74:9: 'super'
- {
- match("super");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__76"
-
- // $ANTLR start "T__77"
- public final void mT__77() throws RecognitionException {
- try {
- int _type = T__77;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:75:7: ( 'new' )
- // InternalEntities.g:75:9: 'new'
- {
- match("new");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__77"
-
- // $ANTLR start "T__78"
- public final void mT__78() throws RecognitionException {
- try {
- int _type = T__78;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:76:7: ( 'false' )
- // InternalEntities.g:76:9: 'false'
- {
- match("false");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__78"
-
- // $ANTLR start "T__79"
- public final void mT__79() throws RecognitionException {
- try {
- int _type = T__79;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:77:7: ( 'true' )
- // InternalEntities.g:77:9: 'true'
- {
- match("true");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__79"
-
- // $ANTLR start "T__80"
- public final void mT__80() throws RecognitionException {
- try {
- int _type = T__80;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:78:7: ( 'null' )
- // InternalEntities.g:78:9: 'null'
- {
- match("null");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__80"
-
- // $ANTLR start "T__81"
- public final void mT__81() throws RecognitionException {
- try {
- int _type = T__81;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:79:7: ( 'typeof' )
- // InternalEntities.g:79:9: 'typeof'
- {
- match("typeof");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__81"
-
- // $ANTLR start "T__82"
- public final void mT__82() throws RecognitionException {
- try {
- int _type = T__82;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:80:7: ( 'throw' )
- // InternalEntities.g:80:9: 'throw'
- {
- match("throw");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__82"
-
- // $ANTLR start "T__83"
- public final void mT__83() throws RecognitionException {
- try {
- int _type = T__83;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:81:7: ( 'return' )
- // InternalEntities.g:81:9: 'return'
- {
- match("return");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__83"
-
- // $ANTLR start "T__84"
- public final void mT__84() throws RecognitionException {
- try {
- int _type = T__84;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:82:7: ( 'try' )
- // InternalEntities.g:82:9: 'try'
- {
- match("try");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__84"
-
- // $ANTLR start "T__85"
- public final void mT__85() throws RecognitionException {
- try {
- int _type = T__85;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:83:7: ( 'finally' )
- // InternalEntities.g:83:9: 'finally'
- {
- match("finally");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__85"
-
- // $ANTLR start "T__86"
- public final void mT__86() throws RecognitionException {
- try {
- int _type = T__86;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:84:7: ( 'synchronized' )
- // InternalEntities.g:84:9: 'synchronized'
- {
- match("synchronized");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__86"
-
- // $ANTLR start "T__87"
- public final void mT__87() throws RecognitionException {
- try {
- int _type = T__87;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:85:7: ( 'catch' )
- // InternalEntities.g:85:9: 'catch'
- {
- match("catch");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__87"
-
- // $ANTLR start "T__88"
- public final void mT__88() throws RecognitionException {
- try {
- int _type = T__88;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:86:7: ( '?' )
- // InternalEntities.g:86:9: '?'
- {
- match('?');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__88"
-
- // $ANTLR start "T__89"
- public final void mT__89() throws RecognitionException {
- try {
- int _type = T__89;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:87:7: ( '&' )
- // InternalEntities.g:87:9: '&'
- {
- match('&');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__89"
-
- // $ANTLR start "RULE_HEX"
- public final void mRULE_HEX() throws RecognitionException {
- try {
- int _type = RULE_HEX;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:6879:10: ( ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' | '_' )+ ( '#' ( ( 'b' | 'B' ) ( 'i' | 'I' ) | ( 'l' | 'L' ) ) )? )
- // InternalEntities.g:6879:12: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' | '_' )+ ( '#' ( ( 'b' | 'B' ) ( 'i' | 'I' ) | ( 'l' | 'L' ) ) )?
- {
- // InternalEntities.g:6879:12: ( '0x' | '0X' )
- int alt1=2;
- int LA1_0 = input.LA(1);
-
- if ( (LA1_0=='0') ) {
- int LA1_1 = input.LA(2);
-
- if ( (LA1_1=='x') ) {
- alt1=1;
- }
- else if ( (LA1_1=='X') ) {
- alt1=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 1, 1, input);
-
- throw nvae;
- }
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 1, 0, input);
-
- throw nvae;
- }
- switch (alt1) {
- case 1 :
- // InternalEntities.g:6879:13: '0x'
- {
- match("0x");
-
-
- }
- break;
- case 2 :
- // InternalEntities.g:6879:18: '0X'
- {
- match("0X");
-
-
- }
- break;
-
- }
-
- // InternalEntities.g:6879:24: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' | '_' )+
- int cnt2=0;
- loop2:
- do {
- int alt2=2;
- int LA2_0 = input.LA(1);
-
- if ( ((LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='F')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='f')) ) {
- alt2=1;
- }
-
-
- switch (alt2) {
- case 1 :
- // InternalEntities.g:
- {
- if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='f') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
-
- default :
- if ( cnt2 >= 1 ) break loop2;
- EarlyExitException eee =
- new EarlyExitException(2, input);
- throw eee;
- }
- cnt2++;
- } while (true);
-
- // InternalEntities.g:6879:58: ( '#' ( ( 'b' | 'B' ) ( 'i' | 'I' ) | ( 'l' | 'L' ) ) )?
- int alt4=2;
- int LA4_0 = input.LA(1);
-
- if ( (LA4_0=='#') ) {
- alt4=1;
- }
- switch (alt4) {
- case 1 :
- // InternalEntities.g:6879:59: '#' ( ( 'b' | 'B' ) ( 'i' | 'I' ) | ( 'l' | 'L' ) )
- {
- match('#');
- // InternalEntities.g:6879:63: ( ( 'b' | 'B' ) ( 'i' | 'I' ) | ( 'l' | 'L' ) )
- int alt3=2;
- int LA3_0 = input.LA(1);
-
- if ( (LA3_0=='B'||LA3_0=='b') ) {
- alt3=1;
- }
- else if ( (LA3_0=='L'||LA3_0=='l') ) {
- alt3=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 3, 0, input);
-
- throw nvae;
- }
- switch (alt3) {
- case 1 :
- // InternalEntities.g:6879:64: ( 'b' | 'B' ) ( 'i' | 'I' )
- {
- if ( input.LA(1)=='B'||input.LA(1)=='b' ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
- if ( input.LA(1)=='I'||input.LA(1)=='i' ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
- case 2 :
- // InternalEntities.g:6879:84: ( 'l' | 'L' )
- {
- if ( input.LA(1)=='L'||input.LA(1)=='l' ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_HEX"
-
- // $ANTLR start "RULE_INT"
- public final void mRULE_INT() throws RecognitionException {
- try {
- int _type = RULE_INT;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:6881:10: ( '0' .. '9' ( '0' .. '9' | '_' )* )
- // InternalEntities.g:6881:12: '0' .. '9' ( '0' .. '9' | '_' )*
- {
- matchRange('0','9');
- // InternalEntities.g:6881:21: ( '0' .. '9' | '_' )*
- loop5:
- do {
- int alt5=2;
- int LA5_0 = input.LA(1);
-
- if ( ((LA5_0>='0' && LA5_0<='9')||LA5_0=='_') ) {
- alt5=1;
- }
-
-
- switch (alt5) {
- case 1 :
- // InternalEntities.g:
- {
- if ( (input.LA(1)>='0' && input.LA(1)<='9')||input.LA(1)=='_' ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
-
- default :
- break loop5;
- }
- } while (true);
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_INT"
-
- // $ANTLR start "RULE_DECIMAL"
- public final void mRULE_DECIMAL() throws RecognitionException {
- try {
- int _type = RULE_DECIMAL;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:6883:14: ( RULE_INT ( ( 'e' | 'E' ) ( '+' | '-' )? RULE_INT )? ( ( 'b' | 'B' ) ( 'i' | 'I' | 'd' | 'D' ) | ( 'l' | 'L' | 'd' | 'D' | 'f' | 'F' ) )? )
- // InternalEntities.g:6883:16: RULE_INT ( ( 'e' | 'E' ) ( '+' | '-' )? RULE_INT )? ( ( 'b' | 'B' ) ( 'i' | 'I' | 'd' | 'D' ) | ( 'l' | 'L' | 'd' | 'D' | 'f' | 'F' ) )?
- {
- mRULE_INT();
- // InternalEntities.g:6883:25: ( ( 'e' | 'E' ) ( '+' | '-' )? RULE_INT )?
- int alt7=2;
- int LA7_0 = input.LA(1);
-
- if ( (LA7_0=='E'||LA7_0=='e') ) {
- alt7=1;
- }
- switch (alt7) {
- case 1 :
- // InternalEntities.g:6883:26: ( 'e' | 'E' ) ( '+' | '-' )? RULE_INT
- {
- if ( input.LA(1)=='E'||input.LA(1)=='e' ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
- // InternalEntities.g:6883:36: ( '+' | '-' )?
- int alt6=2;
- int LA6_0 = input.LA(1);
-
- if ( (LA6_0=='+'||LA6_0=='-') ) {
- alt6=1;
- }
- switch (alt6) {
- case 1 :
- // InternalEntities.g:
- {
- if ( input.LA(1)=='+'||input.LA(1)=='-' ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
-
- }
-
- mRULE_INT();
-
- }
- break;
-
- }
-
- // InternalEntities.g:6883:58: ( ( 'b' | 'B' ) ( 'i' | 'I' | 'd' | 'D' ) | ( 'l' | 'L' | 'd' | 'D' | 'f' | 'F' ) )?
- int alt8=3;
- int LA8_0 = input.LA(1);
-
- if ( (LA8_0=='B'||LA8_0=='b') ) {
- alt8=1;
- }
- else if ( (LA8_0=='D'||LA8_0=='F'||LA8_0=='L'||LA8_0=='d'||LA8_0=='f'||LA8_0=='l') ) {
- alt8=2;
- }
- switch (alt8) {
- case 1 :
- // InternalEntities.g:6883:59: ( 'b' | 'B' ) ( 'i' | 'I' | 'd' | 'D' )
- {
- if ( input.LA(1)=='B'||input.LA(1)=='b' ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
- if ( input.LA(1)=='D'||input.LA(1)=='I'||input.LA(1)=='d'||input.LA(1)=='i' ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
- case 2 :
- // InternalEntities.g:6883:87: ( 'l' | 'L' | 'd' | 'D' | 'f' | 'F' )
- {
- if ( input.LA(1)=='D'||input.LA(1)=='F'||input.LA(1)=='L'||input.LA(1)=='d'||input.LA(1)=='f'||input.LA(1)=='l' ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
-
- }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_DECIMAL"
-
- // $ANTLR start "RULE_ID"
- public final void mRULE_ID() throws RecognitionException {
- try {
- int _type = RULE_ID;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:6885:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )* )
- // InternalEntities.g:6885:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )*
- {
- // InternalEntities.g:6885:11: ( '^' )?
- int alt9=2;
- int LA9_0 = input.LA(1);
-
- if ( (LA9_0=='^') ) {
- alt9=1;
- }
- switch (alt9) {
- case 1 :
- // InternalEntities.g:6885:11: '^'
- {
- match('^');
-
- }
- break;
-
- }
-
- if ( input.LA(1)=='$'||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
- // InternalEntities.g:6885:44: ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )*
- loop10:
- do {
- int alt10=2;
- int LA10_0 = input.LA(1);
-
- if ( (LA10_0=='$'||(LA10_0>='0' && LA10_0<='9')||(LA10_0>='A' && LA10_0<='Z')||LA10_0=='_'||(LA10_0>='a' && LA10_0<='z')) ) {
- alt10=1;
- }
-
-
- switch (alt10) {
- case 1 :
- // InternalEntities.g:
- {
- if ( input.LA(1)=='$'||(input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
-
- default :
- break loop10;
- }
- } while (true);
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_ID"
-
- // $ANTLR start "RULE_STRING"
- public final void mRULE_STRING() throws RecognitionException {
- try {
- int _type = RULE_STRING;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:6887:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )? | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )? ) )
- // InternalEntities.g:6887:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )? | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )? )
- {
- // InternalEntities.g:6887:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )? | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )? )
- int alt15=2;
- int LA15_0 = input.LA(1);
-
- if ( (LA15_0=='\"') ) {
- alt15=1;
- }
- else if ( (LA15_0=='\'') ) {
- alt15=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 15, 0, input);
-
- throw nvae;
- }
- switch (alt15) {
- case 1 :
- // InternalEntities.g:6887:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )?
- {
- match('\"');
- // InternalEntities.g:6887:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )*
- loop11:
- do {
- int alt11=3;
- int LA11_0 = input.LA(1);
-
- if ( (LA11_0=='\\') ) {
- alt11=1;
- }
- else if ( ((LA11_0>='\u0000' && LA11_0<='!')||(LA11_0>='#' && LA11_0<='[')||(LA11_0>=']' && LA11_0<='\uFFFF')) ) {
- alt11=2;
- }
-
-
- switch (alt11) {
- case 1 :
- // InternalEntities.g:6887:21: '\\\\' .
- {
- match('\\');
- matchAny();
-
- }
- break;
- case 2 :
- // InternalEntities.g:6887:28: ~ ( ( '\\\\' | '\"' ) )
- {
- if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
-
- default :
- break loop11;
- }
- } while (true);
-
- // InternalEntities.g:6887:44: ( '\"' )?
- int alt12=2;
- int LA12_0 = input.LA(1);
-
- if ( (LA12_0=='\"') ) {
- alt12=1;
- }
- switch (alt12) {
- case 1 :
- // InternalEntities.g:6887:44: '\"'
- {
- match('\"');
-
- }
- break;
-
- }
-
-
- }
- break;
- case 2 :
- // InternalEntities.g:6887:49: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )?
- {
- match('\'');
- // InternalEntities.g:6887:54: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )*
- loop13:
- do {
- int alt13=3;
- int LA13_0 = input.LA(1);
-
- if ( (LA13_0=='\\') ) {
- alt13=1;
- }
- else if ( ((LA13_0>='\u0000' && LA13_0<='&')||(LA13_0>='(' && LA13_0<='[')||(LA13_0>=']' && LA13_0<='\uFFFF')) ) {
- alt13=2;
- }
-
-
- switch (alt13) {
- case 1 :
- // InternalEntities.g:6887:55: '\\\\' .
- {
- match('\\');
- matchAny();
-
- }
- break;
- case 2 :
- // InternalEntities.g:6887:62: ~ ( ( '\\\\' | '\\'' ) )
- {
- if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
-
- default :
- break loop13;
- }
- } while (true);
-
- // InternalEntities.g:6887:79: ( '\\'' )?
- int alt14=2;
- int LA14_0 = input.LA(1);
-
- if ( (LA14_0=='\'') ) {
- alt14=1;
- }
- switch (alt14) {
- case 1 :
- // InternalEntities.g:6887:79: '\\''
- {
- match('\'');
-
- }
- break;
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_STRING"
-
- // $ANTLR start "RULE_ML_COMMENT"
- public final void mRULE_ML_COMMENT() throws RecognitionException {
- try {
- int _type = RULE_ML_COMMENT;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:6889:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
- // InternalEntities.g:6889:19: '/*' ( options {greedy=false; } : . )* '*/'
- {
- match("/*");
-
- // InternalEntities.g:6889:24: ( options {greedy=false; } : . )*
- loop16:
- do {
- int alt16=2;
- int LA16_0 = input.LA(1);
-
- if ( (LA16_0=='*') ) {
- int LA16_1 = input.LA(2);
-
- if ( (LA16_1=='/') ) {
- alt16=2;
- }
- else if ( ((LA16_1>='\u0000' && LA16_1<='.')||(LA16_1>='0' && LA16_1<='\uFFFF')) ) {
- alt16=1;
- }
-
-
- }
- else if ( ((LA16_0>='\u0000' && LA16_0<=')')||(LA16_0>='+' && LA16_0<='\uFFFF')) ) {
- alt16=1;
- }
-
-
- switch (alt16) {
- case 1 :
- // InternalEntities.g:6889:52: .
- {
- matchAny();
-
- }
- break;
-
- default :
- break loop16;
- }
- } while (true);
-
- match("*/");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_ML_COMMENT"
-
- // $ANTLR start "RULE_SL_COMMENT"
- public final void mRULE_SL_COMMENT() throws RecognitionException {
- try {
- int _type = RULE_SL_COMMENT;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:6891:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
- // InternalEntities.g:6891:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
- {
- match("//");
-
- // InternalEntities.g:6891:24: (~ ( ( '\\n' | '\\r' ) ) )*
- loop17:
- do {
- int alt17=2;
- int LA17_0 = input.LA(1);
-
- if ( ((LA17_0>='\u0000' && LA17_0<='\t')||(LA17_0>='\u000B' && LA17_0<='\f')||(LA17_0>='\u000E' && LA17_0<='\uFFFF')) ) {
- alt17=1;
- }
-
-
- switch (alt17) {
- case 1 :
- // InternalEntities.g:6891:24: ~ ( ( '\\n' | '\\r' ) )
- {
- if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
-
- default :
- break loop17;
- }
- } while (true);
-
- // InternalEntities.g:6891:40: ( ( '\\r' )? '\\n' )?
- int alt19=2;
- int LA19_0 = input.LA(1);
-
- if ( (LA19_0=='\n'||LA19_0=='\r') ) {
- alt19=1;
- }
- switch (alt19) {
- case 1 :
- // InternalEntities.g:6891:41: ( '\\r' )? '\\n'
- {
- // InternalEntities.g:6891:41: ( '\\r' )?
- int alt18=2;
- int LA18_0 = input.LA(1);
-
- if ( (LA18_0=='\r') ) {
- alt18=1;
- }
- switch (alt18) {
- case 1 :
- // InternalEntities.g:6891:41: '\\r'
- {
- match('\r');
-
- }
- break;
-
- }
-
- match('\n');
-
- }
- break;
-
- }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_SL_COMMENT"
-
- // $ANTLR start "RULE_WS"
- public final void mRULE_WS() throws RecognitionException {
- try {
- int _type = RULE_WS;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:6893:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
- // InternalEntities.g:6893:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
- {
- // InternalEntities.g:6893:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
- int cnt20=0;
- loop20:
- do {
- int alt20=2;
- int LA20_0 = input.LA(1);
-
- if ( ((LA20_0>='\t' && LA20_0<='\n')||LA20_0=='\r'||LA20_0==' ') ) {
- alt20=1;
- }
-
-
- switch (alt20) {
- case 1 :
- // InternalEntities.g:
- {
- if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
-
- default :
- if ( cnt20 >= 1 ) break loop20;
- EarlyExitException eee =
- new EarlyExitException(20, input);
- throw eee;
- }
- cnt20++;
- } while (true);
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_WS"
-
- // $ANTLR start "RULE_ANY_OTHER"
- public final void mRULE_ANY_OTHER() throws RecognitionException {
- try {
- int _type = RULE_ANY_OTHER;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalEntities.g:6895:16: ( . )
- // InternalEntities.g:6895:18: .
- {
- matchAny();
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_ANY_OTHER"
-
- public void mTokens() throws RecognitionException {
- // InternalEntities.g:1:8: ( T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | T__45 | T__46 | T__47 | T__48 | T__49 | T__50 | T__51 | T__52 | T__53 | T__54 | T__55 | T__56 | T__57 | T__58 | T__59 | T__60 | T__61 | T__62 | T__63 | T__64 | T__65 | T__66 | T__67 | T__68 | T__69 | T__70 | T__71 | T__72 | T__73 | T__74 | T__75 | T__76 | T__77 | T__78 | T__79 | T__80 | T__81 | T__82 | T__83 | T__84 | T__85 | T__86 | T__87 | T__88 | T__89 | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER )
- int alt21=86;
- alt21 = dfa21.predict(input);
- switch (alt21) {
- case 1 :
- // InternalEntities.g:1:10: T__13
- {
- mT__13();
-
- }
- break;
- case 2 :
- // InternalEntities.g:1:16: T__14
- {
- mT__14();
-
- }
- break;
- case 3 :
- // InternalEntities.g:1:22: T__15
- {
- mT__15();
-
- }
- break;
- case 4 :
- // InternalEntities.g:1:28: T__16
- {
- mT__16();
-
- }
- break;
- case 5 :
- // InternalEntities.g:1:34: T__17
- {
- mT__17();
-
- }
- break;
- case 6 :
- // InternalEntities.g:1:40: T__18
- {
- mT__18();
-
- }
- break;
- case 7 :
- // InternalEntities.g:1:46: T__19
- {
- mT__19();
-
- }
- break;
- case 8 :
- // InternalEntities.g:1:52: T__20
- {
- mT__20();
-
- }
- break;
- case 9 :
- // InternalEntities.g:1:58: T__21
- {
- mT__21();
-
- }
- break;
- case 10 :
- // InternalEntities.g:1:64: T__22
- {
- mT__22();
-
- }
- break;
- case 11 :
- // InternalEntities.g:1:70: T__23
- {
- mT__23();
-
- }
- break;
- case 12 :
- // InternalEntities.g:1:76: T__24
- {
- mT__24();
-
- }
- break;
- case 13 :
- // InternalEntities.g:1:82: T__25
- {
- mT__25();
-
- }
- break;
- case 14 :
- // InternalEntities.g:1:88: T__26
- {
- mT__26();
-
- }
- break;
- case 15 :
- // InternalEntities.g:1:94: T__27
- {
- mT__27();
-
- }
- break;
- case 16 :
- // InternalEntities.g:1:100: T__28
- {
- mT__28();
-
- }
- break;
- case 17 :
- // InternalEntities.g:1:106: T__29
- {
- mT__29();
-
- }
- break;
- case 18 :
- // InternalEntities.g:1:112: T__30
- {
- mT__30();
-
- }
- break;
- case 19 :
- // InternalEntities.g:1:118: T__31
- {
- mT__31();
-
- }
- break;
- case 20 :
- // InternalEntities.g:1:124: T__32
- {
- mT__32();
-
- }
- break;
- case 21 :
- // InternalEntities.g:1:130: T__33
- {
- mT__33();
-
- }
- break;
- case 22 :
- // InternalEntities.g:1:136: T__34
- {
- mT__34();
-
- }
- break;
- case 23 :
- // InternalEntities.g:1:142: T__35
- {
- mT__35();
-
- }
- break;
- case 24 :
- // InternalEntities.g:1:148: T__36
- {
- mT__36();
-
- }
- break;
- case 25 :
- // InternalEntities.g:1:154: T__37
- {
- mT__37();
-
- }
- break;
- case 26 :
- // InternalEntities.g:1:160: T__38
- {
- mT__38();
-
- }
- break;
- case 27 :
- // InternalEntities.g:1:166: T__39
- {
- mT__39();
-
- }
- break;
- case 28 :
- // InternalEntities.g:1:172: T__40
- {
- mT__40();
-
- }
- break;
- case 29 :
- // InternalEntities.g:1:178: T__41
- {
- mT__41();
-
- }
- break;
- case 30 :
- // InternalEntities.g:1:184: T__42
- {
- mT__42();
-
- }
- break;
- case 31 :
- // InternalEntities.g:1:190: T__43
- {
- mT__43();
-
- }
- break;
- case 32 :
- // InternalEntities.g:1:196: T__44
- {
- mT__44();
-
- }
- break;
- case 33 :
- // InternalEntities.g:1:202: T__45
- {
- mT__45();
-
- }
- break;
- case 34 :
- // InternalEntities.g:1:208: T__46
- {
- mT__46();
-
- }
- break;
- case 35 :
- // InternalEntities.g:1:214: T__47
- {
- mT__47();
-
- }
- break;
- case 36 :
- // InternalEntities.g:1:220: T__48
- {
- mT__48();
-
- }
- break;
- case 37 :
- // InternalEntities.g:1:226: T__49
- {
- mT__49();
-
- }
- break;
- case 38 :
- // InternalEntities.g:1:232: T__50
- {
- mT__50();
-
- }
- break;
- case 39 :
- // InternalEntities.g:1:238: T__51
- {
- mT__51();
-
- }
- break;
- case 40 :
- // InternalEntities.g:1:244: T__52
- {
- mT__52();
-
- }
- break;
- case 41 :
- // InternalEntities.g:1:250: T__53
- {
- mT__53();
-
- }
- break;
- case 42 :
- // InternalEntities.g:1:256: T__54
- {
- mT__54();
-
- }
- break;
- case 43 :
- // InternalEntities.g:1:262: T__55
- {
- mT__55();
-
- }
- break;
- case 44 :
- // InternalEntities.g:1:268: T__56
- {
- mT__56();
-
- }
- break;
- case 45 :
- // InternalEntities.g:1:274: T__57
- {
- mT__57();
-
- }
- break;
- case 46 :
- // InternalEntities.g:1:280: T__58
- {
- mT__58();
-
- }
- break;
- case 47 :
- // InternalEntities.g:1:286: T__59
- {
- mT__59();
-
- }
- break;
- case 48 :
- // InternalEntities.g:1:292: T__60
- {
- mT__60();
-
- }
- break;
- case 49 :
- // InternalEntities.g:1:298: T__61
- {
- mT__61();
-
- }
- break;
- case 50 :
- // InternalEntities.g:1:304: T__62
- {
- mT__62();
-
- }
- break;
- case 51 :
- // InternalEntities.g:1:310: T__63
- {
- mT__63();
-
- }
- break;
- case 52 :
- // InternalEntities.g:1:316: T__64
- {
- mT__64();
-
- }
- break;
- case 53 :
- // InternalEntities.g:1:322: T__65
- {
- mT__65();
-
- }
- break;
- case 54 :
- // InternalEntities.g:1:328: T__66
- {
- mT__66();
-
- }
- break;
- case 55 :
- // InternalEntities.g:1:334: T__67
- {
- mT__67();
-
- }
- break;
- case 56 :
- // InternalEntities.g:1:340: T__68
- {
- mT__68();
-
- }
- break;
- case 57 :
- // InternalEntities.g:1:346: T__69
- {
- mT__69();
-
- }
- break;
- case 58 :
- // InternalEntities.g:1:352: T__70
- {
- mT__70();
-
- }
- break;
- case 59 :
- // InternalEntities.g:1:358: T__71
- {
- mT__71();
-
- }
- break;
- case 60 :
- // InternalEntities.g:1:364: T__72
- {
- mT__72();
-
- }
- break;
- case 61 :
- // InternalEntities.g:1:370: T__73
- {
- mT__73();
-
- }
- break;
- case 62 :
- // InternalEntities.g:1:376: T__74
- {
- mT__74();
-
- }
- break;
- case 63 :
- // InternalEntities.g:1:382: T__75
- {
- mT__75();
-
- }
- break;
- case 64 :
- // InternalEntities.g:1:388: T__76
- {
- mT__76();
-
- }
- break;
- case 65 :
- // InternalEntities.g:1:394: T__77
- {
- mT__77();
-
- }
- break;
- case 66 :
- // InternalEntities.g:1:400: T__78
- {
- mT__78();
-
- }
- break;
- case 67 :
- // InternalEntities.g:1:406: T__79
- {
- mT__79();
-
- }
- break;
- case 68 :
- // InternalEntities.g:1:412: T__80
- {
- mT__80();
-
- }
- break;
- case 69 :
- // InternalEntities.g:1:418: T__81
- {
- mT__81();
-
- }
- break;
- case 70 :
- // InternalEntities.g:1:424: T__82
- {
- mT__82();
-
- }
- break;
- case 71 :
- // InternalEntities.g:1:430: T__83
- {
- mT__83();
-
- }
- break;
- case 72 :
- // InternalEntities.g:1:436: T__84
- {
- mT__84();
-
- }
- break;
- case 73 :
- // InternalEntities.g:1:442: T__85
- {
- mT__85();
-
- }
- break;
- case 74 :
- // InternalEntities.g:1:448: T__86
- {
- mT__86();
-
- }
- break;
- case 75 :
- // InternalEntities.g:1:454: T__87
- {
- mT__87();
-
- }
- break;
- case 76 :
- // InternalEntities.g:1:460: T__88
- {
- mT__88();
-
- }
- break;
- case 77 :
- // InternalEntities.g:1:466: T__89
- {
- mT__89();
-
- }
- break;
- case 78 :
- // InternalEntities.g:1:472: RULE_HEX
- {
- mRULE_HEX();
-
- }
- break;
- case 79 :
- // InternalEntities.g:1:481: RULE_INT
- {
- mRULE_INT();
-
- }
- break;
- case 80 :
- // InternalEntities.g:1:490: RULE_DECIMAL
- {
- mRULE_DECIMAL();
-
- }
- break;
- case 81 :
- // InternalEntities.g:1:503: RULE_ID
- {
- mRULE_ID();
-
- }
- break;
- case 82 :
- // InternalEntities.g:1:511: RULE_STRING
- {
- mRULE_STRING();
-
- }
- break;
- case 83 :
- // InternalEntities.g:1:523: RULE_ML_COMMENT
- {
- mRULE_ML_COMMENT();
-
- }
- break;
- case 84 :
- // InternalEntities.g:1:539: RULE_SL_COMMENT
- {
- mRULE_SL_COMMENT();
-
- }
- break;
- case 85 :
- // InternalEntities.g:1:555: RULE_WS
- {
- mRULE_WS();
-
- }
- break;
- case 86 :
- // InternalEntities.g:1:563: RULE_ANY_OTHER
- {
- mRULE_ANY_OTHER();
-
- }
- break;
-
- }
-
- }
-
-
- protected DFA21 dfa21 = new DFA21(this);
- static final String DFA21_eotS =
- "\1\uffff\1\57\2\uffff\1\57\1\66\1\57\3\uffff\1\75\1\100\1\104\1\107\1\113\1\115\1\117\1\121\1\123\1\125\1\127\1\57\1\134\1\137\1\57\4\uffff\11\57\2\171\1\55\5\uffff\1\57\3\uffff\3\57\2\uffff\1\u0081\3\uffff\1\u0083\32\uffff\1\u0085\1\uffff\1\57\1\u0087\1\57\1\u008a\4\uffff\1\u008b\4\uffff\5\57\1\u0091\14\57\1\uffff\1\171\4\uffff\4\57\5\uffff\1\57\1\uffff\1\57\3\uffff\5\57\1\uffff\2\57\1\u00ae\3\57\1\u00b2\1\u00b3\1\u00b4\2\57\1\u00b7\6\57\1\u00be\7\57\1\u00c6\1\57\1\uffff\3\57\3\uffff\1\u00cb\1\u00cc\1\uffff\6\57\1\uffff\4\57\1\u00d8\2\57\1\uffff\1\u00db\1\u00dc\1\57\1\u00de\2\uffff\1\57\1\u00e0\2\57\1\u00e3\3\57\1\u00e7\1\u00e8\1\u00e9\1\uffff\2\57\2\uffff\1\57\1\uffff\1\u00ed\1\uffff\1\u00ee\1\u00ef\1\uffff\1\u00f0\2\57\3\uffff\1\57\1\u00f4\1\u00f5\4\uffff\3\57\2\uffff\1\u00f9\2\57\1\uffff\1\u00fc\1\57\1\uffff\1\57\1\u00ff\1\uffff";
- static final String DFA21_eofS =
- "\u0100\uffff";
- static final String DFA21_minS =
- "\1\0\1\141\2\uffff\1\154\1\72\1\160\3\uffff\1\75\1\53\1\55\2\52\1\75\1\76\1\75\1\174\1\46\1\75\1\146\2\56\1\163\4\uffff\1\164\1\145\2\141\1\150\1\141\1\145\1\150\1\145\2\60\1\44\5\uffff\1\143\3\uffff\2\164\1\163\2\uffff\1\44\3\uffff\1\75\32\uffff\1\75\1\uffff\1\163\1\44\1\160\1\74\4\uffff\1\44\4\uffff\1\151\1\141\1\160\1\156\1\146\1\44\1\163\1\162\1\154\1\156\1\151\1\154\1\167\1\154\1\165\1\160\1\162\1\164\1\uffff\1\60\4\uffff\1\153\1\151\2\145\5\uffff\1\164\1\uffff\1\157\3\uffff\2\164\1\145\1\143\1\141\1\uffff\1\145\1\143\1\44\1\163\1\141\1\154\3\44\1\154\1\145\1\44\1\145\1\157\1\165\1\141\1\164\1\156\1\44\1\141\1\162\1\143\1\151\1\162\1\150\1\165\1\44\1\150\1\uffff\1\145\1\154\1\145\3\uffff\2\44\1\uffff\1\157\1\167\1\162\1\147\1\171\1\144\1\uffff\1\156\1\164\1\150\1\143\1\44\1\162\1\154\1\uffff\2\44\1\154\1\44\2\uffff\1\146\1\44\1\156\1\145\1\44\1\163\1\151\1\143\3\44\1\uffff\1\157\1\164\2\uffff\1\171\1\uffff\1\44\1\uffff\2\44\1\uffff\1\44\1\157\1\145\3\uffff\1\156\2\44\4\uffff\1\156\1\157\1\151\2\uffff\1\44\1\146\1\172\1\uffff\1\44\1\145\1\uffff\1\144\1\44\1\uffff";
- static final String DFA21_maxS =
- "\1\uffff\1\141\2\uffff\1\170\1\72\1\160\3\uffff\1\76\1\75\1\76\3\75\1\76\1\75\1\174\1\46\1\75\1\156\1\56\1\72\1\163\4\uffff\1\171\1\157\1\141\1\157\1\150\1\141\1\165\1\171\1\145\1\170\1\154\1\172\5\uffff\1\143\3\uffff\2\164\1\163\2\uffff\1\172\3\uffff\1\75\32\uffff\1\75\1\uffff\1\163\1\172\1\160\1\74\4\uffff\1\172\4\uffff\1\151\1\141\1\160\1\156\1\146\1\172\1\164\1\162\1\154\1\156\1\151\1\162\1\167\1\154\1\171\1\160\1\162\1\164\1\uffff\1\154\4\uffff\1\153\1\151\2\145\5\uffff\1\164\1\uffff\1\157\3\uffff\2\164\1\145\1\143\1\141\1\uffff\1\145\1\143\1\172\1\163\1\141\1\154\3\172\1\154\1\145\1\172\1\145\1\157\1\165\1\141\1\164\1\156\1\172\1\141\1\162\1\143\1\151\1\162\1\150\1\165\1\172\1\150\1\uffff\1\145\1\154\1\145\3\uffff\2\172\1\uffff\1\157\1\167\1\162\1\147\1\171\1\163\1\uffff\1\156\1\164\1\150\1\143\1\172\1\162\1\154\1\uffff\2\172\1\154\1\172\2\uffff\1\146\1\172\1\156\1\145\1\172\1\163\1\151\1\143\3\172\1\uffff\1\157\1\164\2\uffff\1\171\1\uffff\1\172\1\uffff\2\172\1\uffff\1\172\1\157\1\145\3\uffff\1\156\2\172\4\uffff\1\156\1\157\1\151\2\uffff\1\172\1\146\1\172\1\uffff\1\172\1\145\1\uffff\1\144\1\172\1\uffff";
- static final String DFA21_acceptS =
- "\2\uffff\1\2\1\3\3\uffff\1\10\1\11\1\12\17\uffff\1\56\1\57\1\60\1\62\14\uffff\1\121\2\122\1\125\1\126\1\uffff\1\121\1\2\1\3\3\uffff\1\54\1\6\1\uffff\1\10\1\11\1\12\1\uffff\1\36\1\13\1\14\1\51\1\41\1\15\1\33\1\52\1\42\1\16\1\44\1\43\1\17\1\123\1\124\1\45\1\20\1\46\1\37\1\21\1\23\1\22\1\24\1\61\1\25\1\115\1\uffff\1\47\4\uffff\1\53\1\40\1\55\1\114\1\uffff\1\56\1\57\1\60\1\62\22\uffff\1\116\1\uffff\1\117\1\120\1\122\1\125\4\uffff\1\7\1\30\1\26\1\31\1\27\1\uffff\1\63\1\uffff\1\34\1\35\1\50\5\uffff\1\72\34\uffff\1\70\3\uffff\1\73\1\74\1\101\2\uffff\1\110\6\uffff\1\64\7\uffff\1\67\4\uffff\1\104\1\103\13\uffff\1\100\2\uffff\1\113\1\102\1\uffff\1\71\1\uffff\1\106\2\uffff\1\4\3\uffff\1\76\1\65\1\75\3\uffff\1\105\1\107\1\1\1\5\3\uffff\1\66\1\111\3\uffff\1\77\2\uffff\1\32\2\uffff\1\112";
- static final String DFA21_specialS =
- "\1\0\u00ff\uffff}>";
- static final String[] DFA21_transitionS = {
- "\11\55\2\54\2\55\1\54\22\55\1\54\1\24\1\52\1\31\1\51\1\17\1\23\1\53\1\7\1\11\1\15\1\13\1\10\1\14\1\26\1\16\1\46\11\47\1\5\1\34\1\20\1\12\1\21\1\27\1\55\32\51\1\32\1\55\1\33\1\50\1\51\1\55\1\30\1\51\1\37\1\36\1\4\1\40\2\51\1\25\4\51\1\43\1\6\1\1\1\51\1\45\1\35\1\44\1\51\1\42\1\41\3\51\1\2\1\22\1\3\uff82\55",
- "\1\56",
- "",
- "",
- "\1\64\1\uffff\1\62\11\uffff\1\63",
- "\1\65",
- "\1\67",
- "",
- "",
- "",
- "\1\73\1\74",
- "\1\77\21\uffff\1\76",
- "\1\103\17\uffff\1\101\1\102",
- "\1\106\22\uffff\1\105",
- "\1\111\4\uffff\1\112\15\uffff\1\110",
- "\1\114",
- "\1\116",
- "\1\120",
- "\1\122",
- "\1\124",
- "\1\126",
- "\1\131\6\uffff\1\132\1\130",
- "\1\133",
- "\1\136\13\uffff\1\135",
- "\1\140",
- "",
- "",
- "",
- "",
- "\1\146\1\147\1\uffff\1\145\1\uffff\1\150",
- "\1\151\11\uffff\1\152",
- "\1\153",
- "\1\155\7\uffff\1\156\5\uffff\1\154",
- "\1\157",
- "\1\160",
- "\1\161\17\uffff\1\162",
- "\1\165\11\uffff\1\163\6\uffff\1\164",
- "\1\166",
- "\12\170\10\uffff\1\172\1\uffff\3\172\5\uffff\1\172\13\uffff\1\167\6\uffff\1\170\2\uffff\1\172\1\uffff\3\172\5\uffff\1\172\13\uffff\1\167",
- "\12\170\10\uffff\1\172\1\uffff\3\172\5\uffff\1\172\22\uffff\1\170\2\uffff\1\172\1\uffff\3\172\5\uffff\1\172",
- "\1\57\34\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "",
- "",
- "",
- "",
- "",
- "\1\175",
- "",
- "",
- "",
- "\1\176",
- "\1\177",
- "\1\u0080",
- "",
- "",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "",
- "",
- "",
- "\1\u0082",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "\1\u0084",
- "",
- "\1\u0086",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "\1\u0088",
- "\1\u0089",
- "",
- "",
- "",
- "",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "",
- "",
- "",
- "",
- "\1\u008c",
- "\1\u008d",
- "\1\u008e",
- "\1\u008f",
- "\1\u0090",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "\1\u0092\1\u0093",
- "\1\u0094",
- "\1\u0095",
- "\1\u0096",
- "\1\u0097",
- "\1\u0099\5\uffff\1\u0098",
- "\1\u009a",
- "\1\u009b",
- "\1\u009c\3\uffff\1\u009d",
- "\1\u009e",
- "\1\u009f",
- "\1\u00a0",
- "",
- "\12\170\10\uffff\1\172\1\uffff\3\172\5\uffff\1\172\22\uffff\1\170\2\uffff\1\172\1\uffff\3\172\5\uffff\1\172",
- "",
- "",
- "",
- "",
- "\1\u00a1",
- "\1\u00a2",
- "\1\u00a3",
- "\1\u00a4",
- "",
- "",
- "",
- "",
- "",
- "\1\u00a5",
- "",
- "\1\u00a6",
- "",
- "",
- "",
- "\1\u00a7",
- "\1\u00a8",
- "\1\u00a9",
- "\1\u00aa",
- "\1\u00ab",
- "",
- "\1\u00ac",
- "\1\u00ad",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "\1\u00af",
- "\1\u00b0",
- "\1\u00b1",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "\1\u00b5",
- "\1\u00b6",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "\1\u00b8",
- "\1\u00b9",
- "\1\u00ba",
- "\1\u00bb",
- "\1\u00bc",
- "\1\u00bd",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "\1\u00bf",
- "\1\u00c0",
- "\1\u00c1",
- "\1\u00c2",
- "\1\u00c3",
- "\1\u00c4",
- "\1\u00c5",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "\1\u00c7",
- "",
- "\1\u00c8",
- "\1\u00c9",
- "\1\u00ca",
- "",
- "",
- "",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "",
- "\1\u00cd",
- "\1\u00ce",
- "\1\u00cf",
- "\1\u00d0",
- "\1\u00d1",
- "\1\u00d2\16\uffff\1\u00d3",
- "",
- "\1\u00d4",
- "\1\u00d5",
- "\1\u00d6",
- "\1\u00d7",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "\1\u00d9",
- "\1\u00da",
- "",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "\1\u00dd",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "",
- "",
- "\1\u00df",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "\1\u00e1",
- "\1\u00e2",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "\1\u00e4",
- "\1\u00e5",
- "\1\u00e6",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "",
- "\1\u00ea",
- "\1\u00eb",
- "",
- "",
- "\1\u00ec",
- "",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "\1\u00f1",
- "\1\u00f2",
- "",
- "",
- "",
- "\1\u00f3",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "",
- "",
- "",
- "",
- "\1\u00f6",
- "\1\u00f7",
- "\1\u00f8",
- "",
- "",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "\1\u00fa",
- "\1\u00fb",
- "",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- "\1\u00fd",
- "",
- "\1\u00fe",
- "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57",
- ""
- };
-
- static final short[] DFA21_eot = DFA.unpackEncodedString(DFA21_eotS);
- static final short[] DFA21_eof = DFA.unpackEncodedString(DFA21_eofS);
- static final char[] DFA21_min = DFA.unpackEncodedStringToUnsignedChars(DFA21_minS);
- static final char[] DFA21_max = DFA.unpackEncodedStringToUnsignedChars(DFA21_maxS);
- static final short[] DFA21_accept = DFA.unpackEncodedString(DFA21_acceptS);
- static final short[] DFA21_special = DFA.unpackEncodedString(DFA21_specialS);
- static final short[][] DFA21_transition;
-
- static {
- int numStates = DFA21_transitionS.length;
- DFA21_transition = new short[numStates][];
- for (int i=0; i- * Contexts: - * Entities returns Entities - * - * Constraint: - * ((importSection=XImportSection elements+=AbstractElement+) | elements+=AbstractElement+)? - *- */ - protected void sequence_Entities(ISerializationContext context, Entities semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
- * Contexts: - * AbstractElement returns Entity - * Entity returns Entity - * - * Constraint: - * (name=ValidID superType=JvmParameterizedTypeReference? features+=Feature*) - *- */ - protected void sequence_Entity(ISerializationContext context, Entity semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
- * Contexts: - * Feature returns Operation - * Operation returns Operation - * - * Constraint: - * (name=ValidID (params+=FullJvmFormalParameter params+=FullJvmFormalParameter*)? type=JvmTypeReference? body=XBlockExpression) - *- */ - protected void sequence_Operation(ISerializationContext context, Operation semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
- * Contexts: - * AbstractElement returns PackageDeclaration - * PackageDeclaration returns PackageDeclaration - * - * Constraint: - * (name=QualifiedName elements+=AbstractElement*) - *- */ - protected void sequence_PackageDeclaration(ISerializationContext context, PackageDeclaration semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
- * Contexts: - * Feature returns Property - * Property returns Property - * - * Constraint: - * (name=ValidID type=JvmTypeReference) - *- */ - protected void sequence_Property(ISerializationContext context, Property semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, DomainmodelPackage.Literals.FEATURE__NAME) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DomainmodelPackage.Literals.FEATURE__NAME)); - if (transientValues.isValueTransient(semanticObject, DomainmodelPackage.Literals.FEATURE__TYPE) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DomainmodelPackage.Literals.FEATURE__TYPE)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getPropertyAccess().getNameValidIDParserRuleCall_0_0(), semanticObject.getName()); - feeder.accept(grammarAccess.getPropertyAccess().getTypeJvmTypeReferenceParserRuleCall_2_0(), semanticObject.getType()); - feeder.finish(); - } - - -} diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/serializer/AbstractEntitiesSyntacticSequencer.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/serializer/AbstractEntitiesSyntacticSequencer.java deleted file mode 100644 index 7064f542848..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/serializer/AbstractEntitiesSyntacticSequencer.java +++ /dev/null @@ -1,272 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities.serializer; - -import com.google.inject.Inject; -import java.util.List; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.xtext.IGrammarAccess; -import org.eclipse.xtext.RuleCall; -import org.eclipse.xtext.nodemodel.INode; -import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; -import org.eclipse.xtext.serializer.analysis.GrammarAlias.GroupAlias; -import org.eclipse.xtext.serializer.analysis.GrammarAlias.TokenAlias; -import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable; -import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; -import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer; -import org.eclipse.xtext.web.example.entities.services.EntitiesGrammarAccess; - -@SuppressWarnings("all") -public abstract class AbstractEntitiesSyntacticSequencer extends AbstractSyntacticSequencer { - - protected EntitiesGrammarAccess grammarAccess; - protected AbstractElementAlias match_XBlockExpression_SemicolonKeyword_2_1_q; - protected AbstractElementAlias match_XExpressionInClosure_SemicolonKeyword_1_1_q; - protected AbstractElementAlias match_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q; - protected AbstractElementAlias match_XImportDeclaration_SemicolonKeyword_2_q; - protected AbstractElementAlias match_XParenthesizedExpression_LeftParenthesisKeyword_0_a; - protected AbstractElementAlias match_XParenthesizedExpression_LeftParenthesisKeyword_0_p; - - @Inject - protected void init(IGrammarAccess access) { - grammarAccess = (EntitiesGrammarAccess) access; - match_XBlockExpression_SemicolonKeyword_2_1_q = new TokenAlias(false, true, grammarAccess.getXBlockExpressionAccess().getSemicolonKeyword_2_1()); - match_XExpressionInClosure_SemicolonKeyword_1_1_q = new TokenAlias(false, true, grammarAccess.getXExpressionInClosureAccess().getSemicolonKeyword_1_1()); - match_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0()), new TokenAlias(false, false, grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2())); - match_XImportDeclaration_SemicolonKeyword_2_q = new TokenAlias(false, true, grammarAccess.getXImportDeclarationAccess().getSemicolonKeyword_2()); - match_XParenthesizedExpression_LeftParenthesisKeyword_0_a = new TokenAlias(true, true, grammarAccess.getXParenthesizedExpressionAccess().getLeftParenthesisKeyword_0()); - match_XParenthesizedExpression_LeftParenthesisKeyword_0_p = new TokenAlias(true, false, grammarAccess.getXParenthesizedExpressionAccess().getLeftParenthesisKeyword_0()); - } - - @Override - protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) { - if (ruleCall.getRule() == grammarAccess.getArrayBracketsRule()) - return getArrayBracketsToken(semanticObject, ruleCall, node); - else if (ruleCall.getRule() == grammarAccess.getOpSingleAssignRule()) - return getOpSingleAssignToken(semanticObject, ruleCall, node); - return ""; - } - - /** - * ArrayBrackets : - * '[' ']' - * ; - */ - protected String getArrayBracketsToken(EObject semanticObject, RuleCall ruleCall, INode node) { - if (node != null) - return getTokenText(node); - return "[ ]"; - } - - /** - * OpSingleAssign: - * '=' - * ; - */ - protected String getOpSingleAssignToken(EObject semanticObject, RuleCall ruleCall, INode node) { - if (node != null) - return getTokenText(node); - return "="; - } - - @Override - protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) { - if (transition.getAmbiguousSyntaxes().isEmpty()) return; - List
- * Ambiguous syntax: - * ';'? - * - * This ambiguous syntax occurs at: - * expressions+=XExpressionOrVarDeclaration (ambiguity) '}' ')' (rule end) - * expressions+=XExpressionOrVarDeclaration (ambiguity) '}' (rule end) - * expressions+=XExpressionOrVarDeclaration (ambiguity) expressions+=XExpressionOrVarDeclaration - - *- */ - protected void emit_XBlockExpression_SemicolonKeyword_2_1_q(EObject semanticObject, ISynNavigable transition, List
- * Ambiguous syntax: - * ';'? - * - * This ambiguous syntax occurs at: - * expressions+=XExpressionOrVarDeclaration (ambiguity) (rule end) - * expressions+=XExpressionOrVarDeclaration (ambiguity) expressions+=XExpressionOrVarDeclaration - - *- */ - protected void emit_XExpressionInClosure_SemicolonKeyword_1_1_q(EObject semanticObject, ISynNavigable transition, List
- * Ambiguous syntax:
- * ('(' ')')?
- *
- * This ambiguous syntax occurs at:
- * (rule start) (ambiguity) '=>' returnType=JvmTypeReference
-
- *
- */
- protected void emit_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q(EObject semanticObject, ISynNavigable transition, List- * Ambiguous syntax: - * ';'? - * - * This ambiguous syntax occurs at: - * importedNamespace=QualifiedNameWithWildcard (ambiguity) (rule end) - * importedType=[JvmDeclaredType|QualifiedName] (ambiguity) (rule end) - * memberName=ValidID (ambiguity) (rule end) - * wildcard?='*' (ambiguity) (rule end) - - *- */ - protected void emit_XImportDeclaration_SemicolonKeyword_2_q(EObject semanticObject, ISynNavigable transition, List
- * Ambiguous syntax:
- * '('*
- *
- * This ambiguous syntax occurs at:
- * (rule start) (ambiguity) '#' '[' ']' (rule start)
- * (rule start) (ambiguity) '#' '[' elements+=XExpression
- * (rule start) (ambiguity) '#' '{' '}' (rule start)
- * (rule start) (ambiguity) '#' '{' elements+=XExpression
- * (rule start) (ambiguity) '<' typeArguments+=JvmArgumentTypeReference
- * (rule start) (ambiguity) '[' declaredFormalParameters+=JvmFormalParameter
- * (rule start) (ambiguity) '[' explicitSyntax?='|'
- * (rule start) (ambiguity) '[' expression=XExpressionInClosure
- * (rule start) (ambiguity) 'do' body=XExpression
- * (rule start) (ambiguity) 'false' (rule start)
- * (rule start) (ambiguity) 'for' '(' ';' ';' ')' eachExpression=XExpression
- * (rule start) (ambiguity) 'for' '(' ';' ';' updateExpressions+=XExpression
- * (rule start) (ambiguity) 'for' '(' ';' expression=XExpression
- * (rule start) (ambiguity) 'for' '(' declaredParam=JvmFormalParameter
- * (rule start) (ambiguity) 'for' '(' initExpressions+=XExpressionOrVarDeclaration
- * (rule start) (ambiguity) 'if' '(' if=XExpression
- * (rule start) (ambiguity) 'new' constructor=[JvmConstructor|QualifiedName]
- * (rule start) (ambiguity) 'null' (rule start)
- * (rule start) (ambiguity) 'return' (rule start)
- * (rule start) (ambiguity) 'return' expression=XExpression
- * (rule start) (ambiguity) 'switch' '(' declaredParam=JvmFormalParameter
- * (rule start) (ambiguity) 'switch' declaredParam=JvmFormalParameter
- * (rule start) (ambiguity) 'switch' switch=XExpression
- * (rule start) (ambiguity) 'synchronized' '(' param=XExpression
- * (rule start) (ambiguity) 'throw' expression=XExpression
- * (rule start) (ambiguity) 'try' expression=XExpression
- * (rule start) (ambiguity) 'typeof' '(' type=[JvmType|QualifiedName]
- * (rule start) (ambiguity) 'while' '(' predicate=XExpression
- * (rule start) (ambiguity) '{' '}' (rule start)
- * (rule start) (ambiguity) '{' expressions+=XExpressionOrVarDeclaration
- * (rule start) (ambiguity) feature=[JvmIdentifiableElement|FeatureCallID]
- * (rule start) (ambiguity) feature=[JvmIdentifiableElement|IdOrSuper]
- * (rule start) (ambiguity) feature=[JvmIdentifiableElement|OpUnary]
- * (rule start) (ambiguity) isTrue?='true'
- * (rule start) (ambiguity) value=Number
- * (rule start) (ambiguity) value=STRING
- * (rule start) (ambiguity) {XAssignment.assignable=}
- * (rule start) (ambiguity) {XBinaryOperation.leftOperand=}
- * (rule start) (ambiguity) {XCastedExpression.target=}
- * (rule start) (ambiguity) {XInstanceOfExpression.expression=}
- * (rule start) (ambiguity) {XMemberFeatureCall.memberCallTarget=}
- * (rule start) (ambiguity) {XPostfixOperation.operand=}
-
- *
- */
- protected void emit_XParenthesizedExpression_LeftParenthesisKeyword_0_a(EObject semanticObject, ISynNavigable transition, List
- * Ambiguous syntax:
- * '('+
- *
- * This ambiguous syntax occurs at:
- * (rule start) (ambiguity) '#' '[' ']' ')' (rule start)
- * (rule start) (ambiguity) '#' '[' elements+=XExpression
- * (rule start) (ambiguity) '#' '{' '}' ')' (rule start)
- * (rule start) (ambiguity) '#' '{' elements+=XExpression
- * (rule start) (ambiguity) '<' typeArguments+=JvmArgumentTypeReference
- * (rule start) (ambiguity) '[' declaredFormalParameters+=JvmFormalParameter
- * (rule start) (ambiguity) '[' explicitSyntax?='|'
- * (rule start) (ambiguity) '[' expression=XExpressionInClosure
- * (rule start) (ambiguity) 'do' body=XExpression
- * (rule start) (ambiguity) 'false' ')' (rule start)
- * (rule start) (ambiguity) 'for' '(' ';' ';' ')' eachExpression=XExpression
- * (rule start) (ambiguity) 'for' '(' ';' ';' updateExpressions+=XExpression
- * (rule start) (ambiguity) 'for' '(' ';' expression=XExpression
- * (rule start) (ambiguity) 'for' '(' declaredParam=JvmFormalParameter
- * (rule start) (ambiguity) 'for' '(' initExpressions+=XExpressionOrVarDeclaration
- * (rule start) (ambiguity) 'if' '(' if=XExpression
- * (rule start) (ambiguity) 'new' constructor=[JvmConstructor|QualifiedName]
- * (rule start) (ambiguity) 'null' ')' (rule start)
- * (rule start) (ambiguity) 'return' ')' (rule start)
- * (rule start) (ambiguity) 'return' expression=XExpression
- * (rule start) (ambiguity) 'switch' '(' declaredParam=JvmFormalParameter
- * (rule start) (ambiguity) 'switch' declaredParam=JvmFormalParameter
- * (rule start) (ambiguity) 'switch' switch=XExpression
- * (rule start) (ambiguity) 'synchronized' '(' param=XExpression
- * (rule start) (ambiguity) 'throw' expression=XExpression
- * (rule start) (ambiguity) 'try' expression=XExpression
- * (rule start) (ambiguity) 'typeof' '(' type=[JvmType|QualifiedName]
- * (rule start) (ambiguity) 'while' '(' predicate=XExpression
- * (rule start) (ambiguity) '{' '}' ')' (rule start)
- * (rule start) (ambiguity) '{' expressions+=XExpressionOrVarDeclaration
- * (rule start) (ambiguity) feature=[JvmIdentifiableElement|FeatureCallID]
- * (rule start) (ambiguity) feature=[JvmIdentifiableElement|IdOrSuper]
- * (rule start) (ambiguity) feature=[JvmIdentifiableElement|OpUnary]
- * (rule start) (ambiguity) isTrue?='true'
- * (rule start) (ambiguity) value=Number
- * (rule start) (ambiguity) value=STRING
- * (rule start) (ambiguity) {XAssignment.assignable=}
- * (rule start) (ambiguity) {XBinaryOperation.leftOperand=}
- * (rule start) (ambiguity) {XCastedExpression.target=}
- * (rule start) (ambiguity) {XInstanceOfExpression.expression=}
- * (rule start) (ambiguity) {XMemberFeatureCall.memberCallTarget=}
- * (rule start) (ambiguity) {XPostfixOperation.operand=}
-
- *
- */
- protected void emit_XParenthesizedExpression_LeftParenthesisKeyword_0_p(EObject semanticObject, ISynNavigable transition, List-/* - * A simple State Machine example. - */ -input signal x -input signal y -output signal z - -state State1 - set z = false - if x == true goto State2 -end - -state State2 - if x == false and y == true goto State1 -end
-/* - * A first State Machine resource. - */ -input signal x -input signal y - -state State1 - set z = false - if x == true goto State2 -end
-/* - * A second State Machine resource. - */ -output signal z - -state State2 - if x == false and y == true goto State1 -end
-/* - * A simple State Machine example. - */ -input signal x -input signal y -output signal z - -state State1 - set z = false - if x == true goto State2 -end - -state State2 - if x == false and y == true goto State1 -end
-/* - * A simple State Machine example. - */ -input signal x -input signal y -output signal z - -state State1 - set z = false - if x == true goto State2 -end - -state State2 - if x == false and y == true goto State1 -end
-/* - * A first State Machine resource. - */ -input signal x -input signal y - -state State1 - set z = false - if x == true goto State2 -end
-/* - * A second State Machine resource. - */ -output signal z - -state State2 - if x == false and y == true goto State1 -end
-/* - * A simple State Machine example. - */ -input signal x -input signal y -output signal z - -state State1 - set z = false - if x == true goto State2 -end - -state State2 - if x == false and y == true goto State1 -end
-import java.util.List
-
-/*
- * A simple Entities example.
- */
-package test {
-
- // This is my self-made entity
- entity MyEntity {
- myProperty : List<String>
- op myOperation() : String {
- myProperty.head
- }
- }
-
- entity Container {
- entities : List<MyEntity>
- op findMatching(String param) : MyEntity {
- entities.findFirst[myOperation == param]
- }
- }
-
-}-/* - * A simple State Machine example. - */ -input signal x -input signal y -output signal z - -state State1 - set z = false - if x == true goto State2 -end - -state State2 - if x == false and y == true goto State1 -end
-/* - * A first State Machine resource. - */ -input signal x -input signal y - -state State1 - set z = false - if x == true goto State2 -end
-/* - * A second State Machine resource. - */ -output signal z - -state State2 - if x == false and y == true goto State1 -end
-/* - * A simple State Machine example. - */ -input signal x -input signal y -output signal z - -state State1 - set z = false - if x == true goto State2 -end - -state State2 - if x == false and y == true goto State1 -end
- * Contexts: - * Command returns Command - * - * Constraint: - * (signal=[Signal|ID] newValue=BOOLEAN) - *- */ - protected void sequence_Command(ISerializationContext context, Command semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.COMMAND__SIGNAL) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.COMMAND__SIGNAL)); - if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.COMMAND__NEW_VALUE) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.COMMAND__NEW_VALUE)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getCommandAccess().getSignalSignalIDTerminalRuleCall_1_0_1(), semanticObject.eGet(StatemachinePackage.Literals.COMMAND__SIGNAL, false)); - feeder.accept(grammarAccess.getCommandAccess().getNewValueBOOLEANTerminalRuleCall_3_0(), semanticObject.isNewValue()); - feeder.finish(); - } - - - /** - *
- * Contexts: - * Condition returns Condition - * - * Constraint: - * (events+=Event events+=Event*) - *- */ - protected void sequence_Condition(ISerializationContext context, Condition semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
- * Contexts: - * Event returns Event - * - * Constraint: - * (signal=[Signal|ID] value=BOOLEAN) - *- */ - protected void sequence_Event(ISerializationContext context, Event semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.EVENT__SIGNAL) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.EVENT__SIGNAL)); - if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.EVENT__VALUE) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.EVENT__VALUE)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getEventAccess().getSignalSignalIDTerminalRuleCall_0_0_1(), semanticObject.eGet(StatemachinePackage.Literals.EVENT__SIGNAL, false)); - feeder.accept(grammarAccess.getEventAccess().getValueBOOLEANTerminalRuleCall_2_0(), semanticObject.isValue()); - feeder.finish(); - } - - - /** - *
- * Contexts:
- * InputSignal returns InputSignal
- *
- * Constraint:
- * {InputSignal}
- *
- */
- protected void sequence_InputSignal(ISerializationContext context, InputSignal semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * - * Contexts: - * Signal returns InputSignal - * - * Constraint: - * name=ID - *- */ - protected void sequence_InputSignal_Signal(ISerializationContext context, InputSignal semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.SIGNAL__NAME) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.SIGNAL__NAME)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getSignalAccess().getNameIDTerminalRuleCall_2_0(), semanticObject.getName()); - feeder.finish(); - } - - - /** - *
- * Contexts:
- * OutputSignal returns OutputSignal
- *
- * Constraint:
- * {OutputSignal}
- *
- */
- protected void sequence_OutputSignal(ISerializationContext context, OutputSignal semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * - * Contexts: - * Signal returns OutputSignal - * - * Constraint: - * name=ID - *- */ - protected void sequence_OutputSignal_Signal(ISerializationContext context, OutputSignal semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.SIGNAL__NAME) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.SIGNAL__NAME)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getSignalAccess().getNameIDTerminalRuleCall_2_0(), semanticObject.getName()); - feeder.finish(); - } - - - /** - *
- * Contexts: - * State returns State - * - * Constraint: - * (name=ID commands+=Command* transitions+=Transition* nestedStates+=State*) - *- */ - protected void sequence_State(ISerializationContext context, State semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
- * Contexts: - * Statemachine returns Statemachine - * - * Constraint: - * (signals+=Signal* states+=State*) - *- */ - protected void sequence_Statemachine(ISerializationContext context, Statemachine semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
- * Contexts: - * Transition returns Transition - * - * Constraint: - * (condition=Condition state=[State|QualifiedName]) - *- */ - protected void sequence_Transition(ISerializationContext context, Transition semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.TRANSITION__CONDITION) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.TRANSITION__CONDITION)); - if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.TRANSITION__STATE) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.TRANSITION__STATE)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getTransitionAccess().getConditionConditionParserRuleCall_1_0(), semanticObject.getCondition()); - feeder.accept(grammarAccess.getTransitionAccess().getStateStateQualifiedNameParserRuleCall_3_0_1(), semanticObject.eGet(StatemachinePackage.Literals.TRANSITION__STATE, false)); - feeder.finish(); - } - - -} diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/serializer/StatemachineSyntacticSequencer.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/serializer/StatemachineSyntacticSequencer.java deleted file mode 100644 index ee93a13c464..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/serializer/StatemachineSyntacticSequencer.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.statemachine.serializer; - -import com.google.inject.Inject; -import java.util.List; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.xtext.IGrammarAccess; -import org.eclipse.xtext.RuleCall; -import org.eclipse.xtext.nodemodel.INode; -import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; -import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; -import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer; -import org.eclipse.xtext.web.example.statemachine.services.StatemachineGrammarAccess; - -@SuppressWarnings("all") -public class StatemachineSyntacticSequencer extends AbstractSyntacticSequencer { - - protected StatemachineGrammarAccess grammarAccess; - - @Inject - protected void init(IGrammarAccess access) { - grammarAccess = (StatemachineGrammarAccess) access; - } - - @Override - protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) { - return ""; - } - - - @Override - protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) { - if (transition.getAmbiguousSyntaxes().isEmpty()) return; - List
- * The following features are supported: - *
- *- * The following features are supported: - *
- *- * The following features are supported: - *
- *- * The following features are supported: - *
- *- * The following features are supported: - *
- *- * The following features are supported: - *
- *- * The following features are supported: - *
- *- * The following features are implemented: - *
- *- * The following features are implemented: - *
- *- * The following features are implemented: - *
- *- * The following features are implemented: - *
- *- * The following features are implemented: - *
- *- * The following features are implemented: - *
- *Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#eNS_URI - * @see #init() - * @generated - */ - private StatemachinePackageImpl() - { - super(eNS_URI, StatemachineFactory.eINSTANCE); - } - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *
This method is used to initialize {@link StatemachinePackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static StatemachinePackage init() - { - if (isInited) return (StatemachinePackage)EPackage.Registry.INSTANCE.getEPackage(StatemachinePackage.eNS_URI); - - // Obtain or create and register package - Object registeredStatemachinePackage = EPackage.Registry.INSTANCE.get(eNS_URI); - StatemachinePackageImpl theStatemachinePackage = registeredStatemachinePackage instanceof StatemachinePackageImpl ? (StatemachinePackageImpl)registeredStatemachinePackage : new StatemachinePackageImpl(); - - isInited = true; - - // Create package meta-data objects - theStatemachinePackage.createPackageContents(); - - // Initialize created meta-data - theStatemachinePackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theStatemachinePackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(StatemachinePackage.eNS_URI, theStatemachinePackage); - return theStatemachinePackage; - } - - /** - * - * - * @generated - */ - @Override - public EClass getStatemachine() - { - return statemachineEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getStatemachine_Signals() - { - return (EReference)statemachineEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getStatemachine_States() - { - return (EReference)statemachineEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getSignal() - { - return signalEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getSignal_Name() - { - return (EAttribute)signalEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getInputSignal() - { - return inputSignalEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getOutputSignal() - { - return outputSignalEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getState() - { - return stateEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getState_Name() - { - return (EAttribute)stateEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getState_Commands() - { - return (EReference)stateEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EReference getState_Transitions() - { - return (EReference)stateEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - @Override - public EReference getState_NestedStates() - { - return (EReference)stateEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - @Override - public EClass getTransition() - { - return transitionEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getTransition_Condition() - { - return (EReference)transitionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getTransition_State() - { - return (EReference)transitionEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getCondition() - { - return conditionEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getCondition_Events() - { - return (EReference)conditionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getEvent() - { - return eventEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getEvent_Signal() - { - return (EReference)eventEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getEvent_Value() - { - return (EAttribute)eventEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getCommand() - { - return commandEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getCommand_Signal() - { - return (EReference)commandEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getCommand_NewValue() - { - return (EAttribute)commandEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public StatemachineFactory getStatemachineFactory() - { - return (StatemachineFactory)getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void createPackageContents() - { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - statemachineEClass = createEClass(STATEMACHINE); - createEReference(statemachineEClass, STATEMACHINE__SIGNALS); - createEReference(statemachineEClass, STATEMACHINE__STATES); - - signalEClass = createEClass(SIGNAL); - createEAttribute(signalEClass, SIGNAL__NAME); - - inputSignalEClass = createEClass(INPUT_SIGNAL); - - outputSignalEClass = createEClass(OUTPUT_SIGNAL); - - stateEClass = createEClass(STATE); - createEAttribute(stateEClass, STATE__NAME); - createEReference(stateEClass, STATE__COMMANDS); - createEReference(stateEClass, STATE__TRANSITIONS); - createEReference(stateEClass, STATE__NESTED_STATES); - - transitionEClass = createEClass(TRANSITION); - createEReference(transitionEClass, TRANSITION__CONDITION); - createEReference(transitionEClass, TRANSITION__STATE); - - conditionEClass = createEClass(CONDITION); - createEReference(conditionEClass, CONDITION__EVENTS); - - eventEClass = createEClass(EVENT); - createEReference(eventEClass, EVENT__SIGNAL); - createEAttribute(eventEClass, EVENT__VALUE); - - commandEClass = createEClass(COMMAND); - createEReference(commandEClass, COMMAND__SIGNAL); - createEAttribute(commandEClass, COMMAND__NEW_VALUE); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void initializePackageContents() - { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - inputSignalEClass.getESuperTypes().add(this.getSignal()); - outputSignalEClass.getESuperTypes().add(this.getSignal()); - - // Initialize classes and features; add operations and parameters - initEClass(statemachineEClass, Statemachine.class, "Statemachine", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getStatemachine_Signals(), this.getSignal(), null, "signals", null, 0, -1, Statemachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getStatemachine_States(), this.getState(), null, "states", null, 0, -1, Statemachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(signalEClass, Signal.class, "Signal", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getSignal_Name(), ecorePackage.getEString(), "name", null, 0, 1, Signal.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(inputSignalEClass, InputSignal.class, "InputSignal", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(outputSignalEClass, OutputSignal.class, "OutputSignal", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(stateEClass, State.class, "State", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getState_Name(), ecorePackage.getEString(), "name", null, 0, 1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getState_Commands(), this.getCommand(), null, "commands", null, 0, -1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getState_Transitions(), this.getTransition(), null, "transitions", null, 0, -1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getState_NestedStates(), this.getState(), null, "nestedStates", null, 0, -1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(transitionEClass, Transition.class, "Transition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getTransition_Condition(), this.getCondition(), null, "condition", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getTransition_State(), this.getState(), null, "state", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(conditionEClass, Condition.class, "Condition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getCondition_Events(), this.getEvent(), null, "events", null, 0, -1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(eventEClass, Event.class, "Event", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getEvent_Signal(), this.getSignal(), null, "signal", null, 0, 1, Event.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getEvent_Value(), ecorePackage.getEBoolean(), "value", null, 0, 1, Event.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(commandEClass, Command.class, "Command", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getCommand_Signal(), this.getSignal(), null, "signal", null, 0, 1, Command.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getCommand_NewValue(), ecorePackage.getEBoolean(), "newValue", null, 0, 1, Command.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Create resource - createResource(eNS_URI); - } - -} //StatemachinePackageImpl diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/TransitionImpl.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/TransitionImpl.java deleted file mode 100644 index cc0ed81f1f3..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/TransitionImpl.java +++ /dev/null @@ -1,270 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -import org.eclipse.xtext.web.example.statemachine.statemachine.Condition; -import org.eclipse.xtext.web.example.statemachine.statemachine.State; -import org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage; -import org.eclipse.xtext.web.example.statemachine.statemachine.Transition; - -/** - * - * An implementation of the model object 'Transition'. - * - *
- * The following features are implemented: - *
- *createXXX method for each class of the model.
- *
- * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage
- * @generated
- */
-public class StatemachineAdapterFactory extends AdapterFactoryImpl
-{
- /**
- * The cached model package.
- *
- *
- * @generated
- */
- protected static StatemachinePackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- *
- *
- * @generated
- */
- public StatemachineAdapterFactory()
- {
- if (modelPackage == null)
- {
- modelPackage = StatemachinePackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- *
- * This implementation returns true if the object is either the model's package or is an instance object of the model.
- *
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object object)
- {
- if (object == modelPackage)
- {
- return true;
- }
- if (object instanceof EObject)
- {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch that delegates to the createXXX methods.
- *
- *
- * @generated
- */
- protected StatemachineSwitchtarget.
- *
- *
- * @param target the object to adapt.
- * @return the adapter for the target.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target)
- {
- return modelSwitch.doSwitch((EObject)target);
- }
-
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Statemachine Statemachine}'.
- *
- * 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 org.eclipse.xtext.web.example.statemachine.statemachine.Statemachine
- * @generated
- */
- public Adapter createStatemachineAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Signal Signal}'.
- *
- * 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 org.eclipse.xtext.web.example.statemachine.statemachine.Signal
- * @generated
- */
- public Adapter createSignalAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.InputSignal Input Signal}'.
- *
- * 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 org.eclipse.xtext.web.example.statemachine.statemachine.InputSignal
- * @generated
- */
- public Adapter createInputSignalAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.OutputSignal Output Signal}'.
- *
- * 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 org.eclipse.xtext.web.example.statemachine.statemachine.OutputSignal
- * @generated
- */
- public Adapter createOutputSignalAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.State State}'.
- *
- * 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 org.eclipse.xtext.web.example.statemachine.statemachine.State
- * @generated
- */
- public Adapter createStateAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Transition Transition}'.
- *
- * 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 org.eclipse.xtext.web.example.statemachine.statemachine.Transition
- * @generated
- */
- public Adapter createTransitionAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Condition Condition}'.
- *
- * 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 org.eclipse.xtext.web.example.statemachine.statemachine.Condition
- * @generated
- */
- public Adapter createConditionAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Event Event}'.
- *
- * 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 org.eclipse.xtext.web.example.statemachine.statemachine.Event
- * @generated
- */
- public Adapter createEventAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Command Command}'.
- *
- * 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 org.eclipse.xtext.web.example.statemachine.statemachine.Command
- * @generated
- */
- public Adapter createCommandAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case.
- *
- * This default implementation returns null.
- *
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter()
- {
- return null;
- }
-
-} //StatemachineAdapterFactory
diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/util/StatemachineSwitch.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/util/StatemachineSwitch.java
deleted file mode 100644
index baf87d9fbf3..00000000000
--- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/util/StatemachineSwitch.java
+++ /dev/null
@@ -1,311 +0,0 @@
-/**
- * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others.
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License 2.0 which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * SPDX-License-Identifier: EPL-2.0
- */
-package org.eclipse.xtext.web.example.statemachine.statemachine.util;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.util.Switch;
-
-import org.eclipse.xtext.web.example.statemachine.statemachine.*;
-
-/**
- *
- * The Switch for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
- * to invoke the caseXXX method for each class of the model,
- * starting with the actual class of the object
- * and proceeding up the inheritance hierarchy
- * until a non-null result is returned,
- * which is the result of the switch.
- *
- * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage
- * @generated
- */
-public class StatemachineSwitchcaseXXX for each class of the model until one returns a non null result; it yields that result.
- *
- *
- * @return the first non-null result returned by a caseXXX call.
- * @generated
- */
- @Override
- protected T doSwitch(int classifierID, EObject theEObject)
- {
- switch (classifierID)
- {
- case StatemachinePackage.STATEMACHINE:
- {
- Statemachine statemachine = (Statemachine)theEObject;
- T result = caseStatemachine(statemachine);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case StatemachinePackage.SIGNAL:
- {
- Signal signal = (Signal)theEObject;
- T result = caseSignal(signal);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case StatemachinePackage.INPUT_SIGNAL:
- {
- InputSignal inputSignal = (InputSignal)theEObject;
- T result = caseInputSignal(inputSignal);
- if (result == null) result = caseSignal(inputSignal);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case StatemachinePackage.OUTPUT_SIGNAL:
- {
- OutputSignal outputSignal = (OutputSignal)theEObject;
- T result = caseOutputSignal(outputSignal);
- if (result == null) result = caseSignal(outputSignal);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case StatemachinePackage.STATE:
- {
- State state = (State)theEObject;
- T result = caseState(state);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case StatemachinePackage.TRANSITION:
- {
- Transition transition = (Transition)theEObject;
- T result = caseTransition(transition);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case StatemachinePackage.CONDITION:
- {
- Condition condition = (Condition)theEObject;
- T result = caseCondition(condition);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case StatemachinePackage.EVENT:
- {
- Event event = (Event)theEObject;
- T result = caseEvent(event);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case StatemachinePackage.COMMAND:
- {
- Command command = (Command)theEObject;
- T result = caseCommand(command);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Statemachine'.
- *
- * 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 'Statemachine'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseStatemachine(Statemachine object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Signal'.
- *
- * 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 'Signal'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseSignal(Signal object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Input Signal'.
- *
- * 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 'Input Signal'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseInputSignal(InputSignal object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Output Signal'.
- *
- * 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 'Output Signal'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseOutputSignal(OutputSignal object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'State'.
- *
- * 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 'State'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseState(State object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Transition'.
- *
- * 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 'Transition'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseTransition(Transition object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Condition'.
- *
- * 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 'Condition'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCondition(Condition object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Event'.
- *
- * 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 'Event'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseEvent(Event object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'Command'.
- *
- * 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 'Command'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCommand(Command object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of 'EObject'.
- *
- * This implementation returns null;
- * returning a non-null result will terminate the switch, but this is the last case anyway.
- *
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of 'EObject'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- @Override
- public T defaultCase(EObject object)
- {
- return null;
- }
-
-} //StatemachineSwitch
diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/validation/AbstractStatemachineValidator.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/validation/AbstractStatemachineValidator.java
deleted file mode 100644
index d386fd42301..00000000000
--- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/validation/AbstractStatemachineValidator.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others.
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License 2.0 which is available at
- * http://www.eclipse.org/legal/epl-2.0.
- *
- * SPDX-License-Identifier: EPL-2.0
- *******************************************************************************/
-package org.eclipse.xtext.web.example.statemachine.validation;
-
-import java.util.ArrayList;
-import java.util.List;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.xtext.validation.AbstractDeclarativeValidator;
-import org.eclipse.xtext.validation.ComposedChecks;
-import org.eclipse.xtext.validation.NamesAreUniqueValidator;
-
-@ComposedChecks(validators = {NamesAreUniqueValidator.class})
-public abstract class AbstractStatemachineValidator extends AbstractDeclarativeValidator {
-
- @Override
- protected List
- * @WebServlet(name = "Xtext Services", urlPatterns = "/xtext-service/*")
- * class MyXtextServlet extends XtextServlet {
- * override init() {
- * super.init();
- * MyDslWebSetup.doSetup();
- * }
- * }
- *
- *
- * Use the {@code WebServlet} annotation to register your servlet. The default
- * URL pattern for Xtext services is {@code "/xtext-service/*"}.
- */
-public class XtextServlet extends HttpServlet {
-
- private static final long serialVersionUID = -6273795508296110114L;
-
- private final Logger LOG = Logger.getLogger(this.getClass());
-
- private final IResourceServiceProvider.Registry serviceProviderRegistry = IResourceServiceProvider.Registry.INSTANCE;
-
- private final Gson gson = new Gson();
-
- @Override
- protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
- try {
- super.service(req, resp);
- } catch (InvalidRequestException.ResourceNotFoundException exception) {
- LOG.trace("Invalid request (" + req.getRequestURI() + "): " + exception.getMessage());
- resp.sendError(HttpServletResponse.SC_NOT_FOUND, exception.getMessage());
- } catch (InvalidRequestException.InvalidDocumentStateException exception) {
- LOG.trace("Invalid request (" + req.getRequestURI() + "): " + exception.getMessage());
- resp.sendError(HttpServletResponse.SC_CONFLICT, exception.getMessage());
- } catch (InvalidRequestException.PermissionDeniedException exception) {
- LOG.trace("Invalid request (" + req.getRequestURI() + "): " + exception.getMessage());
- resp.sendError(HttpServletResponse.SC_FORBIDDEN, exception.getMessage());
- } catch (InvalidRequestException exception) {
- LOG.trace("Invalid request (" + req.getRequestURI() + "): " + exception.getMessage());
- resp.sendError(HttpServletResponse.SC_BAD_REQUEST, exception.getMessage());
- }
- }
-
- @Override
- protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
- XtextServiceDispatcher.ServiceDescriptor service = getService(req);
- if (!service.isHasConflict() && (service.isHasSideEffects() || hasTextInput(service))) {
- super.doGet(req, resp);
- } else {
- doService(service, resp);
- }
- }
-
- @Override
- protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
- XtextServiceDispatcher.ServiceDescriptor service = getService(req);
- String type = service.getContext().getParameter(IServiceContext.SERVICE_TYPE);
- if (!service.isHasConflict() && !Objects.equals(type, "update")) {
- super.doPut(req, resp);
- } else {
- doService(service, resp);
- }
- }
-
- @Override
- protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
- XtextServiceDispatcher.ServiceDescriptor service = getService(req);
- String type = service.getContext().getParameter(IServiceContext.SERVICE_TYPE);
- if (!service.isHasConflict()
- && (!service.isHasSideEffects() && !hasTextInput(service) || Objects.equals(type, "update"))) {
- super.doPost(req, resp);
- } else {
- doService(service, resp);
- }
- }
-
- protected boolean hasTextInput(XtextServiceDispatcher.ServiceDescriptor service) {
- SetWarning: This method may have side effects on the response sent to the client, - * such as adding a session Id.
- */ - ISession getSession(); -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/IServiceResult.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/IServiceResult.java deleted file mode 100644 index 2eb51fe3ee7..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/IServiceResult.java +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server; - -/** - * Marker interface for objects that can be converted to the Json - * format for sending service results to the client. - */ -public interface IServiceResult { -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/ISession.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/ISession.java deleted file mode 100644 index 1d3f35fba9a..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/ISession.java +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server; - -import org.eclipse.xtext.xbase.lib.Functions.Function0; - -/** - * Provides means to store information that can be accessed for subsequent requests. - * This allows to improve the server performance by avoiding duplicate computations, - * and to share resources across multiple service requests. - */ -public interface ISession { - /** - * A default implementation that stores nothing. - */ - class NullImpl implements ISession { - @Override - public- * A typical usage can look like this: - *
- * - *- * val serviceDispatcher = injector.getInstance(XtextServiceDispatcher) - * val serviceDescriptor = serviceDispatcher.getService(serviceContext) - * // Check whether the service metadata fits to the request format - * ... - * val result = serviceDescriptor.service.apply() - * // Serialize and send the result back to the client - * ... - *- */ -@Singleton -public class XtextServiceDispatcher { - - private static final Logger LOG = Logger.getLogger(XtextServiceDispatcher.class); - - /** - * Service metadata, including a function for actually invoking the service. - */ - public static class ServiceDescriptor { - /** - * Context information such as request parameters and session data. - */ - private IServiceContext context; - - /** - * The function for invoking the service. - */ - private Function0 extends IServiceResult> service; - - /** - * Whether the service has any side effects apart from initializing data in the - * session. - */ - private boolean hasSideEffects; - - /** - * Whether one of the preconditions of the service does not match, e.g. because - * it is in conflict with another request. - */ - private boolean hasConflict; - - public IServiceContext getContext() { - return context; - } - - public void setContext(IServiceContext context) { - this.context = context; - } - - public Function0 extends IServiceResult> getService() { - return service; - } - - public void setService(Function0 extends IServiceResult> service) { - this.service = service; - } - - public boolean isHasSideEffects() { - return hasSideEffects; - } - - public void setHasSideEffects(boolean hasSideEffects) { - this.hasSideEffects = hasSideEffects; - } - - public boolean isHasConflict() { - return hasConflict; - } - - public void setHasConflict(boolean hasConflict) { - this.hasConflict = hasConflict; - } - - @Override - public String toString() { - ToStringBuilder b = new ToStringBuilder(this); - b.add("context", context); - b.add("service", service); - b.add("hasSideEffects", hasSideEffects); - b.add("hasConflict", hasConflict); - return b.toString(); - } - } - - @Inject(optional = true) - @FormatterPreferences - private IPreferenceValuesProvider formatterPreferencesProvider; - - @Inject - private ResourcePersistenceService resourcePersistenceService; - - @Inject - private UpdateDocumentService updateDocumentService; - - @Inject - private ContentAssistService contentAssistService; - - @Inject - private ValidationService validationService; - - @Inject - private HighlightingService highlightingService; - - @Inject - private HoverService hoverService; - - @Inject - private OccurrencesService occurrencesService; - - @Inject - private FormattingService formattingService; - - @Inject - private GeneratorService generatorService; - - @Inject - private IServerResourceHandler resourceHandler; - - @Inject - private IWebResourceSetProvider resourceSetProvider; - - @Inject - private IWebDocumentProvider documentProvider; - - @Inject - private FileExtensionProvider fileExtensionProvider; - - @Inject - private IResourceFactory resourceFactory; - - @Inject - private OperationCanceledManager operationCanceledManager; - - @Inject - private XtextWebDocumentAccess.Factory documentAccessFactory; - - private final Random randomGenerator = new Random(); - - @Inject - protected void registerPreComputedServices(PrecomputedServiceRegistry registry) { - registry.addPrecomputedService(highlightingService); - registry.addPrecomputedService(validationService); - } - - /** - * Create a service descriptor according to the parameters given in the service - * context. - */ - public ServiceDescriptor getService(IServiceContext context) throws InvalidRequestException { - String serviceType = context.getParameter(IServiceContext.SERVICE_TYPE); - if (serviceType == null) { - throw new InvalidRequestException.InvalidParametersException("The parameter 'serviceType' is required."); - } - if (LOG.isTraceEnabled()) { - List