mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 16:28:56 +00:00
Removed some obsolete tests and their languages (#32)
This commit is contained in:
parent
cf60532d44
commit
c6f66ccf84
194 changed files with 5 additions and 52905 deletions
|
@ -1,118 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr;
|
||||
|
||||
import com.google.inject.Binder;
|
||||
import com.google.inject.Provider;
|
||||
import com.google.inject.name.Names;
|
||||
import java.util.Properties;
|
||||
import org.eclipse.xtext.Constants;
|
||||
import org.eclipse.xtext.IGrammarAccess;
|
||||
import org.eclipse.xtext.parser.IParser;
|
||||
import org.eclipse.xtext.parser.ITokenToStringConverter;
|
||||
import org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider;
|
||||
import org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter;
|
||||
import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider;
|
||||
import org.eclipse.xtext.parser.antlr.ITokenDefProvider;
|
||||
import org.eclipse.xtext.parser.antlr.Lexer;
|
||||
import org.eclipse.xtext.parser.antlr.LexerBindings;
|
||||
import org.eclipse.xtext.parser.antlr.LexerProvider;
|
||||
import org.eclipse.xtext.parsetree.reconstr.parser.antlr.HiddenTokensMergerTestLanguageAntlrTokenFileProvider;
|
||||
import org.eclipse.xtext.parsetree.reconstr.parser.antlr.HiddenTokensMergerTestLanguageParser;
|
||||
import org.eclipse.xtext.parsetree.reconstr.parser.antlr.internal.InternalHiddenTokensMergerTestLanguageLexer;
|
||||
import org.eclipse.xtext.parsetree.reconstr.serializer.HiddenTokensMergerTestLanguageSemanticSequencer;
|
||||
import org.eclipse.xtext.parsetree.reconstr.serializer.HiddenTokensMergerTestLanguageSyntacticSequencer;
|
||||
import org.eclipse.xtext.parsetree.reconstr.services.HiddenTokensMergerTestLanguageGrammarAccess;
|
||||
import org.eclipse.xtext.serializer.ISerializer;
|
||||
import org.eclipse.xtext.serializer.impl.Serializer;
|
||||
import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer;
|
||||
import org.eclipse.xtext.serializer.sequencer.ISyntacticSequencer;
|
||||
import org.eclipse.xtext.service.DefaultRuntimeModule;
|
||||
|
||||
/**
|
||||
* Manual modifications go to {@link HiddenTokensMergerTestLanguageRuntimeModule}.
|
||||
*/
|
||||
@SuppressWarnings("all")
|
||||
public abstract class AbstractHiddenTokensMergerTestLanguageRuntimeModule extends DefaultRuntimeModule {
|
||||
|
||||
protected Properties properties = null;
|
||||
|
||||
@Override
|
||||
public void configure(Binder binder) {
|
||||
properties = tryBindProperties(binder, "org/eclipse/xtext/parsetree/reconstr/HiddenTokensMergerTestLanguage.properties");
|
||||
super.configure(binder);
|
||||
}
|
||||
|
||||
public void configureLanguageName(Binder binder) {
|
||||
binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage");
|
||||
}
|
||||
|
||||
public void configureFileExtensions(Binder binder) {
|
||||
if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null)
|
||||
binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("hiddentokensmergertestlanguage");
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends IParser> bindIParser() {
|
||||
return HiddenTokensMergerTestLanguageParser.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
|
||||
return AntlrTokenToStringConverter.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
|
||||
return HiddenTokensMergerTestLanguageAntlrTokenFileProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends Lexer> bindLexer() {
|
||||
return InternalHiddenTokensMergerTestLanguageLexer.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends ITokenDefProvider> bindITokenDefProvider() {
|
||||
return AntlrTokenDefProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Provider<InternalHiddenTokensMergerTestLanguageLexer> provideInternalHiddenTokensMergerTestLanguageLexer() {
|
||||
return LexerProvider.create(InternalHiddenTokensMergerTestLanguageLexer.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public void configureRuntimeLexer(Binder binder) {
|
||||
binder.bind(Lexer.class)
|
||||
.annotatedWith(Names.named(LexerBindings.RUNTIME))
|
||||
.to(InternalHiddenTokensMergerTestLanguageLexer.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2
|
||||
public ClassLoader bindClassLoaderToInstance() {
|
||||
return getClass().getClassLoader();
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2
|
||||
public Class<? extends IGrammarAccess> bindIGrammarAccess() {
|
||||
return HiddenTokensMergerTestLanguageGrammarAccess.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2
|
||||
public Class<? extends ISemanticSequencer> bindISemanticSequencer() {
|
||||
return HiddenTokensMergerTestLanguageSemanticSequencer.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2
|
||||
public Class<? extends ISyntacticSequencer> bindISyntacticSequencer() {
|
||||
return HiddenTokensMergerTestLanguageSyntacticSequencer.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2
|
||||
public Class<? extends ISerializer> bindISerializer() {
|
||||
return Serializer.class;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,118 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr;
|
||||
|
||||
import com.google.inject.Binder;
|
||||
import com.google.inject.Provider;
|
||||
import com.google.inject.name.Names;
|
||||
import java.util.Properties;
|
||||
import org.eclipse.xtext.Constants;
|
||||
import org.eclipse.xtext.IGrammarAccess;
|
||||
import org.eclipse.xtext.parser.IParser;
|
||||
import org.eclipse.xtext.parser.ITokenToStringConverter;
|
||||
import org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider;
|
||||
import org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter;
|
||||
import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider;
|
||||
import org.eclipse.xtext.parser.antlr.ITokenDefProvider;
|
||||
import org.eclipse.xtext.parser.antlr.Lexer;
|
||||
import org.eclipse.xtext.parser.antlr.LexerBindings;
|
||||
import org.eclipse.xtext.parser.antlr.LexerProvider;
|
||||
import org.eclipse.xtext.parsetree.reconstr.parser.antlr.PartialSerializationTestLanguageAntlrTokenFileProvider;
|
||||
import org.eclipse.xtext.parsetree.reconstr.parser.antlr.PartialSerializationTestLanguageParser;
|
||||
import org.eclipse.xtext.parsetree.reconstr.parser.antlr.internal.InternalPartialSerializationTestLanguageLexer;
|
||||
import org.eclipse.xtext.parsetree.reconstr.serializer.PartialSerializationTestLanguageSemanticSequencer;
|
||||
import org.eclipse.xtext.parsetree.reconstr.serializer.PartialSerializationTestLanguageSyntacticSequencer;
|
||||
import org.eclipse.xtext.parsetree.reconstr.services.PartialSerializationTestLanguageGrammarAccess;
|
||||
import org.eclipse.xtext.serializer.ISerializer;
|
||||
import org.eclipse.xtext.serializer.impl.Serializer;
|
||||
import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer;
|
||||
import org.eclipse.xtext.serializer.sequencer.ISyntacticSequencer;
|
||||
import org.eclipse.xtext.service.DefaultRuntimeModule;
|
||||
|
||||
/**
|
||||
* Manual modifications go to {@link PartialSerializationTestLanguageRuntimeModule}.
|
||||
*/
|
||||
@SuppressWarnings("all")
|
||||
public abstract class AbstractPartialSerializationTestLanguageRuntimeModule extends DefaultRuntimeModule {
|
||||
|
||||
protected Properties properties = null;
|
||||
|
||||
@Override
|
||||
public void configure(Binder binder) {
|
||||
properties = tryBindProperties(binder, "org/eclipse/xtext/parsetree/reconstr/PartialSerializationTestLanguage.properties");
|
||||
super.configure(binder);
|
||||
}
|
||||
|
||||
public void configureLanguageName(Binder binder) {
|
||||
binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("org.eclipse.xtext.parsetree.reconstr.PartialSerializationTestLanguage");
|
||||
}
|
||||
|
||||
public void configureFileExtensions(Binder binder) {
|
||||
if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null)
|
||||
binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("partialserializationtestlanguage");
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends IParser> bindIParser() {
|
||||
return PartialSerializationTestLanguageParser.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
|
||||
return AntlrTokenToStringConverter.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
|
||||
return PartialSerializationTestLanguageAntlrTokenFileProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends Lexer> bindLexer() {
|
||||
return InternalPartialSerializationTestLanguageLexer.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends ITokenDefProvider> bindITokenDefProvider() {
|
||||
return AntlrTokenDefProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Provider<InternalPartialSerializationTestLanguageLexer> provideInternalPartialSerializationTestLanguageLexer() {
|
||||
return LexerProvider.create(InternalPartialSerializationTestLanguageLexer.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public void configureRuntimeLexer(Binder binder) {
|
||||
binder.bind(Lexer.class)
|
||||
.annotatedWith(Names.named(LexerBindings.RUNTIME))
|
||||
.to(InternalPartialSerializationTestLanguageLexer.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2
|
||||
public ClassLoader bindClassLoaderToInstance() {
|
||||
return getClass().getClassLoader();
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2
|
||||
public Class<? extends IGrammarAccess> bindIGrammarAccess() {
|
||||
return PartialSerializationTestLanguageGrammarAccess.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2
|
||||
public Class<? extends ISemanticSequencer> bindISemanticSequencer() {
|
||||
return PartialSerializationTestLanguageSemanticSequencer.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2
|
||||
public Class<? extends ISyntacticSequencer> bindISyntacticSequencer() {
|
||||
return PartialSerializationTestLanguageSyntacticSequencer.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2
|
||||
public Class<? extends ISerializer> bindISerializer() {
|
||||
return Serializer.class;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,118 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr;
|
||||
|
||||
import com.google.inject.Binder;
|
||||
import com.google.inject.Provider;
|
||||
import com.google.inject.name.Names;
|
||||
import java.util.Properties;
|
||||
import org.eclipse.xtext.Constants;
|
||||
import org.eclipse.xtext.IGrammarAccess;
|
||||
import org.eclipse.xtext.parser.IParser;
|
||||
import org.eclipse.xtext.parser.ITokenToStringConverter;
|
||||
import org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider;
|
||||
import org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter;
|
||||
import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider;
|
||||
import org.eclipse.xtext.parser.antlr.ITokenDefProvider;
|
||||
import org.eclipse.xtext.parser.antlr.Lexer;
|
||||
import org.eclipse.xtext.parser.antlr.LexerBindings;
|
||||
import org.eclipse.xtext.parser.antlr.LexerProvider;
|
||||
import org.eclipse.xtext.parsetree.reconstr.parser.antlr.SimpleReconstrTestLanguageAntlrTokenFileProvider;
|
||||
import org.eclipse.xtext.parsetree.reconstr.parser.antlr.SimpleReconstrTestLanguageParser;
|
||||
import org.eclipse.xtext.parsetree.reconstr.parser.antlr.internal.InternalSimpleReconstrTestLanguageLexer;
|
||||
import org.eclipse.xtext.parsetree.reconstr.serializer.SimpleReconstrTestLanguageSemanticSequencer;
|
||||
import org.eclipse.xtext.parsetree.reconstr.serializer.SimpleReconstrTestLanguageSyntacticSequencer;
|
||||
import org.eclipse.xtext.parsetree.reconstr.services.SimpleReconstrTestLanguageGrammarAccess;
|
||||
import org.eclipse.xtext.serializer.ISerializer;
|
||||
import org.eclipse.xtext.serializer.impl.Serializer;
|
||||
import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer;
|
||||
import org.eclipse.xtext.serializer.sequencer.ISyntacticSequencer;
|
||||
import org.eclipse.xtext.service.DefaultRuntimeModule;
|
||||
|
||||
/**
|
||||
* Manual modifications go to {@link SimpleReconstrTestLanguageRuntimeModule}.
|
||||
*/
|
||||
@SuppressWarnings("all")
|
||||
public abstract class AbstractSimpleReconstrTestLanguageRuntimeModule extends DefaultRuntimeModule {
|
||||
|
||||
protected Properties properties = null;
|
||||
|
||||
@Override
|
||||
public void configure(Binder binder) {
|
||||
properties = tryBindProperties(binder, "org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTestLanguage.properties");
|
||||
super.configure(binder);
|
||||
}
|
||||
|
||||
public void configureLanguageName(Binder binder) {
|
||||
binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("org.eclipse.xtext.parsetree.reconstr.SimpleReconstrTestLanguage");
|
||||
}
|
||||
|
||||
public void configureFileExtensions(Binder binder) {
|
||||
if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null)
|
||||
binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("simplereconstrtestlanguage");
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends IParser> bindIParser() {
|
||||
return SimpleReconstrTestLanguageParser.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
|
||||
return AntlrTokenToStringConverter.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
|
||||
return SimpleReconstrTestLanguageAntlrTokenFileProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends Lexer> bindLexer() {
|
||||
return InternalSimpleReconstrTestLanguageLexer.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends ITokenDefProvider> bindITokenDefProvider() {
|
||||
return AntlrTokenDefProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Provider<InternalSimpleReconstrTestLanguageLexer> provideInternalSimpleReconstrTestLanguageLexer() {
|
||||
return LexerProvider.create(InternalSimpleReconstrTestLanguageLexer.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public void configureRuntimeLexer(Binder binder) {
|
||||
binder.bind(Lexer.class)
|
||||
.annotatedWith(Names.named(LexerBindings.RUNTIME))
|
||||
.to(InternalSimpleReconstrTestLanguageLexer.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2
|
||||
public ClassLoader bindClassLoaderToInstance() {
|
||||
return getClass().getClassLoader();
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2
|
||||
public Class<? extends IGrammarAccess> bindIGrammarAccess() {
|
||||
return SimpleReconstrTestLanguageGrammarAccess.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2
|
||||
public Class<? extends ISemanticSequencer> bindISemanticSequencer() {
|
||||
return SimpleReconstrTestLanguageSemanticSequencer.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2
|
||||
public Class<? extends ISyntacticSequencer> bindISyntacticSequencer() {
|
||||
return SimpleReconstrTestLanguageSyntacticSequencer.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2
|
||||
public Class<? extends ISerializer> bindISerializer() {
|
||||
return Serializer.class;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,62 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="hiddentokenmergertest" nsURI="http://www.eclipse.org/2009/tmf/xtext/hiddentokensmerger"
|
||||
nsPrefix="hiddentokenmergertest">
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Model"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="DatatypeBug286557" eSuperTypes="#//Model">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="ref" eType="#//DatatypeBug286557"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EnumBug" eSuperTypes="#//Model">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="return" eType="#//EnumBugEnum"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EEnum" name="EnumBugEnum">
|
||||
<eLiterals name="array" literal="array"/>
|
||||
<eLiterals name="object" value="1" literal="object"/>
|
||||
<eLiterals name="resultSet" value="2" literal="resultSet"/>
|
||||
<eLiterals name="iterator" value="3" literal="iterator"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Commentable" eSuperTypes="#//Model">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="item" upperBound="-1" eType="#//CommentableItem"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="CommentableItem">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="ValueList" eSuperTypes="#//Model">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="ids" unique="false" upperBound="-1"
|
||||
eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="RefList" eSuperTypes="#//Model">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="objs" upperBound="-1" eType="#//RefObj"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="refs" unique="false" upperBound="-1"
|
||||
eType="#//RefObj"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="RefObj">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="SingleRef" eSuperTypes="#//Model">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="obj" eType="#//RefObj"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="ref" eType="#//RefObj"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="AppendToFileEnd" eSuperTypes="#//Model">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="items" upperBound="-1"
|
||||
eType="#//AppendToFileEndItem" containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="AppendToFileEndItem">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Action1" eSuperTypes="#//Model">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="actions2" upperBound="-1"
|
||||
eType="ecore:EClass platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EObject"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Action1Sub1"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Action1Sub2"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Action1Sub" eSuperTypes="#//Action1Sub1"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Action1SubClass" eSuperTypes="#//Action1Sub2"/>
|
||||
</ecore:EPackage>
|
|
@ -1,60 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
|
||||
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="generated by Xtext" modelDirectory="/org.eclipse.xtext.tests/src-gen"
|
||||
modelPluginID="org.eclipse.xtext.tests" forceOverwrite="true" modelName="HiddenTokensMergerTestLanguage"
|
||||
updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
|
||||
complianceLevel="6.0" copyrightFields="false" runtimeVersion="2.9" usedGenPackages="platform:/resource/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore">
|
||||
<genPackages prefix="Hiddentokenmergertest" basePackage="org.eclipse.xtext.parsetree.reconstr"
|
||||
disposableProviderFactory="true" fileExtensions="hiddentokensmergertestlanguage"
|
||||
ecorePackage="HiddenTokensMergerTestLanguage.ecore#/">
|
||||
<genEnums typeSafeEnumCompatible="false" ecoreEnum="HiddenTokensMergerTestLanguage.ecore#//EnumBugEnum">
|
||||
<genEnumLiterals ecoreEnumLiteral="HiddenTokensMergerTestLanguage.ecore#//EnumBugEnum/array"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="HiddenTokensMergerTestLanguage.ecore#//EnumBugEnum/object"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="HiddenTokensMergerTestLanguage.ecore#//EnumBugEnum/resultSet"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="HiddenTokensMergerTestLanguage.ecore#//EnumBugEnum/iterator"/>
|
||||
</genEnums>
|
||||
<genClasses ecoreClass="HiddenTokensMergerTestLanguage.ecore#//Model"/>
|
||||
<genClasses ecoreClass="HiddenTokensMergerTestLanguage.ecore#//DatatypeBug286557">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute HiddenTokensMergerTestLanguage.ecore#//DatatypeBug286557/name"/>
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference HiddenTokensMergerTestLanguage.ecore#//DatatypeBug286557/ref"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="HiddenTokensMergerTestLanguage.ecore#//EnumBug">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute HiddenTokensMergerTestLanguage.ecore#//EnumBug/return"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute HiddenTokensMergerTestLanguage.ecore#//EnumBug/name"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="HiddenTokensMergerTestLanguage.ecore#//Commentable">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference HiddenTokensMergerTestLanguage.ecore#//Commentable/item"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="HiddenTokensMergerTestLanguage.ecore#//CommentableItem">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute HiddenTokensMergerTestLanguage.ecore#//CommentableItem/id"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="HiddenTokensMergerTestLanguage.ecore#//ValueList">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute HiddenTokensMergerTestLanguage.ecore#//ValueList/ids"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="HiddenTokensMergerTestLanguage.ecore#//RefList">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference HiddenTokensMergerTestLanguage.ecore#//RefList/objs"/>
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference HiddenTokensMergerTestLanguage.ecore#//RefList/refs"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="HiddenTokensMergerTestLanguage.ecore#//RefObj">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute HiddenTokensMergerTestLanguage.ecore#//RefObj/name"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="HiddenTokensMergerTestLanguage.ecore#//SingleRef">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference HiddenTokensMergerTestLanguage.ecore#//SingleRef/obj"/>
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference HiddenTokensMergerTestLanguage.ecore#//SingleRef/ref"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="HiddenTokensMergerTestLanguage.ecore#//AppendToFileEnd">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference HiddenTokensMergerTestLanguage.ecore#//AppendToFileEnd/items"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="HiddenTokensMergerTestLanguage.ecore#//AppendToFileEndItem">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute HiddenTokensMergerTestLanguage.ecore#//AppendToFileEndItem/name"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="HiddenTokensMergerTestLanguage.ecore#//Action1">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute HiddenTokensMergerTestLanguage.ecore#//Action1/name"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference HiddenTokensMergerTestLanguage.ecore#//Action1/actions2"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="HiddenTokensMergerTestLanguage.ecore#//Action1Sub1"/>
|
||||
<genClasses ecoreClass="HiddenTokensMergerTestLanguage.ecore#//Action1Sub2"/>
|
||||
<genClasses ecoreClass="HiddenTokensMergerTestLanguage.ecore#//Action1Sub"/>
|
||||
<genClasses ecoreClass="HiddenTokensMergerTestLanguage.ecore#//Action1SubClass"/>
|
||||
</genPackages>
|
||||
</genmodel:GenModel>
|
Binary file not shown.
|
@ -1,42 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr;
|
||||
|
||||
import com.google.inject.Guice;
|
||||
import com.google.inject.Injector;
|
||||
import org.eclipse.emf.ecore.EPackage;
|
||||
import org.eclipse.emf.ecore.resource.Resource;
|
||||
import org.eclipse.xtext.ISetup;
|
||||
import org.eclipse.xtext.common.TerminalsStandaloneSetup;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage;
|
||||
import org.eclipse.xtext.resource.IResourceFactory;
|
||||
import org.eclipse.xtext.resource.IResourceServiceProvider;
|
||||
|
||||
@SuppressWarnings("all")
|
||||
public class HiddenTokensMergerTestLanguageStandaloneSetupGenerated implements ISetup {
|
||||
|
||||
@Override
|
||||
public Injector createInjectorAndDoEMFRegistration() {
|
||||
TerminalsStandaloneSetup.doSetup();
|
||||
|
||||
Injector injector = createInjector();
|
||||
register(injector);
|
||||
return injector;
|
||||
}
|
||||
|
||||
public Injector createInjector() {
|
||||
return Guice.createInjector(new HiddenTokensMergerTestLanguageRuntimeModule());
|
||||
}
|
||||
|
||||
public void register(Injector injector) {
|
||||
IResourceFactory resourceFactory = injector.getInstance(IResourceFactory.class);
|
||||
IResourceServiceProvider serviceProvider = injector.getInstance(IResourceServiceProvider.class);
|
||||
|
||||
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("hiddentokensmergertestlanguage", resourceFactory);
|
||||
IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("hiddentokensmergertestlanguage", serviceProvider);
|
||||
if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/2009/tmf/xtext/hiddentokensmerger")) {
|
||||
EPackage.Registry.INSTANCE.put("http://www.eclipse.org/2009/tmf/xtext/hiddentokensmerger", HiddentokenmergertestPackage.eINSTANCE);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="partialserializationtest" nsURI="http://www.eclipse.org/2009/tmf/xtext/partialserializationtest"
|
||||
nsPrefix="partialserializationtest">
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Model"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="NodeRoot" eSuperTypes="#//Model">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="node" eType="#//Node" containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Node">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="children" upperBound="-1"
|
||||
eType="#//Node" containment="true"/>
|
||||
</eClassifiers>
|
||||
</ecore:EPackage>
|
|
@ -1,19 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
|
||||
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="generated by Xtext" modelDirectory="/org.eclipse.xtext.tests/src-gen"
|
||||
modelPluginID="org.eclipse.xtext.tests" forceOverwrite="true" modelName="PartialSerializationTestLanguage"
|
||||
updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
|
||||
complianceLevel="6.0" copyrightFields="false" runtimeVersion="2.9" usedGenPackages="platform:/resource/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore">
|
||||
<genPackages prefix="Partialserializationtest" basePackage="org.eclipse.xtext.parsetree.reconstr"
|
||||
disposableProviderFactory="true" fileExtensions="partialserializationtestlanguage"
|
||||
ecorePackage="PartialSerializationTestLanguage.ecore#/">
|
||||
<genClasses ecoreClass="PartialSerializationTestLanguage.ecore#//Model"/>
|
||||
<genClasses ecoreClass="PartialSerializationTestLanguage.ecore#//NodeRoot">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference PartialSerializationTestLanguage.ecore#//NodeRoot/node"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="PartialSerializationTestLanguage.ecore#//Node">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute PartialSerializationTestLanguage.ecore#//Node/name"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference PartialSerializationTestLanguage.ecore#//Node/children"/>
|
||||
</genClasses>
|
||||
</genPackages>
|
||||
</genmodel:GenModel>
|
Binary file not shown.
|
@ -1,42 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr;
|
||||
|
||||
import com.google.inject.Guice;
|
||||
import com.google.inject.Injector;
|
||||
import org.eclipse.emf.ecore.EPackage;
|
||||
import org.eclipse.emf.ecore.resource.Resource;
|
||||
import org.eclipse.xtext.ISetup;
|
||||
import org.eclipse.xtext.common.TerminalsStandaloneSetup;
|
||||
import org.eclipse.xtext.parsetree.reconstr.partialserializationtest.PartialserializationtestPackage;
|
||||
import org.eclipse.xtext.resource.IResourceFactory;
|
||||
import org.eclipse.xtext.resource.IResourceServiceProvider;
|
||||
|
||||
@SuppressWarnings("all")
|
||||
public class PartialSerializationTestLanguageStandaloneSetupGenerated implements ISetup {
|
||||
|
||||
@Override
|
||||
public Injector createInjectorAndDoEMFRegistration() {
|
||||
TerminalsStandaloneSetup.doSetup();
|
||||
|
||||
Injector injector = createInjector();
|
||||
register(injector);
|
||||
return injector;
|
||||
}
|
||||
|
||||
public Injector createInjector() {
|
||||
return Guice.createInjector(new PartialSerializationTestLanguageRuntimeModule());
|
||||
}
|
||||
|
||||
public void register(Injector injector) {
|
||||
IResourceFactory resourceFactory = injector.getInstance(IResourceFactory.class);
|
||||
IResourceServiceProvider serviceProvider = injector.getInstance(IResourceServiceProvider.class);
|
||||
|
||||
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("partialserializationtestlanguage", resourceFactory);
|
||||
IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("partialserializationtestlanguage", serviceProvider);
|
||||
if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/2009/tmf/xtext/partialserializationtest")) {
|
||||
EPackage.Registry.INSTANCE.put("http://www.eclipse.org/2009/tmf/xtext/partialserializationtest", PartialserializationtestPackage.eINSTANCE);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,153 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="simplerewritetest" nsURI="http://www.eclipse.org/2009/tmf/xtext/simplerewritetest"
|
||||
nsPrefix="simplerewritetest">
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="em" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Atom" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="TwoNumbers" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="num1" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EInt"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="num2" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EInt"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="num3" unique="false" upperBound="-1"
|
||||
eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EInt"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="ManyStrings" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="str1" unique="false" upperBound="-1"
|
||||
eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="str2" unique="false" upperBound="-1"
|
||||
eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Type" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="extends" eType="#//Type"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Ref2" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="ref2" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Spare" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="id" unique="false" upperBound="-1"
|
||||
eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Boolean" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="bool" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Transient1" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="precStar" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="prec" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EInt"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="scaleStar" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="scale" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EInt"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Consumed1" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="v1" unique="false" upperBound="-1"
|
||||
eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EInt"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="v2" unique="false" upperBound="-1"
|
||||
eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Consumed2" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="child" eType="#//Consumed1"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Loop1" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="id" unique="false" upperBound="-1"
|
||||
eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Loop2" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="id" unique="false" upperBound="-1"
|
||||
eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Loop3" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="id" unique="false" upperBound="-1"
|
||||
eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Loop4" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="id" unique="false" upperBound="-1"
|
||||
eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="LoopBug285452" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="interface" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="DuplicateBug284491" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="static" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="final" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="transient" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EmptyObjectBug284850" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="items" eType="#//EmptyObjectItems"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EmptyObjectItems">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="list" upperBound="-1" eType="#//EmptyObjectItem"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EmptyObjectItem">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="MultiInheritanceBug280439" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="val" eType="#//ConcreteMulti"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="AbstractMulti1">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="m1" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="AbstractMulti2">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="m2" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="ConcreteMulti" eSuperTypes="#//AbstractMulti1 #//AbstractMulti2"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EObjectRef" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="obj" eType="#//EObjectElement"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="ref" eType="ecore:EClass platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EObject"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EObjectElement">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="TypeBug305577_1" eSuperTypes="#//Expression"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="TypeBug305577_2" eSuperTypes="#//Expression"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="TypeBug1A" eSuperTypes="#//TypeBug305577_1">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="TypeBug1B" eSuperTypes="#//TypeBug305577_1 #//TypeBug1A"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="TypeBug2A" eSuperTypes="#//TypeBug305577_2">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="TypeBug2B" eSuperTypes="#//TypeBug305577_2 #//TypeBug2A"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Bug305171" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="x" unique="false" upperBound="-1"
|
||||
eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="y" unique="false" upperBound="-1"
|
||||
eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="z" unique="false" upperBound="-1"
|
||||
eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Bug310435Enum" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="lits" unique="false" upperBound="-1"
|
||||
eType="#//EnumBug310435Enum"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Bug310435Val" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="lits" unique="false" upperBound="-1"
|
||||
eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EEnum" name="EnumBug310435Enum">
|
||||
<eLiterals name="lit1" literal="lit1"/>
|
||||
<eLiterals name="lit2" value="1" literal="lit2"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="CrossRefNameTest" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="named" upperBound="-1"
|
||||
eType="#//CrossRefNamed" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="ref" unique="false" upperBound="-1"
|
||||
eType="#//CrossRefNamed"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="CrossRefNamed">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="Op" eSuperTypes="#//Expression">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="values" upperBound="-1"
|
||||
eType="#//Expression" containment="true"/>
|
||||
</eClassifiers>
|
||||
</ecore:EPackage>
|
|
@ -1,136 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
|
||||
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="generated by Xtext" modelDirectory="/org.eclipse.xtext.tests/src-gen"
|
||||
modelPluginID="org.eclipse.xtext.tests" forceOverwrite="true" modelName="SimpleReconstrTestLanguage"
|
||||
updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
|
||||
complianceLevel="6.0" copyrightFields="false" runtimeVersion="2.9" usedGenPackages="platform:/resource/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore">
|
||||
<genPackages prefix="Simplerewritetest" basePackage="org.eclipse.xtext.parsetree.reconstr"
|
||||
disposableProviderFactory="true" fileExtensions="simplereconstrtestlanguage"
|
||||
ecorePackage="SimpleReconstrTestLanguage.ecore#/">
|
||||
<genEnums typeSafeEnumCompatible="false" ecoreEnum="SimpleReconstrTestLanguage.ecore#//EnumBug310435Enum">
|
||||
<genEnumLiterals ecoreEnumLiteral="SimpleReconstrTestLanguage.ecore#//EnumBug310435Enum/lit1"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="SimpleReconstrTestLanguage.ecore#//EnumBug310435Enum/lit2"/>
|
||||
</genEnums>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//Expression">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//Expression/em"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//Atom">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//Atom/name"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//TwoNumbers">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//TwoNumbers/num1"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//TwoNumbers/num2"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//TwoNumbers/num3"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//ManyStrings">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//ManyStrings/str1"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//ManyStrings/str2"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//Type">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//Type/name"/>
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference SimpleReconstrTestLanguage.ecore#//Type/extends"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//Ref2">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//Ref2/ref2"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//Spare">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//Spare/id"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//Boolean">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//Boolean/bool"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//Boolean/value"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//Transient1">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//Transient1/precStar"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//Transient1/prec"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//Transient1/scaleStar"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//Transient1/scale"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//Consumed1">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//Consumed1/v1"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//Consumed1/v2"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//Consumed2">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference SimpleReconstrTestLanguage.ecore#//Consumed2/child"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//Loop1">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//Loop1/id"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//Loop2">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//Loop2/id"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//Loop3">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//Loop3/id"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//Loop4">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//Loop4/id"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//LoopBug285452">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//LoopBug285452/interface"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//LoopBug285452/name"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//DuplicateBug284491">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//DuplicateBug284491/static"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//DuplicateBug284491/final"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//DuplicateBug284491/transient"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//EmptyObjectBug284850">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference SimpleReconstrTestLanguage.ecore#//EmptyObjectBug284850/items"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//EmptyObjectItems">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference SimpleReconstrTestLanguage.ecore#//EmptyObjectItems/list"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//EmptyObjectItem">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//EmptyObjectItem/name"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//MultiInheritanceBug280439">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference SimpleReconstrTestLanguage.ecore#//MultiInheritanceBug280439/val"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//AbstractMulti1">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//AbstractMulti1/m1"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//AbstractMulti2">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//AbstractMulti2/m2"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//ConcreteMulti"/>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//EObjectRef">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference SimpleReconstrTestLanguage.ecore#//EObjectRef/obj"/>
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference SimpleReconstrTestLanguage.ecore#//EObjectRef/ref"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//EObjectElement">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//EObjectElement/name"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//TypeBug305577_1"/>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//TypeBug305577_2"/>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//TypeBug1A">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//TypeBug1A/name"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//TypeBug1B"/>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//TypeBug2A">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//TypeBug2A/name"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//TypeBug2B"/>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//Bug305171">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//Bug305171/x"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//Bug305171/y"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//Bug305171/z"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//Bug305171/name"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//Bug310435Enum">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//Bug310435Enum/lits"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//Bug310435Val">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//Bug310435Val/lits"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//CrossRefNameTest">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference SimpleReconstrTestLanguage.ecore#//CrossRefNameTest/named"/>
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference SimpleReconstrTestLanguage.ecore#//CrossRefNameTest/ref"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//CrossRefNamed">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute SimpleReconstrTestLanguage.ecore#//CrossRefNamed/name"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="SimpleReconstrTestLanguage.ecore#//Op">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference SimpleReconstrTestLanguage.ecore#//Op/values"/>
|
||||
</genClasses>
|
||||
</genPackages>
|
||||
</genmodel:GenModel>
|
Binary file not shown.
|
@ -1,42 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr;
|
||||
|
||||
import com.google.inject.Guice;
|
||||
import com.google.inject.Injector;
|
||||
import org.eclipse.emf.ecore.EPackage;
|
||||
import org.eclipse.emf.ecore.resource.Resource;
|
||||
import org.eclipse.xtext.ISetup;
|
||||
import org.eclipse.xtext.common.TerminalsStandaloneSetup;
|
||||
import org.eclipse.xtext.parsetree.reconstr.simplerewritetest.SimplerewritetestPackage;
|
||||
import org.eclipse.xtext.resource.IResourceFactory;
|
||||
import org.eclipse.xtext.resource.IResourceServiceProvider;
|
||||
|
||||
@SuppressWarnings("all")
|
||||
public class SimpleReconstrTestLanguageStandaloneSetupGenerated implements ISetup {
|
||||
|
||||
@Override
|
||||
public Injector createInjectorAndDoEMFRegistration() {
|
||||
TerminalsStandaloneSetup.doSetup();
|
||||
|
||||
Injector injector = createInjector();
|
||||
register(injector);
|
||||
return injector;
|
||||
}
|
||||
|
||||
public Injector createInjector() {
|
||||
return Guice.createInjector(new SimpleReconstrTestLanguageRuntimeModule());
|
||||
}
|
||||
|
||||
public void register(Injector injector) {
|
||||
IResourceFactory resourceFactory = injector.getInstance(IResourceFactory.class);
|
||||
IResourceServiceProvider serviceProvider = injector.getInstance(IResourceServiceProvider.class);
|
||||
|
||||
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("simplereconstrtestlanguage", resourceFactory);
|
||||
IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("simplereconstrtestlanguage", serviceProvider);
|
||||
if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/2009/tmf/xtext/simplerewritetest")) {
|
||||
EPackage.Registry.INSTANCE.put("http://www.eclipse.org/2009/tmf/xtext/simplerewritetest", SimplerewritetestPackage.eINSTANCE);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,71 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Action1</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1#getActions2 <em>Actions2</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getAction1()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface Action1 extends Model
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Name</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Name</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Name</em>' attribute.
|
||||
* @see #setName(String)
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getAction1_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1#getName <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Name</em>' attribute.
|
||||
* @see #getName()
|
||||
* @generated
|
||||
*/
|
||||
void setName(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Actions2</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.eclipse.emf.ecore.EObject}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Actions2</em>' containment reference list isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Actions2</em>' containment reference list.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getAction1_Actions2()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<EObject> getActions2();
|
||||
|
||||
} // Action1
|
|
@ -1,19 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Action1 Sub</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getAction1Sub()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface Action1Sub extends Action1Sub1
|
||||
{
|
||||
} // Action1Sub
|
|
@ -1,20 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Action1 Sub1</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getAction1Sub1()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface Action1Sub1 extends EObject
|
||||
{
|
||||
} // Action1Sub1
|
|
@ -1,20 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Action1 Sub2</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getAction1Sub2()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface Action1Sub2 extends EObject
|
||||
{
|
||||
} // Action1Sub2
|
|
@ -1,19 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Action1 Sub Class</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getAction1SubClass()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface Action1SubClass extends Action1Sub2
|
||||
{
|
||||
} // Action1SubClass
|
|
@ -1,42 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Append To File End</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.AppendToFileEnd#getItems <em>Items</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getAppendToFileEnd()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface AppendToFileEnd extends Model
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Items</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.AppendToFileEndItem}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Items</em>' containment reference list isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Items</em>' containment reference list.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getAppendToFileEnd_Items()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<AppendToFileEndItem> getItems();
|
||||
|
||||
} // AppendToFileEnd
|
|
@ -1,52 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Append To File End Item</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.AppendToFileEndItem#getName <em>Name</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getAppendToFileEndItem()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface AppendToFileEndItem extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Name</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Name</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Name</em>' attribute.
|
||||
* @see #setName(String)
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getAppendToFileEndItem_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.AppendToFileEndItem#getName <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Name</em>' attribute.
|
||||
* @see #getName()
|
||||
* @generated
|
||||
*/
|
||||
void setName(String value);
|
||||
|
||||
} // AppendToFileEndItem
|
|
@ -1,42 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Commentable</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Commentable#getItem <em>Item</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getCommentable()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface Commentable extends Model
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Item</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.CommentableItem}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Item</em>' containment reference list isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Item</em>' containment reference list.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getCommentable_Item()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<CommentableItem> getItem();
|
||||
|
||||
} // Commentable
|
|
@ -1,52 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Commentable Item</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.CommentableItem#getId <em>Id</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getCommentableItem()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface CommentableItem extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Id</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Id</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Id</em>' attribute.
|
||||
* @see #setId(String)
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getCommentableItem_Id()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getId();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.CommentableItem#getId <em>Id</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Id</em>' attribute.
|
||||
* @see #getId()
|
||||
* @generated
|
||||
*/
|
||||
void setId(String value);
|
||||
|
||||
} // CommentableItem
|
|
@ -1,78 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Datatype Bug286557</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.DatatypeBug286557#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.DatatypeBug286557#getRef <em>Ref</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getDatatypeBug286557()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface DatatypeBug286557 extends Model
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Name</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Name</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Name</em>' attribute.
|
||||
* @see #setName(String)
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getDatatypeBug286557_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.DatatypeBug286557#getName <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Name</em>' attribute.
|
||||
* @see #getName()
|
||||
* @generated
|
||||
*/
|
||||
void setName(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Ref</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Ref</em>' reference isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Ref</em>' reference.
|
||||
* @see #setRef(DatatypeBug286557)
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getDatatypeBug286557_Ref()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
DatatypeBug286557 getRef();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.DatatypeBug286557#getRef <em>Ref</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Ref</em>' reference.
|
||||
* @see #getRef()
|
||||
* @generated
|
||||
*/
|
||||
void setRef(DatatypeBug286557 value);
|
||||
|
||||
} // DatatypeBug286557
|
|
@ -1,81 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Enum Bug</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.EnumBug#getReturn <em>Return</em>}</li>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.EnumBug#getName <em>Name</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getEnumBug()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EnumBug extends Model
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Return</b></em>' attribute.
|
||||
* The literals are from the enumeration {@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.EnumBugEnum}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Return</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Return</em>' attribute.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.EnumBugEnum
|
||||
* @see #setReturn(EnumBugEnum)
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getEnumBug_Return()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EnumBugEnum getReturn();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.EnumBug#getReturn <em>Return</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Return</em>' attribute.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.EnumBugEnum
|
||||
* @see #getReturn()
|
||||
* @generated
|
||||
*/
|
||||
void setReturn(EnumBugEnum value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Name</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Name</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Name</em>' attribute.
|
||||
* @see #setName(String)
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getEnumBug_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.EnumBug#getName <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Name</em>' attribute.
|
||||
* @see #getName()
|
||||
* @generated
|
||||
*/
|
||||
void setName(String value);
|
||||
|
||||
} // EnumBug
|
|
@ -1,284 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.eclipse.emf.common.util.Enumerator;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the literals of the enumeration '<em><b>Enum Bug Enum</b></em>',
|
||||
* and utility methods for working with them.
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getEnumBugEnum()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public enum EnumBugEnum implements Enumerator
|
||||
{
|
||||
/**
|
||||
* The '<em><b>Array</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #ARRAY_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
ARRAY(0, "array", "array"),
|
||||
|
||||
/**
|
||||
* The '<em><b>Object</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #OBJECT_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
OBJECT(1, "object", "object"),
|
||||
|
||||
/**
|
||||
* The '<em><b>Result Set</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #RESULT_SET_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
RESULT_SET(2, "resultSet", "resultSet"),
|
||||
|
||||
/**
|
||||
* The '<em><b>Iterator</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #ITERATOR_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
ITERATOR(3, "iterator", "iterator");
|
||||
|
||||
/**
|
||||
* The '<em><b>Array</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of '<em><b>Array</b></em>' literal object isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @see #ARRAY
|
||||
* @model name="array"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int ARRAY_VALUE = 0;
|
||||
|
||||
/**
|
||||
* The '<em><b>Object</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of '<em><b>Object</b></em>' literal object isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @see #OBJECT
|
||||
* @model name="object"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int OBJECT_VALUE = 1;
|
||||
|
||||
/**
|
||||
* The '<em><b>Result Set</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of '<em><b>Result Set</b></em>' literal object isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @see #RESULT_SET
|
||||
* @model name="resultSet"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int RESULT_SET_VALUE = 2;
|
||||
|
||||
/**
|
||||
* The '<em><b>Iterator</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of '<em><b>Iterator</b></em>' literal object isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @see #ITERATOR
|
||||
* @model name="iterator"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int ITERATOR_VALUE = 3;
|
||||
|
||||
/**
|
||||
* An array of all the '<em><b>Enum Bug Enum</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final EnumBugEnum[] VALUES_ARRAY =
|
||||
new EnumBugEnum[]
|
||||
{
|
||||
ARRAY,
|
||||
OBJECT,
|
||||
RESULT_SET,
|
||||
ITERATOR,
|
||||
};
|
||||
|
||||
/**
|
||||
* A public read-only list of all the '<em><b>Enum Bug Enum</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static final List<EnumBugEnum> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Enum Bug Enum</b></em>' literal with the specified literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param literal the literal.
|
||||
* @return the matching enumerator or <code>null</code>.
|
||||
* @generated
|
||||
*/
|
||||
public static EnumBugEnum get(String literal)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
EnumBugEnum result = VALUES_ARRAY[i];
|
||||
if (result.toString().equals(literal))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Enum Bug Enum</b></em>' literal with the specified name.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param name the name.
|
||||
* @return the matching enumerator or <code>null</code>.
|
||||
* @generated
|
||||
*/
|
||||
public static EnumBugEnum getByName(String name)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
EnumBugEnum result = VALUES_ARRAY[i];
|
||||
if (result.getName().equals(name))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Enum Bug Enum</b></em>' literal with the specified integer value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the integer value.
|
||||
* @return the matching enumerator or <code>null</code>.
|
||||
* @generated
|
||||
*/
|
||||
public static EnumBugEnum get(int value)
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
case ARRAY_VALUE: return ARRAY;
|
||||
case OBJECT_VALUE: return OBJECT;
|
||||
case RESULT_SET_VALUE: return RESULT_SET;
|
||||
case ITERATOR_VALUE: return ITERATOR;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private final int value;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private final String name;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private final String literal;
|
||||
|
||||
/**
|
||||
* Only this class can construct instances.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EnumBugEnum(int value, String name, String literal)
|
||||
{
|
||||
this.value = value;
|
||||
this.name = name;
|
||||
this.literal = literal;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public int getValue()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getLiteral()
|
||||
{
|
||||
return literal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the literal value of the enumerator, which is its string representation.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return literal;
|
||||
}
|
||||
|
||||
} //EnumBugEnum
|
|
@ -1,179 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest;
|
||||
|
||||
import org.eclipse.emf.ecore.EFactory;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* The <b>Factory</b> for the model.
|
||||
* It provides a create method for each non-abstract class of the model.
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage
|
||||
* @generated
|
||||
*/
|
||||
public interface HiddentokenmergertestFactory extends EFactory
|
||||
{
|
||||
/**
|
||||
* The singleton instance of the factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
HiddentokenmergertestFactory eINSTANCE = org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl.HiddentokenmergertestFactoryImpl.init();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Model</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Model</em>'.
|
||||
* @generated
|
||||
*/
|
||||
Model createModel();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Datatype Bug286557</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Datatype Bug286557</em>'.
|
||||
* @generated
|
||||
*/
|
||||
DatatypeBug286557 createDatatypeBug286557();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Enum Bug</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Enum Bug</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EnumBug createEnumBug();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Commentable</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Commentable</em>'.
|
||||
* @generated
|
||||
*/
|
||||
Commentable createCommentable();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Commentable Item</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Commentable Item</em>'.
|
||||
* @generated
|
||||
*/
|
||||
CommentableItem createCommentableItem();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Value List</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Value List</em>'.
|
||||
* @generated
|
||||
*/
|
||||
ValueList createValueList();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Ref List</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Ref List</em>'.
|
||||
* @generated
|
||||
*/
|
||||
RefList createRefList();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Ref Obj</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Ref Obj</em>'.
|
||||
* @generated
|
||||
*/
|
||||
RefObj createRefObj();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Single Ref</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Single Ref</em>'.
|
||||
* @generated
|
||||
*/
|
||||
SingleRef createSingleRef();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Append To File End</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Append To File End</em>'.
|
||||
* @generated
|
||||
*/
|
||||
AppendToFileEnd createAppendToFileEnd();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Append To File End Item</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Append To File End Item</em>'.
|
||||
* @generated
|
||||
*/
|
||||
AppendToFileEndItem createAppendToFileEndItem();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Action1</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Action1</em>'.
|
||||
* @generated
|
||||
*/
|
||||
Action1 createAction1();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Action1 Sub1</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Action1 Sub1</em>'.
|
||||
* @generated
|
||||
*/
|
||||
Action1Sub1 createAction1Sub1();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Action1 Sub2</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Action1 Sub2</em>'.
|
||||
* @generated
|
||||
*/
|
||||
Action1Sub2 createAction1Sub2();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Action1 Sub</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Action1 Sub</em>'.
|
||||
* @generated
|
||||
*/
|
||||
Action1Sub createAction1Sub();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Action1 Sub Class</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Action1 Sub Class</em>'.
|
||||
* @generated
|
||||
*/
|
||||
Action1SubClass createAction1SubClass();
|
||||
|
||||
/**
|
||||
* Returns the package supported by this factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the package supported by this factory.
|
||||
* @generated
|
||||
*/
|
||||
HiddentokenmergertestPackage getHiddentokenmergertestPackage();
|
||||
|
||||
} //HiddentokenmergertestFactory
|
File diff suppressed because it is too large
Load diff
|
@ -1,20 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Model</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getModel()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface Model extends EObject
|
||||
{
|
||||
} // Model
|
|
@ -1,59 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Ref List</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.RefList#getObjs <em>Objs</em>}</li>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.RefList#getRefs <em>Refs</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getRefList()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface RefList extends Model
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Objs</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.RefObj}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Objs</em>' containment reference list isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Objs</em>' containment reference list.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getRefList_Objs()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<RefObj> getObjs();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Refs</b></em>' reference list.
|
||||
* The list contents are of type {@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.RefObj}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Refs</em>' reference list isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Refs</em>' reference list.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getRefList_Refs()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EList<RefObj> getRefs();
|
||||
|
||||
} // RefList
|
|
@ -1,52 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Ref Obj</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.RefObj#getName <em>Name</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getRefObj()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface RefObj extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Name</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Name</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Name</em>' attribute.
|
||||
* @see #setName(String)
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getRefObj_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.RefObj#getName <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Name</em>' attribute.
|
||||
* @see #getName()
|
||||
* @generated
|
||||
*/
|
||||
void setName(String value);
|
||||
|
||||
} // RefObj
|
|
@ -1,78 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Single Ref</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.SingleRef#getObj <em>Obj</em>}</li>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.SingleRef#getRef <em>Ref</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getSingleRef()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface SingleRef extends Model
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Obj</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Obj</em>' containment reference isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Obj</em>' containment reference.
|
||||
* @see #setObj(RefObj)
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getSingleRef_Obj()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
RefObj getObj();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.SingleRef#getObj <em>Obj</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Obj</em>' containment reference.
|
||||
* @see #getObj()
|
||||
* @generated
|
||||
*/
|
||||
void setObj(RefObj value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Ref</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Ref</em>' reference isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Ref</em>' reference.
|
||||
* @see #setRef(RefObj)
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getSingleRef_Ref()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
RefObj getRef();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.SingleRef#getRef <em>Ref</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Ref</em>' reference.
|
||||
* @see #getRef()
|
||||
* @generated
|
||||
*/
|
||||
void setRef(RefObj value);
|
||||
|
||||
} // SingleRef
|
|
@ -1,42 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Value List</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.ValueList#getIds <em>Ids</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getValueList()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface ValueList extends Model
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Ids</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Ids</em>' attribute list isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Ids</em>' attribute list.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#getValueList_Ids()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getIds();
|
||||
|
||||
} // ValueList
|
|
@ -1,240 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.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.EObject;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Action1</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl.Action1Impl#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl.Action1Impl#getActions2 <em>Actions2</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class Action1Impl extends ModelImpl implements Action1
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String NAME_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String name = NAME_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getActions2() <em>Actions2</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getActions2()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<EObject> actions2;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected Action1Impl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return HiddentokenmergertestPackage.Literals.ACTION1;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setName(String newName)
|
||||
{
|
||||
String oldName = name;
|
||||
name = newName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, HiddentokenmergertestPackage.ACTION1__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<EObject> getActions2()
|
||||
{
|
||||
if (actions2 == null)
|
||||
{
|
||||
actions2 = new EObjectContainmentEList<EObject>(EObject.class, this, HiddentokenmergertestPackage.ACTION1__ACTIONS2);
|
||||
}
|
||||
return actions2;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.ACTION1__ACTIONS2:
|
||||
return ((InternalEList<?>)getActions2()).basicRemove(otherEnd, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.ACTION1__NAME:
|
||||
return getName();
|
||||
case HiddentokenmergertestPackage.ACTION1__ACTIONS2:
|
||||
return getActions2();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.ACTION1__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
case HiddentokenmergertestPackage.ACTION1__ACTIONS2:
|
||||
getActions2().clear();
|
||||
getActions2().addAll((Collection<? extends EObject>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.ACTION1__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
case HiddentokenmergertestPackage.ACTION1__ACTIONS2:
|
||||
getActions2().clear();
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.ACTION1__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
case HiddentokenmergertestPackage.ACTION1__ACTIONS2:
|
||||
return actions2 != null && !actions2.isEmpty();
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuffer result = new StringBuffer(super.toString());
|
||||
result.append(" (name: ");
|
||||
result.append(name);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //Action1Impl
|
|
@ -1,43 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1Sub1;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Action1 Sub1</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class Action1Sub1Impl extends MinimalEObjectImpl.Container implements Action1Sub1
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected Action1Sub1Impl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return HiddentokenmergertestPackage.Literals.ACTION1_SUB1;
|
||||
}
|
||||
|
||||
} //Action1Sub1Impl
|
|
@ -1,43 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1Sub2;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Action1 Sub2</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class Action1Sub2Impl extends MinimalEObjectImpl.Container implements Action1Sub2
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected Action1Sub2Impl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return HiddentokenmergertestPackage.Literals.ACTION1_SUB2;
|
||||
}
|
||||
|
||||
} //Action1Sub2Impl
|
|
@ -1,41 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1SubClass;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Action1 Sub Class</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class Action1SubClassImpl extends Action1Sub2Impl implements Action1SubClass
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected Action1SubClassImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return HiddentokenmergertestPackage.Literals.ACTION1_SUB_CLASS;
|
||||
}
|
||||
|
||||
} //Action1SubClassImpl
|
|
@ -1,41 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1Sub;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Action1 Sub</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class Action1SubImpl extends Action1Sub1Impl implements Action1Sub
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected Action1SubImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return HiddentokenmergertestPackage.Literals.ACTION1_SUB;
|
||||
}
|
||||
|
||||
} //Action1SubImpl
|
|
@ -1,166 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
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.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.AppendToFileEnd;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.AppendToFileEndItem;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Append To File End</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl.AppendToFileEndImpl#getItems <em>Items</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class AppendToFileEndImpl extends ModelImpl implements AppendToFileEnd
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getItems() <em>Items</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getItems()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<AppendToFileEndItem> items;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected AppendToFileEndImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return HiddentokenmergertestPackage.Literals.APPEND_TO_FILE_END;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<AppendToFileEndItem> getItems()
|
||||
{
|
||||
if (items == null)
|
||||
{
|
||||
items = new EObjectContainmentEList<AppendToFileEndItem>(AppendToFileEndItem.class, this, HiddentokenmergertestPackage.APPEND_TO_FILE_END__ITEMS);
|
||||
}
|
||||
return items;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.APPEND_TO_FILE_END__ITEMS:
|
||||
return ((InternalEList<?>)getItems()).basicRemove(otherEnd, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.APPEND_TO_FILE_END__ITEMS:
|
||||
return getItems();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.APPEND_TO_FILE_END__ITEMS:
|
||||
getItems().clear();
|
||||
getItems().addAll((Collection<? extends AppendToFileEndItem>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.APPEND_TO_FILE_END__ITEMS:
|
||||
getItems().clear();
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.APPEND_TO_FILE_END__ITEMS:
|
||||
return items != null && !items.isEmpty();
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //AppendToFileEndImpl
|
|
@ -1,178 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.AppendToFileEndItem;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Append To File End Item</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl.AppendToFileEndItemImpl#getName <em>Name</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class AppendToFileEndItemImpl extends MinimalEObjectImpl.Container implements AppendToFileEndItem
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String NAME_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String name = NAME_EDEFAULT;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected AppendToFileEndItemImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return HiddentokenmergertestPackage.Literals.APPEND_TO_FILE_END_ITEM;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setName(String newName)
|
||||
{
|
||||
String oldName = name;
|
||||
name = newName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, HiddentokenmergertestPackage.APPEND_TO_FILE_END_ITEM__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.APPEND_TO_FILE_END_ITEM__NAME:
|
||||
return getName();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.APPEND_TO_FILE_END_ITEM__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.APPEND_TO_FILE_END_ITEM__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.APPEND_TO_FILE_END_ITEM__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuffer result = new StringBuffer(super.toString());
|
||||
result.append(" (name: ");
|
||||
result.append(name);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //AppendToFileEndItemImpl
|
|
@ -1,166 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
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.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Commentable;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.CommentableItem;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Commentable</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl.CommentableImpl#getItem <em>Item</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class CommentableImpl extends ModelImpl implements Commentable
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getItem() <em>Item</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getItem()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<CommentableItem> item;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected CommentableImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return HiddentokenmergertestPackage.Literals.COMMENTABLE;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<CommentableItem> getItem()
|
||||
{
|
||||
if (item == null)
|
||||
{
|
||||
item = new EObjectContainmentEList<CommentableItem>(CommentableItem.class, this, HiddentokenmergertestPackage.COMMENTABLE__ITEM);
|
||||
}
|
||||
return item;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.COMMENTABLE__ITEM:
|
||||
return ((InternalEList<?>)getItem()).basicRemove(otherEnd, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.COMMENTABLE__ITEM:
|
||||
return getItem();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.COMMENTABLE__ITEM:
|
||||
getItem().clear();
|
||||
getItem().addAll((Collection<? extends CommentableItem>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.COMMENTABLE__ITEM:
|
||||
getItem().clear();
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.COMMENTABLE__ITEM:
|
||||
return item != null && !item.isEmpty();
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //CommentableImpl
|
|
@ -1,178 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.CommentableItem;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Commentable Item</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl.CommentableItemImpl#getId <em>Id</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class CommentableItemImpl extends MinimalEObjectImpl.Container implements CommentableItem
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getId() <em>Id</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getId()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String ID_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getId() <em>Id</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getId()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String id = ID_EDEFAULT;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected CommentableItemImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return HiddentokenmergertestPackage.Literals.COMMENTABLE_ITEM;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setId(String newId)
|
||||
{
|
||||
String oldId = id;
|
||||
id = newId;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, HiddentokenmergertestPackage.COMMENTABLE_ITEM__ID, oldId, id));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.COMMENTABLE_ITEM__ID:
|
||||
return getId();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.COMMENTABLE_ITEM__ID:
|
||||
setId((String)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.COMMENTABLE_ITEM__ID:
|
||||
setId(ID_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.COMMENTABLE_ITEM__ID:
|
||||
return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuffer result = new StringBuffer(super.toString());
|
||||
result.append(" (id: ");
|
||||
result.append(id);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //CommentableItemImpl
|
|
@ -1,243 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.DatatypeBug286557;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Datatype Bug286557</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl.DatatypeBug286557Impl#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl.DatatypeBug286557Impl#getRef <em>Ref</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class DatatypeBug286557Impl extends ModelImpl implements DatatypeBug286557
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String NAME_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String name = NAME_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getRef() <em>Ref</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getRef()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected DatatypeBug286557 ref;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected DatatypeBug286557Impl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return HiddentokenmergertestPackage.Literals.DATATYPE_BUG286557;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setName(String newName)
|
||||
{
|
||||
String oldName = name;
|
||||
name = newName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, HiddentokenmergertestPackage.DATATYPE_BUG286557__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public DatatypeBug286557 getRef()
|
||||
{
|
||||
if (ref != null && ref.eIsProxy())
|
||||
{
|
||||
InternalEObject oldRef = (InternalEObject)ref;
|
||||
ref = (DatatypeBug286557)eResolveProxy(oldRef);
|
||||
if (ref != oldRef)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, HiddentokenmergertestPackage.DATATYPE_BUG286557__REF, oldRef, ref));
|
||||
}
|
||||
}
|
||||
return ref;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public DatatypeBug286557 basicGetRef()
|
||||
{
|
||||
return ref;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setRef(DatatypeBug286557 newRef)
|
||||
{
|
||||
DatatypeBug286557 oldRef = ref;
|
||||
ref = newRef;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, HiddentokenmergertestPackage.DATATYPE_BUG286557__REF, oldRef, ref));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.DATATYPE_BUG286557__NAME:
|
||||
return getName();
|
||||
case HiddentokenmergertestPackage.DATATYPE_BUG286557__REF:
|
||||
if (resolve) return getRef();
|
||||
return basicGetRef();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.DATATYPE_BUG286557__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
case HiddentokenmergertestPackage.DATATYPE_BUG286557__REF:
|
||||
setRef((DatatypeBug286557)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.DATATYPE_BUG286557__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
case HiddentokenmergertestPackage.DATATYPE_BUG286557__REF:
|
||||
setRef((DatatypeBug286557)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.DATATYPE_BUG286557__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
case HiddentokenmergertestPackage.DATATYPE_BUG286557__REF:
|
||||
return ref != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuffer result = new StringBuffer(super.toString());
|
||||
result.append(" (name: ");
|
||||
result.append(name);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //DatatypeBug286557Impl
|
|
@ -1,234 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.EnumBug;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.EnumBugEnum;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Enum Bug</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl.EnumBugImpl#getReturn <em>Return</em>}</li>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl.EnumBugImpl#getName <em>Name</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EnumBugImpl extends ModelImpl implements EnumBug
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getReturn() <em>Return</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getReturn()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final EnumBugEnum RETURN_EDEFAULT = EnumBugEnum.ARRAY;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getReturn() <em>Return</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getReturn()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EnumBugEnum return_ = RETURN_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String NAME_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String name = NAME_EDEFAULT;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EnumBugImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return HiddentokenmergertestPackage.Literals.ENUM_BUG;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EnumBugEnum getReturn()
|
||||
{
|
||||
return return_;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setReturn(EnumBugEnum newReturn)
|
||||
{
|
||||
EnumBugEnum oldReturn = return_;
|
||||
return_ = newReturn == null ? RETURN_EDEFAULT : newReturn;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, HiddentokenmergertestPackage.ENUM_BUG__RETURN, oldReturn, return_));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setName(String newName)
|
||||
{
|
||||
String oldName = name;
|
||||
name = newName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, HiddentokenmergertestPackage.ENUM_BUG__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.ENUM_BUG__RETURN:
|
||||
return getReturn();
|
||||
case HiddentokenmergertestPackage.ENUM_BUG__NAME:
|
||||
return getName();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.ENUM_BUG__RETURN:
|
||||
setReturn((EnumBugEnum)newValue);
|
||||
return;
|
||||
case HiddentokenmergertestPackage.ENUM_BUG__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.ENUM_BUG__RETURN:
|
||||
setReturn(RETURN_EDEFAULT);
|
||||
return;
|
||||
case HiddentokenmergertestPackage.ENUM_BUG__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.ENUM_BUG__RETURN:
|
||||
return return_ != RETURN_EDEFAULT;
|
||||
case HiddentokenmergertestPackage.ENUM_BUG__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuffer result = new StringBuffer(super.toString());
|
||||
result.append(" (return: ");
|
||||
result.append(return_);
|
||||
result.append(", name: ");
|
||||
result.append(name);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //EnumBugImpl
|
|
@ -1,344 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.EDataType;
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
import org.eclipse.emf.ecore.EPackage;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.EFactoryImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.plugin.EcorePlugin;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.*;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model <b>Factory</b>.
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public class HiddentokenmergertestFactoryImpl extends EFactoryImpl implements HiddentokenmergertestFactory
|
||||
{
|
||||
/**
|
||||
* Creates the default factory implementation.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static HiddentokenmergertestFactory init()
|
||||
{
|
||||
try
|
||||
{
|
||||
HiddentokenmergertestFactory theHiddentokenmergertestFactory = (HiddentokenmergertestFactory)EPackage.Registry.INSTANCE.getEFactory(HiddentokenmergertestPackage.eNS_URI);
|
||||
if (theHiddentokenmergertestFactory != null)
|
||||
{
|
||||
return theHiddentokenmergertestFactory;
|
||||
}
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
EcorePlugin.INSTANCE.log(exception);
|
||||
}
|
||||
return new HiddentokenmergertestFactoryImpl();
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an instance of the factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public HiddentokenmergertestFactoryImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EObject create(EClass eClass)
|
||||
{
|
||||
switch (eClass.getClassifierID())
|
||||
{
|
||||
case HiddentokenmergertestPackage.MODEL: return createModel();
|
||||
case HiddentokenmergertestPackage.DATATYPE_BUG286557: return createDatatypeBug286557();
|
||||
case HiddentokenmergertestPackage.ENUM_BUG: return createEnumBug();
|
||||
case HiddentokenmergertestPackage.COMMENTABLE: return createCommentable();
|
||||
case HiddentokenmergertestPackage.COMMENTABLE_ITEM: return createCommentableItem();
|
||||
case HiddentokenmergertestPackage.VALUE_LIST: return createValueList();
|
||||
case HiddentokenmergertestPackage.REF_LIST: return createRefList();
|
||||
case HiddentokenmergertestPackage.REF_OBJ: return createRefObj();
|
||||
case HiddentokenmergertestPackage.SINGLE_REF: return createSingleRef();
|
||||
case HiddentokenmergertestPackage.APPEND_TO_FILE_END: return createAppendToFileEnd();
|
||||
case HiddentokenmergertestPackage.APPEND_TO_FILE_END_ITEM: return createAppendToFileEndItem();
|
||||
case HiddentokenmergertestPackage.ACTION1: return createAction1();
|
||||
case HiddentokenmergertestPackage.ACTION1_SUB1: return createAction1Sub1();
|
||||
case HiddentokenmergertestPackage.ACTION1_SUB2: return createAction1Sub2();
|
||||
case HiddentokenmergertestPackage.ACTION1_SUB: return createAction1Sub();
|
||||
case HiddentokenmergertestPackage.ACTION1_SUB_CLASS: return createAction1SubClass();
|
||||
default:
|
||||
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object createFromString(EDataType eDataType, String initialValue)
|
||||
{
|
||||
switch (eDataType.getClassifierID())
|
||||
{
|
||||
case HiddentokenmergertestPackage.ENUM_BUG_ENUM:
|
||||
return createEnumBugEnumFromString(eDataType, initialValue);
|
||||
default:
|
||||
throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String convertToString(EDataType eDataType, Object instanceValue)
|
||||
{
|
||||
switch (eDataType.getClassifierID())
|
||||
{
|
||||
case HiddentokenmergertestPackage.ENUM_BUG_ENUM:
|
||||
return convertEnumBugEnumToString(eDataType, instanceValue);
|
||||
default:
|
||||
throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public Model createModel()
|
||||
{
|
||||
ModelImpl model = new ModelImpl();
|
||||
return model;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public DatatypeBug286557 createDatatypeBug286557()
|
||||
{
|
||||
DatatypeBug286557Impl datatypeBug286557 = new DatatypeBug286557Impl();
|
||||
return datatypeBug286557;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EnumBug createEnumBug()
|
||||
{
|
||||
EnumBugImpl enumBug = new EnumBugImpl();
|
||||
return enumBug;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public Commentable createCommentable()
|
||||
{
|
||||
CommentableImpl commentable = new CommentableImpl();
|
||||
return commentable;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public CommentableItem createCommentableItem()
|
||||
{
|
||||
CommentableItemImpl commentableItem = new CommentableItemImpl();
|
||||
return commentableItem;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public ValueList createValueList()
|
||||
{
|
||||
ValueListImpl valueList = new ValueListImpl();
|
||||
return valueList;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public RefList createRefList()
|
||||
{
|
||||
RefListImpl refList = new RefListImpl();
|
||||
return refList;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public RefObj createRefObj()
|
||||
{
|
||||
RefObjImpl refObj = new RefObjImpl();
|
||||
return refObj;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public SingleRef createSingleRef()
|
||||
{
|
||||
SingleRefImpl singleRef = new SingleRefImpl();
|
||||
return singleRef;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public AppendToFileEnd createAppendToFileEnd()
|
||||
{
|
||||
AppendToFileEndImpl appendToFileEnd = new AppendToFileEndImpl();
|
||||
return appendToFileEnd;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public AppendToFileEndItem createAppendToFileEndItem()
|
||||
{
|
||||
AppendToFileEndItemImpl appendToFileEndItem = new AppendToFileEndItemImpl();
|
||||
return appendToFileEndItem;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public Action1 createAction1()
|
||||
{
|
||||
Action1Impl action1 = new Action1Impl();
|
||||
return action1;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public Action1Sub1 createAction1Sub1()
|
||||
{
|
||||
Action1Sub1Impl action1Sub1 = new Action1Sub1Impl();
|
||||
return action1Sub1;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public Action1Sub2 createAction1Sub2()
|
||||
{
|
||||
Action1Sub2Impl action1Sub2 = new Action1Sub2Impl();
|
||||
return action1Sub2;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public Action1Sub createAction1Sub()
|
||||
{
|
||||
Action1SubImpl action1Sub = new Action1SubImpl();
|
||||
return action1Sub;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public Action1SubClass createAction1SubClass()
|
||||
{
|
||||
Action1SubClassImpl action1SubClass = new Action1SubClassImpl();
|
||||
return action1SubClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EnumBugEnum createEnumBugEnumFromString(EDataType eDataType, String initialValue)
|
||||
{
|
||||
EnumBugEnum result = EnumBugEnum.get(initialValue);
|
||||
if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String convertEnumBugEnumToString(EDataType eDataType, Object instanceValue)
|
||||
{
|
||||
return instanceValue == null ? null : instanceValue.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public HiddentokenmergertestPackage getHiddentokenmergertestPackage()
|
||||
{
|
||||
return (HiddentokenmergertestPackage)getEPackage();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @deprecated
|
||||
* @generated
|
||||
*/
|
||||
@Deprecated
|
||||
public static HiddentokenmergertestPackage getPackage()
|
||||
{
|
||||
return HiddentokenmergertestPackage.eINSTANCE;
|
||||
}
|
||||
|
||||
} //HiddentokenmergertestFactoryImpl
|
|
@ -1,743 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EAttribute;
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.EEnum;
|
||||
import org.eclipse.emf.ecore.EPackage;
|
||||
import org.eclipse.emf.ecore.EReference;
|
||||
import org.eclipse.emf.ecore.EcorePackage;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.EPackageImpl;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1Sub;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1Sub1;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1Sub2;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1SubClass;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.AppendToFileEnd;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.AppendToFileEndItem;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Commentable;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.CommentableItem;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.DatatypeBug286557;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.EnumBug;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.EnumBugEnum;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestFactory;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Model;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.RefList;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.RefObj;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.SingleRef;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.ValueList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model <b>Package</b>.
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public class HiddentokenmergertestPackageImpl extends EPackageImpl implements HiddentokenmergertestPackage
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass modelEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass datatypeBug286557EClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass enumBugEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass commentableEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass commentableItemEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass valueListEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass refListEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass refObjEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass singleRefEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass appendToFileEndEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass appendToFileEndItemEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass action1EClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass action1Sub1EClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass action1Sub2EClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass action1SubEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass action1SubClassEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EEnum enumBugEnumEEnum = null;
|
||||
|
||||
/**
|
||||
* Creates an instance of the model <b>Package</b>, registered with
|
||||
* {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
|
||||
* package URI value.
|
||||
* <p>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.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.eclipse.emf.ecore.EPackage.Registry
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage#eNS_URI
|
||||
* @see #init()
|
||||
* @generated
|
||||
*/
|
||||
private HiddentokenmergertestPackageImpl()
|
||||
{
|
||||
super(eNS_URI, HiddentokenmergertestFactory.eINSTANCE);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static boolean isInited = false;
|
||||
|
||||
/**
|
||||
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
|
||||
*
|
||||
* <p>This method is used to initialize {@link HiddentokenmergertestPackage#eINSTANCE} when that field is accessed.
|
||||
* Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #eNS_URI
|
||||
* @see #createPackageContents()
|
||||
* @see #initializePackageContents()
|
||||
* @generated
|
||||
*/
|
||||
public static HiddentokenmergertestPackage init()
|
||||
{
|
||||
if (isInited) return (HiddentokenmergertestPackage)EPackage.Registry.INSTANCE.getEPackage(HiddentokenmergertestPackage.eNS_URI);
|
||||
|
||||
// Obtain or create and register package
|
||||
HiddentokenmergertestPackageImpl theHiddentokenmergertestPackage = (HiddentokenmergertestPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof HiddentokenmergertestPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new HiddentokenmergertestPackageImpl());
|
||||
|
||||
isInited = true;
|
||||
|
||||
// Initialize simple dependencies
|
||||
EcorePackage.eINSTANCE.eClass();
|
||||
|
||||
// Create package meta-data objects
|
||||
theHiddentokenmergertestPackage.createPackageContents();
|
||||
|
||||
// Initialize created meta-data
|
||||
theHiddentokenmergertestPackage.initializePackageContents();
|
||||
|
||||
// Mark meta-data to indicate it can't be changed
|
||||
theHiddentokenmergertestPackage.freeze();
|
||||
|
||||
|
||||
// Update the registry and return the package
|
||||
EPackage.Registry.INSTANCE.put(HiddentokenmergertestPackage.eNS_URI, theHiddentokenmergertestPackage);
|
||||
return theHiddentokenmergertestPackage;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getModel()
|
||||
{
|
||||
return modelEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getDatatypeBug286557()
|
||||
{
|
||||
return datatypeBug286557EClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getDatatypeBug286557_Name()
|
||||
{
|
||||
return (EAttribute)datatypeBug286557EClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getDatatypeBug286557_Ref()
|
||||
{
|
||||
return (EReference)datatypeBug286557EClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getEnumBug()
|
||||
{
|
||||
return enumBugEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getEnumBug_Return()
|
||||
{
|
||||
return (EAttribute)enumBugEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getEnumBug_Name()
|
||||
{
|
||||
return (EAttribute)enumBugEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getCommentable()
|
||||
{
|
||||
return commentableEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getCommentable_Item()
|
||||
{
|
||||
return (EReference)commentableEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getCommentableItem()
|
||||
{
|
||||
return commentableItemEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getCommentableItem_Id()
|
||||
{
|
||||
return (EAttribute)commentableItemEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getValueList()
|
||||
{
|
||||
return valueListEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getValueList_Ids()
|
||||
{
|
||||
return (EAttribute)valueListEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getRefList()
|
||||
{
|
||||
return refListEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getRefList_Objs()
|
||||
{
|
||||
return (EReference)refListEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getRefList_Refs()
|
||||
{
|
||||
return (EReference)refListEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getRefObj()
|
||||
{
|
||||
return refObjEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getRefObj_Name()
|
||||
{
|
||||
return (EAttribute)refObjEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getSingleRef()
|
||||
{
|
||||
return singleRefEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getSingleRef_Obj()
|
||||
{
|
||||
return (EReference)singleRefEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getSingleRef_Ref()
|
||||
{
|
||||
return (EReference)singleRefEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getAppendToFileEnd()
|
||||
{
|
||||
return appendToFileEndEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getAppendToFileEnd_Items()
|
||||
{
|
||||
return (EReference)appendToFileEndEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getAppendToFileEndItem()
|
||||
{
|
||||
return appendToFileEndItemEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getAppendToFileEndItem_Name()
|
||||
{
|
||||
return (EAttribute)appendToFileEndItemEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getAction1()
|
||||
{
|
||||
return action1EClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getAction1_Name()
|
||||
{
|
||||
return (EAttribute)action1EClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getAction1_Actions2()
|
||||
{
|
||||
return (EReference)action1EClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getAction1Sub1()
|
||||
{
|
||||
return action1Sub1EClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getAction1Sub2()
|
||||
{
|
||||
return action1Sub2EClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getAction1Sub()
|
||||
{
|
||||
return action1SubEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getAction1SubClass()
|
||||
{
|
||||
return action1SubClassEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EEnum getEnumBugEnum()
|
||||
{
|
||||
return enumBugEnumEEnum;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public HiddentokenmergertestFactory getHiddentokenmergertestFactory()
|
||||
{
|
||||
return (HiddentokenmergertestFactory)getEFactoryInstance();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void createPackageContents()
|
||||
{
|
||||
if (isCreated) return;
|
||||
isCreated = true;
|
||||
|
||||
// Create classes and their features
|
||||
modelEClass = createEClass(MODEL);
|
||||
|
||||
datatypeBug286557EClass = createEClass(DATATYPE_BUG286557);
|
||||
createEAttribute(datatypeBug286557EClass, DATATYPE_BUG286557__NAME);
|
||||
createEReference(datatypeBug286557EClass, DATATYPE_BUG286557__REF);
|
||||
|
||||
enumBugEClass = createEClass(ENUM_BUG);
|
||||
createEAttribute(enumBugEClass, ENUM_BUG__RETURN);
|
||||
createEAttribute(enumBugEClass, ENUM_BUG__NAME);
|
||||
|
||||
commentableEClass = createEClass(COMMENTABLE);
|
||||
createEReference(commentableEClass, COMMENTABLE__ITEM);
|
||||
|
||||
commentableItemEClass = createEClass(COMMENTABLE_ITEM);
|
||||
createEAttribute(commentableItemEClass, COMMENTABLE_ITEM__ID);
|
||||
|
||||
valueListEClass = createEClass(VALUE_LIST);
|
||||
createEAttribute(valueListEClass, VALUE_LIST__IDS);
|
||||
|
||||
refListEClass = createEClass(REF_LIST);
|
||||
createEReference(refListEClass, REF_LIST__OBJS);
|
||||
createEReference(refListEClass, REF_LIST__REFS);
|
||||
|
||||
refObjEClass = createEClass(REF_OBJ);
|
||||
createEAttribute(refObjEClass, REF_OBJ__NAME);
|
||||
|
||||
singleRefEClass = createEClass(SINGLE_REF);
|
||||
createEReference(singleRefEClass, SINGLE_REF__OBJ);
|
||||
createEReference(singleRefEClass, SINGLE_REF__REF);
|
||||
|
||||
appendToFileEndEClass = createEClass(APPEND_TO_FILE_END);
|
||||
createEReference(appendToFileEndEClass, APPEND_TO_FILE_END__ITEMS);
|
||||
|
||||
appendToFileEndItemEClass = createEClass(APPEND_TO_FILE_END_ITEM);
|
||||
createEAttribute(appendToFileEndItemEClass, APPEND_TO_FILE_END_ITEM__NAME);
|
||||
|
||||
action1EClass = createEClass(ACTION1);
|
||||
createEAttribute(action1EClass, ACTION1__NAME);
|
||||
createEReference(action1EClass, ACTION1__ACTIONS2);
|
||||
|
||||
action1Sub1EClass = createEClass(ACTION1_SUB1);
|
||||
|
||||
action1Sub2EClass = createEClass(ACTION1_SUB2);
|
||||
|
||||
action1SubEClass = createEClass(ACTION1_SUB);
|
||||
|
||||
action1SubClassEClass = createEClass(ACTION1_SUB_CLASS);
|
||||
|
||||
// Create enums
|
||||
enumBugEnumEEnum = createEEnum(ENUM_BUG_ENUM);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void initializePackageContents()
|
||||
{
|
||||
if (isInitialized) return;
|
||||
isInitialized = true;
|
||||
|
||||
// Initialize package
|
||||
setName(eNAME);
|
||||
setNsPrefix(eNS_PREFIX);
|
||||
setNsURI(eNS_URI);
|
||||
|
||||
// Obtain other dependent packages
|
||||
EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
|
||||
|
||||
// Create type parameters
|
||||
|
||||
// Set bounds for type parameters
|
||||
|
||||
// Add supertypes to classes
|
||||
datatypeBug286557EClass.getESuperTypes().add(this.getModel());
|
||||
enumBugEClass.getESuperTypes().add(this.getModel());
|
||||
commentableEClass.getESuperTypes().add(this.getModel());
|
||||
valueListEClass.getESuperTypes().add(this.getModel());
|
||||
refListEClass.getESuperTypes().add(this.getModel());
|
||||
singleRefEClass.getESuperTypes().add(this.getModel());
|
||||
appendToFileEndEClass.getESuperTypes().add(this.getModel());
|
||||
action1EClass.getESuperTypes().add(this.getModel());
|
||||
action1SubEClass.getESuperTypes().add(this.getAction1Sub1());
|
||||
action1SubClassEClass.getESuperTypes().add(this.getAction1Sub2());
|
||||
|
||||
// Initialize classes and features; add operations and parameters
|
||||
initEClass(modelEClass, Model.class, "Model", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
|
||||
initEClass(datatypeBug286557EClass, DatatypeBug286557.class, "DatatypeBug286557", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getDatatypeBug286557_Name(), theEcorePackage.getEString(), "name", null, 0, 1, DatatypeBug286557.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getDatatypeBug286557_Ref(), this.getDatatypeBug286557(), null, "ref", null, 0, 1, DatatypeBug286557.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(enumBugEClass, EnumBug.class, "EnumBug", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getEnumBug_Return(), this.getEnumBugEnum(), "return", null, 0, 1, EnumBug.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getEnumBug_Name(), theEcorePackage.getEString(), "name", null, 0, 1, EnumBug.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(commentableEClass, Commentable.class, "Commentable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEReference(getCommentable_Item(), this.getCommentableItem(), null, "item", null, 0, -1, Commentable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(commentableItemEClass, CommentableItem.class, "CommentableItem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getCommentableItem_Id(), theEcorePackage.getEString(), "id", null, 0, 1, CommentableItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(valueListEClass, ValueList.class, "ValueList", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getValueList_Ids(), theEcorePackage.getEString(), "ids", null, 0, -1, ValueList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(refListEClass, RefList.class, "RefList", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEReference(getRefList_Objs(), this.getRefObj(), null, "objs", null, 0, -1, RefList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getRefList_Refs(), this.getRefObj(), null, "refs", null, 0, -1, RefList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(refObjEClass, RefObj.class, "RefObj", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getRefObj_Name(), theEcorePackage.getEString(), "name", null, 0, 1, RefObj.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(singleRefEClass, SingleRef.class, "SingleRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEReference(getSingleRef_Obj(), this.getRefObj(), null, "obj", null, 0, 1, SingleRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getSingleRef_Ref(), this.getRefObj(), null, "ref", null, 0, 1, SingleRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(appendToFileEndEClass, AppendToFileEnd.class, "AppendToFileEnd", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEReference(getAppendToFileEnd_Items(), this.getAppendToFileEndItem(), null, "items", null, 0, -1, AppendToFileEnd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(appendToFileEndItemEClass, AppendToFileEndItem.class, "AppendToFileEndItem", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getAppendToFileEndItem_Name(), theEcorePackage.getEString(), "name", null, 0, 1, AppendToFileEndItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(action1EClass, Action1.class, "Action1", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getAction1_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Action1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getAction1_Actions2(), theEcorePackage.getEObject(), null, "actions2", null, 0, -1, Action1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(action1Sub1EClass, Action1Sub1.class, "Action1Sub1", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
|
||||
initEClass(action1Sub2EClass, Action1Sub2.class, "Action1Sub2", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
|
||||
initEClass(action1SubEClass, Action1Sub.class, "Action1Sub", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
|
||||
initEClass(action1SubClassEClass, Action1SubClass.class, "Action1SubClass", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
|
||||
// Initialize enums and add enum literals
|
||||
initEEnum(enumBugEnumEEnum, EnumBugEnum.class, "EnumBugEnum");
|
||||
addEEnumLiteral(enumBugEnumEEnum, EnumBugEnum.ARRAY);
|
||||
addEEnumLiteral(enumBugEnumEEnum, EnumBugEnum.OBJECT);
|
||||
addEEnumLiteral(enumBugEnumEEnum, EnumBugEnum.RESULT_SET);
|
||||
addEEnumLiteral(enumBugEnumEEnum, EnumBugEnum.ITERATOR);
|
||||
|
||||
// Create resource
|
||||
createResource(eNS_URI);
|
||||
}
|
||||
|
||||
} //HiddentokenmergertestPackageImpl
|
|
@ -1,43 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Model;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Model</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class ModelImpl extends MinimalEObjectImpl.Container implements Model
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected ModelImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return HiddentokenmergertestPackage.Literals.MODEL;
|
||||
}
|
||||
|
||||
} //ModelImpl
|
|
@ -1,203 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
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.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.EObjectResolvingEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.RefList;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.RefObj;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Ref List</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl.RefListImpl#getObjs <em>Objs</em>}</li>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl.RefListImpl#getRefs <em>Refs</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class RefListImpl extends ModelImpl implements RefList
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getObjs() <em>Objs</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getObjs()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<RefObj> objs;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getRefs() <em>Refs</em>}' reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getRefs()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<RefObj> refs;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected RefListImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return HiddentokenmergertestPackage.Literals.REF_LIST;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<RefObj> getObjs()
|
||||
{
|
||||
if (objs == null)
|
||||
{
|
||||
objs = new EObjectContainmentEList<RefObj>(RefObj.class, this, HiddentokenmergertestPackage.REF_LIST__OBJS);
|
||||
}
|
||||
return objs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<RefObj> getRefs()
|
||||
{
|
||||
if (refs == null)
|
||||
{
|
||||
refs = new EObjectResolvingEList<RefObj>(RefObj.class, this, HiddentokenmergertestPackage.REF_LIST__REFS);
|
||||
}
|
||||
return refs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.REF_LIST__OBJS:
|
||||
return ((InternalEList<?>)getObjs()).basicRemove(otherEnd, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.REF_LIST__OBJS:
|
||||
return getObjs();
|
||||
case HiddentokenmergertestPackage.REF_LIST__REFS:
|
||||
return getRefs();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.REF_LIST__OBJS:
|
||||
getObjs().clear();
|
||||
getObjs().addAll((Collection<? extends RefObj>)newValue);
|
||||
return;
|
||||
case HiddentokenmergertestPackage.REF_LIST__REFS:
|
||||
getRefs().clear();
|
||||
getRefs().addAll((Collection<? extends RefObj>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.REF_LIST__OBJS:
|
||||
getObjs().clear();
|
||||
return;
|
||||
case HiddentokenmergertestPackage.REF_LIST__REFS:
|
||||
getRefs().clear();
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.REF_LIST__OBJS:
|
||||
return objs != null && !objs.isEmpty();
|
||||
case HiddentokenmergertestPackage.REF_LIST__REFS:
|
||||
return refs != null && !refs.isEmpty();
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //RefListImpl
|
|
@ -1,178 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.RefObj;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Ref Obj</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl.RefObjImpl#getName <em>Name</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class RefObjImpl extends MinimalEObjectImpl.Container implements RefObj
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String NAME_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String name = NAME_EDEFAULT;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected RefObjImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return HiddentokenmergertestPackage.Literals.REF_OBJ;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setName(String newName)
|
||||
{
|
||||
String oldName = name;
|
||||
name = newName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, HiddentokenmergertestPackage.REF_OBJ__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.REF_OBJ__NAME:
|
||||
return getName();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.REF_OBJ__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.REF_OBJ__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.REF_OBJ__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuffer result = new StringBuffer(super.toString());
|
||||
result.append(" (name: ");
|
||||
result.append(name);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //RefObjImpl
|
|
@ -1,259 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.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.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.RefObj;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.SingleRef;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Single Ref</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl.SingleRefImpl#getObj <em>Obj</em>}</li>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl.SingleRefImpl#getRef <em>Ref</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class SingleRefImpl extends ModelImpl implements SingleRef
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getObj() <em>Obj</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getObj()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected RefObj obj;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getRef() <em>Ref</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getRef()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected RefObj ref;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected SingleRefImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return HiddentokenmergertestPackage.Literals.SINGLE_REF;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public RefObj getObj()
|
||||
{
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetObj(RefObj newObj, NotificationChain msgs)
|
||||
{
|
||||
RefObj oldObj = obj;
|
||||
obj = newObj;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, HiddentokenmergertestPackage.SINGLE_REF__OBJ, oldObj, newObj);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setObj(RefObj newObj)
|
||||
{
|
||||
if (newObj != obj)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (obj != null)
|
||||
msgs = ((InternalEObject)obj).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - HiddentokenmergertestPackage.SINGLE_REF__OBJ, null, msgs);
|
||||
if (newObj != null)
|
||||
msgs = ((InternalEObject)newObj).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - HiddentokenmergertestPackage.SINGLE_REF__OBJ, null, msgs);
|
||||
msgs = basicSetObj(newObj, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, HiddentokenmergertestPackage.SINGLE_REF__OBJ, newObj, newObj));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public RefObj getRef()
|
||||
{
|
||||
if (ref != null && ref.eIsProxy())
|
||||
{
|
||||
InternalEObject oldRef = (InternalEObject)ref;
|
||||
ref = (RefObj)eResolveProxy(oldRef);
|
||||
if (ref != oldRef)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, HiddentokenmergertestPackage.SINGLE_REF__REF, oldRef, ref));
|
||||
}
|
||||
}
|
||||
return ref;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public RefObj basicGetRef()
|
||||
{
|
||||
return ref;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setRef(RefObj newRef)
|
||||
{
|
||||
RefObj oldRef = ref;
|
||||
ref = newRef;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, HiddentokenmergertestPackage.SINGLE_REF__REF, oldRef, ref));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.SINGLE_REF__OBJ:
|
||||
return basicSetObj(null, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.SINGLE_REF__OBJ:
|
||||
return getObj();
|
||||
case HiddentokenmergertestPackage.SINGLE_REF__REF:
|
||||
if (resolve) return getRef();
|
||||
return basicGetRef();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.SINGLE_REF__OBJ:
|
||||
setObj((RefObj)newValue);
|
||||
return;
|
||||
case HiddentokenmergertestPackage.SINGLE_REF__REF:
|
||||
setRef((RefObj)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.SINGLE_REF__OBJ:
|
||||
setObj((RefObj)null);
|
||||
return;
|
||||
case HiddentokenmergertestPackage.SINGLE_REF__REF:
|
||||
setRef((RefObj)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.SINGLE_REF__OBJ:
|
||||
return obj != null;
|
||||
case HiddentokenmergertestPackage.SINGLE_REF__REF:
|
||||
return ref != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //SingleRefImpl
|
|
@ -1,162 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EDataTypeEList;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.ValueList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Value List</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.impl.ValueListImpl#getIds <em>Ids</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class ValueListImpl extends ModelImpl implements ValueList
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getIds() <em>Ids</em>}' attribute list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getIds()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> ids;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected ValueListImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return HiddentokenmergertestPackage.Literals.VALUE_LIST;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<String> getIds()
|
||||
{
|
||||
if (ids == null)
|
||||
{
|
||||
ids = new EDataTypeEList<String>(String.class, this, HiddentokenmergertestPackage.VALUE_LIST__IDS);
|
||||
}
|
||||
return ids;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.VALUE_LIST__IDS:
|
||||
return getIds();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.VALUE_LIST__IDS:
|
||||
getIds().clear();
|
||||
getIds().addAll((Collection<? extends String>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.VALUE_LIST__IDS:
|
||||
getIds().clear();
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.VALUE_LIST__IDS:
|
||||
return ids != null && !ids.isEmpty();
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuffer result = new StringBuffer(super.toString());
|
||||
result.append(" (ids: ");
|
||||
result.append(ids);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //ValueListImpl
|
|
@ -1,433 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.util;
|
||||
|
||||
import org.eclipse.emf.common.notify.Adapter;
|
||||
import org.eclipse.emf.common.notify.Notifier;
|
||||
|
||||
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.*;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* The <b>Adapter Factory</b> for the model.
|
||||
* It provides an adapter <code>createXXX</code> method for each class of the model.
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage
|
||||
* @generated
|
||||
*/
|
||||
public class HiddentokenmergertestAdapterFactory extends AdapterFactoryImpl
|
||||
{
|
||||
/**
|
||||
* The cached model package.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected static HiddentokenmergertestPackage modelPackage;
|
||||
|
||||
/**
|
||||
* Creates an instance of the adapter factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public HiddentokenmergertestAdapterFactory()
|
||||
{
|
||||
if (modelPackage == null)
|
||||
{
|
||||
modelPackage = HiddentokenmergertestPackage.eINSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether this factory is applicable for the type of the object.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <code>createXXX</code> methods.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected HiddentokenmergertestSwitch<Adapter> modelSwitch =
|
||||
new HiddentokenmergertestSwitch<Adapter>()
|
||||
{
|
||||
@Override
|
||||
public Adapter caseModel(Model object)
|
||||
{
|
||||
return createModelAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseDatatypeBug286557(DatatypeBug286557 object)
|
||||
{
|
||||
return createDatatypeBug286557Adapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseEnumBug(EnumBug object)
|
||||
{
|
||||
return createEnumBugAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseCommentable(Commentable object)
|
||||
{
|
||||
return createCommentableAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseCommentableItem(CommentableItem object)
|
||||
{
|
||||
return createCommentableItemAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseValueList(ValueList object)
|
||||
{
|
||||
return createValueListAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseRefList(RefList object)
|
||||
{
|
||||
return createRefListAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseRefObj(RefObj object)
|
||||
{
|
||||
return createRefObjAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseSingleRef(SingleRef object)
|
||||
{
|
||||
return createSingleRefAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseAppendToFileEnd(AppendToFileEnd object)
|
||||
{
|
||||
return createAppendToFileEndAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseAppendToFileEndItem(AppendToFileEndItem object)
|
||||
{
|
||||
return createAppendToFileEndItemAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseAction1(Action1 object)
|
||||
{
|
||||
return createAction1Adapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseAction1Sub1(Action1Sub1 object)
|
||||
{
|
||||
return createAction1Sub1Adapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseAction1Sub2(Action1Sub2 object)
|
||||
{
|
||||
return createAction1Sub2Adapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseAction1Sub(Action1Sub object)
|
||||
{
|
||||
return createAction1SubAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseAction1SubClass(Action1SubClass object)
|
||||
{
|
||||
return createAction1SubClassAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter defaultCase(EObject object)
|
||||
{
|
||||
return createEObjectAdapter();
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Creates an adapter for the <code>target</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param target the object to adapt.
|
||||
* @return the adapter for the <code>target</code>.
|
||||
* @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.parsetree.reconstr.hiddentokenmergertest.Model <em>Model</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Model
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createModelAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.DatatypeBug286557 <em>Datatype Bug286557</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.DatatypeBug286557
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createDatatypeBug286557Adapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.EnumBug <em>Enum Bug</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.EnumBug
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createEnumBugAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Commentable <em>Commentable</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Commentable
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createCommentableAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.CommentableItem <em>Commentable Item</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.CommentableItem
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createCommentableItemAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.ValueList <em>Value List</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.ValueList
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createValueListAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.RefList <em>Ref List</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.RefList
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createRefListAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.RefObj <em>Ref Obj</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.RefObj
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createRefObjAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.SingleRef <em>Single Ref</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.SingleRef
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createSingleRefAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.AppendToFileEnd <em>Append To File End</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.AppendToFileEnd
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createAppendToFileEndAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.AppendToFileEndItem <em>Append To File End Item</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.AppendToFileEndItem
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createAppendToFileEndItemAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1 <em>Action1</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createAction1Adapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1Sub1 <em>Action1 Sub1</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1Sub1
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createAction1Sub1Adapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1Sub2 <em>Action1 Sub2</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1Sub2
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createAction1Sub2Adapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1Sub <em>Action1 Sub</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1Sub
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createAction1SubAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1SubClass <em>Action1 Sub Class</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1SubClass
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createAction1SubClassAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for the default case.
|
||||
* <!-- begin-user-doc -->
|
||||
* This default implementation returns null.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createEObjectAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
} //HiddentokenmergertestAdapterFactory
|
|
@ -1,475 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.util;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
import org.eclipse.emf.ecore.EPackage;
|
||||
|
||||
import org.eclipse.emf.ecore.util.Switch;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.*;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* The <b>Switch</b> for the model's inheritance hierarchy.
|
||||
* It supports the call {@link #doSwitch(EObject) doSwitch(object)}
|
||||
* to invoke the <code>caseXXX</code> 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage
|
||||
* @generated
|
||||
*/
|
||||
public class HiddentokenmergertestSwitch<T> extends Switch<T>
|
||||
{
|
||||
/**
|
||||
* The cached model package
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected static HiddentokenmergertestPackage modelPackage;
|
||||
|
||||
/**
|
||||
* Creates an instance of the switch.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public HiddentokenmergertestSwitch()
|
||||
{
|
||||
if (modelPackage == null)
|
||||
{
|
||||
modelPackage = HiddentokenmergertestPackage.eINSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether this is a switch for the given package.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param ePackage the package in question.
|
||||
* @return whether this is a switch for the given package.
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected boolean isSwitchFor(EPackage ePackage)
|
||||
{
|
||||
return ePackage == modelPackage;
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the first non-null result returned by a <code>caseXXX</code> call.
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected T doSwitch(int classifierID, EObject theEObject)
|
||||
{
|
||||
switch (classifierID)
|
||||
{
|
||||
case HiddentokenmergertestPackage.MODEL:
|
||||
{
|
||||
Model model = (Model)theEObject;
|
||||
T result = caseModel(model);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case HiddentokenmergertestPackage.DATATYPE_BUG286557:
|
||||
{
|
||||
DatatypeBug286557 datatypeBug286557 = (DatatypeBug286557)theEObject;
|
||||
T result = caseDatatypeBug286557(datatypeBug286557);
|
||||
if (result == null) result = caseModel(datatypeBug286557);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case HiddentokenmergertestPackage.ENUM_BUG:
|
||||
{
|
||||
EnumBug enumBug = (EnumBug)theEObject;
|
||||
T result = caseEnumBug(enumBug);
|
||||
if (result == null) result = caseModel(enumBug);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case HiddentokenmergertestPackage.COMMENTABLE:
|
||||
{
|
||||
Commentable commentable = (Commentable)theEObject;
|
||||
T result = caseCommentable(commentable);
|
||||
if (result == null) result = caseModel(commentable);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case HiddentokenmergertestPackage.COMMENTABLE_ITEM:
|
||||
{
|
||||
CommentableItem commentableItem = (CommentableItem)theEObject;
|
||||
T result = caseCommentableItem(commentableItem);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case HiddentokenmergertestPackage.VALUE_LIST:
|
||||
{
|
||||
ValueList valueList = (ValueList)theEObject;
|
||||
T result = caseValueList(valueList);
|
||||
if (result == null) result = caseModel(valueList);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case HiddentokenmergertestPackage.REF_LIST:
|
||||
{
|
||||
RefList refList = (RefList)theEObject;
|
||||
T result = caseRefList(refList);
|
||||
if (result == null) result = caseModel(refList);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case HiddentokenmergertestPackage.REF_OBJ:
|
||||
{
|
||||
RefObj refObj = (RefObj)theEObject;
|
||||
T result = caseRefObj(refObj);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case HiddentokenmergertestPackage.SINGLE_REF:
|
||||
{
|
||||
SingleRef singleRef = (SingleRef)theEObject;
|
||||
T result = caseSingleRef(singleRef);
|
||||
if (result == null) result = caseModel(singleRef);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case HiddentokenmergertestPackage.APPEND_TO_FILE_END:
|
||||
{
|
||||
AppendToFileEnd appendToFileEnd = (AppendToFileEnd)theEObject;
|
||||
T result = caseAppendToFileEnd(appendToFileEnd);
|
||||
if (result == null) result = caseModel(appendToFileEnd);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case HiddentokenmergertestPackage.APPEND_TO_FILE_END_ITEM:
|
||||
{
|
||||
AppendToFileEndItem appendToFileEndItem = (AppendToFileEndItem)theEObject;
|
||||
T result = caseAppendToFileEndItem(appendToFileEndItem);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case HiddentokenmergertestPackage.ACTION1:
|
||||
{
|
||||
Action1 action1 = (Action1)theEObject;
|
||||
T result = caseAction1(action1);
|
||||
if (result == null) result = caseModel(action1);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case HiddentokenmergertestPackage.ACTION1_SUB1:
|
||||
{
|
||||
Action1Sub1 action1Sub1 = (Action1Sub1)theEObject;
|
||||
T result = caseAction1Sub1(action1Sub1);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case HiddentokenmergertestPackage.ACTION1_SUB2:
|
||||
{
|
||||
Action1Sub2 action1Sub2 = (Action1Sub2)theEObject;
|
||||
T result = caseAction1Sub2(action1Sub2);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case HiddentokenmergertestPackage.ACTION1_SUB:
|
||||
{
|
||||
Action1Sub action1Sub = (Action1Sub)theEObject;
|
||||
T result = caseAction1Sub(action1Sub);
|
||||
if (result == null) result = caseAction1Sub1(action1Sub);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case HiddentokenmergertestPackage.ACTION1_SUB_CLASS:
|
||||
{
|
||||
Action1SubClass action1SubClass = (Action1SubClass)theEObject;
|
||||
T result = caseAction1SubClass(action1SubClass);
|
||||
if (result == null) result = caseAction1Sub2(action1SubClass);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
default: return defaultCase(theEObject);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>Model</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>Model</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseModel(Model object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>Datatype Bug286557</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>Datatype Bug286557</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseDatatypeBug286557(DatatypeBug286557 object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>Enum Bug</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>Enum Bug</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseEnumBug(EnumBug object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>Commentable</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>Commentable</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseCommentable(Commentable object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>Commentable Item</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>Commentable Item</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseCommentableItem(CommentableItem object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>Value List</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>Value List</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseValueList(ValueList object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>Ref List</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>Ref List</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseRefList(RefList object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>Ref Obj</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>Ref Obj</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseRefObj(RefObj object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>Single Ref</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>Single Ref</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseSingleRef(SingleRef object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>Append To File End</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>Append To File End</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseAppendToFileEnd(AppendToFileEnd object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>Append To File End Item</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>Append To File End Item</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseAppendToFileEndItem(AppendToFileEndItem object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>Action1</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>Action1</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseAction1(Action1 object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>Action1 Sub1</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>Action1 Sub1</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseAction1Sub1(Action1Sub1 object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>Action1 Sub2</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>Action1 Sub2</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseAction1Sub2(Action1Sub2 object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>Action1 Sub</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>Action1 Sub</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseAction1Sub(Action1Sub object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>Action1 Sub Class</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>Action1 Sub Class</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseAction1SubClass(Action1SubClass object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch, but this is the last case anyway.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>EObject</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public T defaultCase(EObject object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
} //HiddentokenmergertestSwitch
|
|
@ -1,16 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.parser.antlr;
|
||||
|
||||
import java.io.InputStream;
|
||||
import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider;
|
||||
|
||||
public class HiddenTokensMergerTestLanguageAntlrTokenFileProvider implements IAntlrTokenFileProvider {
|
||||
|
||||
@Override
|
||||
public InputStream getAntlrTokenFile() {
|
||||
ClassLoader classLoader = getClass().getClassLoader();
|
||||
return classLoader.getResourceAsStream("org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalHiddenTokensMergerTestLanguage.tokens");
|
||||
}
|
||||
}
|
|
@ -1,40 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.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.parsetree.reconstr.parser.antlr.internal.InternalHiddenTokensMergerTestLanguageParser;
|
||||
import org.eclipse.xtext.parsetree.reconstr.services.HiddenTokensMergerTestLanguageGrammarAccess;
|
||||
|
||||
public class HiddenTokensMergerTestLanguageParser extends AbstractAntlrParser {
|
||||
|
||||
@Inject
|
||||
private HiddenTokensMergerTestLanguageGrammarAccess grammarAccess;
|
||||
|
||||
@Override
|
||||
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
|
||||
tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected InternalHiddenTokensMergerTestLanguageParser createParser(XtextTokenStream stream) {
|
||||
return new InternalHiddenTokensMergerTestLanguageParser(stream, getGrammarAccess());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getDefaultRuleName() {
|
||||
return "Model";
|
||||
}
|
||||
|
||||
public HiddenTokensMergerTestLanguageGrammarAccess getGrammarAccess() {
|
||||
return this.grammarAccess;
|
||||
}
|
||||
|
||||
public void setGrammarAccess(HiddenTokensMergerTestLanguageGrammarAccess grammarAccess) {
|
||||
this.grammarAccess = grammarAccess;
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.parser.antlr;
|
||||
|
||||
import java.io.InputStream;
|
||||
import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider;
|
||||
|
||||
public class PartialSerializationTestLanguageAntlrTokenFileProvider implements IAntlrTokenFileProvider {
|
||||
|
||||
@Override
|
||||
public InputStream getAntlrTokenFile() {
|
||||
ClassLoader classLoader = getClass().getClassLoader();
|
||||
return classLoader.getResourceAsStream("org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalPartialSerializationTestLanguage.tokens");
|
||||
}
|
||||
}
|
|
@ -1,40 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.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.parsetree.reconstr.parser.antlr.internal.InternalPartialSerializationTestLanguageParser;
|
||||
import org.eclipse.xtext.parsetree.reconstr.services.PartialSerializationTestLanguageGrammarAccess;
|
||||
|
||||
public class PartialSerializationTestLanguageParser extends AbstractAntlrParser {
|
||||
|
||||
@Inject
|
||||
private PartialSerializationTestLanguageGrammarAccess grammarAccess;
|
||||
|
||||
@Override
|
||||
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
|
||||
tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected InternalPartialSerializationTestLanguageParser createParser(XtextTokenStream stream) {
|
||||
return new InternalPartialSerializationTestLanguageParser(stream, getGrammarAccess());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getDefaultRuleName() {
|
||||
return "Model";
|
||||
}
|
||||
|
||||
public PartialSerializationTestLanguageGrammarAccess getGrammarAccess() {
|
||||
return this.grammarAccess;
|
||||
}
|
||||
|
||||
public void setGrammarAccess(PartialSerializationTestLanguageGrammarAccess grammarAccess) {
|
||||
this.grammarAccess = grammarAccess;
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.parser.antlr;
|
||||
|
||||
import java.io.InputStream;
|
||||
import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider;
|
||||
|
||||
public class SimpleReconstrTestLanguageAntlrTokenFileProvider implements IAntlrTokenFileProvider {
|
||||
|
||||
@Override
|
||||
public InputStream getAntlrTokenFile() {
|
||||
ClassLoader classLoader = getClass().getClassLoader();
|
||||
return classLoader.getResourceAsStream("org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalSimpleReconstrTestLanguage.tokens");
|
||||
}
|
||||
}
|
|
@ -1,40 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.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.parsetree.reconstr.parser.antlr.internal.InternalSimpleReconstrTestLanguageParser;
|
||||
import org.eclipse.xtext.parsetree.reconstr.services.SimpleReconstrTestLanguageGrammarAccess;
|
||||
|
||||
public class SimpleReconstrTestLanguageParser extends AbstractAntlrParser {
|
||||
|
||||
@Inject
|
||||
private SimpleReconstrTestLanguageGrammarAccess grammarAccess;
|
||||
|
||||
@Override
|
||||
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
|
||||
tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected InternalSimpleReconstrTestLanguageParser createParser(XtextTokenStream stream) {
|
||||
return new InternalSimpleReconstrTestLanguageParser(stream, getGrammarAccess());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getDefaultRuleName() {
|
||||
return "Op";
|
||||
}
|
||||
|
||||
public SimpleReconstrTestLanguageGrammarAccess getGrammarAccess() {
|
||||
return this.grammarAccess;
|
||||
}
|
||||
|
||||
public void setGrammarAccess(SimpleReconstrTestLanguageGrammarAccess grammarAccess) {
|
||||
this.grammarAccess = grammarAccess;
|
||||
}
|
||||
}
|
|
@ -1,899 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
grammar InternalHiddenTokensMergerTestLanguage;
|
||||
|
||||
options {
|
||||
superClass=AbstractInternalAntlrParser;
|
||||
}
|
||||
|
||||
@lexer::header {
|
||||
package org.eclipse.xtext.parsetree.reconstr.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.parsetree.reconstr.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.emf.common.util.Enumerator;
|
||||
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.parsetree.reconstr.services.HiddenTokensMergerTestLanguageGrammarAccess;
|
||||
|
||||
}
|
||||
|
||||
@parser::members {
|
||||
|
||||
private HiddenTokensMergerTestLanguageGrammarAccess grammarAccess;
|
||||
|
||||
public InternalHiddenTokensMergerTestLanguageParser(TokenStream input, HiddenTokensMergerTestLanguageGrammarAccess grammarAccess) {
|
||||
this(input);
|
||||
this.grammarAccess = grammarAccess;
|
||||
registerRules(grammarAccess.getGrammar());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getFirstRuleName() {
|
||||
return "Model";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected HiddenTokensMergerTestLanguageGrammarAccess getGrammarAccess() {
|
||||
return grammarAccess;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@rulecatch {
|
||||
catch (RecognitionException re) {
|
||||
recover(input,re);
|
||||
appendSkippedTokens();
|
||||
}
|
||||
}
|
||||
|
||||
// Entry rule entryRuleModel
|
||||
entryRuleModel returns [EObject current=null]:
|
||||
{ newCompositeNode(grammarAccess.getModelRule()); }
|
||||
iv_ruleModel=ruleModel
|
||||
{ $current=$iv_ruleModel.current; }
|
||||
EOF;
|
||||
|
||||
// Rule Model
|
||||
ruleModel returns [EObject current=null]
|
||||
@init {
|
||||
enterRule();
|
||||
}
|
||||
@after {
|
||||
leaveRule();
|
||||
}:
|
||||
(
|
||||
{
|
||||
newCompositeNode(grammarAccess.getModelAccess().getDatatypeBug286557ParserRuleCall_0());
|
||||
}
|
||||
this_DatatypeBug286557_0=ruleDatatypeBug286557
|
||||
{
|
||||
$current = $this_DatatypeBug286557_0.current;
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
|
|
||||
{
|
||||
newCompositeNode(grammarAccess.getModelAccess().getEnumBugParserRuleCall_1());
|
||||
}
|
||||
this_EnumBug_1=ruleEnumBug
|
||||
{
|
||||
$current = $this_EnumBug_1.current;
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
|
|
||||
{
|
||||
newCompositeNode(grammarAccess.getModelAccess().getCommentableParserRuleCall_2());
|
||||
}
|
||||
this_Commentable_2=ruleCommentable
|
||||
{
|
||||
$current = $this_Commentable_2.current;
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
|
|
||||
{
|
||||
newCompositeNode(grammarAccess.getModelAccess().getValueListParserRuleCall_3());
|
||||
}
|
||||
this_ValueList_3=ruleValueList
|
||||
{
|
||||
$current = $this_ValueList_3.current;
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
|
|
||||
{
|
||||
newCompositeNode(grammarAccess.getModelAccess().getRefListParserRuleCall_4());
|
||||
}
|
||||
this_RefList_4=ruleRefList
|
||||
{
|
||||
$current = $this_RefList_4.current;
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
|
|
||||
{
|
||||
newCompositeNode(grammarAccess.getModelAccess().getSingleRefParserRuleCall_5());
|
||||
}
|
||||
this_SingleRef_5=ruleSingleRef
|
||||
{
|
||||
$current = $this_SingleRef_5.current;
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
|
|
||||
{
|
||||
newCompositeNode(grammarAccess.getModelAccess().getAppendToFileEndParserRuleCall_6());
|
||||
}
|
||||
this_AppendToFileEnd_6=ruleAppendToFileEnd
|
||||
{
|
||||
$current = $this_AppendToFileEnd_6.current;
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
|
|
||||
{
|
||||
newCompositeNode(grammarAccess.getModelAccess().getAction1ParserRuleCall_7());
|
||||
}
|
||||
this_Action1_7=ruleAction1
|
||||
{
|
||||
$current = $this_Action1_7.current;
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
)
|
||||
;
|
||||
|
||||
// Entry rule entryRuleDatatypeBug286557
|
||||
entryRuleDatatypeBug286557 returns [EObject current=null]:
|
||||
{ newCompositeNode(grammarAccess.getDatatypeBug286557Rule()); }
|
||||
iv_ruleDatatypeBug286557=ruleDatatypeBug286557
|
||||
{ $current=$iv_ruleDatatypeBug286557.current; }
|
||||
EOF;
|
||||
|
||||
// Rule DatatypeBug286557
|
||||
ruleDatatypeBug286557 returns [EObject current=null]
|
||||
@init {
|
||||
enterRule();
|
||||
}
|
||||
@after {
|
||||
leaveRule();
|
||||
}:
|
||||
(
|
||||
otherlv_0='#1'
|
||||
{
|
||||
newLeafNode(otherlv_0, grammarAccess.getDatatypeBug286557Access().getNumberSignDigitOneKeyword_0());
|
||||
}
|
||||
(
|
||||
(
|
||||
{
|
||||
newCompositeNode(grammarAccess.getDatatypeBug286557Access().getNameFQNParserRuleCall_1_0());
|
||||
}
|
||||
lv_name_1_0=ruleFQN
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElementForParent(grammarAccess.getDatatypeBug286557Rule());
|
||||
}
|
||||
set(
|
||||
$current,
|
||||
"name",
|
||||
lv_name_1_0,
|
||||
"org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.FQN");
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
)
|
||||
)
|
||||
(
|
||||
otherlv_2='ref'
|
||||
{
|
||||
newLeafNode(otherlv_2, grammarAccess.getDatatypeBug286557Access().getRefKeyword_2_0());
|
||||
}
|
||||
(
|
||||
(
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getDatatypeBug286557Rule());
|
||||
}
|
||||
}
|
||||
{
|
||||
newCompositeNode(grammarAccess.getDatatypeBug286557Access().getRefDatatypeBug286557CrossReference_2_1_0());
|
||||
}
|
||||
ruleFQN
|
||||
{
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
)
|
||||
)
|
||||
)?
|
||||
otherlv_4=';'
|
||||
{
|
||||
newLeafNode(otherlv_4, grammarAccess.getDatatypeBug286557Access().getSemicolonKeyword_3());
|
||||
}
|
||||
)
|
||||
;
|
||||
|
||||
// Entry rule entryRuleFQN
|
||||
entryRuleFQN returns [String current=null]:
|
||||
{ newCompositeNode(grammarAccess.getFQNRule()); }
|
||||
iv_ruleFQN=ruleFQN
|
||||
{ $current=$iv_ruleFQN.current.getText(); }
|
||||
EOF;
|
||||
|
||||
// Rule FQN
|
||||
ruleFQN returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
|
||||
@init {
|
||||
enterRule();
|
||||
}
|
||||
@after {
|
||||
leaveRule();
|
||||
}:
|
||||
(
|
||||
this_ID_0=RULE_ID
|
||||
{
|
||||
$current.merge(this_ID_0);
|
||||
}
|
||||
{
|
||||
newLeafNode(this_ID_0, grammarAccess.getFQNAccess().getIDTerminalRuleCall_0());
|
||||
}
|
||||
(
|
||||
kw='.'
|
||||
{
|
||||
$current.merge(kw);
|
||||
newLeafNode(kw, grammarAccess.getFQNAccess().getFullStopKeyword_1_0());
|
||||
}
|
||||
this_ID_2=RULE_ID
|
||||
{
|
||||
$current.merge(this_ID_2);
|
||||
}
|
||||
{
|
||||
newLeafNode(this_ID_2, grammarAccess.getFQNAccess().getIDTerminalRuleCall_1_1());
|
||||
}
|
||||
)*
|
||||
)
|
||||
;
|
||||
|
||||
// Entry rule entryRuleEnumBug
|
||||
entryRuleEnumBug returns [EObject current=null]:
|
||||
{ newCompositeNode(grammarAccess.getEnumBugRule()); }
|
||||
iv_ruleEnumBug=ruleEnumBug
|
||||
{ $current=$iv_ruleEnumBug.current; }
|
||||
EOF;
|
||||
|
||||
// Rule EnumBug
|
||||
ruleEnumBug returns [EObject current=null]
|
||||
@init {
|
||||
enterRule();
|
||||
}
|
||||
@after {
|
||||
leaveRule();
|
||||
}:
|
||||
(
|
||||
otherlv_0='#2'
|
||||
{
|
||||
newLeafNode(otherlv_0, grammarAccess.getEnumBugAccess().getNumberSignDigitTwoKeyword_0());
|
||||
}
|
||||
otherlv_1='kw1'
|
||||
{
|
||||
newLeafNode(otherlv_1, grammarAccess.getEnumBugAccess().getKw1Keyword_1());
|
||||
}
|
||||
(
|
||||
(
|
||||
{
|
||||
newCompositeNode(grammarAccess.getEnumBugAccess().getReturnEnumBugEnumEnumRuleCall_2_0());
|
||||
}
|
||||
lv_return_2_0=ruleEnumBugEnum
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElementForParent(grammarAccess.getEnumBugRule());
|
||||
}
|
||||
set(
|
||||
$current,
|
||||
"return",
|
||||
lv_return_2_0,
|
||||
"org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.EnumBugEnum");
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
)
|
||||
)
|
||||
(
|
||||
(
|
||||
lv_name_3_0=RULE_ID
|
||||
{
|
||||
newLeafNode(lv_name_3_0, grammarAccess.getEnumBugAccess().getNameIDTerminalRuleCall_3_0());
|
||||
}
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getEnumBugRule());
|
||||
}
|
||||
setWithLastConsumed(
|
||||
$current,
|
||||
"name",
|
||||
lv_name_3_0,
|
||||
"org.eclipse.xtext.common.Terminals.ID");
|
||||
}
|
||||
)
|
||||
)
|
||||
)
|
||||
;
|
||||
|
||||
// Entry rule entryRuleCommentable
|
||||
entryRuleCommentable returns [EObject current=null]:
|
||||
{ newCompositeNode(grammarAccess.getCommentableRule()); }
|
||||
iv_ruleCommentable=ruleCommentable
|
||||
{ $current=$iv_ruleCommentable.current; }
|
||||
EOF;
|
||||
|
||||
// Rule Commentable
|
||||
ruleCommentable returns [EObject current=null]
|
||||
@init {
|
||||
enterRule();
|
||||
}
|
||||
@after {
|
||||
leaveRule();
|
||||
}:
|
||||
(
|
||||
otherlv_0='#3'
|
||||
{
|
||||
newLeafNode(otherlv_0, grammarAccess.getCommentableAccess().getNumberSignDigitThreeKeyword_0());
|
||||
}
|
||||
(
|
||||
(
|
||||
{
|
||||
newCompositeNode(grammarAccess.getCommentableAccess().getItemCommentableItemParserRuleCall_1_0());
|
||||
}
|
||||
lv_item_1_0=ruleCommentableItem
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElementForParent(grammarAccess.getCommentableRule());
|
||||
}
|
||||
add(
|
||||
$current,
|
||||
"item",
|
||||
lv_item_1_0,
|
||||
"org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.CommentableItem");
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
)
|
||||
)*
|
||||
)
|
||||
;
|
||||
|
||||
// Entry rule entryRuleCommentableItem
|
||||
entryRuleCommentableItem returns [EObject current=null]:
|
||||
{ newCompositeNode(grammarAccess.getCommentableItemRule()); }
|
||||
iv_ruleCommentableItem=ruleCommentableItem
|
||||
{ $current=$iv_ruleCommentableItem.current; }
|
||||
EOF;
|
||||
|
||||
// Rule CommentableItem
|
||||
ruleCommentableItem returns [EObject current=null]
|
||||
@init {
|
||||
enterRule();
|
||||
}
|
||||
@after {
|
||||
leaveRule();
|
||||
}:
|
||||
(
|
||||
otherlv_0='item'
|
||||
{
|
||||
newLeafNode(otherlv_0, grammarAccess.getCommentableItemAccess().getItemKeyword_0());
|
||||
}
|
||||
(
|
||||
(
|
||||
lv_id_1_0=RULE_ID
|
||||
{
|
||||
newLeafNode(lv_id_1_0, grammarAccess.getCommentableItemAccess().getIdIDTerminalRuleCall_1_0());
|
||||
}
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getCommentableItemRule());
|
||||
}
|
||||
setWithLastConsumed(
|
||||
$current,
|
||||
"id",
|
||||
lv_id_1_0,
|
||||
"org.eclipse.xtext.common.Terminals.ID");
|
||||
}
|
||||
)
|
||||
)
|
||||
)
|
||||
;
|
||||
|
||||
// Entry rule entryRuleValueList
|
||||
entryRuleValueList returns [EObject current=null]:
|
||||
{ newCompositeNode(grammarAccess.getValueListRule()); }
|
||||
iv_ruleValueList=ruleValueList
|
||||
{ $current=$iv_ruleValueList.current; }
|
||||
EOF;
|
||||
|
||||
// Rule ValueList
|
||||
ruleValueList returns [EObject current=null]
|
||||
@init {
|
||||
enterRule();
|
||||
}
|
||||
@after {
|
||||
leaveRule();
|
||||
}:
|
||||
(
|
||||
otherlv_0='#4'
|
||||
{
|
||||
newLeafNode(otherlv_0, grammarAccess.getValueListAccess().getNumberSignDigitFourKeyword_0());
|
||||
}
|
||||
(
|
||||
(
|
||||
{
|
||||
newCompositeNode(grammarAccess.getValueListAccess().getIdsFQNParserRuleCall_1_0());
|
||||
}
|
||||
lv_ids_1_0=ruleFQN
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElementForParent(grammarAccess.getValueListRule());
|
||||
}
|
||||
add(
|
||||
$current,
|
||||
"ids",
|
||||
lv_ids_1_0,
|
||||
"org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.FQN");
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
)
|
||||
)*
|
||||
)
|
||||
;
|
||||
|
||||
// Entry rule entryRuleRefList
|
||||
entryRuleRefList returns [EObject current=null]:
|
||||
{ newCompositeNode(grammarAccess.getRefListRule()); }
|
||||
iv_ruleRefList=ruleRefList
|
||||
{ $current=$iv_ruleRefList.current; }
|
||||
EOF;
|
||||
|
||||
// Rule RefList
|
||||
ruleRefList returns [EObject current=null]
|
||||
@init {
|
||||
enterRule();
|
||||
}
|
||||
@after {
|
||||
leaveRule();
|
||||
}:
|
||||
(
|
||||
otherlv_0='#5'
|
||||
{
|
||||
newLeafNode(otherlv_0, grammarAccess.getRefListAccess().getNumberSignDigitFiveKeyword_0());
|
||||
}
|
||||
(
|
||||
(
|
||||
{
|
||||
newCompositeNode(grammarAccess.getRefListAccess().getObjsRefObjParserRuleCall_1_0());
|
||||
}
|
||||
lv_objs_1_0=ruleRefObj
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElementForParent(grammarAccess.getRefListRule());
|
||||
}
|
||||
add(
|
||||
$current,
|
||||
"objs",
|
||||
lv_objs_1_0,
|
||||
"org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.RefObj");
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
)
|
||||
)*
|
||||
otherlv_2='refs'
|
||||
{
|
||||
newLeafNode(otherlv_2, grammarAccess.getRefListAccess().getRefsKeyword_2());
|
||||
}
|
||||
(
|
||||
(
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getRefListRule());
|
||||
}
|
||||
}
|
||||
{
|
||||
newCompositeNode(grammarAccess.getRefListAccess().getRefsRefObjCrossReference_3_0());
|
||||
}
|
||||
ruleFQN
|
||||
{
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
)
|
||||
)*
|
||||
)
|
||||
;
|
||||
|
||||
// Entry rule entryRuleRefObj
|
||||
entryRuleRefObj returns [EObject current=null]:
|
||||
{ newCompositeNode(grammarAccess.getRefObjRule()); }
|
||||
iv_ruleRefObj=ruleRefObj
|
||||
{ $current=$iv_ruleRefObj.current; }
|
||||
EOF;
|
||||
|
||||
// Rule RefObj
|
||||
ruleRefObj returns [EObject current=null]
|
||||
@init {
|
||||
enterRule();
|
||||
}
|
||||
@after {
|
||||
leaveRule();
|
||||
}:
|
||||
(
|
||||
(
|
||||
{
|
||||
newCompositeNode(grammarAccess.getRefObjAccess().getNameFQNParserRuleCall_0());
|
||||
}
|
||||
lv_name_0_0=ruleFQN
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElementForParent(grammarAccess.getRefObjRule());
|
||||
}
|
||||
set(
|
||||
$current,
|
||||
"name",
|
||||
lv_name_0_0,
|
||||
"org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.FQN");
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
)
|
||||
)
|
||||
;
|
||||
|
||||
// Entry rule entryRuleSingleRef
|
||||
entryRuleSingleRef returns [EObject current=null]:
|
||||
{ newCompositeNode(grammarAccess.getSingleRefRule()); }
|
||||
iv_ruleSingleRef=ruleSingleRef
|
||||
{ $current=$iv_ruleSingleRef.current; }
|
||||
EOF;
|
||||
|
||||
// Rule SingleRef
|
||||
ruleSingleRef returns [EObject current=null]
|
||||
@init {
|
||||
enterRule();
|
||||
}
|
||||
@after {
|
||||
leaveRule();
|
||||
}:
|
||||
(
|
||||
otherlv_0='#6'
|
||||
{
|
||||
newLeafNode(otherlv_0, grammarAccess.getSingleRefAccess().getNumberSignDigitSixKeyword_0());
|
||||
}
|
||||
(
|
||||
(
|
||||
{
|
||||
newCompositeNode(grammarAccess.getSingleRefAccess().getObjRefObjParserRuleCall_1_0());
|
||||
}
|
||||
lv_obj_1_0=ruleRefObj
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElementForParent(grammarAccess.getSingleRefRule());
|
||||
}
|
||||
set(
|
||||
$current,
|
||||
"obj",
|
||||
lv_obj_1_0,
|
||||
"org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.RefObj");
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
)
|
||||
)
|
||||
otherlv_2='ref'
|
||||
{
|
||||
newLeafNode(otherlv_2, grammarAccess.getSingleRefAccess().getRefKeyword_2());
|
||||
}
|
||||
(
|
||||
(
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getSingleRefRule());
|
||||
}
|
||||
}
|
||||
{
|
||||
newCompositeNode(grammarAccess.getSingleRefAccess().getRefRefObjCrossReference_3_0());
|
||||
}
|
||||
ruleFQN
|
||||
{
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
)
|
||||
)
|
||||
)
|
||||
;
|
||||
|
||||
// Entry rule entryRuleAppendToFileEnd
|
||||
entryRuleAppendToFileEnd returns [EObject current=null]:
|
||||
{ newCompositeNode(grammarAccess.getAppendToFileEndRule()); }
|
||||
iv_ruleAppendToFileEnd=ruleAppendToFileEnd
|
||||
{ $current=$iv_ruleAppendToFileEnd.current; }
|
||||
EOF;
|
||||
|
||||
// Rule AppendToFileEnd
|
||||
ruleAppendToFileEnd returns [EObject current=null]
|
||||
@init {
|
||||
enterRule();
|
||||
}
|
||||
@after {
|
||||
leaveRule();
|
||||
}:
|
||||
(
|
||||
otherlv_0='#7'
|
||||
{
|
||||
newLeafNode(otherlv_0, grammarAccess.getAppendToFileEndAccess().getNumberSignDigitSevenKeyword_0());
|
||||
}
|
||||
(
|
||||
(
|
||||
{
|
||||
newCompositeNode(grammarAccess.getAppendToFileEndAccess().getItemsAppendToFileEndItemParserRuleCall_1_0());
|
||||
}
|
||||
lv_items_1_0=ruleAppendToFileEndItem
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElementForParent(grammarAccess.getAppendToFileEndRule());
|
||||
}
|
||||
add(
|
||||
$current,
|
||||
"items",
|
||||
lv_items_1_0,
|
||||
"org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.AppendToFileEndItem");
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
)
|
||||
)*
|
||||
)
|
||||
;
|
||||
|
||||
// Entry rule entryRuleAppendToFileEndItem
|
||||
entryRuleAppendToFileEndItem returns [EObject current=null]:
|
||||
{ newCompositeNode(grammarAccess.getAppendToFileEndItemRule()); }
|
||||
iv_ruleAppendToFileEndItem=ruleAppendToFileEndItem
|
||||
{ $current=$iv_ruleAppendToFileEndItem.current; }
|
||||
EOF;
|
||||
|
||||
// Rule AppendToFileEndItem
|
||||
ruleAppendToFileEndItem returns [EObject current=null]
|
||||
@init {
|
||||
enterRule();
|
||||
}
|
||||
@after {
|
||||
leaveRule();
|
||||
}:
|
||||
(
|
||||
otherlv_0='class'
|
||||
{
|
||||
newLeafNode(otherlv_0, grammarAccess.getAppendToFileEndItemAccess().getClassKeyword_0());
|
||||
}
|
||||
(
|
||||
(
|
||||
lv_name_1_0=RULE_ID
|
||||
{
|
||||
newLeafNode(lv_name_1_0, grammarAccess.getAppendToFileEndItemAccess().getNameIDTerminalRuleCall_1_0());
|
||||
}
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getAppendToFileEndItemRule());
|
||||
}
|
||||
setWithLastConsumed(
|
||||
$current,
|
||||
"name",
|
||||
lv_name_1_0,
|
||||
"org.eclipse.xtext.common.Terminals.ID");
|
||||
}
|
||||
)
|
||||
)
|
||||
otherlv_2='endclass'
|
||||
{
|
||||
newLeafNode(otherlv_2, grammarAccess.getAppendToFileEndItemAccess().getEndclassKeyword_2());
|
||||
}
|
||||
)
|
||||
;
|
||||
|
||||
// Entry rule entryRuleAction1
|
||||
entryRuleAction1 returns [EObject current=null]:
|
||||
{ newCompositeNode(grammarAccess.getAction1Rule()); }
|
||||
iv_ruleAction1=ruleAction1
|
||||
{ $current=$iv_ruleAction1.current; }
|
||||
EOF;
|
||||
|
||||
// Rule Action1
|
||||
ruleAction1 returns [EObject current=null]
|
||||
@init {
|
||||
enterRule();
|
||||
}
|
||||
@after {
|
||||
leaveRule();
|
||||
}:
|
||||
(
|
||||
otherlv_0='#8'
|
||||
{
|
||||
newLeafNode(otherlv_0, grammarAccess.getAction1Access().getNumberSignDigitEightKeyword_0());
|
||||
}
|
||||
(
|
||||
{
|
||||
$current = forceCreateModelElement(
|
||||
grammarAccess.getAction1Access().getAction1Action_1(),
|
||||
$current);
|
||||
}
|
||||
)
|
||||
(
|
||||
(
|
||||
lv_name_2_0=RULE_ID
|
||||
{
|
||||
newLeafNode(lv_name_2_0, grammarAccess.getAction1Access().getNameIDTerminalRuleCall_2_0());
|
||||
}
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getAction1Rule());
|
||||
}
|
||||
setWithLastConsumed(
|
||||
$current,
|
||||
"name",
|
||||
lv_name_2_0,
|
||||
"org.eclipse.xtext.common.Terminals.ID");
|
||||
}
|
||||
)
|
||||
)
|
||||
(
|
||||
(
|
||||
{
|
||||
newCompositeNode(grammarAccess.getAction1Access().getActions2Action1Sub1ParserRuleCall_3_0());
|
||||
}
|
||||
lv_actions2_3_0=ruleAction1Sub1
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElementForParent(grammarAccess.getAction1Rule());
|
||||
}
|
||||
add(
|
||||
$current,
|
||||
"actions2",
|
||||
lv_actions2_3_0,
|
||||
"org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.Action1Sub1");
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
)
|
||||
)
|
||||
(
|
||||
(
|
||||
{
|
||||
newCompositeNode(grammarAccess.getAction1Access().getActions2Action1Sub2ParserRuleCall_4_0());
|
||||
}
|
||||
lv_actions2_4_0=ruleAction1Sub2
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElementForParent(grammarAccess.getAction1Rule());
|
||||
}
|
||||
add(
|
||||
$current,
|
||||
"actions2",
|
||||
lv_actions2_4_0,
|
||||
"org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.Action1Sub2");
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
)
|
||||
)
|
||||
)
|
||||
;
|
||||
|
||||
// Entry rule entryRuleAction1Sub1
|
||||
entryRuleAction1Sub1 returns [EObject current=null]:
|
||||
{ newCompositeNode(grammarAccess.getAction1Sub1Rule()); }
|
||||
iv_ruleAction1Sub1=ruleAction1Sub1
|
||||
{ $current=$iv_ruleAction1Sub1.current; }
|
||||
EOF;
|
||||
|
||||
// Rule Action1Sub1
|
||||
ruleAction1Sub1 returns [EObject current=null]
|
||||
@init {
|
||||
enterRule();
|
||||
}
|
||||
@after {
|
||||
leaveRule();
|
||||
}:
|
||||
(
|
||||
(
|
||||
{
|
||||
$current = forceCreateModelElement(
|
||||
grammarAccess.getAction1Sub1Access().getAction1SubAction_0(),
|
||||
$current);
|
||||
}
|
||||
)
|
||||
otherlv_1='sub1'
|
||||
{
|
||||
newLeafNode(otherlv_1, grammarAccess.getAction1Sub1Access().getSub1Keyword_1());
|
||||
}
|
||||
)
|
||||
;
|
||||
|
||||
// Entry rule entryRuleAction1Sub2
|
||||
entryRuleAction1Sub2 returns [EObject current=null]:
|
||||
{ newCompositeNode(grammarAccess.getAction1Sub2Rule()); }
|
||||
iv_ruleAction1Sub2=ruleAction1Sub2
|
||||
{ $current=$iv_ruleAction1Sub2.current; }
|
||||
EOF;
|
||||
|
||||
// Rule Action1Sub2
|
||||
ruleAction1Sub2 returns [EObject current=null]
|
||||
@init {
|
||||
enterRule();
|
||||
}
|
||||
@after {
|
||||
leaveRule();
|
||||
}:
|
||||
(
|
||||
(
|
||||
{
|
||||
$current = forceCreateModelElement(
|
||||
grammarAccess.getAction1Sub2Access().getAction1SubClassAction_0(),
|
||||
$current);
|
||||
}
|
||||
)
|
||||
otherlv_1='sub2'
|
||||
{
|
||||
newLeafNode(otherlv_1, grammarAccess.getAction1Sub2Access().getSub2Keyword_1());
|
||||
}
|
||||
)
|
||||
;
|
||||
|
||||
// Rule EnumBugEnum
|
||||
ruleEnumBugEnum returns [Enumerator current=null]
|
||||
@init {
|
||||
enterRule();
|
||||
}
|
||||
@after {
|
||||
leaveRule();
|
||||
}:
|
||||
(
|
||||
(
|
||||
enumLiteral_0='array'
|
||||
{
|
||||
$current = grammarAccess.getEnumBugEnumAccess().getArrayEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
|
||||
newLeafNode(enumLiteral_0, grammarAccess.getEnumBugEnumAccess().getArrayEnumLiteralDeclaration_0());
|
||||
}
|
||||
)
|
||||
|
|
||||
(
|
||||
enumLiteral_1='object'
|
||||
{
|
||||
$current = grammarAccess.getEnumBugEnumAccess().getObjectEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
|
||||
newLeafNode(enumLiteral_1, grammarAccess.getEnumBugEnumAccess().getObjectEnumLiteralDeclaration_1());
|
||||
}
|
||||
)
|
||||
|
|
||||
(
|
||||
enumLiteral_2='resultSet'
|
||||
{
|
||||
$current = grammarAccess.getEnumBugEnumAccess().getResultSetEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
|
||||
newLeafNode(enumLiteral_2, grammarAccess.getEnumBugEnumAccess().getResultSetEnumLiteralDeclaration_2());
|
||||
}
|
||||
)
|
||||
|
|
||||
(
|
||||
enumLiteral_3='iterator'
|
||||
{
|
||||
$current = grammarAccess.getEnumBugEnumAccess().getIteratorEnumLiteralDeclaration_3().getEnumLiteral().getInstance();
|
||||
newLeafNode(enumLiteral_3, grammarAccess.getEnumBugEnumAccess().getIteratorEnumLiteralDeclaration_3());
|
||||
}
|
||||
)
|
||||
)
|
||||
;
|
||||
|
||||
RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*;
|
||||
|
||||
RULE_INT : ('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 : .;
|
|
@ -1,51 +0,0 @@
|
|||
'#1'=11
|
||||
'#2'=15
|
||||
'#3'=17
|
||||
'#4'=19
|
||||
'#5'=20
|
||||
'#6'=22
|
||||
'#7'=23
|
||||
'#8'=26
|
||||
'.'=14
|
||||
';'=13
|
||||
'array'=29
|
||||
'class'=24
|
||||
'endclass'=25
|
||||
'item'=18
|
||||
'iterator'=32
|
||||
'kw1'=16
|
||||
'object'=30
|
||||
'ref'=12
|
||||
'refs'=21
|
||||
'resultSet'=31
|
||||
'sub1'=27
|
||||
'sub2'=28
|
||||
RULE_ANY_OTHER=10
|
||||
RULE_ID=4
|
||||
RULE_INT=5
|
||||
RULE_ML_COMMENT=7
|
||||
RULE_SL_COMMENT=8
|
||||
RULE_STRING=6
|
||||
RULE_WS=9
|
||||
T__11=11
|
||||
T__12=12
|
||||
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
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,212 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
grammar InternalPartialSerializationTestLanguage;
|
||||
|
||||
options {
|
||||
superClass=AbstractInternalAntlrParser;
|
||||
}
|
||||
|
||||
@lexer::header {
|
||||
package org.eclipse.xtext.parsetree.reconstr.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.parsetree.reconstr.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.parsetree.reconstr.services.PartialSerializationTestLanguageGrammarAccess;
|
||||
|
||||
}
|
||||
|
||||
@parser::members {
|
||||
|
||||
private PartialSerializationTestLanguageGrammarAccess grammarAccess;
|
||||
|
||||
public InternalPartialSerializationTestLanguageParser(TokenStream input, PartialSerializationTestLanguageGrammarAccess grammarAccess) {
|
||||
this(input);
|
||||
this.grammarAccess = grammarAccess;
|
||||
registerRules(grammarAccess.getGrammar());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getFirstRuleName() {
|
||||
return "Model";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected PartialSerializationTestLanguageGrammarAccess getGrammarAccess() {
|
||||
return grammarAccess;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@rulecatch {
|
||||
catch (RecognitionException re) {
|
||||
recover(input,re);
|
||||
appendSkippedTokens();
|
||||
}
|
||||
}
|
||||
|
||||
// Entry rule entryRuleModel
|
||||
entryRuleModel returns [EObject current=null]:
|
||||
{ newCompositeNode(grammarAccess.getModelRule()); }
|
||||
iv_ruleModel=ruleModel
|
||||
{ $current=$iv_ruleModel.current; }
|
||||
EOF;
|
||||
|
||||
// Rule Model
|
||||
ruleModel returns [EObject current=null]
|
||||
@init {
|
||||
enterRule();
|
||||
}
|
||||
@after {
|
||||
leaveRule();
|
||||
}:
|
||||
{
|
||||
newCompositeNode(grammarAccess.getModelAccess().getNodeRootParserRuleCall());
|
||||
}
|
||||
this_NodeRoot_0=ruleNodeRoot
|
||||
{
|
||||
$current = $this_NodeRoot_0.current;
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
;
|
||||
|
||||
// Entry rule entryRuleNodeRoot
|
||||
entryRuleNodeRoot returns [EObject current=null]:
|
||||
{ newCompositeNode(grammarAccess.getNodeRootRule()); }
|
||||
iv_ruleNodeRoot=ruleNodeRoot
|
||||
{ $current=$iv_ruleNodeRoot.current; }
|
||||
EOF;
|
||||
|
||||
// Rule NodeRoot
|
||||
ruleNodeRoot returns [EObject current=null]
|
||||
@init {
|
||||
enterRule();
|
||||
}
|
||||
@after {
|
||||
leaveRule();
|
||||
}:
|
||||
(
|
||||
otherlv_0='#1'
|
||||
{
|
||||
newLeafNode(otherlv_0, grammarAccess.getNodeRootAccess().getNumberSignDigitOneKeyword_0());
|
||||
}
|
||||
(
|
||||
(
|
||||
{
|
||||
newCompositeNode(grammarAccess.getNodeRootAccess().getNodeNodeParserRuleCall_1_0());
|
||||
}
|
||||
lv_node_1_0=ruleNode
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElementForParent(grammarAccess.getNodeRootRule());
|
||||
}
|
||||
set(
|
||||
$current,
|
||||
"node",
|
||||
lv_node_1_0,
|
||||
"org.eclipse.xtext.parsetree.reconstr.PartialSerializationTestLanguage.Node");
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
)
|
||||
)
|
||||
)
|
||||
;
|
||||
|
||||
// Entry rule entryRuleNode
|
||||
entryRuleNode returns [EObject current=null]:
|
||||
{ newCompositeNode(grammarAccess.getNodeRule()); }
|
||||
iv_ruleNode=ruleNode
|
||||
{ $current=$iv_ruleNode.current; }
|
||||
EOF;
|
||||
|
||||
// Rule Node
|
||||
ruleNode returns [EObject current=null]
|
||||
@init {
|
||||
enterRule();
|
||||
}
|
||||
@after {
|
||||
leaveRule();
|
||||
}:
|
||||
(
|
||||
otherlv_0='node'
|
||||
{
|
||||
newLeafNode(otherlv_0, grammarAccess.getNodeAccess().getNodeKeyword_0());
|
||||
}
|
||||
(
|
||||
(
|
||||
lv_name_1_0=RULE_ID
|
||||
{
|
||||
newLeafNode(lv_name_1_0, grammarAccess.getNodeAccess().getNameIDTerminalRuleCall_1_0());
|
||||
}
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElement(grammarAccess.getNodeRule());
|
||||
}
|
||||
setWithLastConsumed(
|
||||
$current,
|
||||
"name",
|
||||
lv_name_1_0,
|
||||
"org.eclipse.xtext.common.Terminals.ID");
|
||||
}
|
||||
)
|
||||
)
|
||||
(
|
||||
otherlv_2='('
|
||||
{
|
||||
newLeafNode(otherlv_2, grammarAccess.getNodeAccess().getLeftParenthesisKeyword_2_0());
|
||||
}
|
||||
(
|
||||
(
|
||||
{
|
||||
newCompositeNode(grammarAccess.getNodeAccess().getChildrenNodeParserRuleCall_2_1_0());
|
||||
}
|
||||
lv_children_3_0=ruleNode
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = createModelElementForParent(grammarAccess.getNodeRule());
|
||||
}
|
||||
add(
|
||||
$current,
|
||||
"children",
|
||||
lv_children_3_0,
|
||||
"org.eclipse.xtext.parsetree.reconstr.PartialSerializationTestLanguage.Node");
|
||||
afterParserOrEnumRuleCall();
|
||||
}
|
||||
)
|
||||
)+
|
||||
otherlv_4=')'
|
||||
{
|
||||
newLeafNode(otherlv_4, grammarAccess.getNodeAccess().getRightParenthesisKeyword_2_2());
|
||||
}
|
||||
)?
|
||||
)
|
||||
;
|
||||
|
||||
RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*;
|
||||
|
||||
RULE_INT : ('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 : .;
|
|
@ -1,15 +0,0 @@
|
|||
'#1'=11
|
||||
'('=13
|
||||
')'=14
|
||||
'node'=12
|
||||
RULE_ANY_OTHER=10
|
||||
RULE_ID=4
|
||||
RULE_INT=5
|
||||
RULE_ML_COMMENT=7
|
||||
RULE_SL_COMMENT=8
|
||||
RULE_STRING=6
|
||||
RULE_WS=9
|
||||
T__11=11
|
||||
T__12=12
|
||||
T__13=13
|
||||
T__14=14
|
|
@ -1,846 +0,0 @@
|
|||
package org.eclipse.xtext.parsetree.reconstr.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 InternalPartialSerializationTestLanguageLexer extends Lexer {
|
||||
public static final int RULE_ID=4;
|
||||
public static final int RULE_WS=9;
|
||||
public static final int RULE_STRING=6;
|
||||
public static final int RULE_ANY_OTHER=10;
|
||||
public static final int RULE_SL_COMMENT=8;
|
||||
public static final int RULE_INT=5;
|
||||
public static final int T__11=11;
|
||||
public static final int RULE_ML_COMMENT=7;
|
||||
public static final int T__12=12;
|
||||
public static final int T__13=13;
|
||||
public static final int T__14=14;
|
||||
public static final int EOF=-1;
|
||||
|
||||
// delegates
|
||||
// delegators
|
||||
|
||||
public InternalPartialSerializationTestLanguageLexer() {;}
|
||||
public InternalPartialSerializationTestLanguageLexer(CharStream input) {
|
||||
this(input, new RecognizerSharedState());
|
||||
}
|
||||
public InternalPartialSerializationTestLanguageLexer(CharStream input, RecognizerSharedState state) {
|
||||
super(input,state);
|
||||
|
||||
}
|
||||
public String getGrammarFileName() { return "InternalPartialSerializationTestLanguage.g"; }
|
||||
|
||||
// $ANTLR start "T__11"
|
||||
public final void mT__11() throws RecognitionException {
|
||||
try {
|
||||
int _type = T__11;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// InternalPartialSerializationTestLanguage.g:11:7: ( '#1' )
|
||||
// InternalPartialSerializationTestLanguage.g:11:9: '#1'
|
||||
{
|
||||
match("#1");
|
||||
|
||||
|
||||
}
|
||||
|
||||
state.type = _type;
|
||||
state.channel = _channel;
|
||||
}
|
||||
finally {
|
||||
}
|
||||
}
|
||||
// $ANTLR end "T__11"
|
||||
|
||||
// $ANTLR start "T__12"
|
||||
public final void mT__12() throws RecognitionException {
|
||||
try {
|
||||
int _type = T__12;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// InternalPartialSerializationTestLanguage.g:12:7: ( 'node' )
|
||||
// InternalPartialSerializationTestLanguage.g:12:9: 'node'
|
||||
{
|
||||
match("node");
|
||||
|
||||
|
||||
}
|
||||
|
||||
state.type = _type;
|
||||
state.channel = _channel;
|
||||
}
|
||||
finally {
|
||||
}
|
||||
}
|
||||
// $ANTLR end "T__12"
|
||||
|
||||
// $ANTLR start "T__13"
|
||||
public final void mT__13() throws RecognitionException {
|
||||
try {
|
||||
int _type = T__13;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// InternalPartialSerializationTestLanguage.g:13:7: ( '(' )
|
||||
// InternalPartialSerializationTestLanguage.g:13:9: '('
|
||||
{
|
||||
match('(');
|
||||
|
||||
}
|
||||
|
||||
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;
|
||||
// InternalPartialSerializationTestLanguage.g:14:7: ( ')' )
|
||||
// InternalPartialSerializationTestLanguage.g:14:9: ')'
|
||||
{
|
||||
match(')');
|
||||
|
||||
}
|
||||
|
||||
state.type = _type;
|
||||
state.channel = _channel;
|
||||
}
|
||||
finally {
|
||||
}
|
||||
}
|
||||
// $ANTLR end "T__14"
|
||||
|
||||
// $ANTLR start "RULE_ID"
|
||||
public final void mRULE_ID() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_ID;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// InternalPartialSerializationTestLanguage.g:200:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
|
||||
// InternalPartialSerializationTestLanguage.g:200:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
|
||||
{
|
||||
// InternalPartialSerializationTestLanguage.g:200:11: ( '^' )?
|
||||
int alt1=2;
|
||||
int LA1_0 = input.LA(1);
|
||||
|
||||
if ( (LA1_0=='^') ) {
|
||||
alt1=1;
|
||||
}
|
||||
switch (alt1) {
|
||||
case 1 :
|
||||
// InternalPartialSerializationTestLanguage.g:200:11: '^'
|
||||
{
|
||||
match('^');
|
||||
|
||||
}
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
if ( (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;}
|
||||
|
||||
// InternalPartialSerializationTestLanguage.g:200:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
|
||||
loop2:
|
||||
do {
|
||||
int alt2=2;
|
||||
int LA2_0 = input.LA(1);
|
||||
|
||||
if ( ((LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='Z')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='z')) ) {
|
||||
alt2=1;
|
||||
}
|
||||
|
||||
|
||||
switch (alt2) {
|
||||
case 1 :
|
||||
// InternalPartialSerializationTestLanguage.g:
|
||||
{
|
||||
if ( (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 loop2;
|
||||
}
|
||||
} while (true);
|
||||
|
||||
|
||||
}
|
||||
|
||||
state.type = _type;
|
||||
state.channel = _channel;
|
||||
}
|
||||
finally {
|
||||
}
|
||||
}
|
||||
// $ANTLR end "RULE_ID"
|
||||
|
||||
// $ANTLR start "RULE_INT"
|
||||
public final void mRULE_INT() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_INT;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// InternalPartialSerializationTestLanguage.g:202:10: ( ( '0' .. '9' )+ )
|
||||
// InternalPartialSerializationTestLanguage.g:202:12: ( '0' .. '9' )+
|
||||
{
|
||||
// InternalPartialSerializationTestLanguage.g:202:12: ( '0' .. '9' )+
|
||||
int cnt3=0;
|
||||
loop3:
|
||||
do {
|
||||
int alt3=2;
|
||||
int LA3_0 = input.LA(1);
|
||||
|
||||
if ( ((LA3_0>='0' && LA3_0<='9')) ) {
|
||||
alt3=1;
|
||||
}
|
||||
|
||||
|
||||
switch (alt3) {
|
||||
case 1 :
|
||||
// InternalPartialSerializationTestLanguage.g:202:13: '0' .. '9'
|
||||
{
|
||||
matchRange('0','9');
|
||||
|
||||
}
|
||||
break;
|
||||
|
||||
default :
|
||||
if ( cnt3 >= 1 ) break loop3;
|
||||
EarlyExitException eee =
|
||||
new EarlyExitException(3, input);
|
||||
throw eee;
|
||||
}
|
||||
cnt3++;
|
||||
} while (true);
|
||||
|
||||
|
||||
}
|
||||
|
||||
state.type = _type;
|
||||
state.channel = _channel;
|
||||
}
|
||||
finally {
|
||||
}
|
||||
}
|
||||
// $ANTLR end "RULE_INT"
|
||||
|
||||
// $ANTLR start "RULE_STRING"
|
||||
public final void mRULE_STRING() throws RecognitionException {
|
||||
try {
|
||||
int _type = RULE_STRING;
|
||||
int _channel = DEFAULT_TOKEN_CHANNEL;
|
||||
// InternalPartialSerializationTestLanguage.g:204:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) )
|
||||
// InternalPartialSerializationTestLanguage.g:204:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
|
||||
{
|
||||
// InternalPartialSerializationTestLanguage.g:204:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
|
||||
int alt6=2;
|
||||
int LA6_0 = input.LA(1);
|
||||
|
||||
if ( (LA6_0=='\"') ) {
|
||||
alt6=1;
|
||||
}
|
||||
else if ( (LA6_0=='\'') ) {
|
||||
alt6=2;
|
||||
}
|
||||
else {
|
||||
NoViableAltException nvae =
|
||||
new NoViableAltException("", 6, 0, input);
|
||||
|
||||
throw nvae;
|
||||
}
|
||||
switch (alt6) {
|
||||
case 1 :
|
||||
// InternalPartialSerializationTestLanguage.g:204:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
|
||||
{
|
||||
match('\"');
|
||||
// InternalPartialSerializationTestLanguage.g:204:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )*
|
||||
loop4:
|
||||
do {
|
||||
int alt4=3;
|
||||
int LA4_0 = input.LA(1);
|
||||
|
||||
if ( (LA4_0=='\\') ) {
|
||||
alt4=1;
|
||||
}
|
||||
else if ( ((LA4_0>='\u0000' && LA4_0<='!')||(LA4_0>='#' && LA4_0<='[')||(LA4_0>=']' && LA4_0<='\uFFFF')) ) {
|
||||
alt4=2;
|
||||
}
|
||||
|
||||
|
||||
switch (alt4) {
|
||||
case 1 :
|
||||
// InternalPartialSerializationTestLanguage.g:204:21: '\\\\' .
|
||||
{
|
||||
match('\\');
|
||||
matchAny();
|
||||
|
||||
}
|
||||
break;
|
||||
case 2 :
|
||||
// InternalPartialSerializationTestLanguage.g:204: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 loop4;
|
||||
}
|
||||
} while (true);
|
||||
|
||||
match('\"');
|
||||
|
||||
}
|
||||
break;
|
||||
case 2 :
|
||||
// InternalPartialSerializationTestLanguage.g:204:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\''
|
||||
{
|
||||
match('\'');
|
||||
// InternalPartialSerializationTestLanguage.g:204:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )*
|
||||
loop5:
|
||||
do {
|
||||
int alt5=3;
|
||||
int LA5_0 = input.LA(1);
|
||||
|
||||
if ( (LA5_0=='\\') ) {
|
||||
alt5=1;
|
||||
}
|
||||
else if ( ((LA5_0>='\u0000' && LA5_0<='&')||(LA5_0>='(' && LA5_0<='[')||(LA5_0>=']' && LA5_0<='\uFFFF')) ) {
|
||||
alt5=2;
|
||||
}
|
||||
|
||||
|
||||
switch (alt5) {
|
||||
case 1 :
|
||||
// InternalPartialSerializationTestLanguage.g:204:54: '\\\\' .
|
||||
{
|
||||
match('\\');
|
||||
matchAny();
|
||||
|
||||
}
|
||||
break;
|
||||
case 2 :
|
||||
// InternalPartialSerializationTestLanguage.g:204:61: ~ ( ( '\\\\' | '\\'' ) )
|
||||
{
|
||||
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 loop5;
|
||||
}
|
||||
} while (true);
|
||||
|
||||
match('\'');
|
||||
|
||||
}
|
||||
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;
|
||||
// InternalPartialSerializationTestLanguage.g:206:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
|
||||
// InternalPartialSerializationTestLanguage.g:206:19: '/*' ( options {greedy=false; } : . )* '*/'
|
||||
{
|
||||
match("/*");
|
||||
|
||||
// InternalPartialSerializationTestLanguage.g:206:24: ( options {greedy=false; } : . )*
|
||||
loop7:
|
||||
do {
|
||||
int alt7=2;
|
||||
int LA7_0 = input.LA(1);
|
||||
|
||||
if ( (LA7_0=='*') ) {
|
||||
int LA7_1 = input.LA(2);
|
||||
|
||||
if ( (LA7_1=='/') ) {
|
||||
alt7=2;
|
||||
}
|
||||
else if ( ((LA7_1>='\u0000' && LA7_1<='.')||(LA7_1>='0' && LA7_1<='\uFFFF')) ) {
|
||||
alt7=1;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else if ( ((LA7_0>='\u0000' && LA7_0<=')')||(LA7_0>='+' && LA7_0<='\uFFFF')) ) {
|
||||
alt7=1;
|
||||
}
|
||||
|
||||
|
||||
switch (alt7) {
|
||||
case 1 :
|
||||
// InternalPartialSerializationTestLanguage.g:206:52: .
|
||||
{
|
||||
matchAny();
|
||||
|
||||
}
|
||||
break;
|
||||
|
||||
default :
|
||||
break loop7;
|
||||
}
|
||||
} 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;
|
||||
// InternalPartialSerializationTestLanguage.g:208:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
|
||||
// InternalPartialSerializationTestLanguage.g:208:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
|
||||
{
|
||||
match("//");
|
||||
|
||||
// InternalPartialSerializationTestLanguage.g:208:24: (~ ( ( '\\n' | '\\r' ) ) )*
|
||||
loop8:
|
||||
do {
|
||||
int alt8=2;
|
||||
int LA8_0 = input.LA(1);
|
||||
|
||||
if ( ((LA8_0>='\u0000' && LA8_0<='\t')||(LA8_0>='\u000B' && LA8_0<='\f')||(LA8_0>='\u000E' && LA8_0<='\uFFFF')) ) {
|
||||
alt8=1;
|
||||
}
|
||||
|
||||
|
||||
switch (alt8) {
|
||||
case 1 :
|
||||
// InternalPartialSerializationTestLanguage.g:208: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 loop8;
|
||||
}
|
||||
} while (true);
|
||||
|
||||
// InternalPartialSerializationTestLanguage.g:208:40: ( ( '\\r' )? '\\n' )?
|
||||
int alt10=2;
|
||||
int LA10_0 = input.LA(1);
|
||||
|
||||
if ( (LA10_0=='\n'||LA10_0=='\r') ) {
|
||||
alt10=1;
|
||||
}
|
||||
switch (alt10) {
|
||||
case 1 :
|
||||
// InternalPartialSerializationTestLanguage.g:208:41: ( '\\r' )? '\\n'
|
||||
{
|
||||
// InternalPartialSerializationTestLanguage.g:208:41: ( '\\r' )?
|
||||
int alt9=2;
|
||||
int LA9_0 = input.LA(1);
|
||||
|
||||
if ( (LA9_0=='\r') ) {
|
||||
alt9=1;
|
||||
}
|
||||
switch (alt9) {
|
||||
case 1 :
|
||||
// InternalPartialSerializationTestLanguage.g:208: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;
|
||||
// InternalPartialSerializationTestLanguage.g:210:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
|
||||
// InternalPartialSerializationTestLanguage.g:210:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
|
||||
{
|
||||
// InternalPartialSerializationTestLanguage.g:210:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
|
||||
int cnt11=0;
|
||||
loop11:
|
||||
do {
|
||||
int alt11=2;
|
||||
int LA11_0 = input.LA(1);
|
||||
|
||||
if ( ((LA11_0>='\t' && LA11_0<='\n')||LA11_0=='\r'||LA11_0==' ') ) {
|
||||
alt11=1;
|
||||
}
|
||||
|
||||
|
||||
switch (alt11) {
|
||||
case 1 :
|
||||
// InternalPartialSerializationTestLanguage.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 ( cnt11 >= 1 ) break loop11;
|
||||
EarlyExitException eee =
|
||||
new EarlyExitException(11, input);
|
||||
throw eee;
|
||||
}
|
||||
cnt11++;
|
||||
} 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;
|
||||
// InternalPartialSerializationTestLanguage.g:212:16: ( . )
|
||||
// InternalPartialSerializationTestLanguage.g:212:18: .
|
||||
{
|
||||
matchAny();
|
||||
|
||||
}
|
||||
|
||||
state.type = _type;
|
||||
state.channel = _channel;
|
||||
}
|
||||
finally {
|
||||
}
|
||||
}
|
||||
// $ANTLR end "RULE_ANY_OTHER"
|
||||
|
||||
public void mTokens() throws RecognitionException {
|
||||
// InternalPartialSerializationTestLanguage.g:1:8: ( T__11 | T__12 | T__13 | T__14 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER )
|
||||
int alt12=11;
|
||||
alt12 = dfa12.predict(input);
|
||||
switch (alt12) {
|
||||
case 1 :
|
||||
// InternalPartialSerializationTestLanguage.g:1:10: T__11
|
||||
{
|
||||
mT__11();
|
||||
|
||||
}
|
||||
break;
|
||||
case 2 :
|
||||
// InternalPartialSerializationTestLanguage.g:1:16: T__12
|
||||
{
|
||||
mT__12();
|
||||
|
||||
}
|
||||
break;
|
||||
case 3 :
|
||||
// InternalPartialSerializationTestLanguage.g:1:22: T__13
|
||||
{
|
||||
mT__13();
|
||||
|
||||
}
|
||||
break;
|
||||
case 4 :
|
||||
// InternalPartialSerializationTestLanguage.g:1:28: T__14
|
||||
{
|
||||
mT__14();
|
||||
|
||||
}
|
||||
break;
|
||||
case 5 :
|
||||
// InternalPartialSerializationTestLanguage.g:1:34: RULE_ID
|
||||
{
|
||||
mRULE_ID();
|
||||
|
||||
}
|
||||
break;
|
||||
case 6 :
|
||||
// InternalPartialSerializationTestLanguage.g:1:42: RULE_INT
|
||||
{
|
||||
mRULE_INT();
|
||||
|
||||
}
|
||||
break;
|
||||
case 7 :
|
||||
// InternalPartialSerializationTestLanguage.g:1:51: RULE_STRING
|
||||
{
|
||||
mRULE_STRING();
|
||||
|
||||
}
|
||||
break;
|
||||
case 8 :
|
||||
// InternalPartialSerializationTestLanguage.g:1:63: RULE_ML_COMMENT
|
||||
{
|
||||
mRULE_ML_COMMENT();
|
||||
|
||||
}
|
||||
break;
|
||||
case 9 :
|
||||
// InternalPartialSerializationTestLanguage.g:1:79: RULE_SL_COMMENT
|
||||
{
|
||||
mRULE_SL_COMMENT();
|
||||
|
||||
}
|
||||
break;
|
||||
case 10 :
|
||||
// InternalPartialSerializationTestLanguage.g:1:95: RULE_WS
|
||||
{
|
||||
mRULE_WS();
|
||||
|
||||
}
|
||||
break;
|
||||
case 11 :
|
||||
// InternalPartialSerializationTestLanguage.g:1:103: RULE_ANY_OTHER
|
||||
{
|
||||
mRULE_ANY_OTHER();
|
||||
|
||||
}
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
protected DFA12 dfa12 = new DFA12(this);
|
||||
static final String DFA12_eotS =
|
||||
"\1\uffff\1\14\1\17\2\uffff\1\14\2\uffff\3\14\3\uffff\1\17\10\uffff\1\17\1\31\1\uffff";
|
||||
static final String DFA12_eofS =
|
||||
"\32\uffff";
|
||||
static final String DFA12_minS =
|
||||
"\1\0\1\61\1\157\2\uffff\1\101\2\uffff\2\0\1\52\3\uffff\1\144\10\uffff\1\145\1\60\1\uffff";
|
||||
static final String DFA12_maxS =
|
||||
"\1\uffff\1\61\1\157\2\uffff\1\172\2\uffff\2\uffff\1\57\3\uffff\1\144\10\uffff\1\145\1\172\1\uffff";
|
||||
static final String DFA12_acceptS =
|
||||
"\3\uffff\1\3\1\4\1\uffff\1\5\1\6\3\uffff\1\12\1\13\1\1\1\uffff\1\5\1\3\1\4\1\6\1\7\1\10\1\11\1\12\2\uffff\1\2";
|
||||
static final String DFA12_specialS =
|
||||
"\1\0\7\uffff\1\2\1\1\20\uffff}>";
|
||||
static final String[] DFA12_transitionS = {
|
||||
"\11\14\2\13\2\14\1\13\22\14\1\13\1\14\1\10\1\1\3\14\1\11\1\3\1\4\5\14\1\12\12\7\7\14\32\6\3\14\1\5\1\6\1\14\15\6\1\2\14\6\uff85\14",
|
||||
"\1\15",
|
||||
"\1\16",
|
||||
"",
|
||||
"",
|
||||
"\32\17\4\uffff\1\17\1\uffff\32\17",
|
||||
"",
|
||||
"",
|
||||
"\0\23",
|
||||
"\0\23",
|
||||
"\1\24\4\uffff\1\25",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"\1\27",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"\1\30",
|
||||
"\12\17\7\uffff\32\17\4\uffff\1\17\1\uffff\32\17",
|
||||
""
|
||||
};
|
||||
|
||||
static final short[] DFA12_eot = DFA.unpackEncodedString(DFA12_eotS);
|
||||
static final short[] DFA12_eof = DFA.unpackEncodedString(DFA12_eofS);
|
||||
static final char[] DFA12_min = DFA.unpackEncodedStringToUnsignedChars(DFA12_minS);
|
||||
static final char[] DFA12_max = DFA.unpackEncodedStringToUnsignedChars(DFA12_maxS);
|
||||
static final short[] DFA12_accept = DFA.unpackEncodedString(DFA12_acceptS);
|
||||
static final short[] DFA12_special = DFA.unpackEncodedString(DFA12_specialS);
|
||||
static final short[][] DFA12_transition;
|
||||
|
||||
static {
|
||||
int numStates = DFA12_transitionS.length;
|
||||
DFA12_transition = new short[numStates][];
|
||||
for (int i=0; i<numStates; i++) {
|
||||
DFA12_transition[i] = DFA.unpackEncodedString(DFA12_transitionS[i]);
|
||||
}
|
||||
}
|
||||
|
||||
static class DFA12 extends DFA {
|
||||
|
||||
public DFA12(BaseRecognizer recognizer) {
|
||||
this.recognizer = recognizer;
|
||||
this.decisionNumber = 12;
|
||||
this.eot = DFA12_eot;
|
||||
this.eof = DFA12_eof;
|
||||
this.min = DFA12_min;
|
||||
this.max = DFA12_max;
|
||||
this.accept = DFA12_accept;
|
||||
this.special = DFA12_special;
|
||||
this.transition = DFA12_transition;
|
||||
}
|
||||
public String getDescription() {
|
||||
return "1:1: Tokens : ( T__11 | T__12 | T__13 | T__14 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER );";
|
||||
}
|
||||
public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
|
||||
IntStream input = _input;
|
||||
int _s = s;
|
||||
switch ( s ) {
|
||||
case 0 :
|
||||
int LA12_0 = input.LA(1);
|
||||
|
||||
s = -1;
|
||||
if ( (LA12_0=='#') ) {s = 1;}
|
||||
|
||||
else if ( (LA12_0=='n') ) {s = 2;}
|
||||
|
||||
else if ( (LA12_0=='(') ) {s = 3;}
|
||||
|
||||
else if ( (LA12_0==')') ) {s = 4;}
|
||||
|
||||
else if ( (LA12_0=='^') ) {s = 5;}
|
||||
|
||||
else if ( ((LA12_0>='A' && LA12_0<='Z')||LA12_0=='_'||(LA12_0>='a' && LA12_0<='m')||(LA12_0>='o' && LA12_0<='z')) ) {s = 6;}
|
||||
|
||||
else if ( ((LA12_0>='0' && LA12_0<='9')) ) {s = 7;}
|
||||
|
||||
else if ( (LA12_0=='\"') ) {s = 8;}
|
||||
|
||||
else if ( (LA12_0=='\'') ) {s = 9;}
|
||||
|
||||
else if ( (LA12_0=='/') ) {s = 10;}
|
||||
|
||||
else if ( ((LA12_0>='\t' && LA12_0<='\n')||LA12_0=='\r'||LA12_0==' ') ) {s = 11;}
|
||||
|
||||
else if ( ((LA12_0>='\u0000' && LA12_0<='\b')||(LA12_0>='\u000B' && LA12_0<='\f')||(LA12_0>='\u000E' && LA12_0<='\u001F')||LA12_0=='!'||(LA12_0>='$' && LA12_0<='&')||(LA12_0>='*' && LA12_0<='.')||(LA12_0>=':' && LA12_0<='@')||(LA12_0>='[' && LA12_0<=']')||LA12_0=='`'||(LA12_0>='{' && LA12_0<='\uFFFF')) ) {s = 12;}
|
||||
|
||||
if ( s>=0 ) return s;
|
||||
break;
|
||||
case 1 :
|
||||
int LA12_9 = input.LA(1);
|
||||
|
||||
s = -1;
|
||||
if ( ((LA12_9>='\u0000' && LA12_9<='\uFFFF')) ) {s = 19;}
|
||||
|
||||
else s = 12;
|
||||
|
||||
if ( s>=0 ) return s;
|
||||
break;
|
||||
case 2 :
|
||||
int LA12_8 = input.LA(1);
|
||||
|
||||
s = -1;
|
||||
if ( ((LA12_8>='\u0000' && LA12_8<='\uFFFF')) ) {s = 19;}
|
||||
|
||||
else s = 12;
|
||||
|
||||
if ( s>=0 ) return s;
|
||||
break;
|
||||
}
|
||||
NoViableAltException nvae =
|
||||
new NoViableAltException(getDescription(), 12, _s, input);
|
||||
error(nvae);
|
||||
throw nvae;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -1,476 +0,0 @@
|
|||
package org.eclipse.xtext.parsetree.reconstr.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.parsetree.reconstr.services.PartialSerializationTestLanguageGrammarAccess;
|
||||
|
||||
|
||||
|
||||
import org.antlr.runtime.*;
|
||||
import java.util.Stack;
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
|
||||
@SuppressWarnings("all")
|
||||
public class InternalPartialSerializationTestLanguageParser extends AbstractInternalAntlrParser {
|
||||
public static final String[] tokenNames = new String[] {
|
||||
"<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_INT", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'#1'", "'node'", "'('", "')'"
|
||||
};
|
||||
public static final int RULE_ID=4;
|
||||
public static final int RULE_WS=9;
|
||||
public static final int RULE_STRING=6;
|
||||
public static final int RULE_ANY_OTHER=10;
|
||||
public static final int RULE_SL_COMMENT=8;
|
||||
public static final int RULE_INT=5;
|
||||
public static final int T__11=11;
|
||||
public static final int RULE_ML_COMMENT=7;
|
||||
public static final int T__12=12;
|
||||
public static final int T__13=13;
|
||||
public static final int T__14=14;
|
||||
public static final int EOF=-1;
|
||||
|
||||
// delegates
|
||||
// delegators
|
||||
|
||||
|
||||
public InternalPartialSerializationTestLanguageParser(TokenStream input) {
|
||||
this(input, new RecognizerSharedState());
|
||||
}
|
||||
public InternalPartialSerializationTestLanguageParser(TokenStream input, RecognizerSharedState state) {
|
||||
super(input, state);
|
||||
|
||||
}
|
||||
|
||||
|
||||
public String[] getTokenNames() { return InternalPartialSerializationTestLanguageParser.tokenNames; }
|
||||
public String getGrammarFileName() { return "InternalPartialSerializationTestLanguage.g"; }
|
||||
|
||||
|
||||
|
||||
private PartialSerializationTestLanguageGrammarAccess grammarAccess;
|
||||
|
||||
public InternalPartialSerializationTestLanguageParser(TokenStream input, PartialSerializationTestLanguageGrammarAccess grammarAccess) {
|
||||
this(input);
|
||||
this.grammarAccess = grammarAccess;
|
||||
registerRules(grammarAccess.getGrammar());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getFirstRuleName() {
|
||||
return "Model";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected PartialSerializationTestLanguageGrammarAccess getGrammarAccess() {
|
||||
return grammarAccess;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// $ANTLR start "entryRuleModel"
|
||||
// InternalPartialSerializationTestLanguage.g:64:1: entryRuleModel returns [EObject current=null] : iv_ruleModel= ruleModel EOF ;
|
||||
public final EObject entryRuleModel() throws RecognitionException {
|
||||
EObject current = null;
|
||||
|
||||
EObject iv_ruleModel = null;
|
||||
|
||||
|
||||
try {
|
||||
// InternalPartialSerializationTestLanguage.g:64:46: (iv_ruleModel= ruleModel EOF )
|
||||
// InternalPartialSerializationTestLanguage.g:65:2: iv_ruleModel= ruleModel EOF
|
||||
{
|
||||
newCompositeNode(grammarAccess.getModelRule());
|
||||
pushFollow(FollowSets000.FOLLOW_1);
|
||||
iv_ruleModel=ruleModel();
|
||||
|
||||
state._fsp--;
|
||||
|
||||
current =iv_ruleModel;
|
||||
match(input,EOF,FollowSets000.FOLLOW_2);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
catch (RecognitionException re) {
|
||||
recover(input,re);
|
||||
appendSkippedTokens();
|
||||
}
|
||||
finally {
|
||||
}
|
||||
return current;
|
||||
}
|
||||
// $ANTLR end "entryRuleModel"
|
||||
|
||||
|
||||
// $ANTLR start "ruleModel"
|
||||
// InternalPartialSerializationTestLanguage.g:71:1: ruleModel returns [EObject current=null] : this_NodeRoot_0= ruleNodeRoot ;
|
||||
public final EObject ruleModel() throws RecognitionException {
|
||||
EObject current = null;
|
||||
|
||||
EObject this_NodeRoot_0 = null;
|
||||
|
||||
|
||||
|
||||
enterRule();
|
||||
|
||||
try {
|
||||
// InternalPartialSerializationTestLanguage.g:77:2: (this_NodeRoot_0= ruleNodeRoot )
|
||||
// InternalPartialSerializationTestLanguage.g:78:2: this_NodeRoot_0= ruleNodeRoot
|
||||
{
|
||||
|
||||
newCompositeNode(grammarAccess.getModelAccess().getNodeRootParserRuleCall());
|
||||
|
||||
pushFollow(FollowSets000.FOLLOW_2);
|
||||
this_NodeRoot_0=ruleNodeRoot();
|
||||
|
||||
state._fsp--;
|
||||
|
||||
|
||||
current = this_NodeRoot_0;
|
||||
afterParserOrEnumRuleCall();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
leaveRule();
|
||||
|
||||
}
|
||||
|
||||
catch (RecognitionException re) {
|
||||
recover(input,re);
|
||||
appendSkippedTokens();
|
||||
}
|
||||
finally {
|
||||
}
|
||||
return current;
|
||||
}
|
||||
// $ANTLR end "ruleModel"
|
||||
|
||||
|
||||
// $ANTLR start "entryRuleNodeRoot"
|
||||
// InternalPartialSerializationTestLanguage.g:89:1: entryRuleNodeRoot returns [EObject current=null] : iv_ruleNodeRoot= ruleNodeRoot EOF ;
|
||||
public final EObject entryRuleNodeRoot() throws RecognitionException {
|
||||
EObject current = null;
|
||||
|
||||
EObject iv_ruleNodeRoot = null;
|
||||
|
||||
|
||||
try {
|
||||
// InternalPartialSerializationTestLanguage.g:89:49: (iv_ruleNodeRoot= ruleNodeRoot EOF )
|
||||
// InternalPartialSerializationTestLanguage.g:90:2: iv_ruleNodeRoot= ruleNodeRoot EOF
|
||||
{
|
||||
newCompositeNode(grammarAccess.getNodeRootRule());
|
||||
pushFollow(FollowSets000.FOLLOW_1);
|
||||
iv_ruleNodeRoot=ruleNodeRoot();
|
||||
|
||||
state._fsp--;
|
||||
|
||||
current =iv_ruleNodeRoot;
|
||||
match(input,EOF,FollowSets000.FOLLOW_2);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
catch (RecognitionException re) {
|
||||
recover(input,re);
|
||||
appendSkippedTokens();
|
||||
}
|
||||
finally {
|
||||
}
|
||||
return current;
|
||||
}
|
||||
// $ANTLR end "entryRuleNodeRoot"
|
||||
|
||||
|
||||
// $ANTLR start "ruleNodeRoot"
|
||||
// InternalPartialSerializationTestLanguage.g:96:1: ruleNodeRoot returns [EObject current=null] : (otherlv_0= '#1' ( (lv_node_1_0= ruleNode ) ) ) ;
|
||||
public final EObject ruleNodeRoot() throws RecognitionException {
|
||||
EObject current = null;
|
||||
|
||||
Token otherlv_0=null;
|
||||
EObject lv_node_1_0 = null;
|
||||
|
||||
|
||||
|
||||
enterRule();
|
||||
|
||||
try {
|
||||
// InternalPartialSerializationTestLanguage.g:102:2: ( (otherlv_0= '#1' ( (lv_node_1_0= ruleNode ) ) ) )
|
||||
// InternalPartialSerializationTestLanguage.g:103:2: (otherlv_0= '#1' ( (lv_node_1_0= ruleNode ) ) )
|
||||
{
|
||||
// InternalPartialSerializationTestLanguage.g:103:2: (otherlv_0= '#1' ( (lv_node_1_0= ruleNode ) ) )
|
||||
// InternalPartialSerializationTestLanguage.g:104:3: otherlv_0= '#1' ( (lv_node_1_0= ruleNode ) )
|
||||
{
|
||||
otherlv_0=(Token)match(input,11,FollowSets000.FOLLOW_3);
|
||||
|
||||
newLeafNode(otherlv_0, grammarAccess.getNodeRootAccess().getNumberSignDigitOneKeyword_0());
|
||||
|
||||
// InternalPartialSerializationTestLanguage.g:108:3: ( (lv_node_1_0= ruleNode ) )
|
||||
// InternalPartialSerializationTestLanguage.g:109:4: (lv_node_1_0= ruleNode )
|
||||
{
|
||||
// InternalPartialSerializationTestLanguage.g:109:4: (lv_node_1_0= ruleNode )
|
||||
// InternalPartialSerializationTestLanguage.g:110:5: lv_node_1_0= ruleNode
|
||||
{
|
||||
|
||||
newCompositeNode(grammarAccess.getNodeRootAccess().getNodeNodeParserRuleCall_1_0());
|
||||
|
||||
pushFollow(FollowSets000.FOLLOW_2);
|
||||
lv_node_1_0=ruleNode();
|
||||
|
||||
state._fsp--;
|
||||
|
||||
|
||||
if (current==null) {
|
||||
current = createModelElementForParent(grammarAccess.getNodeRootRule());
|
||||
}
|
||||
set(
|
||||
current,
|
||||
"node",
|
||||
lv_node_1_0,
|
||||
"org.eclipse.xtext.parsetree.reconstr.PartialSerializationTestLanguage.Node");
|
||||
afterParserOrEnumRuleCall();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
leaveRule();
|
||||
|
||||
}
|
||||
|
||||
catch (RecognitionException re) {
|
||||
recover(input,re);
|
||||
appendSkippedTokens();
|
||||
}
|
||||
finally {
|
||||
}
|
||||
return current;
|
||||
}
|
||||
// $ANTLR end "ruleNodeRoot"
|
||||
|
||||
|
||||
// $ANTLR start "entryRuleNode"
|
||||
// InternalPartialSerializationTestLanguage.g:131:1: entryRuleNode returns [EObject current=null] : iv_ruleNode= ruleNode EOF ;
|
||||
public final EObject entryRuleNode() throws RecognitionException {
|
||||
EObject current = null;
|
||||
|
||||
EObject iv_ruleNode = null;
|
||||
|
||||
|
||||
try {
|
||||
// InternalPartialSerializationTestLanguage.g:131:45: (iv_ruleNode= ruleNode EOF )
|
||||
// InternalPartialSerializationTestLanguage.g:132:2: iv_ruleNode= ruleNode EOF
|
||||
{
|
||||
newCompositeNode(grammarAccess.getNodeRule());
|
||||
pushFollow(FollowSets000.FOLLOW_1);
|
||||
iv_ruleNode=ruleNode();
|
||||
|
||||
state._fsp--;
|
||||
|
||||
current =iv_ruleNode;
|
||||
match(input,EOF,FollowSets000.FOLLOW_2);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
catch (RecognitionException re) {
|
||||
recover(input,re);
|
||||
appendSkippedTokens();
|
||||
}
|
||||
finally {
|
||||
}
|
||||
return current;
|
||||
}
|
||||
// $ANTLR end "entryRuleNode"
|
||||
|
||||
|
||||
// $ANTLR start "ruleNode"
|
||||
// InternalPartialSerializationTestLanguage.g:138:1: ruleNode returns [EObject current=null] : (otherlv_0= 'node' ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= '(' ( (lv_children_3_0= ruleNode ) )+ otherlv_4= ')' )? ) ;
|
||||
public final EObject ruleNode() throws RecognitionException {
|
||||
EObject current = null;
|
||||
|
||||
Token otherlv_0=null;
|
||||
Token lv_name_1_0=null;
|
||||
Token otherlv_2=null;
|
||||
Token otherlv_4=null;
|
||||
EObject lv_children_3_0 = null;
|
||||
|
||||
|
||||
|
||||
enterRule();
|
||||
|
||||
try {
|
||||
// InternalPartialSerializationTestLanguage.g:144:2: ( (otherlv_0= 'node' ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= '(' ( (lv_children_3_0= ruleNode ) )+ otherlv_4= ')' )? ) )
|
||||
// InternalPartialSerializationTestLanguage.g:145:2: (otherlv_0= 'node' ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= '(' ( (lv_children_3_0= ruleNode ) )+ otherlv_4= ')' )? )
|
||||
{
|
||||
// InternalPartialSerializationTestLanguage.g:145:2: (otherlv_0= 'node' ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= '(' ( (lv_children_3_0= ruleNode ) )+ otherlv_4= ')' )? )
|
||||
// InternalPartialSerializationTestLanguage.g:146:3: otherlv_0= 'node' ( (lv_name_1_0= RULE_ID ) ) (otherlv_2= '(' ( (lv_children_3_0= ruleNode ) )+ otherlv_4= ')' )?
|
||||
{
|
||||
otherlv_0=(Token)match(input,12,FollowSets000.FOLLOW_4);
|
||||
|
||||
newLeafNode(otherlv_0, grammarAccess.getNodeAccess().getNodeKeyword_0());
|
||||
|
||||
// InternalPartialSerializationTestLanguage.g:150:3: ( (lv_name_1_0= RULE_ID ) )
|
||||
// InternalPartialSerializationTestLanguage.g:151:4: (lv_name_1_0= RULE_ID )
|
||||
{
|
||||
// InternalPartialSerializationTestLanguage.g:151:4: (lv_name_1_0= RULE_ID )
|
||||
// InternalPartialSerializationTestLanguage.g:152:5: lv_name_1_0= RULE_ID
|
||||
{
|
||||
lv_name_1_0=(Token)match(input,RULE_ID,FollowSets000.FOLLOW_5);
|
||||
|
||||
newLeafNode(lv_name_1_0, grammarAccess.getNodeAccess().getNameIDTerminalRuleCall_1_0());
|
||||
|
||||
|
||||
if (current==null) {
|
||||
current = createModelElement(grammarAccess.getNodeRule());
|
||||
}
|
||||
setWithLastConsumed(
|
||||
current,
|
||||
"name",
|
||||
lv_name_1_0,
|
||||
"org.eclipse.xtext.common.Terminals.ID");
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// InternalPartialSerializationTestLanguage.g:168:3: (otherlv_2= '(' ( (lv_children_3_0= ruleNode ) )+ otherlv_4= ')' )?
|
||||
int alt2=2;
|
||||
int LA2_0 = input.LA(1);
|
||||
|
||||
if ( (LA2_0==13) ) {
|
||||
alt2=1;
|
||||
}
|
||||
switch (alt2) {
|
||||
case 1 :
|
||||
// InternalPartialSerializationTestLanguage.g:169:4: otherlv_2= '(' ( (lv_children_3_0= ruleNode ) )+ otherlv_4= ')'
|
||||
{
|
||||
otherlv_2=(Token)match(input,13,FollowSets000.FOLLOW_3);
|
||||
|
||||
newLeafNode(otherlv_2, grammarAccess.getNodeAccess().getLeftParenthesisKeyword_2_0());
|
||||
|
||||
// InternalPartialSerializationTestLanguage.g:173:4: ( (lv_children_3_0= ruleNode ) )+
|
||||
int cnt1=0;
|
||||
loop1:
|
||||
do {
|
||||
int alt1=2;
|
||||
int LA1_0 = input.LA(1);
|
||||
|
||||
if ( (LA1_0==12) ) {
|
||||
alt1=1;
|
||||
}
|
||||
|
||||
|
||||
switch (alt1) {
|
||||
case 1 :
|
||||
// InternalPartialSerializationTestLanguage.g:174:5: (lv_children_3_0= ruleNode )
|
||||
{
|
||||
// InternalPartialSerializationTestLanguage.g:174:5: (lv_children_3_0= ruleNode )
|
||||
// InternalPartialSerializationTestLanguage.g:175:6: lv_children_3_0= ruleNode
|
||||
{
|
||||
|
||||
newCompositeNode(grammarAccess.getNodeAccess().getChildrenNodeParserRuleCall_2_1_0());
|
||||
|
||||
pushFollow(FollowSets000.FOLLOW_6);
|
||||
lv_children_3_0=ruleNode();
|
||||
|
||||
state._fsp--;
|
||||
|
||||
|
||||
if (current==null) {
|
||||
current = createModelElementForParent(grammarAccess.getNodeRule());
|
||||
}
|
||||
add(
|
||||
current,
|
||||
"children",
|
||||
lv_children_3_0,
|
||||
"org.eclipse.xtext.parsetree.reconstr.PartialSerializationTestLanguage.Node");
|
||||
afterParserOrEnumRuleCall();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
break;
|
||||
|
||||
default :
|
||||
if ( cnt1 >= 1 ) break loop1;
|
||||
EarlyExitException eee =
|
||||
new EarlyExitException(1, input);
|
||||
throw eee;
|
||||
}
|
||||
cnt1++;
|
||||
} while (true);
|
||||
|
||||
otherlv_4=(Token)match(input,14,FollowSets000.FOLLOW_2);
|
||||
|
||||
newLeafNode(otherlv_4, grammarAccess.getNodeAccess().getRightParenthesisKeyword_2_2());
|
||||
|
||||
|
||||
}
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
leaveRule();
|
||||
|
||||
}
|
||||
|
||||
catch (RecognitionException re) {
|
||||
recover(input,re);
|
||||
appendSkippedTokens();
|
||||
}
|
||||
finally {
|
||||
}
|
||||
return current;
|
||||
}
|
||||
// $ANTLR end "ruleNode"
|
||||
|
||||
// Delegated rules
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private static class FollowSets000 {
|
||||
public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L});
|
||||
public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x0000000000001000L});
|
||||
public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000000010L});
|
||||
public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000000002002L});
|
||||
public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000000005000L});
|
||||
}
|
||||
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -1,129 +0,0 @@
|
|||
'!'=15
|
||||
'#'=16
|
||||
'#10'=45
|
||||
'#11'=46
|
||||
'#12'=48
|
||||
'#13'=51
|
||||
'#14'=55
|
||||
'#15'=57
|
||||
'#16'=58
|
||||
'#17'=60
|
||||
'#18'=61
|
||||
'#19'=64
|
||||
'#2'=20
|
||||
'#20'=68
|
||||
'#21'=69
|
||||
'#22'=70
|
||||
'#3'=23
|
||||
'#4'=25
|
||||
'#5'=28
|
||||
'#6'=31
|
||||
'#7'=34
|
||||
'#8'=36
|
||||
'#9'=40
|
||||
'('=13
|
||||
')'=14
|
||||
'*'=29
|
||||
','=30
|
||||
'.'=24
|
||||
'='=17
|
||||
'class'=50
|
||||
'extends'=19
|
||||
'final'=53
|
||||
'interface'=49
|
||||
'item'=56
|
||||
'ka'=62
|
||||
'kb'=63
|
||||
'kw'=27
|
||||
'kw0'=35
|
||||
'kw1'=37
|
||||
'kw2'=38
|
||||
'kw3'=41
|
||||
'kw30'=39
|
||||
'kw4'=42
|
||||
'kw5'=43
|
||||
'kw6'=44
|
||||
'kw7'=47
|
||||
'kx'=65
|
||||
'ky'=66
|
||||
'kz'=67
|
||||
'lit1'=71
|
||||
'lit2'=72
|
||||
'mykeyword1'=21
|
||||
'mykeyword2'=22
|
||||
'myoption'=26
|
||||
'refs'=59
|
||||
'static'=52
|
||||
'transient'=54
|
||||
'type'=18
|
||||
'v1'=32
|
||||
'v2'=33
|
||||
RULE_ANY_OTHER=12
|
||||
RULE_ID1=7
|
||||
RULE_ID2=8
|
||||
RULE_ID=4
|
||||
RULE_INT=5
|
||||
RULE_ML_COMMENT=9
|
||||
RULE_SL_COMMENT=10
|
||||
RULE_STRING=6
|
||||
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
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,20 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.partialserializationtest;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Model</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.PartialserializationtestPackage#getModel()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface Model extends EObject
|
||||
{
|
||||
} // Model
|
|
@ -1,71 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.partialserializationtest;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Node</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.partialserializationtest.Node#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.partialserializationtest.Node#getChildren <em>Children</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.PartialserializationtestPackage#getNode()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface Node extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Name</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Name</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Name</em>' attribute.
|
||||
* @see #setName(String)
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.PartialserializationtestPackage#getNode_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.eclipse.xtext.parsetree.reconstr.partialserializationtest.Node#getName <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Name</em>' attribute.
|
||||
* @see #getName()
|
||||
* @generated
|
||||
*/
|
||||
void setName(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Children</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.eclipse.xtext.parsetree.reconstr.partialserializationtest.Node}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Children</em>' containment reference list isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Children</em>' containment reference list.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.PartialserializationtestPackage#getNode_Children()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<Node> getChildren();
|
||||
|
||||
} // Node
|
|
@ -1,51 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.partialserializationtest;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Node Root</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.partialserializationtest.NodeRoot#getNode <em>Node</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.PartialserializationtestPackage#getNodeRoot()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface NodeRoot extends Model
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Node</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Node</em>' containment reference isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Node</em>' containment reference.
|
||||
* @see #setNode(Node)
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.PartialserializationtestPackage#getNodeRoot_Node()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
Node getNode();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.eclipse.xtext.parsetree.reconstr.partialserializationtest.NodeRoot#getNode <em>Node</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Node</em>' containment reference.
|
||||
* @see #getNode()
|
||||
* @generated
|
||||
*/
|
||||
void setNode(Node value);
|
||||
|
||||
} // NodeRoot
|
|
@ -1,62 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.partialserializationtest;
|
||||
|
||||
import org.eclipse.emf.ecore.EFactory;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* The <b>Factory</b> for the model.
|
||||
* It provides a create method for each non-abstract class of the model.
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.PartialserializationtestPackage
|
||||
* @generated
|
||||
*/
|
||||
public interface PartialserializationtestFactory extends EFactory
|
||||
{
|
||||
/**
|
||||
* The singleton instance of the factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
PartialserializationtestFactory eINSTANCE = org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl.PartialserializationtestFactoryImpl.init();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Model</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Model</em>'.
|
||||
* @generated
|
||||
*/
|
||||
Model createModel();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Node Root</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Node Root</em>'.
|
||||
* @generated
|
||||
*/
|
||||
NodeRoot createNodeRoot();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Node</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Node</em>'.
|
||||
* @generated
|
||||
*/
|
||||
Node createNode();
|
||||
|
||||
/**
|
||||
* Returns the package supported by this factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the package supported by this factory.
|
||||
* @generated
|
||||
*/
|
||||
PartialserializationtestPackage getPartialserializationtestPackage();
|
||||
|
||||
} //PartialserializationtestFactory
|
|
@ -1,287 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.partialserializationtest;
|
||||
|
||||
import org.eclipse.emf.ecore.EAttribute;
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.EPackage;
|
||||
import org.eclipse.emf.ecore.EReference;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* The <b>Package</b> for the model.
|
||||
* It contains accessors for the meta objects to represent
|
||||
* <ul>
|
||||
* <li>each class,</li>
|
||||
* <li>each feature of each class,</li>
|
||||
* <li>each enum,</li>
|
||||
* <li>and each data type</li>
|
||||
* </ul>
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.PartialserializationtestFactory
|
||||
* @model kind="package"
|
||||
* @generated
|
||||
*/
|
||||
public interface PartialserializationtestPackage extends EPackage
|
||||
{
|
||||
/**
|
||||
* The package name.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
String eNAME = "partialserializationtest";
|
||||
|
||||
/**
|
||||
* The package namespace URI.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
String eNS_URI = "http://www.eclipse.org/2009/tmf/xtext/partialserializationtest";
|
||||
|
||||
/**
|
||||
* The package namespace name.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
String eNS_PREFIX = "partialserializationtest";
|
||||
|
||||
/**
|
||||
* The singleton instance of the package.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
PartialserializationtestPackage eINSTANCE = org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl.PartialserializationtestPackageImpl.init();
|
||||
|
||||
/**
|
||||
* The meta object id for the '{@link org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl.ModelImpl <em>Model</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl.ModelImpl
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl.PartialserializationtestPackageImpl#getModel()
|
||||
* @generated
|
||||
*/
|
||||
int MODEL = 0;
|
||||
|
||||
/**
|
||||
* The number of structural features of the '<em>Model</em>' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int MODEL_FEATURE_COUNT = 0;
|
||||
|
||||
/**
|
||||
* The meta object id for the '{@link org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl.NodeRootImpl <em>Node Root</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl.NodeRootImpl
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl.PartialserializationtestPackageImpl#getNodeRoot()
|
||||
* @generated
|
||||
*/
|
||||
int NODE_ROOT = 1;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Node</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int NODE_ROOT__NODE = MODEL_FEATURE_COUNT + 0;
|
||||
|
||||
/**
|
||||
* The number of structural features of the '<em>Node Root</em>' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int NODE_ROOT_FEATURE_COUNT = MODEL_FEATURE_COUNT + 1;
|
||||
|
||||
/**
|
||||
* The meta object id for the '{@link org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl.NodeImpl <em>Node</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl.NodeImpl
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl.PartialserializationtestPackageImpl#getNode()
|
||||
* @generated
|
||||
*/
|
||||
int NODE = 2;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Name</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int NODE__NAME = 0;
|
||||
|
||||
/**
|
||||
* The feature id for the '<em><b>Children</b></em>' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int NODE__CHILDREN = 1;
|
||||
|
||||
/**
|
||||
* The number of structural features of the '<em>Node</em>' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
int NODE_FEATURE_COUNT = 2;
|
||||
|
||||
|
||||
/**
|
||||
* Returns the meta object for class '{@link org.eclipse.xtext.parsetree.reconstr.partialserializationtest.Model <em>Model</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for class '<em>Model</em>'.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.Model
|
||||
* @generated
|
||||
*/
|
||||
EClass getModel();
|
||||
|
||||
/**
|
||||
* Returns the meta object for class '{@link org.eclipse.xtext.parsetree.reconstr.partialserializationtest.NodeRoot <em>Node Root</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for class '<em>Node Root</em>'.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.NodeRoot
|
||||
* @generated
|
||||
*/
|
||||
EClass getNodeRoot();
|
||||
|
||||
/**
|
||||
* Returns the meta object for the containment reference '{@link org.eclipse.xtext.parsetree.reconstr.partialserializationtest.NodeRoot#getNode <em>Node</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for the containment reference '<em>Node</em>'.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.NodeRoot#getNode()
|
||||
* @see #getNodeRoot()
|
||||
* @generated
|
||||
*/
|
||||
EReference getNodeRoot_Node();
|
||||
|
||||
/**
|
||||
* Returns the meta object for class '{@link org.eclipse.xtext.parsetree.reconstr.partialserializationtest.Node <em>Node</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for class '<em>Node</em>'.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.Node
|
||||
* @generated
|
||||
*/
|
||||
EClass getNode();
|
||||
|
||||
/**
|
||||
* Returns the meta object for the attribute '{@link org.eclipse.xtext.parsetree.reconstr.partialserializationtest.Node#getName <em>Name</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for the attribute '<em>Name</em>'.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.Node#getName()
|
||||
* @see #getNode()
|
||||
* @generated
|
||||
*/
|
||||
EAttribute getNode_Name();
|
||||
|
||||
/**
|
||||
* Returns the meta object for the containment reference list '{@link org.eclipse.xtext.parsetree.reconstr.partialserializationtest.Node#getChildren <em>Children</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the meta object for the containment reference list '<em>Children</em>'.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.Node#getChildren()
|
||||
* @see #getNode()
|
||||
* @generated
|
||||
*/
|
||||
EReference getNode_Children();
|
||||
|
||||
/**
|
||||
* Returns the factory that creates the instances of the model.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the factory that creates the instances of the model.
|
||||
* @generated
|
||||
*/
|
||||
PartialserializationtestFactory getPartialserializationtestFactory();
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* Defines literals for the meta objects that represent
|
||||
* <ul>
|
||||
* <li>each class,</li>
|
||||
* <li>each feature of each class,</li>
|
||||
* <li>each enum,</li>
|
||||
* <li>and each data type</li>
|
||||
* </ul>
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
interface Literals
|
||||
{
|
||||
/**
|
||||
* The meta object literal for the '{@link org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl.ModelImpl <em>Model</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl.ModelImpl
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl.PartialserializationtestPackageImpl#getModel()
|
||||
* @generated
|
||||
*/
|
||||
EClass MODEL = eINSTANCE.getModel();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '{@link org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl.NodeRootImpl <em>Node Root</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl.NodeRootImpl
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl.PartialserializationtestPackageImpl#getNodeRoot()
|
||||
* @generated
|
||||
*/
|
||||
EClass NODE_ROOT = eINSTANCE.getNodeRoot();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '<em><b>Node</b></em>' containment reference feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
EReference NODE_ROOT__NODE = eINSTANCE.getNodeRoot_Node();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '{@link org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl.NodeImpl <em>Node</em>}' class.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl.NodeImpl
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl.PartialserializationtestPackageImpl#getNode()
|
||||
* @generated
|
||||
*/
|
||||
EClass NODE = eINSTANCE.getNode();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '<em><b>Name</b></em>' attribute feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
EAttribute NODE__NAME = eINSTANCE.getNode_Name();
|
||||
|
||||
/**
|
||||
* The meta object literal for the '<em><b>Children</b></em>' containment reference list feature.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
EReference NODE__CHILDREN = eINSTANCE.getNode_Children();
|
||||
|
||||
}
|
||||
|
||||
} //PartialserializationtestPackage
|
|
@ -1,43 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.partialserializationtest.Model;
|
||||
import org.eclipse.xtext.parsetree.reconstr.partialserializationtest.PartialserializationtestPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Model</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class ModelImpl extends MinimalEObjectImpl.Container implements Model
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected ModelImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return PartialserializationtestPackage.Literals.MODEL;
|
||||
}
|
||||
|
||||
} //ModelImpl
|
|
@ -1,240 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.partialserializationtest.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.parsetree.reconstr.partialserializationtest.Node;
|
||||
import org.eclipse.xtext.parsetree.reconstr.partialserializationtest.PartialserializationtestPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Node</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl.NodeImpl#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl.NodeImpl#getChildren <em>Children</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class NodeImpl extends MinimalEObjectImpl.Container implements Node
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String NAME_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String name = NAME_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getChildren() <em>Children</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getChildren()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<Node> children;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected NodeImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return PartialserializationtestPackage.Literals.NODE;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setName(String newName)
|
||||
{
|
||||
String oldName = name;
|
||||
name = newName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, PartialserializationtestPackage.NODE__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<Node> getChildren()
|
||||
{
|
||||
if (children == null)
|
||||
{
|
||||
children = new EObjectContainmentEList<Node>(Node.class, this, PartialserializationtestPackage.NODE__CHILDREN);
|
||||
}
|
||||
return children;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case PartialserializationtestPackage.NODE__CHILDREN:
|
||||
return ((InternalEList<?>)getChildren()).basicRemove(otherEnd, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case PartialserializationtestPackage.NODE__NAME:
|
||||
return getName();
|
||||
case PartialserializationtestPackage.NODE__CHILDREN:
|
||||
return getChildren();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case PartialserializationtestPackage.NODE__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
case PartialserializationtestPackage.NODE__CHILDREN:
|
||||
getChildren().clear();
|
||||
getChildren().addAll((Collection<? extends Node>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case PartialserializationtestPackage.NODE__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
case PartialserializationtestPackage.NODE__CHILDREN:
|
||||
getChildren().clear();
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case PartialserializationtestPackage.NODE__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
case PartialserializationtestPackage.NODE__CHILDREN:
|
||||
return children != null && !children.isEmpty();
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuffer result = new StringBuffer(super.toString());
|
||||
result.append(" (name: ");
|
||||
result.append(name);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //NodeImpl
|
|
@ -1,194 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.partialserializationtest.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.xtext.parsetree.reconstr.partialserializationtest.Node;
|
||||
import org.eclipse.xtext.parsetree.reconstr.partialserializationtest.NodeRoot;
|
||||
import org.eclipse.xtext.parsetree.reconstr.partialserializationtest.PartialserializationtestPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Node Root</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl.NodeRootImpl#getNode <em>Node</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class NodeRootImpl extends ModelImpl implements NodeRoot
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getNode() <em>Node</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getNode()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected Node node;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected NodeRootImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return PartialserializationtestPackage.Literals.NODE_ROOT;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public Node getNode()
|
||||
{
|
||||
return node;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetNode(Node newNode, NotificationChain msgs)
|
||||
{
|
||||
Node oldNode = node;
|
||||
node = newNode;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PartialserializationtestPackage.NODE_ROOT__NODE, oldNode, newNode);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setNode(Node newNode)
|
||||
{
|
||||
if (newNode != node)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (node != null)
|
||||
msgs = ((InternalEObject)node).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PartialserializationtestPackage.NODE_ROOT__NODE, null, msgs);
|
||||
if (newNode != null)
|
||||
msgs = ((InternalEObject)newNode).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PartialserializationtestPackage.NODE_ROOT__NODE, null, msgs);
|
||||
msgs = basicSetNode(newNode, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, PartialserializationtestPackage.NODE_ROOT__NODE, newNode, newNode));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case PartialserializationtestPackage.NODE_ROOT__NODE:
|
||||
return basicSetNode(null, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case PartialserializationtestPackage.NODE_ROOT__NODE:
|
||||
return getNode();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case PartialserializationtestPackage.NODE_ROOT__NODE:
|
||||
setNode((Node)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case PartialserializationtestPackage.NODE_ROOT__NODE:
|
||||
setNode((Node)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case PartialserializationtestPackage.NODE_ROOT__NODE:
|
||||
return node != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //NodeRootImpl
|
|
@ -1,131 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
import org.eclipse.emf.ecore.EPackage;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.EFactoryImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.plugin.EcorePlugin;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.partialserializationtest.*;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model <b>Factory</b>.
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public class PartialserializationtestFactoryImpl extends EFactoryImpl implements PartialserializationtestFactory
|
||||
{
|
||||
/**
|
||||
* Creates the default factory implementation.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static PartialserializationtestFactory init()
|
||||
{
|
||||
try
|
||||
{
|
||||
PartialserializationtestFactory thePartialserializationtestFactory = (PartialserializationtestFactory)EPackage.Registry.INSTANCE.getEFactory(PartialserializationtestPackage.eNS_URI);
|
||||
if (thePartialserializationtestFactory != null)
|
||||
{
|
||||
return thePartialserializationtestFactory;
|
||||
}
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
EcorePlugin.INSTANCE.log(exception);
|
||||
}
|
||||
return new PartialserializationtestFactoryImpl();
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an instance of the factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public PartialserializationtestFactoryImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EObject create(EClass eClass)
|
||||
{
|
||||
switch (eClass.getClassifierID())
|
||||
{
|
||||
case PartialserializationtestPackage.MODEL: return createModel();
|
||||
case PartialserializationtestPackage.NODE_ROOT: return createNodeRoot();
|
||||
case PartialserializationtestPackage.NODE: return createNode();
|
||||
default:
|
||||
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public Model createModel()
|
||||
{
|
||||
ModelImpl model = new ModelImpl();
|
||||
return model;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NodeRoot createNodeRoot()
|
||||
{
|
||||
NodeRootImpl nodeRoot = new NodeRootImpl();
|
||||
return nodeRoot;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public Node createNode()
|
||||
{
|
||||
NodeImpl node = new NodeImpl();
|
||||
return node;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public PartialserializationtestPackage getPartialserializationtestPackage()
|
||||
{
|
||||
return (PartialserializationtestPackage)getEPackage();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @deprecated
|
||||
* @generated
|
||||
*/
|
||||
@Deprecated
|
||||
public static PartialserializationtestPackage getPackage()
|
||||
{
|
||||
return PartialserializationtestPackage.eINSTANCE;
|
||||
}
|
||||
|
||||
} //PartialserializationtestFactoryImpl
|
|
@ -1,263 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.partialserializationtest.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EAttribute;
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.EPackage;
|
||||
import org.eclipse.emf.ecore.EReference;
|
||||
import org.eclipse.emf.ecore.EcorePackage;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.EPackageImpl;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.partialserializationtest.Model;
|
||||
import org.eclipse.xtext.parsetree.reconstr.partialserializationtest.Node;
|
||||
import org.eclipse.xtext.parsetree.reconstr.partialserializationtest.NodeRoot;
|
||||
import org.eclipse.xtext.parsetree.reconstr.partialserializationtest.PartialserializationtestFactory;
|
||||
import org.eclipse.xtext.parsetree.reconstr.partialserializationtest.PartialserializationtestPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model <b>Package</b>.
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public class PartialserializationtestPackageImpl extends EPackageImpl implements PartialserializationtestPackage
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass modelEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass nodeRootEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass nodeEClass = null;
|
||||
|
||||
/**
|
||||
* Creates an instance of the model <b>Package</b>, registered with
|
||||
* {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
|
||||
* package URI value.
|
||||
* <p>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.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.eclipse.emf.ecore.EPackage.Registry
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.PartialserializationtestPackage#eNS_URI
|
||||
* @see #init()
|
||||
* @generated
|
||||
*/
|
||||
private PartialserializationtestPackageImpl()
|
||||
{
|
||||
super(eNS_URI, PartialserializationtestFactory.eINSTANCE);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static boolean isInited = false;
|
||||
|
||||
/**
|
||||
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
|
||||
*
|
||||
* <p>This method is used to initialize {@link PartialserializationtestPackage#eINSTANCE} when that field is accessed.
|
||||
* Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #eNS_URI
|
||||
* @see #createPackageContents()
|
||||
* @see #initializePackageContents()
|
||||
* @generated
|
||||
*/
|
||||
public static PartialserializationtestPackage init()
|
||||
{
|
||||
if (isInited) return (PartialserializationtestPackage)EPackage.Registry.INSTANCE.getEPackage(PartialserializationtestPackage.eNS_URI);
|
||||
|
||||
// Obtain or create and register package
|
||||
PartialserializationtestPackageImpl thePartialserializationtestPackage = (PartialserializationtestPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof PartialserializationtestPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new PartialserializationtestPackageImpl());
|
||||
|
||||
isInited = true;
|
||||
|
||||
// Initialize simple dependencies
|
||||
EcorePackage.eINSTANCE.eClass();
|
||||
|
||||
// Create package meta-data objects
|
||||
thePartialserializationtestPackage.createPackageContents();
|
||||
|
||||
// Initialize created meta-data
|
||||
thePartialserializationtestPackage.initializePackageContents();
|
||||
|
||||
// Mark meta-data to indicate it can't be changed
|
||||
thePartialserializationtestPackage.freeze();
|
||||
|
||||
|
||||
// Update the registry and return the package
|
||||
EPackage.Registry.INSTANCE.put(PartialserializationtestPackage.eNS_URI, thePartialserializationtestPackage);
|
||||
return thePartialserializationtestPackage;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getModel()
|
||||
{
|
||||
return modelEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getNodeRoot()
|
||||
{
|
||||
return nodeRootEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getNodeRoot_Node()
|
||||
{
|
||||
return (EReference)nodeRootEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getNode()
|
||||
{
|
||||
return nodeEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getNode_Name()
|
||||
{
|
||||
return (EAttribute)nodeEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getNode_Children()
|
||||
{
|
||||
return (EReference)nodeEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public PartialserializationtestFactory getPartialserializationtestFactory()
|
||||
{
|
||||
return (PartialserializationtestFactory)getEFactoryInstance();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void createPackageContents()
|
||||
{
|
||||
if (isCreated) return;
|
||||
isCreated = true;
|
||||
|
||||
// Create classes and their features
|
||||
modelEClass = createEClass(MODEL);
|
||||
|
||||
nodeRootEClass = createEClass(NODE_ROOT);
|
||||
createEReference(nodeRootEClass, NODE_ROOT__NODE);
|
||||
|
||||
nodeEClass = createEClass(NODE);
|
||||
createEAttribute(nodeEClass, NODE__NAME);
|
||||
createEReference(nodeEClass, NODE__CHILDREN);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @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.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void initializePackageContents()
|
||||
{
|
||||
if (isInitialized) return;
|
||||
isInitialized = true;
|
||||
|
||||
// Initialize package
|
||||
setName(eNAME);
|
||||
setNsPrefix(eNS_PREFIX);
|
||||
setNsURI(eNS_URI);
|
||||
|
||||
// Obtain other dependent packages
|
||||
EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
|
||||
|
||||
// Create type parameters
|
||||
|
||||
// Set bounds for type parameters
|
||||
|
||||
// Add supertypes to classes
|
||||
nodeRootEClass.getESuperTypes().add(this.getModel());
|
||||
|
||||
// Initialize classes and features; add operations and parameters
|
||||
initEClass(modelEClass, Model.class, "Model", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
|
||||
initEClass(nodeRootEClass, NodeRoot.class, "NodeRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEReference(getNodeRoot_Node(), this.getNode(), null, "node", null, 0, 1, NodeRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(nodeEClass, Node.class, "Node", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getNode_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Node.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getNode_Children(), this.getNode(), null, "children", null, 0, -1, Node.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);
|
||||
}
|
||||
|
||||
} //PartialserializationtestPackageImpl
|
|
@ -1,173 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.partialserializationtest.util;
|
||||
|
||||
import org.eclipse.emf.common.notify.Adapter;
|
||||
import org.eclipse.emf.common.notify.Notifier;
|
||||
|
||||
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.partialserializationtest.*;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* The <b>Adapter Factory</b> for the model.
|
||||
* It provides an adapter <code>createXXX</code> method for each class of the model.
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.PartialserializationtestPackage
|
||||
* @generated
|
||||
*/
|
||||
public class PartialserializationtestAdapterFactory extends AdapterFactoryImpl
|
||||
{
|
||||
/**
|
||||
* The cached model package.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected static PartialserializationtestPackage modelPackage;
|
||||
|
||||
/**
|
||||
* Creates an instance of the adapter factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public PartialserializationtestAdapterFactory()
|
||||
{
|
||||
if (modelPackage == null)
|
||||
{
|
||||
modelPackage = PartialserializationtestPackage.eINSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether this factory is applicable for the type of the object.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
|
||||
* <!-- end-user-doc -->
|
||||
* @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 <code>createXXX</code> methods.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected PartialserializationtestSwitch<Adapter> modelSwitch =
|
||||
new PartialserializationtestSwitch<Adapter>()
|
||||
{
|
||||
@Override
|
||||
public Adapter caseModel(Model object)
|
||||
{
|
||||
return createModelAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseNodeRoot(NodeRoot object)
|
||||
{
|
||||
return createNodeRootAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseNode(Node object)
|
||||
{
|
||||
return createNodeAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter defaultCase(EObject object)
|
||||
{
|
||||
return createEObjectAdapter();
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Creates an adapter for the <code>target</code>.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param target the object to adapt.
|
||||
* @return the adapter for the <code>target</code>.
|
||||
* @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.parsetree.reconstr.partialserializationtest.Model <em>Model</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.Model
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createModelAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.eclipse.xtext.parsetree.reconstr.partialserializationtest.NodeRoot <em>Node Root</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.NodeRoot
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createNodeRootAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.eclipse.xtext.parsetree.reconstr.partialserializationtest.Node <em>Node</em>}'.
|
||||
* <!-- begin-user-doc -->
|
||||
* 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.Node
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createNodeAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for the default case.
|
||||
* <!-- begin-user-doc -->
|
||||
* This default implementation returns null.
|
||||
* <!-- end-user-doc -->
|
||||
* @return the new adapter.
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createEObjectAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
} //PartialserializationtestAdapterFactory
|
|
@ -1,167 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.partialserializationtest.util;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
import org.eclipse.emf.ecore.EPackage;
|
||||
|
||||
import org.eclipse.emf.ecore.util.Switch;
|
||||
|
||||
import org.eclipse.xtext.parsetree.reconstr.partialserializationtest.*;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* The <b>Switch</b> for the model's inheritance hierarchy.
|
||||
* It supports the call {@link #doSwitch(EObject) doSwitch(object)}
|
||||
* to invoke the <code>caseXXX</code> 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.
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.partialserializationtest.PartialserializationtestPackage
|
||||
* @generated
|
||||
*/
|
||||
public class PartialserializationtestSwitch<T> extends Switch<T>
|
||||
{
|
||||
/**
|
||||
* The cached model package
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected static PartialserializationtestPackage modelPackage;
|
||||
|
||||
/**
|
||||
* Creates an instance of the switch.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public PartialserializationtestSwitch()
|
||||
{
|
||||
if (modelPackage == null)
|
||||
{
|
||||
modelPackage = PartialserializationtestPackage.eINSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether this is a switch for the given package.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param ePackage the package in question.
|
||||
* @return whether this is a switch for the given package.
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected boolean isSwitchFor(EPackage ePackage)
|
||||
{
|
||||
return ePackage == modelPackage;
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the first non-null result returned by a <code>caseXXX</code> call.
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected T doSwitch(int classifierID, EObject theEObject)
|
||||
{
|
||||
switch (classifierID)
|
||||
{
|
||||
case PartialserializationtestPackage.MODEL:
|
||||
{
|
||||
Model model = (Model)theEObject;
|
||||
T result = caseModel(model);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case PartialserializationtestPackage.NODE_ROOT:
|
||||
{
|
||||
NodeRoot nodeRoot = (NodeRoot)theEObject;
|
||||
T result = caseNodeRoot(nodeRoot);
|
||||
if (result == null) result = caseModel(nodeRoot);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case PartialserializationtestPackage.NODE:
|
||||
{
|
||||
Node node = (Node)theEObject;
|
||||
T result = caseNode(node);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
default: return defaultCase(theEObject);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>Model</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>Model</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseModel(Model object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>Node Root</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>Node Root</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseNodeRoot(NodeRoot object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>Node</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>Node</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseNode(Node object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* This implementation returns null;
|
||||
* returning a non-null result will terminate the switch, but this is the last case anyway.
|
||||
* <!-- end-user-doc -->
|
||||
* @param object the target of the switch.
|
||||
* @return the result of interpreting the object as an instance of '<em>EObject</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public T defaultCase(EObject object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
} //PartialserializationtestSwitch
|
|
@ -1,291 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.serializer;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import java.util.Set;
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
import org.eclipse.emf.ecore.EPackage;
|
||||
import org.eclipse.xtext.Action;
|
||||
import org.eclipse.xtext.Parameter;
|
||||
import org.eclipse.xtext.ParserRule;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1Sub;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Action1SubClass;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.AppendToFileEnd;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.AppendToFileEndItem;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.Commentable;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.CommentableItem;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.DatatypeBug286557;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.EnumBug;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.HiddentokenmergertestPackage;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.RefList;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.RefObj;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.SingleRef;
|
||||
import org.eclipse.xtext.parsetree.reconstr.hiddentokenmergertest.ValueList;
|
||||
import org.eclipse.xtext.parsetree.reconstr.services.HiddenTokensMergerTestLanguageGrammarAccess;
|
||||
import org.eclipse.xtext.serializer.ISerializationContext;
|
||||
import org.eclipse.xtext.serializer.acceptor.SequenceFeeder;
|
||||
import org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer;
|
||||
import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient;
|
||||
|
||||
@SuppressWarnings("all")
|
||||
public class HiddenTokensMergerTestLanguageSemanticSequencer extends AbstractDelegatingSemanticSequencer {
|
||||
|
||||
@Inject
|
||||
private HiddenTokensMergerTestLanguageGrammarAccess grammarAccess;
|
||||
|
||||
@Override
|
||||
public void sequence(ISerializationContext context, EObject semanticObject) {
|
||||
EPackage epackage = semanticObject.eClass().getEPackage();
|
||||
ParserRule rule = context.getParserRule();
|
||||
Action action = context.getAssignedAction();
|
||||
Set<Parameter> parameters = context.getEnabledBooleanParameters();
|
||||
if (epackage == HiddentokenmergertestPackage.eINSTANCE)
|
||||
switch (semanticObject.eClass().getClassifierID()) {
|
||||
case HiddentokenmergertestPackage.ACTION1:
|
||||
sequence_Action1(context, (Action1) semanticObject);
|
||||
return;
|
||||
case HiddentokenmergertestPackage.ACTION1_SUB:
|
||||
sequence_Action1Sub1(context, (Action1Sub) semanticObject);
|
||||
return;
|
||||
case HiddentokenmergertestPackage.ACTION1_SUB_CLASS:
|
||||
sequence_Action1Sub2(context, (Action1SubClass) semanticObject);
|
||||
return;
|
||||
case HiddentokenmergertestPackage.APPEND_TO_FILE_END:
|
||||
sequence_AppendToFileEnd(context, (AppendToFileEnd) semanticObject);
|
||||
return;
|
||||
case HiddentokenmergertestPackage.APPEND_TO_FILE_END_ITEM:
|
||||
sequence_AppendToFileEndItem(context, (AppendToFileEndItem) semanticObject);
|
||||
return;
|
||||
case HiddentokenmergertestPackage.COMMENTABLE:
|
||||
sequence_Commentable(context, (Commentable) semanticObject);
|
||||
return;
|
||||
case HiddentokenmergertestPackage.COMMENTABLE_ITEM:
|
||||
sequence_CommentableItem(context, (CommentableItem) semanticObject);
|
||||
return;
|
||||
case HiddentokenmergertestPackage.DATATYPE_BUG286557:
|
||||
sequence_DatatypeBug286557(context, (DatatypeBug286557) semanticObject);
|
||||
return;
|
||||
case HiddentokenmergertestPackage.ENUM_BUG:
|
||||
sequence_EnumBug(context, (EnumBug) semanticObject);
|
||||
return;
|
||||
case HiddentokenmergertestPackage.REF_LIST:
|
||||
sequence_RefList(context, (RefList) semanticObject);
|
||||
return;
|
||||
case HiddentokenmergertestPackage.REF_OBJ:
|
||||
sequence_RefObj(context, (RefObj) semanticObject);
|
||||
return;
|
||||
case HiddentokenmergertestPackage.SINGLE_REF:
|
||||
sequence_SingleRef(context, (SingleRef) semanticObject);
|
||||
return;
|
||||
case HiddentokenmergertestPackage.VALUE_LIST:
|
||||
sequence_ValueList(context, (ValueList) semanticObject);
|
||||
return;
|
||||
}
|
||||
if (errorAcceptor != null)
|
||||
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
|
||||
}
|
||||
|
||||
/**
|
||||
* Contexts:
|
||||
* Action1Sub1 returns Action1Sub
|
||||
*
|
||||
* Constraint:
|
||||
* {Action1Sub}
|
||||
*/
|
||||
protected void sequence_Action1Sub1(ISerializationContext context, Action1Sub semanticObject) {
|
||||
genericSequencer.createSequence(context, semanticObject);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Contexts:
|
||||
* Action1Sub2 returns Action1SubClass
|
||||
*
|
||||
* Constraint:
|
||||
* {Action1SubClass}
|
||||
*/
|
||||
protected void sequence_Action1Sub2(ISerializationContext context, Action1SubClass semanticObject) {
|
||||
genericSequencer.createSequence(context, semanticObject);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Contexts:
|
||||
* Model returns Action1
|
||||
* Action1 returns Action1
|
||||
*
|
||||
* Constraint:
|
||||
* (name=ID actions2+=Action1Sub1 actions2+=Action1Sub2)
|
||||
*/
|
||||
protected void sequence_Action1(ISerializationContext context, Action1 semanticObject) {
|
||||
genericSequencer.createSequence(context, semanticObject);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Contexts:
|
||||
* AppendToFileEndItem returns AppendToFileEndItem
|
||||
*
|
||||
* Constraint:
|
||||
* name=ID
|
||||
*/
|
||||
protected void sequence_AppendToFileEndItem(ISerializationContext context, AppendToFileEndItem semanticObject) {
|
||||
if (errorAcceptor != null) {
|
||||
if (transientValues.isValueTransient(semanticObject, HiddentokenmergertestPackage.Literals.APPEND_TO_FILE_END_ITEM__NAME) == ValueTransient.YES)
|
||||
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, HiddentokenmergertestPackage.Literals.APPEND_TO_FILE_END_ITEM__NAME));
|
||||
}
|
||||
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
|
||||
feeder.accept(grammarAccess.getAppendToFileEndItemAccess().getNameIDTerminalRuleCall_1_0(), semanticObject.getName());
|
||||
feeder.finish();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Contexts:
|
||||
* Model returns AppendToFileEnd
|
||||
* AppendToFileEnd returns AppendToFileEnd
|
||||
*
|
||||
* Constraint:
|
||||
* items+=AppendToFileEndItem+
|
||||
*/
|
||||
protected void sequence_AppendToFileEnd(ISerializationContext context, AppendToFileEnd semanticObject) {
|
||||
genericSequencer.createSequence(context, semanticObject);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Contexts:
|
||||
* CommentableItem returns CommentableItem
|
||||
*
|
||||
* Constraint:
|
||||
* id=ID
|
||||
*/
|
||||
protected void sequence_CommentableItem(ISerializationContext context, CommentableItem semanticObject) {
|
||||
if (errorAcceptor != null) {
|
||||
if (transientValues.isValueTransient(semanticObject, HiddentokenmergertestPackage.Literals.COMMENTABLE_ITEM__ID) == ValueTransient.YES)
|
||||
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, HiddentokenmergertestPackage.Literals.COMMENTABLE_ITEM__ID));
|
||||
}
|
||||
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
|
||||
feeder.accept(grammarAccess.getCommentableItemAccess().getIdIDTerminalRuleCall_1_0(), semanticObject.getId());
|
||||
feeder.finish();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Contexts:
|
||||
* Model returns Commentable
|
||||
* Commentable returns Commentable
|
||||
*
|
||||
* Constraint:
|
||||
* item+=CommentableItem+
|
||||
*/
|
||||
protected void sequence_Commentable(ISerializationContext context, Commentable semanticObject) {
|
||||
genericSequencer.createSequence(context, semanticObject);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Contexts:
|
||||
* Model returns DatatypeBug286557
|
||||
* DatatypeBug286557 returns DatatypeBug286557
|
||||
*
|
||||
* Constraint:
|
||||
* (name=FQN ref=[DatatypeBug286557|FQN]?)
|
||||
*/
|
||||
protected void sequence_DatatypeBug286557(ISerializationContext context, DatatypeBug286557 semanticObject) {
|
||||
genericSequencer.createSequence(context, semanticObject);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Contexts:
|
||||
* Model returns EnumBug
|
||||
* EnumBug returns EnumBug
|
||||
*
|
||||
* Constraint:
|
||||
* (return=EnumBugEnum name=ID)
|
||||
*/
|
||||
protected void sequence_EnumBug(ISerializationContext context, EnumBug semanticObject) {
|
||||
if (errorAcceptor != null) {
|
||||
if (transientValues.isValueTransient(semanticObject, HiddentokenmergertestPackage.Literals.ENUM_BUG__RETURN) == ValueTransient.YES)
|
||||
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, HiddentokenmergertestPackage.Literals.ENUM_BUG__RETURN));
|
||||
if (transientValues.isValueTransient(semanticObject, HiddentokenmergertestPackage.Literals.ENUM_BUG__NAME) == ValueTransient.YES)
|
||||
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, HiddentokenmergertestPackage.Literals.ENUM_BUG__NAME));
|
||||
}
|
||||
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
|
||||
feeder.accept(grammarAccess.getEnumBugAccess().getReturnEnumBugEnumEnumRuleCall_2_0(), semanticObject.getReturn());
|
||||
feeder.accept(grammarAccess.getEnumBugAccess().getNameIDTerminalRuleCall_3_0(), semanticObject.getName());
|
||||
feeder.finish();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Contexts:
|
||||
* Model returns RefList
|
||||
* RefList returns RefList
|
||||
*
|
||||
* Constraint:
|
||||
* (objs+=RefObj* refs+=[RefObj|FQN]*)
|
||||
*/
|
||||
protected void sequence_RefList(ISerializationContext context, RefList semanticObject) {
|
||||
genericSequencer.createSequence(context, semanticObject);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Contexts:
|
||||
* RefObj returns RefObj
|
||||
*
|
||||
* Constraint:
|
||||
* name=FQN
|
||||
*/
|
||||
protected void sequence_RefObj(ISerializationContext context, RefObj semanticObject) {
|
||||
if (errorAcceptor != null) {
|
||||
if (transientValues.isValueTransient(semanticObject, HiddentokenmergertestPackage.Literals.REF_OBJ__NAME) == ValueTransient.YES)
|
||||
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, HiddentokenmergertestPackage.Literals.REF_OBJ__NAME));
|
||||
}
|
||||
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
|
||||
feeder.accept(grammarAccess.getRefObjAccess().getNameFQNParserRuleCall_0(), semanticObject.getName());
|
||||
feeder.finish();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Contexts:
|
||||
* Model returns SingleRef
|
||||
* SingleRef returns SingleRef
|
||||
*
|
||||
* Constraint:
|
||||
* (obj=RefObj ref=[RefObj|FQN])
|
||||
*/
|
||||
protected void sequence_SingleRef(ISerializationContext context, SingleRef semanticObject) {
|
||||
if (errorAcceptor != null) {
|
||||
if (transientValues.isValueTransient(semanticObject, HiddentokenmergertestPackage.Literals.SINGLE_REF__OBJ) == ValueTransient.YES)
|
||||
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, HiddentokenmergertestPackage.Literals.SINGLE_REF__OBJ));
|
||||
if (transientValues.isValueTransient(semanticObject, HiddentokenmergertestPackage.Literals.SINGLE_REF__REF) == ValueTransient.YES)
|
||||
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, HiddentokenmergertestPackage.Literals.SINGLE_REF__REF));
|
||||
}
|
||||
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
|
||||
feeder.accept(grammarAccess.getSingleRefAccess().getObjRefObjParserRuleCall_1_0(), semanticObject.getObj());
|
||||
feeder.accept(grammarAccess.getSingleRefAccess().getRefRefObjFQNParserRuleCall_3_0_1(), semanticObject.getRef());
|
||||
feeder.finish();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Contexts:
|
||||
* Model returns ValueList
|
||||
* ValueList returns ValueList
|
||||
*
|
||||
* Constraint:
|
||||
* ids+=FQN+
|
||||
*/
|
||||
protected void sequence_ValueList(ISerializationContext context, ValueList semanticObject) {
|
||||
genericSequencer.createSequence(context, semanticObject);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -1,43 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.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.parsetree.reconstr.services.HiddenTokensMergerTestLanguageGrammarAccess;
|
||||
import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias;
|
||||
import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition;
|
||||
import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer;
|
||||
|
||||
@SuppressWarnings("all")
|
||||
public class HiddenTokensMergerTestLanguageSyntacticSequencer extends AbstractSyntacticSequencer {
|
||||
|
||||
protected HiddenTokensMergerTestLanguageGrammarAccess grammarAccess;
|
||||
|
||||
@Inject
|
||||
protected void init(IGrammarAccess access) {
|
||||
grammarAccess = (HiddenTokensMergerTestLanguageGrammarAccess) 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<INode> transitionNodes = collectNodes(fromNode, toNode);
|
||||
for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
|
||||
List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
|
||||
acceptNodes(getLastNavigableState(), syntaxNodes);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -1,78 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.serializer;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import java.util.Set;
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
import org.eclipse.emf.ecore.EPackage;
|
||||
import org.eclipse.xtext.Action;
|
||||
import org.eclipse.xtext.Parameter;
|
||||
import org.eclipse.xtext.ParserRule;
|
||||
import org.eclipse.xtext.parsetree.reconstr.partialserializationtest.Node;
|
||||
import org.eclipse.xtext.parsetree.reconstr.partialserializationtest.NodeRoot;
|
||||
import org.eclipse.xtext.parsetree.reconstr.partialserializationtest.PartialserializationtestPackage;
|
||||
import org.eclipse.xtext.parsetree.reconstr.services.PartialSerializationTestLanguageGrammarAccess;
|
||||
import org.eclipse.xtext.serializer.ISerializationContext;
|
||||
import org.eclipse.xtext.serializer.acceptor.SequenceFeeder;
|
||||
import org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer;
|
||||
import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient;
|
||||
|
||||
@SuppressWarnings("all")
|
||||
public class PartialSerializationTestLanguageSemanticSequencer extends AbstractDelegatingSemanticSequencer {
|
||||
|
||||
@Inject
|
||||
private PartialSerializationTestLanguageGrammarAccess grammarAccess;
|
||||
|
||||
@Override
|
||||
public void sequence(ISerializationContext context, EObject semanticObject) {
|
||||
EPackage epackage = semanticObject.eClass().getEPackage();
|
||||
ParserRule rule = context.getParserRule();
|
||||
Action action = context.getAssignedAction();
|
||||
Set<Parameter> parameters = context.getEnabledBooleanParameters();
|
||||
if (epackage == PartialserializationtestPackage.eINSTANCE)
|
||||
switch (semanticObject.eClass().getClassifierID()) {
|
||||
case PartialserializationtestPackage.NODE:
|
||||
sequence_Node(context, (Node) semanticObject);
|
||||
return;
|
||||
case PartialserializationtestPackage.NODE_ROOT:
|
||||
sequence_NodeRoot(context, (NodeRoot) semanticObject);
|
||||
return;
|
||||
}
|
||||
if (errorAcceptor != null)
|
||||
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
|
||||
}
|
||||
|
||||
/**
|
||||
* Contexts:
|
||||
* Model returns NodeRoot
|
||||
* NodeRoot returns NodeRoot
|
||||
*
|
||||
* Constraint:
|
||||
* node=Node
|
||||
*/
|
||||
protected void sequence_NodeRoot(ISerializationContext context, NodeRoot semanticObject) {
|
||||
if (errorAcceptor != null) {
|
||||
if (transientValues.isValueTransient(semanticObject, PartialserializationtestPackage.Literals.NODE_ROOT__NODE) == ValueTransient.YES)
|
||||
errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, PartialserializationtestPackage.Literals.NODE_ROOT__NODE));
|
||||
}
|
||||
SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
|
||||
feeder.accept(grammarAccess.getNodeRootAccess().getNodeNodeParserRuleCall_1_0(), semanticObject.getNode());
|
||||
feeder.finish();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Contexts:
|
||||
* Node returns Node
|
||||
*
|
||||
* Constraint:
|
||||
* (name=ID children+=Node*)
|
||||
*/
|
||||
protected void sequence_Node(ISerializationContext context, Node semanticObject) {
|
||||
genericSequencer.createSequence(context, semanticObject);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -1,43 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.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.parsetree.reconstr.services.PartialSerializationTestLanguageGrammarAccess;
|
||||
import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias;
|
||||
import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition;
|
||||
import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer;
|
||||
|
||||
@SuppressWarnings("all")
|
||||
public class PartialSerializationTestLanguageSyntacticSequencer extends AbstractSyntacticSequencer {
|
||||
|
||||
protected PartialSerializationTestLanguageGrammarAccess grammarAccess;
|
||||
|
||||
@Inject
|
||||
protected void init(IGrammarAccess access) {
|
||||
grammarAccess = (PartialSerializationTestLanguageGrammarAccess) 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<INode> transitionNodes = collectNodes(fromNode, toNode);
|
||||
for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
|
||||
List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
|
||||
acceptNodes(getLastNavigableState(), syntaxNodes);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -1,314 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.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.parsetree.reconstr.services.SimpleReconstrTestLanguageGrammarAccess;
|
||||
import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias;
|
||||
import org.eclipse.xtext.serializer.analysis.GrammarAlias.AlternativeAlias;
|
||||
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;
|
||||
|
||||
@SuppressWarnings("all")
|
||||
public class SimpleReconstrTestLanguageSyntacticSequencer extends AbstractSyntacticSequencer {
|
||||
|
||||
protected SimpleReconstrTestLanguageGrammarAccess grammarAccess;
|
||||
protected AbstractElementAlias match_Loop1_Kw0Keyword_0_q;
|
||||
protected AbstractElementAlias match_Loop1_Kw1Keyword_3_q;
|
||||
protected AbstractElementAlias match_Loop1___Kw2Keyword_5_0_a_Kw30Keyword_5_1__p;
|
||||
protected AbstractElementAlias match_Loop2_Kw3Keyword_3_0_q;
|
||||
protected AbstractElementAlias match_Loop2_Kw5Keyword_4_0_or_Kw6Keyword_4_1;
|
||||
protected AbstractElementAlias match_Loop3_Kw1Keyword_0_0_or_Kw2Keyword_0_1_or_Kw3Keyword_0_2;
|
||||
protected AbstractElementAlias match_Loop4_Kw1Keyword_1_0_or_Kw2Keyword_1_1_or___Kw3Keyword_1_2_0_Kw4Keyword_1_2_1__;
|
||||
protected AbstractElementAlias match_Loop4___Kw5Keyword_3_0___Kw6Keyword_3_1_0_Kw7Keyword_3_1_1_q__q__p;
|
||||
protected AbstractElementAlias match_Parens_LeftParenthesisKeyword_0_a;
|
||||
protected AbstractElementAlias match_Parens_LeftParenthesisKeyword_0_p;
|
||||
|
||||
@Inject
|
||||
protected void init(IGrammarAccess access) {
|
||||
grammarAccess = (SimpleReconstrTestLanguageGrammarAccess) access;
|
||||
match_Loop1_Kw0Keyword_0_q = new TokenAlias(false, true, grammarAccess.getLoop1Access().getKw0Keyword_0());
|
||||
match_Loop1_Kw1Keyword_3_q = new TokenAlias(false, true, grammarAccess.getLoop1Access().getKw1Keyword_3());
|
||||
match_Loop1___Kw2Keyword_5_0_a_Kw30Keyword_5_1__p = new GroupAlias(true, false, new TokenAlias(true, true, grammarAccess.getLoop1Access().getKw2Keyword_5_0()), new TokenAlias(false, false, grammarAccess.getLoop1Access().getKw30Keyword_5_1()));
|
||||
match_Loop2_Kw3Keyword_3_0_q = new TokenAlias(false, true, grammarAccess.getLoop2Access().getKw3Keyword_3_0());
|
||||
match_Loop2_Kw5Keyword_4_0_or_Kw6Keyword_4_1 = new AlternativeAlias(false, false, new TokenAlias(false, false, grammarAccess.getLoop2Access().getKw5Keyword_4_0()), new TokenAlias(false, false, grammarAccess.getLoop2Access().getKw6Keyword_4_1()));
|
||||
match_Loop3_Kw1Keyword_0_0_or_Kw2Keyword_0_1_or_Kw3Keyword_0_2 = new AlternativeAlias(false, false, new TokenAlias(false, false, grammarAccess.getLoop3Access().getKw1Keyword_0_0()), new TokenAlias(false, false, grammarAccess.getLoop3Access().getKw2Keyword_0_1()), new TokenAlias(false, false, grammarAccess.getLoop3Access().getKw3Keyword_0_2()));
|
||||
match_Loop4_Kw1Keyword_1_0_or_Kw2Keyword_1_1_or___Kw3Keyword_1_2_0_Kw4Keyword_1_2_1__ = new AlternativeAlias(false, false, new GroupAlias(false, false, new TokenAlias(false, false, grammarAccess.getLoop4Access().getKw3Keyword_1_2_0()), new TokenAlias(false, false, grammarAccess.getLoop4Access().getKw4Keyword_1_2_1())), new TokenAlias(false, false, grammarAccess.getLoop4Access().getKw1Keyword_1_0()), new TokenAlias(false, false, grammarAccess.getLoop4Access().getKw2Keyword_1_1()));
|
||||
match_Loop4___Kw5Keyword_3_0___Kw6Keyword_3_1_0_Kw7Keyword_3_1_1_q__q__p = new GroupAlias(true, false, new TokenAlias(false, false, grammarAccess.getLoop4Access().getKw5Keyword_3_0()), new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getLoop4Access().getKw6Keyword_3_1_0()), new TokenAlias(false, true, grammarAccess.getLoop4Access().getKw7Keyword_3_1_1())));
|
||||
match_Parens_LeftParenthesisKeyword_0_a = new TokenAlias(true, true, grammarAccess.getParensAccess().getLeftParenthesisKeyword_0());
|
||||
match_Parens_LeftParenthesisKeyword_0_p = new TokenAlias(true, false, grammarAccess.getParensAccess().getLeftParenthesisKeyword_0());
|
||||
}
|
||||
|
||||
@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<INode> transitionNodes = collectNodes(fromNode, toNode);
|
||||
for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
|
||||
List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
|
||||
if (match_Loop1_Kw0Keyword_0_q.equals(syntax))
|
||||
emit_Loop1_Kw0Keyword_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
|
||||
else if (match_Loop1_Kw1Keyword_3_q.equals(syntax))
|
||||
emit_Loop1_Kw1Keyword_3_q(semanticObject, getLastNavigableState(), syntaxNodes);
|
||||
else if (match_Loop1___Kw2Keyword_5_0_a_Kw30Keyword_5_1__p.equals(syntax))
|
||||
emit_Loop1___Kw2Keyword_5_0_a_Kw30Keyword_5_1__p(semanticObject, getLastNavigableState(), syntaxNodes);
|
||||
else if (match_Loop2_Kw3Keyword_3_0_q.equals(syntax))
|
||||
emit_Loop2_Kw3Keyword_3_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
|
||||
else if (match_Loop2_Kw5Keyword_4_0_or_Kw6Keyword_4_1.equals(syntax))
|
||||
emit_Loop2_Kw5Keyword_4_0_or_Kw6Keyword_4_1(semanticObject, getLastNavigableState(), syntaxNodes);
|
||||
else if (match_Loop3_Kw1Keyword_0_0_or_Kw2Keyword_0_1_or_Kw3Keyword_0_2.equals(syntax))
|
||||
emit_Loop3_Kw1Keyword_0_0_or_Kw2Keyword_0_1_or_Kw3Keyword_0_2(semanticObject, getLastNavigableState(), syntaxNodes);
|
||||
else if (match_Loop4_Kw1Keyword_1_0_or_Kw2Keyword_1_1_or___Kw3Keyword_1_2_0_Kw4Keyword_1_2_1__.equals(syntax))
|
||||
emit_Loop4_Kw1Keyword_1_0_or_Kw2Keyword_1_1_or___Kw3Keyword_1_2_0_Kw4Keyword_1_2_1__(semanticObject, getLastNavigableState(), syntaxNodes);
|
||||
else if (match_Loop4___Kw5Keyword_3_0___Kw6Keyword_3_1_0_Kw7Keyword_3_1_1_q__q__p.equals(syntax))
|
||||
emit_Loop4___Kw5Keyword_3_0___Kw6Keyword_3_1_0_Kw7Keyword_3_1_1_q__q__p(semanticObject, getLastNavigableState(), syntaxNodes);
|
||||
else if (match_Parens_LeftParenthesisKeyword_0_a.equals(syntax))
|
||||
emit_Parens_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
|
||||
else if (match_Parens_LeftParenthesisKeyword_0_p.equals(syntax))
|
||||
emit_Parens_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
|
||||
else acceptNodes(getLastNavigableState(), syntaxNodes);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Ambiguous syntax:
|
||||
* 'kw0'?
|
||||
*
|
||||
* This ambiguous syntax occurs at:
|
||||
* (rule start) '('* (ambiguity) '#8' id+=ID
|
||||
* (rule start) '('+ (ambiguity) '#8' id+=ID
|
||||
* (rule start) (ambiguity) '#8' id+=ID
|
||||
*/
|
||||
protected void emit_Loop1_Kw0Keyword_0_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
|
||||
acceptNodes(transition, nodes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ambiguous syntax:
|
||||
* 'kw1'?
|
||||
*
|
||||
* This ambiguous syntax occurs at:
|
||||
* id+=ID (ambiguity) id+=ID
|
||||
*/
|
||||
protected void emit_Loop1_Kw1Keyword_3_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
|
||||
acceptNodes(transition, nodes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ambiguous syntax:
|
||||
* ('kw2'* 'kw30')+
|
||||
*
|
||||
* This ambiguous syntax occurs at:
|
||||
* id+=ID (ambiguity) ')' (rule end)
|
||||
* id+=ID (ambiguity) ')' em='!'
|
||||
* id+=ID (ambiguity) (rule end)
|
||||
*/
|
||||
protected void emit_Loop1___Kw2Keyword_5_0_a_Kw30Keyword_5_1__p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
|
||||
acceptNodes(transition, nodes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ambiguous syntax:
|
||||
* 'kw3'?
|
||||
*
|
||||
* This ambiguous syntax occurs at:
|
||||
* id+=ID 'kw1' (ambiguity) ('kw5' | 'kw6') ')' (rule end)
|
||||
* id+=ID 'kw1' (ambiguity) ('kw5' | 'kw6') ')' em='!'
|
||||
* id+=ID 'kw1' (ambiguity) ('kw5' | 'kw6') (rule end)
|
||||
* id+=ID 'kw2' (ambiguity) ('kw5' | 'kw6') ')' (rule end)
|
||||
* id+=ID 'kw2' (ambiguity) ('kw5' | 'kw6') ')' em='!'
|
||||
* id+=ID 'kw2' (ambiguity) ('kw5' | 'kw6') (rule end)
|
||||
*/
|
||||
protected void emit_Loop2_Kw3Keyword_3_0_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
|
||||
acceptNodes(transition, nodes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ambiguous syntax:
|
||||
* 'kw5' | 'kw6'
|
||||
*
|
||||
* This ambiguous syntax occurs at:
|
||||
* id+=ID 'kw1' 'kw3'? (ambiguity) ')' (rule end)
|
||||
* id+=ID 'kw1' 'kw3'? (ambiguity) ')' em='!'
|
||||
* id+=ID 'kw1' 'kw3'? (ambiguity) (rule end)
|
||||
* id+=ID 'kw2' 'kw3'? (ambiguity) ')' (rule end)
|
||||
* id+=ID 'kw2' 'kw3'? (ambiguity) ')' em='!'
|
||||
* id+=ID 'kw2' 'kw3'? (ambiguity) (rule end)
|
||||
* id+=ID 'kw4' (ambiguity) ')' (rule end)
|
||||
* id+=ID 'kw4' (ambiguity) ')' em='!'
|
||||
* id+=ID 'kw4' (ambiguity) (rule end)
|
||||
*/
|
||||
protected void emit_Loop2_Kw5Keyword_4_0_or_Kw6Keyword_4_1(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
|
||||
acceptNodes(transition, nodes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ambiguous syntax:
|
||||
* 'kw1' | 'kw2' | 'kw3'
|
||||
*
|
||||
* This ambiguous syntax occurs at:
|
||||
* (rule start) '('* (ambiguity) '#10' id+=ID
|
||||
* (rule start) '('+ (ambiguity) '#10' id+=ID
|
||||
* (rule start) (ambiguity) '#10' id+=ID
|
||||
*/
|
||||
protected void emit_Loop3_Kw1Keyword_0_0_or_Kw2Keyword_0_1_or_Kw3Keyword_0_2(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
|
||||
acceptNodes(transition, nodes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ambiguous syntax:
|
||||
* ('kw3' 'kw4') | 'kw1' | 'kw2'
|
||||
*
|
||||
* This ambiguous syntax occurs at:
|
||||
* (rule start) '#11' (ambiguity) id+=ID
|
||||
* (rule start) '('* '#11' (ambiguity) id+=ID
|
||||
* (rule start) '('+ '#11' (ambiguity) id+=ID
|
||||
*/
|
||||
protected void emit_Loop4_Kw1Keyword_1_0_or_Kw2Keyword_1_1_or___Kw3Keyword_1_2_0_Kw4Keyword_1_2_1__(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
|
||||
acceptNodes(transition, nodes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ambiguous syntax:
|
||||
* ('kw5' ('kw6' 'kw7'?)?)+
|
||||
*
|
||||
* This ambiguous syntax occurs at:
|
||||
* id+=ID (ambiguity) ')' (rule end)
|
||||
* id+=ID (ambiguity) ')' em='!'
|
||||
* id+=ID (ambiguity) (rule end)
|
||||
*/
|
||||
protected void emit_Loop4___Kw5Keyword_3_0___Kw6Keyword_3_1_0_Kw7Keyword_3_1_1_q__q__p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
|
||||
acceptNodes(transition, nodes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ambiguous syntax:
|
||||
* '('*
|
||||
*
|
||||
* This ambiguous syntax occurs at:
|
||||
* (rule start) (ambiguity) '#11' (('kw3' 'kw4') | 'kw1' | 'kw2') id+=ID
|
||||
* (rule start) (ambiguity) '#12' 'class' name=ID
|
||||
* (rule start) (ambiguity) '#12' interface?='interface'
|
||||
* (rule start) (ambiguity) '#13' final?='final'
|
||||
* (rule start) (ambiguity) '#13' static?='static'
|
||||
* (rule start) (ambiguity) '#13' transient?='transient'
|
||||
* (rule start) (ambiguity) '#14' items=EmptyObjectItems
|
||||
* (rule start) (ambiguity) '#15' val=ConcreteMulti
|
||||
* (rule start) (ambiguity) '#16' obj=EObjectElement
|
||||
* (rule start) (ambiguity) '#17' 'ka' name=ID
|
||||
* (rule start) (ambiguity) '#17' 'kb' name=ID
|
||||
* (rule start) (ambiguity) '#18' 'ka' name=ID
|
||||
* (rule start) (ambiguity) '#18' 'kb' name=ID
|
||||
* (rule start) (ambiguity) '#19' 'kx' x+=ID
|
||||
* (rule start) (ambiguity) '#19' 'ky' y+=ID
|
||||
* (rule start) (ambiguity) '#19' 'kz' z+=ID
|
||||
* (rule start) (ambiguity) '#19' name=ID
|
||||
* (rule start) (ambiguity) '#2' ref2='mykeyword1'
|
||||
* (rule start) (ambiguity) '#2' ref2='mykeyword2'
|
||||
* (rule start) (ambiguity) '#2' ref2=STRING
|
||||
* (rule start) (ambiguity) '#20' 'kw1' lits+=EnumBug310435Lit1
|
||||
* (rule start) (ambiguity) '#20' 'kw2' lits+=EnumBug310435Lit2
|
||||
* (rule start) (ambiguity) '#21' 'kw1' lits+=ID
|
||||
* (rule start) (ambiguity) '#21' 'kw2' lits+=STRING
|
||||
* (rule start) (ambiguity) '#22' 'kw1' ')' em='!'
|
||||
* (rule start) (ambiguity) '#22' 'kw1' 'kw2' ref+=[CrossRefNamed|ID1]
|
||||
* (rule start) (ambiguity) '#22' 'kw1' 'kw3' ref+=[CrossRefNamed|ID2]
|
||||
* (rule start) (ambiguity) '#22' 'kw1' (rule start)
|
||||
* (rule start) (ambiguity) '#22' named+=CrossRefNamed
|
||||
* (rule start) (ambiguity) '#3' id+=ID
|
||||
* (rule start) (ambiguity) '#4' 'kw' value=ID
|
||||
* (rule start) (ambiguity) '#4' bool?='myoption'
|
||||
* (rule start) (ambiguity) '#5' prec=INT
|
||||
* (rule start) (ambiguity) '#5' precStar?='*'
|
||||
* (rule start) (ambiguity) '#6' 'v1' v1+=INT
|
||||
* (rule start) (ambiguity) '#6' 'v1' v2+=ID
|
||||
* (rule start) (ambiguity) '#6' 'v2' v1+=INT
|
||||
* (rule start) (ambiguity) '#6' 'v2' v2+=ID
|
||||
* (rule start) (ambiguity) '#7' child=Consumed1
|
||||
* (rule start) (ambiguity) '#9' id+=ID
|
||||
* (rule start) (ambiguity) '=' str1+=STRING
|
||||
* (rule start) (ambiguity) '=' str2+=STRING
|
||||
* (rule start) (ambiguity) 'kw0'? '#8' id+=ID
|
||||
* (rule start) (ambiguity) 'type' name=ID
|
||||
* (rule start) (ambiguity) ('kw1' | 'kw2' | 'kw3') '#10' id+=ID
|
||||
* (rule start) (ambiguity) name=ID
|
||||
* (rule start) (ambiguity) num1=INT
|
||||
* (rule start) (ambiguity) {Op.values+=}
|
||||
*/
|
||||
protected void emit_Parens_LeftParenthesisKeyword_0_a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
|
||||
acceptNodes(transition, nodes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ambiguous syntax:
|
||||
* '('+
|
||||
*
|
||||
* This ambiguous syntax occurs at:
|
||||
* (rule start) (ambiguity) '#11' (('kw3' 'kw4') | 'kw1' | 'kw2') id+=ID
|
||||
* (rule start) (ambiguity) '#12' 'class' name=ID
|
||||
* (rule start) (ambiguity) '#12' interface?='interface'
|
||||
* (rule start) (ambiguity) '#13' final?='final'
|
||||
* (rule start) (ambiguity) '#13' static?='static'
|
||||
* (rule start) (ambiguity) '#13' transient?='transient'
|
||||
* (rule start) (ambiguity) '#14' items=EmptyObjectItems
|
||||
* (rule start) (ambiguity) '#15' val=ConcreteMulti
|
||||
* (rule start) (ambiguity) '#16' obj=EObjectElement
|
||||
* (rule start) (ambiguity) '#17' 'ka' name=ID
|
||||
* (rule start) (ambiguity) '#17' 'kb' name=ID
|
||||
* (rule start) (ambiguity) '#18' 'ka' name=ID
|
||||
* (rule start) (ambiguity) '#18' 'kb' name=ID
|
||||
* (rule start) (ambiguity) '#19' 'kx' x+=ID
|
||||
* (rule start) (ambiguity) '#19' 'ky' y+=ID
|
||||
* (rule start) (ambiguity) '#19' 'kz' z+=ID
|
||||
* (rule start) (ambiguity) '#19' name=ID
|
||||
* (rule start) (ambiguity) '#2' ref2='mykeyword1'
|
||||
* (rule start) (ambiguity) '#2' ref2='mykeyword2'
|
||||
* (rule start) (ambiguity) '#2' ref2=STRING
|
||||
* (rule start) (ambiguity) '#20' 'kw1' lits+=EnumBug310435Lit1
|
||||
* (rule start) (ambiguity) '#20' 'kw2' lits+=EnumBug310435Lit2
|
||||
* (rule start) (ambiguity) '#21' 'kw1' lits+=ID
|
||||
* (rule start) (ambiguity) '#21' 'kw2' lits+=STRING
|
||||
* (rule start) (ambiguity) '#22' 'kw1' ')' (rule start)
|
||||
* (rule start) (ambiguity) '#22' 'kw1' ')' em='!'
|
||||
* (rule start) (ambiguity) '#22' 'kw1' 'kw2' ref+=[CrossRefNamed|ID1]
|
||||
* (rule start) (ambiguity) '#22' 'kw1' 'kw3' ref+=[CrossRefNamed|ID2]
|
||||
* (rule start) (ambiguity) '#22' named+=CrossRefNamed
|
||||
* (rule start) (ambiguity) '#3' id+=ID
|
||||
* (rule start) (ambiguity) '#4' 'kw' value=ID
|
||||
* (rule start) (ambiguity) '#4' bool?='myoption'
|
||||
* (rule start) (ambiguity) '#5' prec=INT
|
||||
* (rule start) (ambiguity) '#5' precStar?='*'
|
||||
* (rule start) (ambiguity) '#6' 'v1' v1+=INT
|
||||
* (rule start) (ambiguity) '#6' 'v1' v2+=ID
|
||||
* (rule start) (ambiguity) '#6' 'v2' v1+=INT
|
||||
* (rule start) (ambiguity) '#6' 'v2' v2+=ID
|
||||
* (rule start) (ambiguity) '#7' child=Consumed1
|
||||
* (rule start) (ambiguity) '#9' id+=ID
|
||||
* (rule start) (ambiguity) '=' str1+=STRING
|
||||
* (rule start) (ambiguity) '=' str2+=STRING
|
||||
* (rule start) (ambiguity) 'kw0'? '#8' id+=ID
|
||||
* (rule start) (ambiguity) 'type' name=ID
|
||||
* (rule start) (ambiguity) ('kw1' | 'kw2' | 'kw3') '#10' id+=ID
|
||||
* (rule start) (ambiguity) name=ID
|
||||
* (rule start) (ambiguity) num1=INT
|
||||
* (rule start) (ambiguity) {Op.values+=}
|
||||
*/
|
||||
protected void emit_Parens_LeftParenthesisKeyword_0_p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
|
||||
acceptNodes(transition, nodes);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,795 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.services;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.Singleton;
|
||||
import java.util.List;
|
||||
import org.eclipse.xtext.Action;
|
||||
import org.eclipse.xtext.Alternatives;
|
||||
import org.eclipse.xtext.Assignment;
|
||||
import org.eclipse.xtext.CrossReference;
|
||||
import org.eclipse.xtext.EnumLiteralDeclaration;
|
||||
import org.eclipse.xtext.EnumRule;
|
||||
import org.eclipse.xtext.Grammar;
|
||||
import org.eclipse.xtext.GrammarUtil;
|
||||
import org.eclipse.xtext.Group;
|
||||
import org.eclipse.xtext.Keyword;
|
||||
import org.eclipse.xtext.ParserRule;
|
||||
import org.eclipse.xtext.RuleCall;
|
||||
import org.eclipse.xtext.TerminalRule;
|
||||
import org.eclipse.xtext.common.services.TerminalsGrammarAccess;
|
||||
import org.eclipse.xtext.service.AbstractElementFinder.AbstractEnumRuleElementFinder;
|
||||
import org.eclipse.xtext.service.AbstractElementFinder.AbstractGrammarElementFinder;
|
||||
import org.eclipse.xtext.service.GrammarProvider;
|
||||
|
||||
@Singleton
|
||||
public class HiddenTokensMergerTestLanguageGrammarAccess extends AbstractGrammarElementFinder {
|
||||
|
||||
public class ModelElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.Model");
|
||||
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
|
||||
private final RuleCall cDatatypeBug286557ParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
|
||||
private final RuleCall cEnumBugParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
|
||||
private final RuleCall cCommentableParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
|
||||
private final RuleCall cValueListParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
|
||||
private final RuleCall cRefListParserRuleCall_4 = (RuleCall)cAlternatives.eContents().get(4);
|
||||
private final RuleCall cSingleRefParserRuleCall_5 = (RuleCall)cAlternatives.eContents().get(5);
|
||||
private final RuleCall cAppendToFileEndParserRuleCall_6 = (RuleCall)cAlternatives.eContents().get(6);
|
||||
private final RuleCall cAction1ParserRuleCall_7 = (RuleCall)cAlternatives.eContents().get(7);
|
||||
|
||||
//Model:
|
||||
// DatatypeBug286557 | EnumBug | Commentable | ValueList | RefList | SingleRef | AppendToFileEnd | Action1;
|
||||
@Override public ParserRule getRule() { return rule; }
|
||||
|
||||
//DatatypeBug286557 | EnumBug | Commentable | ValueList | RefList | SingleRef | AppendToFileEnd | Action1
|
||||
public Alternatives getAlternatives() { return cAlternatives; }
|
||||
|
||||
//DatatypeBug286557
|
||||
public RuleCall getDatatypeBug286557ParserRuleCall_0() { return cDatatypeBug286557ParserRuleCall_0; }
|
||||
|
||||
//EnumBug
|
||||
public RuleCall getEnumBugParserRuleCall_1() { return cEnumBugParserRuleCall_1; }
|
||||
|
||||
//Commentable
|
||||
public RuleCall getCommentableParserRuleCall_2() { return cCommentableParserRuleCall_2; }
|
||||
|
||||
//ValueList
|
||||
public RuleCall getValueListParserRuleCall_3() { return cValueListParserRuleCall_3; }
|
||||
|
||||
//RefList
|
||||
public RuleCall getRefListParserRuleCall_4() { return cRefListParserRuleCall_4; }
|
||||
|
||||
//SingleRef
|
||||
public RuleCall getSingleRefParserRuleCall_5() { return cSingleRefParserRuleCall_5; }
|
||||
|
||||
//AppendToFileEnd
|
||||
public RuleCall getAppendToFileEndParserRuleCall_6() { return cAppendToFileEndParserRuleCall_6; }
|
||||
|
||||
//Action1
|
||||
public RuleCall getAction1ParserRuleCall_7() { return cAction1ParserRuleCall_7; }
|
||||
}
|
||||
public class DatatypeBug286557Elements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.DatatypeBug286557");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
private final Keyword cNumberSignDigitOneKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
||||
private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
|
||||
private final RuleCall cNameFQNParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
|
||||
private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
|
||||
private final Keyword cRefKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
|
||||
private final Assignment cRefAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1);
|
||||
private final CrossReference cRefDatatypeBug286557CrossReference_2_1_0 = (CrossReference)cRefAssignment_2_1.eContents().get(0);
|
||||
private final RuleCall cRefDatatypeBug286557FQNParserRuleCall_2_1_0_1 = (RuleCall)cRefDatatypeBug286557CrossReference_2_1_0.eContents().get(1);
|
||||
private final Keyword cSemicolonKeyword_3 = (Keyword)cGroup.eContents().get(3);
|
||||
|
||||
//DatatypeBug286557:
|
||||
// '#1' name=FQN ('ref' ref=[DatatypeBug286557|FQN])? ";";
|
||||
@Override public ParserRule getRule() { return rule; }
|
||||
|
||||
//'#1' name=FQN ('ref' ref=[DatatypeBug286557|FQN])? ";"
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//'#1'
|
||||
public Keyword getNumberSignDigitOneKeyword_0() { return cNumberSignDigitOneKeyword_0; }
|
||||
|
||||
//name=FQN
|
||||
public Assignment getNameAssignment_1() { return cNameAssignment_1; }
|
||||
|
||||
//FQN
|
||||
public RuleCall getNameFQNParserRuleCall_1_0() { return cNameFQNParserRuleCall_1_0; }
|
||||
|
||||
//('ref' ref=[DatatypeBug286557|FQN])?
|
||||
public Group getGroup_2() { return cGroup_2; }
|
||||
|
||||
//'ref'
|
||||
public Keyword getRefKeyword_2_0() { return cRefKeyword_2_0; }
|
||||
|
||||
//ref=[DatatypeBug286557|FQN]
|
||||
public Assignment getRefAssignment_2_1() { return cRefAssignment_2_1; }
|
||||
|
||||
//[DatatypeBug286557|FQN]
|
||||
public CrossReference getRefDatatypeBug286557CrossReference_2_1_0() { return cRefDatatypeBug286557CrossReference_2_1_0; }
|
||||
|
||||
//FQN
|
||||
public RuleCall getRefDatatypeBug286557FQNParserRuleCall_2_1_0_1() { return cRefDatatypeBug286557FQNParserRuleCall_2_1_0_1; }
|
||||
|
||||
//";"
|
||||
public Keyword getSemicolonKeyword_3() { return cSemicolonKeyword_3; }
|
||||
}
|
||||
public class FQNElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.FQN");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
private final RuleCall cIDTerminalRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
|
||||
private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
|
||||
private final Keyword cFullStopKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
|
||||
private final RuleCall cIDTerminalRuleCall_1_1 = (RuleCall)cGroup_1.eContents().get(1);
|
||||
|
||||
//FQN:
|
||||
// ID ('.' ID)*;
|
||||
@Override public ParserRule getRule() { return rule; }
|
||||
|
||||
//ID ('.' ID)*
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//ID
|
||||
public RuleCall getIDTerminalRuleCall_0() { return cIDTerminalRuleCall_0; }
|
||||
|
||||
//('.' ID)*
|
||||
public Group getGroup_1() { return cGroup_1; }
|
||||
|
||||
//'.'
|
||||
public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; }
|
||||
|
||||
//ID
|
||||
public RuleCall getIDTerminalRuleCall_1_1() { return cIDTerminalRuleCall_1_1; }
|
||||
}
|
||||
public class EnumBugElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.EnumBug");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
private final Keyword cNumberSignDigitTwoKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
||||
private final Keyword cKw1Keyword_1 = (Keyword)cGroup.eContents().get(1);
|
||||
private final Assignment cReturnAssignment_2 = (Assignment)cGroup.eContents().get(2);
|
||||
private final RuleCall cReturnEnumBugEnumEnumRuleCall_2_0 = (RuleCall)cReturnAssignment_2.eContents().get(0);
|
||||
private final Assignment cNameAssignment_3 = (Assignment)cGroup.eContents().get(3);
|
||||
private final RuleCall cNameIDTerminalRuleCall_3_0 = (RuleCall)cNameAssignment_3.eContents().get(0);
|
||||
|
||||
//EnumBug:
|
||||
// '#2' 'kw1' return=EnumBugEnum name=ID;
|
||||
@Override public ParserRule getRule() { return rule; }
|
||||
|
||||
//'#2' 'kw1' return=EnumBugEnum name=ID
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//'#2'
|
||||
public Keyword getNumberSignDigitTwoKeyword_0() { return cNumberSignDigitTwoKeyword_0; }
|
||||
|
||||
//'kw1'
|
||||
public Keyword getKw1Keyword_1() { return cKw1Keyword_1; }
|
||||
|
||||
//return=EnumBugEnum
|
||||
public Assignment getReturnAssignment_2() { return cReturnAssignment_2; }
|
||||
|
||||
//EnumBugEnum
|
||||
public RuleCall getReturnEnumBugEnumEnumRuleCall_2_0() { return cReturnEnumBugEnumEnumRuleCall_2_0; }
|
||||
|
||||
//name=ID
|
||||
public Assignment getNameAssignment_3() { return cNameAssignment_3; }
|
||||
|
||||
//ID
|
||||
public RuleCall getNameIDTerminalRuleCall_3_0() { return cNameIDTerminalRuleCall_3_0; }
|
||||
}
|
||||
public class CommentableElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.Commentable");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
private final Keyword cNumberSignDigitThreeKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
||||
private final Assignment cItemAssignment_1 = (Assignment)cGroup.eContents().get(1);
|
||||
private final RuleCall cItemCommentableItemParserRuleCall_1_0 = (RuleCall)cItemAssignment_1.eContents().get(0);
|
||||
|
||||
/// * SuppressWarnings[noInstantiation] * / Commentable:
|
||||
// '#3' item+=CommentableItem*;
|
||||
@Override public ParserRule getRule() { return rule; }
|
||||
|
||||
//'#3' item+=CommentableItem*
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//'#3'
|
||||
public Keyword getNumberSignDigitThreeKeyword_0() { return cNumberSignDigitThreeKeyword_0; }
|
||||
|
||||
//item+=CommentableItem*
|
||||
public Assignment getItemAssignment_1() { return cItemAssignment_1; }
|
||||
|
||||
//CommentableItem
|
||||
public RuleCall getItemCommentableItemParserRuleCall_1_0() { return cItemCommentableItemParserRuleCall_1_0; }
|
||||
}
|
||||
public class CommentableItemElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.CommentableItem");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
private final Keyword cItemKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
||||
private final Assignment cIdAssignment_1 = (Assignment)cGroup.eContents().get(1);
|
||||
private final RuleCall cIdIDTerminalRuleCall_1_0 = (RuleCall)cIdAssignment_1.eContents().get(0);
|
||||
|
||||
//CommentableItem:
|
||||
// 'item' id=ID;
|
||||
@Override public ParserRule getRule() { return rule; }
|
||||
|
||||
//'item' id=ID
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//'item'
|
||||
public Keyword getItemKeyword_0() { return cItemKeyword_0; }
|
||||
|
||||
//id=ID
|
||||
public Assignment getIdAssignment_1() { return cIdAssignment_1; }
|
||||
|
||||
//ID
|
||||
public RuleCall getIdIDTerminalRuleCall_1_0() { return cIdIDTerminalRuleCall_1_0; }
|
||||
}
|
||||
public class ValueListElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.ValueList");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
private final Keyword cNumberSignDigitFourKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
||||
private final Assignment cIdsAssignment_1 = (Assignment)cGroup.eContents().get(1);
|
||||
private final RuleCall cIdsFQNParserRuleCall_1_0 = (RuleCall)cIdsAssignment_1.eContents().get(0);
|
||||
|
||||
/// * SuppressWarnings[noInstantiation] * / ValueList:
|
||||
// '#4' ids+=FQN*;
|
||||
@Override public ParserRule getRule() { return rule; }
|
||||
|
||||
//'#4' ids+=FQN*
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//'#4'
|
||||
public Keyword getNumberSignDigitFourKeyword_0() { return cNumberSignDigitFourKeyword_0; }
|
||||
|
||||
//ids+=FQN*
|
||||
public Assignment getIdsAssignment_1() { return cIdsAssignment_1; }
|
||||
|
||||
//FQN
|
||||
public RuleCall getIdsFQNParserRuleCall_1_0() { return cIdsFQNParserRuleCall_1_0; }
|
||||
}
|
||||
public class RefListElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.RefList");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
private final Keyword cNumberSignDigitFiveKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
||||
private final Assignment cObjsAssignment_1 = (Assignment)cGroup.eContents().get(1);
|
||||
private final RuleCall cObjsRefObjParserRuleCall_1_0 = (RuleCall)cObjsAssignment_1.eContents().get(0);
|
||||
private final Keyword cRefsKeyword_2 = (Keyword)cGroup.eContents().get(2);
|
||||
private final Assignment cRefsAssignment_3 = (Assignment)cGroup.eContents().get(3);
|
||||
private final CrossReference cRefsRefObjCrossReference_3_0 = (CrossReference)cRefsAssignment_3.eContents().get(0);
|
||||
private final RuleCall cRefsRefObjFQNParserRuleCall_3_0_1 = (RuleCall)cRefsRefObjCrossReference_3_0.eContents().get(1);
|
||||
|
||||
/// * SuppressWarnings[noInstantiation] * / RefList:
|
||||
// '#5' objs+=RefObj* 'refs' refs+=[RefObj|FQN]*;
|
||||
@Override public ParserRule getRule() { return rule; }
|
||||
|
||||
//'#5' objs+=RefObj* 'refs' refs+=[RefObj|FQN]*
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//'#5'
|
||||
public Keyword getNumberSignDigitFiveKeyword_0() { return cNumberSignDigitFiveKeyword_0; }
|
||||
|
||||
//objs+=RefObj*
|
||||
public Assignment getObjsAssignment_1() { return cObjsAssignment_1; }
|
||||
|
||||
//RefObj
|
||||
public RuleCall getObjsRefObjParserRuleCall_1_0() { return cObjsRefObjParserRuleCall_1_0; }
|
||||
|
||||
//'refs'
|
||||
public Keyword getRefsKeyword_2() { return cRefsKeyword_2; }
|
||||
|
||||
//refs+=[RefObj|FQN]*
|
||||
public Assignment getRefsAssignment_3() { return cRefsAssignment_3; }
|
||||
|
||||
//[RefObj|FQN]
|
||||
public CrossReference getRefsRefObjCrossReference_3_0() { return cRefsRefObjCrossReference_3_0; }
|
||||
|
||||
//FQN
|
||||
public RuleCall getRefsRefObjFQNParserRuleCall_3_0_1() { return cRefsRefObjFQNParserRuleCall_3_0_1; }
|
||||
}
|
||||
public class RefObjElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.RefObj");
|
||||
private final Assignment cNameAssignment = (Assignment)rule.eContents().get(1);
|
||||
private final RuleCall cNameFQNParserRuleCall_0 = (RuleCall)cNameAssignment.eContents().get(0);
|
||||
|
||||
//RefObj:
|
||||
// name=FQN;
|
||||
@Override public ParserRule getRule() { return rule; }
|
||||
|
||||
//name=FQN
|
||||
public Assignment getNameAssignment() { return cNameAssignment; }
|
||||
|
||||
//FQN
|
||||
public RuleCall getNameFQNParserRuleCall_0() { return cNameFQNParserRuleCall_0; }
|
||||
}
|
||||
public class SingleRefElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.SingleRef");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
private final Keyword cNumberSignDigitSixKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
||||
private final Assignment cObjAssignment_1 = (Assignment)cGroup.eContents().get(1);
|
||||
private final RuleCall cObjRefObjParserRuleCall_1_0 = (RuleCall)cObjAssignment_1.eContents().get(0);
|
||||
private final Keyword cRefKeyword_2 = (Keyword)cGroup.eContents().get(2);
|
||||
private final Assignment cRefAssignment_3 = (Assignment)cGroup.eContents().get(3);
|
||||
private final CrossReference cRefRefObjCrossReference_3_0 = (CrossReference)cRefAssignment_3.eContents().get(0);
|
||||
private final RuleCall cRefRefObjFQNParserRuleCall_3_0_1 = (RuleCall)cRefRefObjCrossReference_3_0.eContents().get(1);
|
||||
|
||||
//SingleRef:
|
||||
// '#6' obj=RefObj 'ref' ref=[RefObj|FQN];
|
||||
@Override public ParserRule getRule() { return rule; }
|
||||
|
||||
//'#6' obj=RefObj 'ref' ref=[RefObj|FQN]
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//'#6'
|
||||
public Keyword getNumberSignDigitSixKeyword_0() { return cNumberSignDigitSixKeyword_0; }
|
||||
|
||||
//obj=RefObj
|
||||
public Assignment getObjAssignment_1() { return cObjAssignment_1; }
|
||||
|
||||
//RefObj
|
||||
public RuleCall getObjRefObjParserRuleCall_1_0() { return cObjRefObjParserRuleCall_1_0; }
|
||||
|
||||
//'ref'
|
||||
public Keyword getRefKeyword_2() { return cRefKeyword_2; }
|
||||
|
||||
//ref=[RefObj|FQN]
|
||||
public Assignment getRefAssignment_3() { return cRefAssignment_3; }
|
||||
|
||||
//[RefObj|FQN]
|
||||
public CrossReference getRefRefObjCrossReference_3_0() { return cRefRefObjCrossReference_3_0; }
|
||||
|
||||
//FQN
|
||||
public RuleCall getRefRefObjFQNParserRuleCall_3_0_1() { return cRefRefObjFQNParserRuleCall_3_0_1; }
|
||||
}
|
||||
public class AppendToFileEndElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.AppendToFileEnd");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
private final Keyword cNumberSignDigitSevenKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
||||
private final Assignment cItemsAssignment_1 = (Assignment)cGroup.eContents().get(1);
|
||||
private final RuleCall cItemsAppendToFileEndItemParserRuleCall_1_0 = (RuleCall)cItemsAssignment_1.eContents().get(0);
|
||||
|
||||
//// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=297938
|
||||
/// * SuppressWarnings[noInstantiation] * / AppendToFileEnd:
|
||||
// '#7' items+=AppendToFileEndItem*;
|
||||
@Override public ParserRule getRule() { return rule; }
|
||||
|
||||
//'#7' items+=AppendToFileEndItem*
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//'#7'
|
||||
public Keyword getNumberSignDigitSevenKeyword_0() { return cNumberSignDigitSevenKeyword_0; }
|
||||
|
||||
//items+=AppendToFileEndItem*
|
||||
public Assignment getItemsAssignment_1() { return cItemsAssignment_1; }
|
||||
|
||||
//AppendToFileEndItem
|
||||
public RuleCall getItemsAppendToFileEndItemParserRuleCall_1_0() { return cItemsAppendToFileEndItemParserRuleCall_1_0; }
|
||||
}
|
||||
public class AppendToFileEndItemElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.AppendToFileEndItem");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
private final Keyword cClassKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
||||
private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
|
||||
private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
|
||||
private final Keyword cEndclassKeyword_2 = (Keyword)cGroup.eContents().get(2);
|
||||
|
||||
//AppendToFileEndItem:
|
||||
// 'class' name=ID 'endclass';
|
||||
@Override public ParserRule getRule() { return rule; }
|
||||
|
||||
//'class' name=ID 'endclass'
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//'class'
|
||||
public Keyword getClassKeyword_0() { return cClassKeyword_0; }
|
||||
|
||||
//name=ID
|
||||
public Assignment getNameAssignment_1() { return cNameAssignment_1; }
|
||||
|
||||
//ID
|
||||
public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; }
|
||||
|
||||
//'endclass'
|
||||
public Keyword getEndclassKeyword_2() { return cEndclassKeyword_2; }
|
||||
}
|
||||
public class Action1Elements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.Action1");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
private final Keyword cNumberSignDigitEightKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
||||
private final Action cAction1Action_1 = (Action)cGroup.eContents().get(1);
|
||||
private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
|
||||
private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
|
||||
private final Assignment cActions2Assignment_3 = (Assignment)cGroup.eContents().get(3);
|
||||
private final RuleCall cActions2Action1Sub1ParserRuleCall_3_0 = (RuleCall)cActions2Assignment_3.eContents().get(0);
|
||||
private final Assignment cActions2Assignment_4 = (Assignment)cGroup.eContents().get(4);
|
||||
private final RuleCall cActions2Action1Sub2ParserRuleCall_4_0 = (RuleCall)cActions2Assignment_4.eContents().get(0);
|
||||
|
||||
//Action1:
|
||||
// '#8' {Action1} name=ID actions2+=Action1Sub1 actions2+=Action1Sub2;
|
||||
@Override public ParserRule getRule() { return rule; }
|
||||
|
||||
//'#8' {Action1} name=ID actions2+=Action1Sub1 actions2+=Action1Sub2
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//'#8'
|
||||
public Keyword getNumberSignDigitEightKeyword_0() { return cNumberSignDigitEightKeyword_0; }
|
||||
|
||||
//{Action1}
|
||||
public Action getAction1Action_1() { return cAction1Action_1; }
|
||||
|
||||
//name=ID
|
||||
public Assignment getNameAssignment_2() { return cNameAssignment_2; }
|
||||
|
||||
//ID
|
||||
public RuleCall getNameIDTerminalRuleCall_2_0() { return cNameIDTerminalRuleCall_2_0; }
|
||||
|
||||
//actions2+=Action1Sub1
|
||||
public Assignment getActions2Assignment_3() { return cActions2Assignment_3; }
|
||||
|
||||
//Action1Sub1
|
||||
public RuleCall getActions2Action1Sub1ParserRuleCall_3_0() { return cActions2Action1Sub1ParserRuleCall_3_0; }
|
||||
|
||||
//actions2+=Action1Sub2
|
||||
public Assignment getActions2Assignment_4() { return cActions2Assignment_4; }
|
||||
|
||||
//Action1Sub2
|
||||
public RuleCall getActions2Action1Sub2ParserRuleCall_4_0() { return cActions2Action1Sub2ParserRuleCall_4_0; }
|
||||
}
|
||||
public class Action1Sub1Elements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.Action1Sub1");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
private final Action cAction1SubAction_0 = (Action)cGroup.eContents().get(0);
|
||||
private final Keyword cSub1Keyword_1 = (Keyword)cGroup.eContents().get(1);
|
||||
|
||||
//Action1Sub1:
|
||||
// {Action1Sub} "sub1";
|
||||
@Override public ParserRule getRule() { return rule; }
|
||||
|
||||
//{Action1Sub} "sub1"
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//{Action1Sub}
|
||||
public Action getAction1SubAction_0() { return cAction1SubAction_0; }
|
||||
|
||||
//"sub1"
|
||||
public Keyword getSub1Keyword_1() { return cSub1Keyword_1; }
|
||||
}
|
||||
public class Action1Sub2Elements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.Action1Sub2");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
private final Action cAction1SubClassAction_0 = (Action)cGroup.eContents().get(0);
|
||||
private final Keyword cSub2Keyword_1 = (Keyword)cGroup.eContents().get(1);
|
||||
|
||||
//Action1Sub2:
|
||||
// {Action1SubClass} "sub2";
|
||||
@Override public ParserRule getRule() { return rule; }
|
||||
|
||||
//{Action1SubClass} "sub2"
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//{Action1SubClass}
|
||||
public Action getAction1SubClassAction_0() { return cAction1SubClassAction_0; }
|
||||
|
||||
//"sub2"
|
||||
public Keyword getSub2Keyword_1() { return cSub2Keyword_1; }
|
||||
}
|
||||
|
||||
public class EnumBugEnumElements extends AbstractEnumRuleElementFinder {
|
||||
private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage.EnumBugEnum");
|
||||
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
|
||||
private final EnumLiteralDeclaration cArrayEnumLiteralDeclaration_0 = (EnumLiteralDeclaration)cAlternatives.eContents().get(0);
|
||||
private final Keyword cArrayArrayKeyword_0_0 = (Keyword)cArrayEnumLiteralDeclaration_0.eContents().get(0);
|
||||
private final EnumLiteralDeclaration cObjectEnumLiteralDeclaration_1 = (EnumLiteralDeclaration)cAlternatives.eContents().get(1);
|
||||
private final Keyword cObjectObjectKeyword_1_0 = (Keyword)cObjectEnumLiteralDeclaration_1.eContents().get(0);
|
||||
private final EnumLiteralDeclaration cResultSetEnumLiteralDeclaration_2 = (EnumLiteralDeclaration)cAlternatives.eContents().get(2);
|
||||
private final Keyword cResultSetResultSetKeyword_2_0 = (Keyword)cResultSetEnumLiteralDeclaration_2.eContents().get(0);
|
||||
private final EnumLiteralDeclaration cIteratorEnumLiteralDeclaration_3 = (EnumLiteralDeclaration)cAlternatives.eContents().get(3);
|
||||
private final Keyword cIteratorIteratorKeyword_3_0 = (Keyword)cIteratorEnumLiteralDeclaration_3.eContents().get(0);
|
||||
|
||||
//enum EnumBugEnum:
|
||||
// array | object | resultSet | iterator;
|
||||
public EnumRule getRule() { return rule; }
|
||||
|
||||
//array | object | resultSet | iterator
|
||||
public Alternatives getAlternatives() { return cAlternatives; }
|
||||
|
||||
//array
|
||||
public EnumLiteralDeclaration getArrayEnumLiteralDeclaration_0() { return cArrayEnumLiteralDeclaration_0; }
|
||||
|
||||
//"array"
|
||||
public Keyword getArrayArrayKeyword_0_0() { return cArrayArrayKeyword_0_0; }
|
||||
|
||||
//object
|
||||
public EnumLiteralDeclaration getObjectEnumLiteralDeclaration_1() { return cObjectEnumLiteralDeclaration_1; }
|
||||
|
||||
//"object"
|
||||
public Keyword getObjectObjectKeyword_1_0() { return cObjectObjectKeyword_1_0; }
|
||||
|
||||
//resultSet
|
||||
public EnumLiteralDeclaration getResultSetEnumLiteralDeclaration_2() { return cResultSetEnumLiteralDeclaration_2; }
|
||||
|
||||
//"resultSet"
|
||||
public Keyword getResultSetResultSetKeyword_2_0() { return cResultSetResultSetKeyword_2_0; }
|
||||
|
||||
//iterator
|
||||
public EnumLiteralDeclaration getIteratorEnumLiteralDeclaration_3() { return cIteratorEnumLiteralDeclaration_3; }
|
||||
|
||||
//"iterator"
|
||||
public Keyword getIteratorIteratorKeyword_3_0() { return cIteratorIteratorKeyword_3_0; }
|
||||
}
|
||||
|
||||
private final ModelElements pModel;
|
||||
private final DatatypeBug286557Elements pDatatypeBug286557;
|
||||
private final FQNElements pFQN;
|
||||
private final EnumBugElements pEnumBug;
|
||||
private final EnumBugEnumElements eEnumBugEnum;
|
||||
private final CommentableElements pCommentable;
|
||||
private final CommentableItemElements pCommentableItem;
|
||||
private final ValueListElements pValueList;
|
||||
private final RefListElements pRefList;
|
||||
private final RefObjElements pRefObj;
|
||||
private final SingleRefElements pSingleRef;
|
||||
private final AppendToFileEndElements pAppendToFileEnd;
|
||||
private final AppendToFileEndItemElements pAppendToFileEndItem;
|
||||
private final Action1Elements pAction1;
|
||||
private final Action1Sub1Elements pAction1Sub1;
|
||||
private final Action1Sub2Elements pAction1Sub2;
|
||||
|
||||
private final Grammar grammar;
|
||||
|
||||
private final TerminalsGrammarAccess gaTerminals;
|
||||
|
||||
@Inject
|
||||
public HiddenTokensMergerTestLanguageGrammarAccess(GrammarProvider grammarProvider,
|
||||
TerminalsGrammarAccess gaTerminals) {
|
||||
this.grammar = internalFindGrammar(grammarProvider);
|
||||
this.gaTerminals = gaTerminals;
|
||||
this.pModel = new ModelElements();
|
||||
this.pDatatypeBug286557 = new DatatypeBug286557Elements();
|
||||
this.pFQN = new FQNElements();
|
||||
this.pEnumBug = new EnumBugElements();
|
||||
this.eEnumBugEnum = new EnumBugEnumElements();
|
||||
this.pCommentable = new CommentableElements();
|
||||
this.pCommentableItem = new CommentableItemElements();
|
||||
this.pValueList = new ValueListElements();
|
||||
this.pRefList = new RefListElements();
|
||||
this.pRefObj = new RefObjElements();
|
||||
this.pSingleRef = new SingleRefElements();
|
||||
this.pAppendToFileEnd = new AppendToFileEndElements();
|
||||
this.pAppendToFileEndItem = new AppendToFileEndItemElements();
|
||||
this.pAction1 = new Action1Elements();
|
||||
this.pAction1Sub1 = new Action1Sub1Elements();
|
||||
this.pAction1Sub2 = new Action1Sub2Elements();
|
||||
}
|
||||
|
||||
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
|
||||
Grammar grammar = grammarProvider.getGrammar(this);
|
||||
while (grammar != null) {
|
||||
if ("org.eclipse.xtext.parsetree.reconstr.HiddenTokensMergerTestLanguage".equals(grammar.getName())) {
|
||||
return grammar;
|
||||
}
|
||||
List<Grammar> grammars = grammar.getUsedGrammars();
|
||||
if (!grammars.isEmpty()) {
|
||||
grammar = grammars.iterator().next();
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return grammar;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Grammar getGrammar() {
|
||||
return grammar;
|
||||
}
|
||||
|
||||
|
||||
public TerminalsGrammarAccess getTerminalsGrammarAccess() {
|
||||
return gaTerminals;
|
||||
}
|
||||
|
||||
|
||||
//Model:
|
||||
// DatatypeBug286557 | EnumBug | Commentable | ValueList | RefList | SingleRef | AppendToFileEnd | Action1;
|
||||
public ModelElements getModelAccess() {
|
||||
return pModel;
|
||||
}
|
||||
|
||||
public ParserRule getModelRule() {
|
||||
return getModelAccess().getRule();
|
||||
}
|
||||
|
||||
//DatatypeBug286557:
|
||||
// '#1' name=FQN ('ref' ref=[DatatypeBug286557|FQN])? ";";
|
||||
public DatatypeBug286557Elements getDatatypeBug286557Access() {
|
||||
return pDatatypeBug286557;
|
||||
}
|
||||
|
||||
public ParserRule getDatatypeBug286557Rule() {
|
||||
return getDatatypeBug286557Access().getRule();
|
||||
}
|
||||
|
||||
//FQN:
|
||||
// ID ('.' ID)*;
|
||||
public FQNElements getFQNAccess() {
|
||||
return pFQN;
|
||||
}
|
||||
|
||||
public ParserRule getFQNRule() {
|
||||
return getFQNAccess().getRule();
|
||||
}
|
||||
|
||||
//EnumBug:
|
||||
// '#2' 'kw1' return=EnumBugEnum name=ID;
|
||||
public EnumBugElements getEnumBugAccess() {
|
||||
return pEnumBug;
|
||||
}
|
||||
|
||||
public ParserRule getEnumBugRule() {
|
||||
return getEnumBugAccess().getRule();
|
||||
}
|
||||
|
||||
//enum EnumBugEnum:
|
||||
// array | object | resultSet | iterator;
|
||||
public EnumBugEnumElements getEnumBugEnumAccess() {
|
||||
return eEnumBugEnum;
|
||||
}
|
||||
|
||||
public EnumRule getEnumBugEnumRule() {
|
||||
return getEnumBugEnumAccess().getRule();
|
||||
}
|
||||
|
||||
/// * SuppressWarnings[noInstantiation] * / Commentable:
|
||||
// '#3' item+=CommentableItem*;
|
||||
public CommentableElements getCommentableAccess() {
|
||||
return pCommentable;
|
||||
}
|
||||
|
||||
public ParserRule getCommentableRule() {
|
||||
return getCommentableAccess().getRule();
|
||||
}
|
||||
|
||||
//CommentableItem:
|
||||
// 'item' id=ID;
|
||||
public CommentableItemElements getCommentableItemAccess() {
|
||||
return pCommentableItem;
|
||||
}
|
||||
|
||||
public ParserRule getCommentableItemRule() {
|
||||
return getCommentableItemAccess().getRule();
|
||||
}
|
||||
|
||||
/// * SuppressWarnings[noInstantiation] * / ValueList:
|
||||
// '#4' ids+=FQN*;
|
||||
public ValueListElements getValueListAccess() {
|
||||
return pValueList;
|
||||
}
|
||||
|
||||
public ParserRule getValueListRule() {
|
||||
return getValueListAccess().getRule();
|
||||
}
|
||||
|
||||
/// * SuppressWarnings[noInstantiation] * / RefList:
|
||||
// '#5' objs+=RefObj* 'refs' refs+=[RefObj|FQN]*;
|
||||
public RefListElements getRefListAccess() {
|
||||
return pRefList;
|
||||
}
|
||||
|
||||
public ParserRule getRefListRule() {
|
||||
return getRefListAccess().getRule();
|
||||
}
|
||||
|
||||
//RefObj:
|
||||
// name=FQN;
|
||||
public RefObjElements getRefObjAccess() {
|
||||
return pRefObj;
|
||||
}
|
||||
|
||||
public ParserRule getRefObjRule() {
|
||||
return getRefObjAccess().getRule();
|
||||
}
|
||||
|
||||
//SingleRef:
|
||||
// '#6' obj=RefObj 'ref' ref=[RefObj|FQN];
|
||||
public SingleRefElements getSingleRefAccess() {
|
||||
return pSingleRef;
|
||||
}
|
||||
|
||||
public ParserRule getSingleRefRule() {
|
||||
return getSingleRefAccess().getRule();
|
||||
}
|
||||
|
||||
//// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=297938
|
||||
/// * SuppressWarnings[noInstantiation] * / AppendToFileEnd:
|
||||
// '#7' items+=AppendToFileEndItem*;
|
||||
public AppendToFileEndElements getAppendToFileEndAccess() {
|
||||
return pAppendToFileEnd;
|
||||
}
|
||||
|
||||
public ParserRule getAppendToFileEndRule() {
|
||||
return getAppendToFileEndAccess().getRule();
|
||||
}
|
||||
|
||||
//AppendToFileEndItem:
|
||||
// 'class' name=ID 'endclass';
|
||||
public AppendToFileEndItemElements getAppendToFileEndItemAccess() {
|
||||
return pAppendToFileEndItem;
|
||||
}
|
||||
|
||||
public ParserRule getAppendToFileEndItemRule() {
|
||||
return getAppendToFileEndItemAccess().getRule();
|
||||
}
|
||||
|
||||
//Action1:
|
||||
// '#8' {Action1} name=ID actions2+=Action1Sub1 actions2+=Action1Sub2;
|
||||
public Action1Elements getAction1Access() {
|
||||
return pAction1;
|
||||
}
|
||||
|
||||
public ParserRule getAction1Rule() {
|
||||
return getAction1Access().getRule();
|
||||
}
|
||||
|
||||
//Action1Sub1:
|
||||
// {Action1Sub} "sub1";
|
||||
public Action1Sub1Elements getAction1Sub1Access() {
|
||||
return pAction1Sub1;
|
||||
}
|
||||
|
||||
public ParserRule getAction1Sub1Rule() {
|
||||
return getAction1Sub1Access().getRule();
|
||||
}
|
||||
|
||||
//Action1Sub2:
|
||||
// {Action1SubClass} "sub2";
|
||||
public Action1Sub2Elements getAction1Sub2Access() {
|
||||
return pAction1Sub2;
|
||||
}
|
||||
|
||||
public ParserRule getAction1Sub2Rule() {
|
||||
return getAction1Sub2Access().getRule();
|
||||
}
|
||||
|
||||
//terminal ID:
|
||||
// '^'? ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')*;
|
||||
public TerminalRule getIDRule() {
|
||||
return gaTerminals.getIDRule();
|
||||
}
|
||||
|
||||
//terminal INT returns ecore::EInt:
|
||||
// '0'..'9'+;
|
||||
public TerminalRule getINTRule() {
|
||||
return gaTerminals.getINTRule();
|
||||
}
|
||||
|
||||
//terminal STRING:
|
||||
// '"' ('\\' . | !('\\' | '"'))* '"' |
|
||||
// "'" ('\\' . | !('\\' | "'"))* "'";
|
||||
public TerminalRule getSTRINGRule() {
|
||||
return gaTerminals.getSTRINGRule();
|
||||
}
|
||||
|
||||
//terminal ML_COMMENT:
|
||||
// '/ *'->'* /';
|
||||
public TerminalRule getML_COMMENTRule() {
|
||||
return gaTerminals.getML_COMMENTRule();
|
||||
}
|
||||
|
||||
//terminal SL_COMMENT:
|
||||
// '//' !('\n' | '\r')* ('\r'? '\n')?;
|
||||
public TerminalRule getSL_COMMENTRule() {
|
||||
return gaTerminals.getSL_COMMENTRule();
|
||||
}
|
||||
|
||||
//terminal WS:
|
||||
// ' ' | '\t' | '\r' | '\n'+;
|
||||
public TerminalRule getWSRule() {
|
||||
return gaTerminals.getWSRule();
|
||||
}
|
||||
|
||||
//terminal ANY_OTHER:
|
||||
// .;
|
||||
public TerminalRule getANY_OTHERRule() {
|
||||
return gaTerminals.getANY_OTHERRule();
|
||||
}
|
||||
}
|
|
@ -1,220 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.services;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.Singleton;
|
||||
import java.util.List;
|
||||
import org.eclipse.xtext.Assignment;
|
||||
import org.eclipse.xtext.Grammar;
|
||||
import org.eclipse.xtext.GrammarUtil;
|
||||
import org.eclipse.xtext.Group;
|
||||
import org.eclipse.xtext.Keyword;
|
||||
import org.eclipse.xtext.ParserRule;
|
||||
import org.eclipse.xtext.RuleCall;
|
||||
import org.eclipse.xtext.TerminalRule;
|
||||
import org.eclipse.xtext.common.services.TerminalsGrammarAccess;
|
||||
import org.eclipse.xtext.service.AbstractElementFinder.AbstractGrammarElementFinder;
|
||||
import org.eclipse.xtext.service.GrammarProvider;
|
||||
|
||||
@Singleton
|
||||
public class PartialSerializationTestLanguageGrammarAccess extends AbstractGrammarElementFinder {
|
||||
|
||||
public class ModelElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.parsetree.reconstr.PartialSerializationTestLanguage.Model");
|
||||
private final RuleCall cNodeRootParserRuleCall = (RuleCall)rule.eContents().get(1);
|
||||
|
||||
//Model:
|
||||
// NodeRoot;
|
||||
@Override public ParserRule getRule() { return rule; }
|
||||
|
||||
//NodeRoot
|
||||
public RuleCall getNodeRootParserRuleCall() { return cNodeRootParserRuleCall; }
|
||||
}
|
||||
public class NodeRootElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.parsetree.reconstr.PartialSerializationTestLanguage.NodeRoot");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
private final Keyword cNumberSignDigitOneKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
||||
private final Assignment cNodeAssignment_1 = (Assignment)cGroup.eContents().get(1);
|
||||
private final RuleCall cNodeNodeParserRuleCall_1_0 = (RuleCall)cNodeAssignment_1.eContents().get(0);
|
||||
|
||||
//NodeRoot:
|
||||
// "#1" node=Node;
|
||||
@Override public ParserRule getRule() { return rule; }
|
||||
|
||||
//"#1" node=Node
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//"#1"
|
||||
public Keyword getNumberSignDigitOneKeyword_0() { return cNumberSignDigitOneKeyword_0; }
|
||||
|
||||
//node=Node
|
||||
public Assignment getNodeAssignment_1() { return cNodeAssignment_1; }
|
||||
|
||||
//Node
|
||||
public RuleCall getNodeNodeParserRuleCall_1_0() { return cNodeNodeParserRuleCall_1_0; }
|
||||
}
|
||||
public class NodeElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.parsetree.reconstr.PartialSerializationTestLanguage.Node");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
private final Keyword cNodeKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
||||
private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
|
||||
private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
|
||||
private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
|
||||
private final Keyword cLeftParenthesisKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
|
||||
private final Assignment cChildrenAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1);
|
||||
private final RuleCall cChildrenNodeParserRuleCall_2_1_0 = (RuleCall)cChildrenAssignment_2_1.eContents().get(0);
|
||||
private final Keyword cRightParenthesisKeyword_2_2 = (Keyword)cGroup_2.eContents().get(2);
|
||||
|
||||
//Node:
|
||||
// "node" name=ID ("(" children+=Node+ ")")?;
|
||||
@Override public ParserRule getRule() { return rule; }
|
||||
|
||||
//"node" name=ID ("(" children+=Node+ ")")?
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//"node"
|
||||
public Keyword getNodeKeyword_0() { return cNodeKeyword_0; }
|
||||
|
||||
//name=ID
|
||||
public Assignment getNameAssignment_1() { return cNameAssignment_1; }
|
||||
|
||||
//ID
|
||||
public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; }
|
||||
|
||||
//("(" children+=Node+ ")")?
|
||||
public Group getGroup_2() { return cGroup_2; }
|
||||
|
||||
//"("
|
||||
public Keyword getLeftParenthesisKeyword_2_0() { return cLeftParenthesisKeyword_2_0; }
|
||||
|
||||
//children+=Node+
|
||||
public Assignment getChildrenAssignment_2_1() { return cChildrenAssignment_2_1; }
|
||||
|
||||
//Node
|
||||
public RuleCall getChildrenNodeParserRuleCall_2_1_0() { return cChildrenNodeParserRuleCall_2_1_0; }
|
||||
|
||||
//")"
|
||||
public Keyword getRightParenthesisKeyword_2_2() { return cRightParenthesisKeyword_2_2; }
|
||||
}
|
||||
|
||||
|
||||
private final ModelElements pModel;
|
||||
private final NodeRootElements pNodeRoot;
|
||||
private final NodeElements pNode;
|
||||
|
||||
private final Grammar grammar;
|
||||
|
||||
private final TerminalsGrammarAccess gaTerminals;
|
||||
|
||||
@Inject
|
||||
public PartialSerializationTestLanguageGrammarAccess(GrammarProvider grammarProvider,
|
||||
TerminalsGrammarAccess gaTerminals) {
|
||||
this.grammar = internalFindGrammar(grammarProvider);
|
||||
this.gaTerminals = gaTerminals;
|
||||
this.pModel = new ModelElements();
|
||||
this.pNodeRoot = new NodeRootElements();
|
||||
this.pNode = new NodeElements();
|
||||
}
|
||||
|
||||
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
|
||||
Grammar grammar = grammarProvider.getGrammar(this);
|
||||
while (grammar != null) {
|
||||
if ("org.eclipse.xtext.parsetree.reconstr.PartialSerializationTestLanguage".equals(grammar.getName())) {
|
||||
return grammar;
|
||||
}
|
||||
List<Grammar> grammars = grammar.getUsedGrammars();
|
||||
if (!grammars.isEmpty()) {
|
||||
grammar = grammars.iterator().next();
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return grammar;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Grammar getGrammar() {
|
||||
return grammar;
|
||||
}
|
||||
|
||||
|
||||
public TerminalsGrammarAccess getTerminalsGrammarAccess() {
|
||||
return gaTerminals;
|
||||
}
|
||||
|
||||
|
||||
//Model:
|
||||
// NodeRoot;
|
||||
public ModelElements getModelAccess() {
|
||||
return pModel;
|
||||
}
|
||||
|
||||
public ParserRule getModelRule() {
|
||||
return getModelAccess().getRule();
|
||||
}
|
||||
|
||||
//NodeRoot:
|
||||
// "#1" node=Node;
|
||||
public NodeRootElements getNodeRootAccess() {
|
||||
return pNodeRoot;
|
||||
}
|
||||
|
||||
public ParserRule getNodeRootRule() {
|
||||
return getNodeRootAccess().getRule();
|
||||
}
|
||||
|
||||
//Node:
|
||||
// "node" name=ID ("(" children+=Node+ ")")?;
|
||||
public NodeElements getNodeAccess() {
|
||||
return pNode;
|
||||
}
|
||||
|
||||
public ParserRule getNodeRule() {
|
||||
return getNodeAccess().getRule();
|
||||
}
|
||||
|
||||
//terminal ID:
|
||||
// '^'? ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')*;
|
||||
public TerminalRule getIDRule() {
|
||||
return gaTerminals.getIDRule();
|
||||
}
|
||||
|
||||
//terminal INT returns ecore::EInt:
|
||||
// '0'..'9'+;
|
||||
public TerminalRule getINTRule() {
|
||||
return gaTerminals.getINTRule();
|
||||
}
|
||||
|
||||
//terminal STRING:
|
||||
// '"' ('\\' . | !('\\' | '"'))* '"' |
|
||||
// "'" ('\\' . | !('\\' | "'"))* "'";
|
||||
public TerminalRule getSTRINGRule() {
|
||||
return gaTerminals.getSTRINGRule();
|
||||
}
|
||||
|
||||
//terminal ML_COMMENT:
|
||||
// '/ *'->'* /';
|
||||
public TerminalRule getML_COMMENTRule() {
|
||||
return gaTerminals.getML_COMMENTRule();
|
||||
}
|
||||
|
||||
//terminal SL_COMMENT:
|
||||
// '//' !('\n' | '\r')* ('\r'? '\n')?;
|
||||
public TerminalRule getSL_COMMENTRule() {
|
||||
return gaTerminals.getSL_COMMENTRule();
|
||||
}
|
||||
|
||||
//terminal WS:
|
||||
// ' ' | '\t' | '\r' | '\n'+;
|
||||
public TerminalRule getWSRule() {
|
||||
return gaTerminals.getWSRule();
|
||||
}
|
||||
|
||||
//terminal ANY_OTHER:
|
||||
// .;
|
||||
public TerminalRule getANY_OTHERRule() {
|
||||
return gaTerminals.getANY_OTHERRule();
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -1,52 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.simplerewritetest;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Abstract Multi1</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.simplerewritetest.AbstractMulti1#getM1 <em>M1</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.simplerewritetest.SimplerewritetestPackage#getAbstractMulti1()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface AbstractMulti1 extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>M1</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>M1</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>M1</em>' attribute.
|
||||
* @see #setM1(String)
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.simplerewritetest.SimplerewritetestPackage#getAbstractMulti1_M1()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getM1();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.eclipse.xtext.parsetree.reconstr.simplerewritetest.AbstractMulti1#getM1 <em>M1</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>M1</em>' attribute.
|
||||
* @see #getM1()
|
||||
* @generated
|
||||
*/
|
||||
void setM1(String value);
|
||||
|
||||
} // AbstractMulti1
|
|
@ -1,52 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.simplerewritetest;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Abstract Multi2</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.simplerewritetest.AbstractMulti2#getM2 <em>M2</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.simplerewritetest.SimplerewritetestPackage#getAbstractMulti2()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface AbstractMulti2 extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>M2</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>M2</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>M2</em>' attribute.
|
||||
* @see #setM2(String)
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.simplerewritetest.SimplerewritetestPackage#getAbstractMulti2_M2()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getM2();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.eclipse.xtext.parsetree.reconstr.simplerewritetest.AbstractMulti2#getM2 <em>M2</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>M2</em>' attribute.
|
||||
* @see #getM2()
|
||||
* @generated
|
||||
*/
|
||||
void setM2(String value);
|
||||
|
||||
} // AbstractMulti2
|
|
@ -1,51 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.simplerewritetest;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Atom</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.simplerewritetest.Atom#getName <em>Name</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.simplerewritetest.SimplerewritetestPackage#getAtom()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface Atom extends Expression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Name</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Name</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Name</em>' attribute.
|
||||
* @see #setName(String)
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.simplerewritetest.SimplerewritetestPackage#getAtom_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.eclipse.xtext.parsetree.reconstr.simplerewritetest.Atom#getName <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Name</em>' attribute.
|
||||
* @see #getName()
|
||||
* @generated
|
||||
*/
|
||||
void setName(String value);
|
||||
|
||||
} // Atom
|
|
@ -1,78 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.simplerewritetest;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Boolean</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.simplerewritetest.Boolean#isBool <em>Bool</em>}</li>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.simplerewritetest.Boolean#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.simplerewritetest.SimplerewritetestPackage#getBoolean()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface Boolean extends Expression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Bool</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Bool</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Bool</em>' attribute.
|
||||
* @see #setBool(boolean)
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.simplerewritetest.SimplerewritetestPackage#getBoolean_Bool()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
boolean isBool();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.eclipse.xtext.parsetree.reconstr.simplerewritetest.Boolean#isBool <em>Bool</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Bool</em>' attribute.
|
||||
* @see #isBool()
|
||||
* @generated
|
||||
*/
|
||||
void setBool(boolean value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Value</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Value</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Value</em>' attribute.
|
||||
* @see #setValue(String)
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.simplerewritetest.SimplerewritetestPackage#getBoolean_Value()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getValue();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.eclipse.xtext.parsetree.reconstr.simplerewritetest.Boolean#getValue <em>Value</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Value</em>' attribute.
|
||||
* @see #getValue()
|
||||
* @generated
|
||||
*/
|
||||
void setValue(String value);
|
||||
|
||||
} // Boolean
|
|
@ -1,103 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.simplerewritetest;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Bug305171</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.simplerewritetest.Bug305171#getX <em>X</em>}</li>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.simplerewritetest.Bug305171#getY <em>Y</em>}</li>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.simplerewritetest.Bug305171#getZ <em>Z</em>}</li>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.simplerewritetest.Bug305171#getName <em>Name</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.simplerewritetest.SimplerewritetestPackage#getBug305171()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface Bug305171 extends Expression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>X</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>X</em>' attribute list isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>X</em>' attribute list.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.simplerewritetest.SimplerewritetestPackage#getBug305171_X()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getX();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Y</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Y</em>' attribute list isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Y</em>' attribute list.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.simplerewritetest.SimplerewritetestPackage#getBug305171_Y()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getY();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Z</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Z</em>' attribute list isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Z</em>' attribute list.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.simplerewritetest.SimplerewritetestPackage#getBug305171_Z()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getZ();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Name</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Name</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Name</em>' attribute.
|
||||
* @see #setName(String)
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.simplerewritetest.SimplerewritetestPackage#getBug305171_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.eclipse.xtext.parsetree.reconstr.simplerewritetest.Bug305171#getName <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Name</em>' attribute.
|
||||
* @see #getName()
|
||||
* @generated
|
||||
*/
|
||||
void setName(String value);
|
||||
|
||||
} // Bug305171
|
|
@ -1,44 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.simplerewritetest;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Bug310435 Enum</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.simplerewritetest.Bug310435Enum#getLits <em>Lits</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.simplerewritetest.SimplerewritetestPackage#getBug310435Enum()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface Bug310435Enum extends Expression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Lits</b></em>' attribute list.
|
||||
* The list contents are of type {@link org.eclipse.xtext.parsetree.reconstr.simplerewritetest.EnumBug310435Enum}.
|
||||
* The literals are from the enumeration {@link org.eclipse.xtext.parsetree.reconstr.simplerewritetest.EnumBug310435Enum}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Lits</em>' attribute list isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Lits</em>' attribute list.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.simplerewritetest.EnumBug310435Enum
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.simplerewritetest.SimplerewritetestPackage#getBug310435Enum_Lits()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<EnumBug310435Enum> getLits();
|
||||
|
||||
} // Bug310435Enum
|
|
@ -1,42 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.eclipse.xtext.parsetree.reconstr.simplerewritetest;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Bug310435 Val</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.eclipse.xtext.parsetree.reconstr.simplerewritetest.Bug310435Val#getLits <em>Lits</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.simplerewritetest.SimplerewritetestPackage#getBug310435Val()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface Bug310435Val extends Expression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Lits</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Lits</em>' attribute list isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Lits</em>' attribute list.
|
||||
* @see org.eclipse.xtext.parsetree.reconstr.simplerewritetest.SimplerewritetestPackage#getBug310435Val_Lits()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getLits();
|
||||
|
||||
} // Bug310435Val
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue