eclipse plugin: change the grammar name (season finale )
This commit is contained in:
parent
3a6a877248
commit
8cae2b7be0
45 changed files with 22099 additions and 0 deletions
|
@ -0,0 +1,132 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.wesnoth;
|
||||
|
||||
import java.util.Properties;
|
||||
|
||||
import org.eclipse.xtext.Constants;
|
||||
import org.eclipse.xtext.service.DefaultRuntimeModule;
|
||||
|
||||
import com.google.inject.Binder;
|
||||
import com.google.inject.name.Names;
|
||||
|
||||
/**
|
||||
* Manual modifications go to {org.wesnoth.WMLRuntimeModule}
|
||||
*/
|
||||
@SuppressWarnings("all")
|
||||
public abstract class AbstractWMLRuntimeModule extends DefaultRuntimeModule {
|
||||
|
||||
protected Properties properties = null;
|
||||
|
||||
@Override
|
||||
public void configure(Binder binder) {
|
||||
properties = tryBindProperties(binder, "org/wesnoth/WML.properties");
|
||||
super.configure(binder);
|
||||
}
|
||||
|
||||
public void configureLanguageName(Binder binder) {
|
||||
binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("org.wesnoth.WML");
|
||||
}
|
||||
|
||||
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("cfg");
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment
|
||||
public Class<? extends org.eclipse.xtext.IGrammarAccess> bindIGrammarAccess() {
|
||||
return org.wesnoth.services.WMLGrammarAccess.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.generator.parseTreeConstructor.ParseTreeConstructorFragment
|
||||
public Class<? extends org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor> bindIParseTreeConstructor() {
|
||||
return org.wesnoth.parseTreeConstruction.WMLParsetreeConstructor.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
|
||||
public Class<? extends org.eclipse.xtext.parser.antlr.IAntlrParser> bindIAntlrParser() {
|
||||
return org.wesnoth.parser.antlr.WMLParser.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
|
||||
public Class<? extends org.eclipse.xtext.parser.ITokenToStringConverter> bindITokenToStringConverter() {
|
||||
return org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
|
||||
public Class<? extends org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
|
||||
return org.wesnoth.parser.antlr.WMLAntlrTokenFileProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
|
||||
public Class<? extends org.eclipse.xtext.parser.antlr.Lexer> bindLexer() {
|
||||
return org.wesnoth.parser.antlr.internal.InternalWMLLexer.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
|
||||
public com.google.inject.Provider<org.wesnoth.parser.antlr.internal.InternalWMLLexer> provideInternalWMLLexer() {
|
||||
return org.eclipse.xtext.parser.antlr.LexerProvider.create(org.wesnoth.parser.antlr.internal.InternalWMLLexer.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
|
||||
public void configureRuntimeLexer(com.google.inject.Binder binder) {
|
||||
binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.parser.antlr.LexerBindings.RUNTIME)).to(org.wesnoth.parser.antlr.internal.InternalWMLLexer.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
|
||||
public Class<? extends org.eclipse.xtext.parser.antlr.ITokenDefProvider> bindITokenDefProvider() {
|
||||
return org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.generator.validation.JavaValidatorFragment
|
||||
@org.eclipse.xtext.service.SingletonBinding(eager=true) public Class<? extends org.wesnoth.validation.WMLJavaValidator> bindWMLJavaValidator() {
|
||||
return org.wesnoth.validation.WMLJavaValidator.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
|
||||
public Class<? extends org.eclipse.xtext.scoping.IScopeProvider> bindIScopeProvider() {
|
||||
return org.wesnoth.scoping.WMLScopeProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
|
||||
public void configureIScopeProviderDelegate(com.google.inject.Binder binder) {
|
||||
binder.bind(org.eclipse.xtext.scoping.IScopeProvider.class).annotatedWith(com.google.inject.name.Names.named("org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.delegate")).to(org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
|
||||
public Class<? extends org.eclipse.xtext.scoping.IGlobalScopeProvider> bindIGlobalScopeProvider() {
|
||||
return org.eclipse.xtext.scoping.impl.DefaultGlobalScopeProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.generator.exporting.QualifiedNamesFragment
|
||||
public Class<? extends org.eclipse.xtext.naming.IQualifiedNameProvider> bindIQualifiedNameProvider() {
|
||||
return org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
|
||||
public Class<? extends org.eclipse.xtext.resource.IContainer.Manager> bindIContainer$Manager() {
|
||||
return org.eclipse.xtext.resource.containers.StateBasedContainerManager.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
|
||||
public Class<? extends org.eclipse.xtext.resource.containers.IAllContainersState.Provider> bindIAllContainersState$Provider() {
|
||||
return org.eclipse.xtext.resource.containers.ResourceSetBasedAllContainersStateProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
|
||||
public void configureIResourceDescriptions(com.google.inject.Binder binder) {
|
||||
binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
|
||||
public void configureIResourceDescriptionsBuilderScope(com.google.inject.Binder binder) {
|
||||
binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.scoping.impl.AbstractGlobalScopeProvider.NAMED_BUILDER_SCOPE)).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.generator.formatting.FormatterFragment
|
||||
public Class<? extends org.eclipse.xtext.formatting.IFormatter> bindIFormatter() {
|
||||
return org.wesnoth.formatting.WMLFormatter.class;
|
||||
}
|
||||
|
||||
}
|
105
utils/java/org.wesnoth.wml/src-gen/org/wesnoth/WML.ecore
Normal file
105
utils/java/org.wesnoth.wml/src-gen/org/wesnoth/WML.ecore
Normal file
|
@ -0,0 +1,105 @@
|
|||
<?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="wml"
|
||||
nsURI="http://www.wesnoth.org/WML" nsPrefix="wml">
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLRoot">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Tags" upperBound="-1" eType="#//WMLTag"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="MacroCalls" upperBound="-1"
|
||||
eType="#//WMLMacroCall" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="MacroDefines" upperBound="-1"
|
||||
eType="#//WMLMacroDefine" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Textdomains" upperBound="-1"
|
||||
eType="#//WMLTextdomain" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="IfDefs" upperBound="-1"
|
||||
eType="#//WMLPreprocIF" containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLTag">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="plus" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Tags" upperBound="-1" eType="#//WMLTag"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Keys" upperBound="-1" eType="#//WMLKey"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="MacroCalls" upperBound="-1"
|
||||
eType="#//WMLMacroCall" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="MacroDefines" upperBound="-1"
|
||||
eType="#//WMLMacroDefine" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Textdomains" upperBound="-1"
|
||||
eType="#//WMLTextdomain" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="IfDefs" upperBound="-1"
|
||||
eType="#//WMLPreprocIF" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="endName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLKey">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="value" upperBound="-1"
|
||||
eType="#//WMLKeyValue" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="eol" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLKeyValue"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLMacroCall" eSuperTypes="#//WMLKeyValue">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="point" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="relative" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="params" upperBound="-1"
|
||||
eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="extraMacros" upperBound="-1"
|
||||
eType="#//WMLMacroCall" containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLLuaCode" eSuperTypes="#//WMLKeyValue">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLArrayCall" eSuperTypes="#//WMLKeyValue">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="value" upperBound="-1"
|
||||
eType="#//WMLValue" containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLMacroDefine">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Tags" upperBound="-1" eType="#//WMLTag"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Keys" upperBound="-1" eType="#//WMLKey"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="MacroCalls" upperBound="-1"
|
||||
eType="#//WMLMacroCall" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="MacroDefines" upperBound="-1"
|
||||
eType="#//WMLMacroDefine" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Textdomains" upperBound="-1"
|
||||
eType="#//WMLTextdomain" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Values" upperBound="-1"
|
||||
eType="#//WMLValue" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="IfDefs" upperBound="-1"
|
||||
eType="#//WMLPreprocIF" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="endName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLPreprocIF">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Tags" upperBound="-1" eType="#//WMLTag"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Keys" upperBound="-1" eType="#//WMLKey"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="MacroCalls" upperBound="-1"
|
||||
eType="#//WMLMacroCall" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="MacroDefines" upperBound="-1"
|
||||
eType="#//WMLMacroDefine" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Textdomains" upperBound="-1"
|
||||
eType="#//WMLTextdomain" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="Values" upperBound="-1"
|
||||
eType="#//WMLValue" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="IfDefs" upperBound="-1"
|
||||
eType="#//WMLPreprocIF" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="Elses" unique="false" upperBound="-1"
|
||||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="endName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLTextdomain">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="WMLValue" eSuperTypes="#//WMLKeyValue">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="MacroTokens">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="val" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
</ecore:EPackage>
|
81
utils/java/org.wesnoth.wml/src-gen/org/wesnoth/WML.genmodel
Normal file
81
utils/java/org.wesnoth.wml/src-gen/org/wesnoth/WML.genmodel
Normal file
|
@ -0,0 +1,81 @@
|
|||
<?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" modelDirectory="/org.wesnoth.wml/src-gen"
|
||||
editDirectory="/org.wesnoth.wml.edit/src" editorDirectory="/org.wesnoth.wml.editor/src"
|
||||
modelPluginID="org.wesnoth.wml" forceOverwrite="true" modelName="WML" updateClasspath="false"
|
||||
rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" complianceLevel="5.0"
|
||||
copyrightFields="false" editPluginID="org.wesnoth.wml.edit" editorPluginID="org.wesnoth.wml.editor">
|
||||
<genPackages prefix="Wml" basePackage="org.wesnoth" disposableProviderFactory="true"
|
||||
ecorePackage="WML.ecore#/">
|
||||
<genClasses ecoreClass="WML.ecore#//WMLRoot">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLRoot/Tags"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLRoot/MacroCalls"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLRoot/MacroDefines"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLRoot/Textdomains"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLRoot/IfDefs"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="WML.ecore#//WMLTag">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLTag/plus"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLTag/name"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLTag/Tags"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLTag/Keys"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLTag/MacroCalls"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLTag/MacroDefines"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLTag/Textdomains"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLTag/IfDefs"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLTag/endName"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="WML.ecore#//WMLKey">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLKey/name"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLKey/value"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLKey/eol"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="WML.ecore#//WMLKeyValue"/>
|
||||
<genClasses ecoreClass="WML.ecore#//WMLMacroCall">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLMacroCall/point"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLMacroCall/relative"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLMacroCall/name"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLMacroCall/params"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLMacroCall/extraMacros"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="WML.ecore#//WMLLuaCode">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLLuaCode/value"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="WML.ecore#//WMLArrayCall">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLArrayCall/value"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="WML.ecore#//WMLMacroDefine">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLMacroDefine/name"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLMacroDefine/Tags"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLMacroDefine/Keys"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLMacroDefine/MacroCalls"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLMacroDefine/MacroDefines"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLMacroDefine/Textdomains"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLMacroDefine/Values"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLMacroDefine/IfDefs"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLMacroDefine/endName"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="WML.ecore#//WMLPreprocIF">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLPreprocIF/name"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLPreprocIF/Tags"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLPreprocIF/Keys"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLPreprocIF/MacroCalls"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLPreprocIF/MacroDefines"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLPreprocIF/Textdomains"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLPreprocIF/Values"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference WML.ecore#//WMLPreprocIF/IfDefs"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLPreprocIF/Elses"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLPreprocIF/endName"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="WML.ecore#//WMLTextdomain">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLTextdomain/name"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="WML.ecore#//WMLValue">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//WMLValue/value"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="WML.ecore#//MacroTokens">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute WML.ecore#//MacroTokens/val"/>
|
||||
</genClasses>
|
||||
</genPackages>
|
||||
</genmodel:GenModel>
|
548
utils/java/org.wesnoth.wml/src-gen/org/wesnoth/WML.xmi
Normal file
548
utils/java/org.wesnoth.wml/src-gen/org/wesnoth/WML.xmi
Normal file
|
@ -0,0 +1,548 @@
|
|||
<?xml version="1.0" encoding="ASCII"?>
|
||||
<xtext:Grammar 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" xmlns:xtext="http://www.eclipse.org/2008/Xtext" name="org.wesnoth.WML" definesHiddenTokens="true" hiddenTokens="//@rules.24 //@rules.25 //@rules.27">
|
||||
<metamodelDeclarations xsi:type="xtext:GeneratedMetamodel" name="wml">
|
||||
<ePackage href="http://www.wesnoth.org/WML#/"/>
|
||||
</metamodelDeclarations>
|
||||
<metamodelDeclarations xsi:type="xtext:ReferencedMetamodel" alias="ecore">
|
||||
<ePackage href="http://www.eclipse.org/emf/2002/Ecore#/"/>
|
||||
</metamodelDeclarations>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLRoot">
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLRoot"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Alternatives" cardinality="*">
|
||||
<elements xsi:type="xtext:Assignment" feature="Tags" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.1"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="MacroCalls" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.4"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="MacroDefines" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.7"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="Textdomains" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.9"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="IfDefs" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.8"/>
|
||||
</elements>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLTag">
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLTag"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Keyword" value="["/>
|
||||
<elements xsi:type="xtext:Assignment" cardinality="?" feature="plus" operator="?=">
|
||||
<terminal xsi:type="xtext:Keyword" value="+"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="name" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.23"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Keyword" value="]"/>
|
||||
<elements xsi:type="xtext:Alternatives" cardinality="*">
|
||||
<elements xsi:type="xtext:Assignment" feature="Tags" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.1"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="Keys" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.2"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="MacroCalls" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.4"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="MacroDefines" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.7"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="Textdomains" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.9"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="IfDefs" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.8"/>
|
||||
</elements>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Keyword" value="[/"/>
|
||||
<elements xsi:type="xtext:Assignment" feature="endName" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.23"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Keyword" value="]"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLKey" definesHiddenTokens="true" hiddenTokens="//@rules.25">
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLKey"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Assignment" feature="name" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.23"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Keyword" value="="/>
|
||||
<elements xsi:type="xtext:Assignment" cardinality="*" feature="value" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.3"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Group" cardinality="*">
|
||||
<elements xsi:type="xtext:RuleCall" cardinality="?" rule="//@rules.24"/>
|
||||
<elements xsi:type="xtext:Keyword" value="+"/>
|
||||
<elements xsi:type="xtext:RuleCall" cardinality="?" rule="//@rules.24"/>
|
||||
<elements xsi:type="xtext:Assignment" cardinality="+" feature="value" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.3"/>
|
||||
</elements>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="eol" operator="=">
|
||||
<terminal xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.24"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.27"/>
|
||||
</terminal>
|
||||
</elements>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLKeyValue">
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLKeyValue"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.10"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.4"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.5"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.6"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLMacroCall">
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLMacroCall"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Keyword" value="{"/>
|
||||
<elements xsi:type="xtext:Assignment" cardinality="?" feature="point" operator="?=">
|
||||
<terminal xsi:type="xtext:Keyword" value="./"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" cardinality="?" feature="relative" operator="?=">
|
||||
<terminal xsi:type="xtext:Keyword" value="~"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="name" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.23"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Alternatives" cardinality="*">
|
||||
<elements xsi:type="xtext:Assignment" feature="params" operator="+=">
|
||||
<terminal xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.10"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.11"/>
|
||||
</terminal>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="extraMacros" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.4"/>
|
||||
</elements>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Keyword" value="}"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLLuaCode">
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLLuaCode"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Assignment" feature="value" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.12"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLArrayCall">
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLArrayCall"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Keyword" value="["/>
|
||||
<elements xsi:type="xtext:Assignment" cardinality="+" feature="value" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.10"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Keyword" value="]"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLMacroDefine">
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLMacroDefine"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Assignment" feature="name" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.19"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Alternatives" cardinality="*">
|
||||
<elements xsi:type="xtext:Assignment" feature="Tags" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.1"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="Keys" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.2"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="MacroCalls" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.4"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="MacroDefines" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.7"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="Textdomains" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.9"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="Values" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.10"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="IfDefs" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.8"/>
|
||||
</elements>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="endName" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.20"/>
|
||||
</elements>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLPreprocIF">
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLPreprocIF"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Assignment" feature="name" operator="=">
|
||||
<terminal xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.15"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.16"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.13"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.14"/>
|
||||
</terminal>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Alternatives" cardinality="*">
|
||||
<elements xsi:type="xtext:Assignment" feature="Tags" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.1"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="Keys" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.2"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="MacroCalls" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.4"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="MacroDefines" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.7"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="Textdomains" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.9"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="Values" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.10"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="IfDefs" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.8"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="Elses" operator="+=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.17"/>
|
||||
</elements>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Assignment" feature="endName" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.18"/>
|
||||
</elements>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLTextdomain">
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLTextdomain"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Assignment" feature="name" operator="=">
|
||||
<terminal xsi:type="xtext:RuleCall" rule="//@rules.21"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="WMLValue">
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//WMLValue"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Assignment" feature="value" operator="=">
|
||||
<terminal xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.23"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.22"/>
|
||||
<elements xsi:type="xtext:Keyword" value="_"/>
|
||||
<elements xsi:type="xtext:Keyword" value="~"/>
|
||||
<elements xsi:type="xtext:Keyword" value="."/>
|
||||
<elements xsi:type="xtext:Keyword" value="./"/>
|
||||
<elements xsi:type="xtext:Keyword" value="$"/>
|
||||
<elements xsi:type="xtext:Keyword" value="/"/>
|
||||
<elements xsi:type="xtext:Keyword" value="("/>
|
||||
<elements xsi:type="xtext:Keyword" value=")"/>
|
||||
<elements xsi:type="xtext:RuleCall" rule="//@rules.26"/>
|
||||
</terminal>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:ParserRule" name="MacroTokens">
|
||||
<type metamodel="//@metamodelDeclarations.0">
|
||||
<classifier xsi:type="ecore:EClass" href="http://www.wesnoth.org/WML#//MacroTokens"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Assignment" feature="val" operator="=">
|
||||
<terminal xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:Keyword" value="="/>
|
||||
<elements xsi:type="xtext:Keyword" value="["/>
|
||||
<elements xsi:type="xtext:Keyword" value="]"/>
|
||||
<elements xsi:type="xtext:Keyword" value="+"/>
|
||||
<elements xsi:type="xtext:Keyword" value="[/"/>
|
||||
</terminal>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:TerminalRule" name="LUA_CODE">
|
||||
<type metamodel="//@metamodelDeclarations.1">
|
||||
<classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Keyword" value="<<"/>
|
||||
<elements xsi:type="xtext:UntilToken">
|
||||
<terminal xsi:type="xtext:Keyword" value=">>"/>
|
||||
</elements>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:TerminalRule" name="IFHAVE">
|
||||
<type metamodel="//@metamodelDeclarations.1">
|
||||
<classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Keyword" value="#ifhave"/>
|
||||
<elements xsi:type="xtext:NegatedToken" cardinality="*">
|
||||
<terminal xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
</terminal>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Group" cardinality="?">
|
||||
<elements xsi:type="xtext:Keyword" cardinality="?" value="
"/>
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
</elements>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:TerminalRule" name="IFNHAVE">
|
||||
<type metamodel="//@metamodelDeclarations.1">
|
||||
<classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Keyword" value="#ifnhave"/>
|
||||
<elements xsi:type="xtext:NegatedToken" cardinality="*">
|
||||
<terminal xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
</terminal>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Group" cardinality="?">
|
||||
<elements xsi:type="xtext:Keyword" cardinality="?" value="
"/>
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
</elements>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:TerminalRule" name="IFDEF">
|
||||
<type metamodel="//@metamodelDeclarations.1">
|
||||
<classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Keyword" value="#ifdef"/>
|
||||
<elements xsi:type="xtext:NegatedToken" cardinality="*">
|
||||
<terminal xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
</terminal>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Group" cardinality="?">
|
||||
<elements xsi:type="xtext:Keyword" cardinality="?" value="
"/>
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
</elements>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:TerminalRule" name="IFNDEF">
|
||||
<type metamodel="//@metamodelDeclarations.1">
|
||||
<classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Keyword" value="#ifndef"/>
|
||||
<elements xsi:type="xtext:NegatedToken" cardinality="*">
|
||||
<terminal xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
</terminal>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Group" cardinality="?">
|
||||
<elements xsi:type="xtext:Keyword" cardinality="?" value="
"/>
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
</elements>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:TerminalRule" name="ELSE">
|
||||
<type metamodel="//@metamodelDeclarations.1">
|
||||
<classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Keyword" value="#else"/>
|
||||
<elements xsi:type="xtext:NegatedToken" cardinality="*">
|
||||
<terminal xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
</terminal>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Group" cardinality="?">
|
||||
<elements xsi:type="xtext:Keyword" cardinality="?" value="
"/>
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
</elements>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:TerminalRule" name="ENDIF">
|
||||
<type metamodel="//@metamodelDeclarations.1">
|
||||
<classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Keyword" value="#endif"/>
|
||||
<elements xsi:type="xtext:NegatedToken" cardinality="*">
|
||||
<terminal xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
</terminal>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Group" cardinality="?">
|
||||
<elements xsi:type="xtext:Keyword" cardinality="?" value="
"/>
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
</elements>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:TerminalRule" name="DEFINE">
|
||||
<type metamodel="//@metamodelDeclarations.1">
|
||||
<classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Keyword" value="#define"/>
|
||||
<elements xsi:type="xtext:NegatedToken" cardinality="*">
|
||||
<terminal xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
</terminal>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Group" cardinality="?">
|
||||
<elements xsi:type="xtext:Keyword" cardinality="?" value="
"/>
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
</elements>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:TerminalRule" name="ENDDEF">
|
||||
<type metamodel="//@metamodelDeclarations.1">
|
||||
<classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Keyword" value="#enddef"/>
|
||||
<elements xsi:type="xtext:NegatedToken" cardinality="*">
|
||||
<terminal xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
</terminal>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Group" cardinality="?">
|
||||
<elements xsi:type="xtext:Keyword" cardinality="?" value="
"/>
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
</elements>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:TerminalRule" name="TEXTDOMAIN">
|
||||
<type metamodel="//@metamodelDeclarations.1">
|
||||
<classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Keyword" value="#textdomain"/>
|
||||
<elements xsi:type="xtext:NegatedToken" cardinality="*">
|
||||
<terminal xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
</terminal>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Group" cardinality="?">
|
||||
<elements xsi:type="xtext:Keyword" cardinality="?" value="
"/>
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
</elements>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:TerminalRule" name="STRING">
|
||||
<type metamodel="//@metamodelDeclarations.1">
|
||||
<classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Keyword" value="""/>
|
||||
<elements xsi:type="xtext:Alternatives" cardinality="*">
|
||||
<elements xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Keyword" value="\"/>
|
||||
<elements xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:Keyword" value="b"/>
|
||||
<elements xsi:type="xtext:Keyword" value="t"/>
|
||||
<elements xsi:type="xtext:Keyword" value="n"/>
|
||||
<elements xsi:type="xtext:Keyword" value="f"/>
|
||||
<elements xsi:type="xtext:Keyword" value="r"/>
|
||||
<elements xsi:type="xtext:Keyword" value="""/>
|
||||
<elements xsi:type="xtext:Keyword" value="'"/>
|
||||
<elements xsi:type="xtext:Keyword" value="\"/>
|
||||
</elements>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:NegatedToken">
|
||||
<terminal xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:Keyword" value="\"/>
|
||||
<elements xsi:type="xtext:Keyword" value="""/>
|
||||
</terminal>
|
||||
</elements>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Keyword" value="""/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:TerminalRule" name="ID">
|
||||
<type metamodel="//@metamodelDeclarations.1">
|
||||
<classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Alternatives" cardinality="+">
|
||||
<elements xsi:type="xtext:CharacterRange">
|
||||
<left value="a"/>
|
||||
<right value="z"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:CharacterRange">
|
||||
<left value="A"/>
|
||||
<right value="Z"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:CharacterRange">
|
||||
<left value="0"/>
|
||||
<right value="9"/>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Keyword" value="_"/>
|
||||
<elements xsi:type="xtext:Keyword" value="-"/>
|
||||
<elements xsi:type="xtext:Keyword" value=","/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:TerminalRule" name="EOL">
|
||||
<type metamodel="//@metamodelDeclarations.1">
|
||||
<classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:TerminalRule" name="WS">
|
||||
<type metamodel="//@metamodelDeclarations.1">
|
||||
<classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Alternatives" cardinality="+">
|
||||
<elements xsi:type="xtext:Keyword" value=" "/>
|
||||
<elements xsi:type="xtext:Keyword" value="	"/>
|
||||
</alternatives>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:TerminalRule" name="ANY_OTHER">
|
||||
<type metamodel="//@metamodelDeclarations.1">
|
||||
<classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Wildcard"/>
|
||||
</rules>
|
||||
<rules xsi:type="xtext:TerminalRule" name="SL_COMMENT">
|
||||
<type metamodel="//@metamodelDeclarations.1">
|
||||
<classifier xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</type>
|
||||
<alternatives xsi:type="xtext:Group">
|
||||
<elements xsi:type="xtext:Keyword" value="#"/>
|
||||
<elements xsi:type="xtext:NegatedToken" cardinality="*">
|
||||
<terminal xsi:type="xtext:Alternatives">
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
</terminal>
|
||||
</elements>
|
||||
<elements xsi:type="xtext:Group" cardinality="?">
|
||||
<elements xsi:type="xtext:Keyword" cardinality="?" value="
"/>
|
||||
<elements xsi:type="xtext:Keyword" value="
"/>
|
||||
</elements>
|
||||
</alternatives>
|
||||
</rules>
|
||||
</xtext:Grammar>
|
|
@ -0,0 +1,52 @@
|
|||
|
||||
package org.wesnoth;
|
||||
|
||||
import org.eclipse.emf.ecore.EPackage;
|
||||
import org.eclipse.xtext.ISetup;
|
||||
import org.eclipse.emf.ecore.resource.Resource;
|
||||
|
||||
import com.google.inject.Guice;
|
||||
import com.google.inject.Injector;
|
||||
|
||||
/**
|
||||
* Generated from StandaloneSetup.xpt!
|
||||
*/
|
||||
@SuppressWarnings("all")
|
||||
public class WMLStandaloneSetupGenerated implements ISetup {
|
||||
|
||||
public Injector createInjectorAndDoEMFRegistration() {
|
||||
// register default ePackages
|
||||
if (!Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().containsKey("ecore"))
|
||||
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put(
|
||||
"ecore", new org.eclipse.emf.ecore.xmi.impl.EcoreResourceFactoryImpl());
|
||||
if (!Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().containsKey("xmi"))
|
||||
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put(
|
||||
"xmi", new org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl());
|
||||
if (!EPackage.Registry.INSTANCE.containsKey(org.eclipse.xtext.XtextPackage.eNS_URI))
|
||||
EPackage.Registry.INSTANCE.put(org.eclipse.xtext.XtextPackage.eNS_URI, org.eclipse.xtext.XtextPackage.eINSTANCE);
|
||||
|
||||
Injector injector = createInjector();
|
||||
register(injector);
|
||||
return injector;
|
||||
}
|
||||
|
||||
public Injector createInjector() {
|
||||
return Guice.createInjector(new org.wesnoth.WMLRuntimeModule());
|
||||
}
|
||||
|
||||
public void register(Injector injector) {
|
||||
if (!EPackage.Registry.INSTANCE.containsKey("http://www.wesnoth.org/WML")) {
|
||||
EPackage.Registry.INSTANCE.put("http://www.wesnoth.org/WML", org.wesnoth.wml.WmlPackage.eINSTANCE);
|
||||
}
|
||||
|
||||
org.eclipse.xtext.resource.IResourceFactory resourceFactory = injector.getInstance(org.eclipse.xtext.resource.IResourceFactory.class);
|
||||
org.eclipse.xtext.resource.IResourceServiceProvider serviceProvider = injector.getInstance(org.eclipse.xtext.resource.IResourceServiceProvider.class);
|
||||
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("cfg", resourceFactory);
|
||||
org.eclipse.xtext.resource.IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("cfg", serviceProvider);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.wesnoth.parser.antlr;
|
||||
|
||||
import java.io.InputStream;
|
||||
import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider;
|
||||
|
||||
public class WMLAntlrTokenFileProvider implements IAntlrTokenFileProvider {
|
||||
|
||||
public InputStream getAntlrTokenFile() {
|
||||
ClassLoader classLoader = getClass().getClassLoader();
|
||||
return classLoader.getResourceAsStream("org/wesnoth/parser/antlr/internal/InternalWML.tokens");
|
||||
}
|
||||
}
|
|
@ -0,0 +1,56 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
package org.wesnoth.parser.antlr;
|
||||
|
||||
import org.antlr.runtime.CharStream;
|
||||
import org.antlr.runtime.TokenSource;
|
||||
import org.eclipse.xtext.parser.IParseResult;
|
||||
import org.eclipse.xtext.parser.ParseException;
|
||||
import org.eclipse.xtext.parser.antlr.XtextTokenStream;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
|
||||
import org.wesnoth.services.WMLGrammarAccess;
|
||||
|
||||
public class WMLParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser {
|
||||
|
||||
@Inject
|
||||
private WMLGrammarAccess grammarAccess;
|
||||
|
||||
@Override
|
||||
protected IParseResult parse(String ruleName, CharStream in) {
|
||||
TokenSource tokenSource = createLexer(in);
|
||||
XtextTokenStream tokenStream = createTokenStream(tokenSource);
|
||||
tokenStream.setInitialHiddenTokens("RULE_EOL", "RULE_WS", "RULE_SL_COMMENT");
|
||||
org.wesnoth.parser.antlr.internal.InternalWMLParser parser = createParser(tokenStream);
|
||||
parser.setTokenTypeMap(getTokenDefProvider().getTokenDefMap());
|
||||
parser.setSyntaxErrorProvider(getSyntaxErrorProvider());
|
||||
parser.setUnorderedGroupHelper(getUnorderedGroupHelper().get());
|
||||
try {
|
||||
if(ruleName != null)
|
||||
return parser.parse(ruleName);
|
||||
return parser.parse();
|
||||
} catch (Exception re) {
|
||||
throw new ParseException(re.getMessage(),re);
|
||||
}
|
||||
}
|
||||
|
||||
protected org.wesnoth.parser.antlr.internal.InternalWMLParser createParser(XtextTokenStream stream) {
|
||||
return new org.wesnoth.parser.antlr.internal.InternalWMLParser(stream, getElementFactory(), getGrammarAccess());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getDefaultRuleName() {
|
||||
return "WMLRoot";
|
||||
}
|
||||
|
||||
public WMLGrammarAccess getGrammarAccess() {
|
||||
return this.grammarAccess;
|
||||
}
|
||||
|
||||
public void setGrammarAccess(WMLGrammarAccess grammarAccess) {
|
||||
this.grammarAccess = grammarAccess;
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,31 @@
|
|||
RULE_LUA_CODE=7
|
||||
RULE_ID=4
|
||||
RULE_IFDEF=10
|
||||
RULE_ANY_OTHER=18
|
||||
RULE_IFNDEF=11
|
||||
RULE_EOL=5
|
||||
RULE_TEXTDOMAIN=16
|
||||
RULE_IFNHAVE=13
|
||||
RULE_SL_COMMENT=6
|
||||
RULE_STRING=17
|
||||
RULE_ENDIF=15
|
||||
RULE_DEFINE=8
|
||||
RULE_ENDDEF=9
|
||||
RULE_IFHAVE=12
|
||||
RULE_WS=19
|
||||
RULE_ELSE=14
|
||||
'$'=31
|
||||
'}'=28
|
||||
'~'=27
|
||||
'/'=32
|
||||
'{'=25
|
||||
'='=24
|
||||
'('=33
|
||||
'['=20
|
||||
'[/'=23
|
||||
'+'=21
|
||||
'_'=29
|
||||
')'=34
|
||||
'.'=30
|
||||
']'=22
|
||||
'./'=26
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,74 @@
|
|||
lexer grammar InternalWML;
|
||||
@header {
|
||||
package org.wesnoth.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;
|
||||
}
|
||||
|
||||
T20 : '[' ;
|
||||
T21 : '+' ;
|
||||
T22 : ']' ;
|
||||
T23 : '[/' ;
|
||||
T24 : '=' ;
|
||||
T25 : '{' ;
|
||||
T26 : './' ;
|
||||
T27 : '~' ;
|
||||
T28 : '}' ;
|
||||
T29 : '_' ;
|
||||
T30 : '.' ;
|
||||
T31 : '$' ;
|
||||
T32 : '/' ;
|
||||
T33 : '(' ;
|
||||
T34 : ')' ;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1966
|
||||
RULE_LUA_CODE : '<<' ( options {greedy=false;} : . )*'>>';
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1968
|
||||
RULE_IFHAVE : '#ifhave' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1970
|
||||
RULE_IFNHAVE : '#ifnhave' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1972
|
||||
RULE_IFDEF : '#ifdef' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1974
|
||||
RULE_IFNDEF : '#ifndef' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1976
|
||||
RULE_ELSE : '#else' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1978
|
||||
RULE_ENDIF : '#endif' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1980
|
||||
RULE_DEFINE : '#define' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1982
|
||||
RULE_ENDDEF : '#enddef' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1984
|
||||
RULE_TEXTDOMAIN : '#textdomain' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1986
|
||||
RULE_STRING : '"' ('\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'\\')|~(('\\'|'"')))* '"';
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1988
|
||||
RULE_ID : ('a'..'z'|'A'..'Z'|'0'..'9'|'_'|'-'|',')+;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1990
|
||||
RULE_EOL : ('\r'|'\n');
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1992
|
||||
RULE_WS : (' '|'\t')+;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1994
|
||||
RULE_ANY_OTHER : .;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1996
|
||||
RULE_SL_COMMENT : '#' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
|
|
@ -0,0 +1,985 @@
|
|||
/*
|
||||
* generated by Xtext
|
||||
*/
|
||||
|
||||
package org.wesnoth.services;
|
||||
|
||||
import com.google.inject.Singleton;
|
||||
import com.google.inject.Inject;
|
||||
|
||||
import org.eclipse.xtext.*;
|
||||
import org.eclipse.xtext.service.GrammarProvider;
|
||||
import org.eclipse.xtext.service.AbstractElementFinder.*;
|
||||
|
||||
|
||||
@Singleton
|
||||
public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
||||
|
||||
|
||||
public class WMLRootElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLRoot");
|
||||
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
|
||||
private final Assignment cTagsAssignment_0 = (Assignment)cAlternatives.eContents().get(0);
|
||||
private final RuleCall cTagsWMLTagParserRuleCall_0_0 = (RuleCall)cTagsAssignment_0.eContents().get(0);
|
||||
private final Assignment cMacroCallsAssignment_1 = (Assignment)cAlternatives.eContents().get(1);
|
||||
private final RuleCall cMacroCallsWMLMacroCallParserRuleCall_1_0 = (RuleCall)cMacroCallsAssignment_1.eContents().get(0);
|
||||
private final Assignment cMacroDefinesAssignment_2 = (Assignment)cAlternatives.eContents().get(2);
|
||||
private final RuleCall cMacroDefinesWMLMacroDefineParserRuleCall_2_0 = (RuleCall)cMacroDefinesAssignment_2.eContents().get(0);
|
||||
private final Assignment cTextdomainsAssignment_3 = (Assignment)cAlternatives.eContents().get(3);
|
||||
private final RuleCall cTextdomainsWMLTextdomainParserRuleCall_3_0 = (RuleCall)cTextdomainsAssignment_3.eContents().get(0);
|
||||
private final Assignment cIfDefsAssignment_4 = (Assignment)cAlternatives.eContents().get(4);
|
||||
private final RuleCall cIfDefsWMLPreprocIFParserRuleCall_4_0 = (RuleCall)cIfDefsAssignment_4.eContents().get(0);
|
||||
|
||||
//WMLRoot:
|
||||
// (Tags+=WMLTag | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine | Textdomains+=WMLTextdomain |
|
||||
// IfDefs+=WMLPreprocIF)*;
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//(Tags+=WMLTag | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine | Textdomains+=WMLTextdomain |
|
||||
//IfDefs+=WMLPreprocIF)*
|
||||
public Alternatives getAlternatives() { return cAlternatives; }
|
||||
|
||||
//Tags+=WMLTag
|
||||
public Assignment getTagsAssignment_0() { return cTagsAssignment_0; }
|
||||
|
||||
//WMLTag
|
||||
public RuleCall getTagsWMLTagParserRuleCall_0_0() { return cTagsWMLTagParserRuleCall_0_0; }
|
||||
|
||||
//MacroCalls+=WMLMacroCall
|
||||
public Assignment getMacroCallsAssignment_1() { return cMacroCallsAssignment_1; }
|
||||
|
||||
//WMLMacroCall
|
||||
public RuleCall getMacroCallsWMLMacroCallParserRuleCall_1_0() { return cMacroCallsWMLMacroCallParserRuleCall_1_0; }
|
||||
|
||||
//MacroDefines+=WMLMacroDefine
|
||||
public Assignment getMacroDefinesAssignment_2() { return cMacroDefinesAssignment_2; }
|
||||
|
||||
//WMLMacroDefine
|
||||
public RuleCall getMacroDefinesWMLMacroDefineParserRuleCall_2_0() { return cMacroDefinesWMLMacroDefineParserRuleCall_2_0; }
|
||||
|
||||
//Textdomains+=WMLTextdomain
|
||||
public Assignment getTextdomainsAssignment_3() { return cTextdomainsAssignment_3; }
|
||||
|
||||
//WMLTextdomain
|
||||
public RuleCall getTextdomainsWMLTextdomainParserRuleCall_3_0() { return cTextdomainsWMLTextdomainParserRuleCall_3_0; }
|
||||
|
||||
//IfDefs+=WMLPreprocIF
|
||||
public Assignment getIfDefsAssignment_4() { return cIfDefsAssignment_4; }
|
||||
|
||||
//WMLPreprocIF
|
||||
public RuleCall getIfDefsWMLPreprocIFParserRuleCall_4_0() { return cIfDefsWMLPreprocIFParserRuleCall_4_0; }
|
||||
}
|
||||
|
||||
public class WMLTagElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLTag");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
private final Keyword cLeftSquareBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
||||
private final Assignment cPlusAssignment_1 = (Assignment)cGroup.eContents().get(1);
|
||||
private final Keyword cPlusPlusSignKeyword_1_0 = (Keyword)cPlusAssignment_1.eContents().get(0);
|
||||
private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
|
||||
private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
|
||||
private final Keyword cRightSquareBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
|
||||
private final Alternatives cAlternatives_4 = (Alternatives)cGroup.eContents().get(4);
|
||||
private final Assignment cTagsAssignment_4_0 = (Assignment)cAlternatives_4.eContents().get(0);
|
||||
private final RuleCall cTagsWMLTagParserRuleCall_4_0_0 = (RuleCall)cTagsAssignment_4_0.eContents().get(0);
|
||||
private final Assignment cKeysAssignment_4_1 = (Assignment)cAlternatives_4.eContents().get(1);
|
||||
private final RuleCall cKeysWMLKeyParserRuleCall_4_1_0 = (RuleCall)cKeysAssignment_4_1.eContents().get(0);
|
||||
private final Assignment cMacroCallsAssignment_4_2 = (Assignment)cAlternatives_4.eContents().get(2);
|
||||
private final RuleCall cMacroCallsWMLMacroCallParserRuleCall_4_2_0 = (RuleCall)cMacroCallsAssignment_4_2.eContents().get(0);
|
||||
private final Assignment cMacroDefinesAssignment_4_3 = (Assignment)cAlternatives_4.eContents().get(3);
|
||||
private final RuleCall cMacroDefinesWMLMacroDefineParserRuleCall_4_3_0 = (RuleCall)cMacroDefinesAssignment_4_3.eContents().get(0);
|
||||
private final Assignment cTextdomainsAssignment_4_4 = (Assignment)cAlternatives_4.eContents().get(4);
|
||||
private final RuleCall cTextdomainsWMLTextdomainParserRuleCall_4_4_0 = (RuleCall)cTextdomainsAssignment_4_4.eContents().get(0);
|
||||
private final Assignment cIfDefsAssignment_4_5 = (Assignment)cAlternatives_4.eContents().get(5);
|
||||
private final RuleCall cIfDefsWMLPreprocIFParserRuleCall_4_5_0 = (RuleCall)cIfDefsAssignment_4_5.eContents().get(0);
|
||||
private final Keyword cLeftSquareBracketSolidusKeyword_5 = (Keyword)cGroup.eContents().get(5);
|
||||
private final Assignment cEndNameAssignment_6 = (Assignment)cGroup.eContents().get(6);
|
||||
private final RuleCall cEndNameIDTerminalRuleCall_6_0 = (RuleCall)cEndNameAssignment_6.eContents().get(0);
|
||||
private final Keyword cRightSquareBracketKeyword_7 = (Keyword)cGroup.eContents().get(7);
|
||||
|
||||
//WMLTag:
|
||||
// "[" plus?="+"? name=ID "]" (Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine |
|
||||
// Textdomains+=WMLTextdomain | IfDefs+=WMLPreprocIF)* "[/" endName=ID "]";
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//"[" plus?="+"? name=ID "]" (Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine |
|
||||
//Textdomains+=WMLTextdomain | IfDefs+=WMLPreprocIF)* "[/" endName=ID "]"
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//"["
|
||||
public Keyword getLeftSquareBracketKeyword_0() { return cLeftSquareBracketKeyword_0; }
|
||||
|
||||
//plus?="+"?
|
||||
public Assignment getPlusAssignment_1() { return cPlusAssignment_1; }
|
||||
|
||||
//"+"
|
||||
public Keyword getPlusPlusSignKeyword_1_0() { return cPlusPlusSignKeyword_1_0; }
|
||||
|
||||
//name=ID
|
||||
public Assignment getNameAssignment_2() { return cNameAssignment_2; }
|
||||
|
||||
//ID
|
||||
public RuleCall getNameIDTerminalRuleCall_2_0() { return cNameIDTerminalRuleCall_2_0; }
|
||||
|
||||
//"]"
|
||||
public Keyword getRightSquareBracketKeyword_3() { return cRightSquareBracketKeyword_3; }
|
||||
|
||||
//(Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine | Textdomains+=WMLTextdomain |
|
||||
//IfDefs+=WMLPreprocIF)*
|
||||
public Alternatives getAlternatives_4() { return cAlternatives_4; }
|
||||
|
||||
//Tags+=WMLTag
|
||||
public Assignment getTagsAssignment_4_0() { return cTagsAssignment_4_0; }
|
||||
|
||||
//WMLTag
|
||||
public RuleCall getTagsWMLTagParserRuleCall_4_0_0() { return cTagsWMLTagParserRuleCall_4_0_0; }
|
||||
|
||||
//Keys+=WMLKey
|
||||
public Assignment getKeysAssignment_4_1() { return cKeysAssignment_4_1; }
|
||||
|
||||
//WMLKey
|
||||
public RuleCall getKeysWMLKeyParserRuleCall_4_1_0() { return cKeysWMLKeyParserRuleCall_4_1_0; }
|
||||
|
||||
//MacroCalls+=WMLMacroCall
|
||||
public Assignment getMacroCallsAssignment_4_2() { return cMacroCallsAssignment_4_2; }
|
||||
|
||||
//WMLMacroCall
|
||||
public RuleCall getMacroCallsWMLMacroCallParserRuleCall_4_2_0() { return cMacroCallsWMLMacroCallParserRuleCall_4_2_0; }
|
||||
|
||||
//MacroDefines+=WMLMacroDefine
|
||||
public Assignment getMacroDefinesAssignment_4_3() { return cMacroDefinesAssignment_4_3; }
|
||||
|
||||
//WMLMacroDefine
|
||||
public RuleCall getMacroDefinesWMLMacroDefineParserRuleCall_4_3_0() { return cMacroDefinesWMLMacroDefineParserRuleCall_4_3_0; }
|
||||
|
||||
//Textdomains+=WMLTextdomain
|
||||
public Assignment getTextdomainsAssignment_4_4() { return cTextdomainsAssignment_4_4; }
|
||||
|
||||
//WMLTextdomain
|
||||
public RuleCall getTextdomainsWMLTextdomainParserRuleCall_4_4_0() { return cTextdomainsWMLTextdomainParserRuleCall_4_4_0; }
|
||||
|
||||
//IfDefs+=WMLPreprocIF
|
||||
public Assignment getIfDefsAssignment_4_5() { return cIfDefsAssignment_4_5; }
|
||||
|
||||
//WMLPreprocIF
|
||||
public RuleCall getIfDefsWMLPreprocIFParserRuleCall_4_5_0() { return cIfDefsWMLPreprocIFParserRuleCall_4_5_0; }
|
||||
|
||||
//"[/"
|
||||
public Keyword getLeftSquareBracketSolidusKeyword_5() { return cLeftSquareBracketSolidusKeyword_5; }
|
||||
|
||||
//endName=ID
|
||||
public Assignment getEndNameAssignment_6() { return cEndNameAssignment_6; }
|
||||
|
||||
//ID
|
||||
public RuleCall getEndNameIDTerminalRuleCall_6_0() { return cEndNameIDTerminalRuleCall_6_0; }
|
||||
|
||||
//"]"
|
||||
public Keyword getRightSquareBracketKeyword_7() { return cRightSquareBracketKeyword_7; }
|
||||
}
|
||||
|
||||
public class WMLKeyElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLKey");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
|
||||
private final RuleCall cNameIDTerminalRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0);
|
||||
private final Keyword cEqualsSignKeyword_1 = (Keyword)cGroup.eContents().get(1);
|
||||
private final Assignment cValueAssignment_2 = (Assignment)cGroup.eContents().get(2);
|
||||
private final RuleCall cValueWMLKeyValueParserRuleCall_2_0 = (RuleCall)cValueAssignment_2.eContents().get(0);
|
||||
private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
|
||||
private final RuleCall cEOLTerminalRuleCall_3_0 = (RuleCall)cGroup_3.eContents().get(0);
|
||||
private final Keyword cPlusSignKeyword_3_1 = (Keyword)cGroup_3.eContents().get(1);
|
||||
private final RuleCall cEOLTerminalRuleCall_3_2 = (RuleCall)cGroup_3.eContents().get(2);
|
||||
private final Assignment cValueAssignment_3_3 = (Assignment)cGroup_3.eContents().get(3);
|
||||
private final RuleCall cValueWMLKeyValueParserRuleCall_3_3_0 = (RuleCall)cValueAssignment_3_3.eContents().get(0);
|
||||
private final Assignment cEolAssignment_4 = (Assignment)cGroup.eContents().get(4);
|
||||
private final Alternatives cEolAlternatives_4_0 = (Alternatives)cEolAssignment_4.eContents().get(0);
|
||||
private final RuleCall cEolEOLTerminalRuleCall_4_0_0 = (RuleCall)cEolAlternatives_4_0.eContents().get(0);
|
||||
private final RuleCall cEolSL_COMMENTTerminalRuleCall_4_0_1 = (RuleCall)cEolAlternatives_4_0.eContents().get(1);
|
||||
|
||||
//WMLKey hidden(WS):
|
||||
// name=ID "=" value+=WMLKeyValue* (EOL? "+" EOL? value+=WMLKeyValue+)* eol=(EOL | SL_COMMENT);
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//name=ID "=" value+=WMLKeyValue* (EOL? "+" EOL? value+=WMLKeyValue+)* eol=(EOL | SL_COMMENT)
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//name=ID
|
||||
public Assignment getNameAssignment_0() { return cNameAssignment_0; }
|
||||
|
||||
//ID
|
||||
public RuleCall getNameIDTerminalRuleCall_0_0() { return cNameIDTerminalRuleCall_0_0; }
|
||||
|
||||
//"="
|
||||
public Keyword getEqualsSignKeyword_1() { return cEqualsSignKeyword_1; }
|
||||
|
||||
//value+=WMLKeyValue*
|
||||
public Assignment getValueAssignment_2() { return cValueAssignment_2; }
|
||||
|
||||
//WMLKeyValue
|
||||
public RuleCall getValueWMLKeyValueParserRuleCall_2_0() { return cValueWMLKeyValueParserRuleCall_2_0; }
|
||||
|
||||
//(EOL? "+" EOL? value+=WMLKeyValue+)*
|
||||
public Group getGroup_3() { return cGroup_3; }
|
||||
|
||||
//EOL?
|
||||
public RuleCall getEOLTerminalRuleCall_3_0() { return cEOLTerminalRuleCall_3_0; }
|
||||
|
||||
//"+"
|
||||
public Keyword getPlusSignKeyword_3_1() { return cPlusSignKeyword_3_1; }
|
||||
|
||||
//EOL?
|
||||
public RuleCall getEOLTerminalRuleCall_3_2() { return cEOLTerminalRuleCall_3_2; }
|
||||
|
||||
//value+=WMLKeyValue+
|
||||
public Assignment getValueAssignment_3_3() { return cValueAssignment_3_3; }
|
||||
|
||||
//WMLKeyValue
|
||||
public RuleCall getValueWMLKeyValueParserRuleCall_3_3_0() { return cValueWMLKeyValueParserRuleCall_3_3_0; }
|
||||
|
||||
//eol=(EOL | SL_COMMENT)
|
||||
public Assignment getEolAssignment_4() { return cEolAssignment_4; }
|
||||
|
||||
//EOL | SL_COMMENT
|
||||
public Alternatives getEolAlternatives_4_0() { return cEolAlternatives_4_0; }
|
||||
|
||||
//EOL
|
||||
public RuleCall getEolEOLTerminalRuleCall_4_0_0() { return cEolEOLTerminalRuleCall_4_0_0; }
|
||||
|
||||
//SL_COMMENT
|
||||
public RuleCall getEolSL_COMMENTTerminalRuleCall_4_0_1() { return cEolSL_COMMENTTerminalRuleCall_4_0_1; }
|
||||
}
|
||||
|
||||
public class WMLKeyValueElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLKeyValue");
|
||||
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
|
||||
private final RuleCall cWMLValueParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
|
||||
private final RuleCall cWMLMacroCallParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
|
||||
private final RuleCall cWMLLuaCodeParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
|
||||
private final RuleCall cWMLArrayCallParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
|
||||
|
||||
//WMLKeyValue:
|
||||
// WMLValue | WMLMacroCall | WMLLuaCode | WMLArrayCall;
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//WMLValue | WMLMacroCall | WMLLuaCode | WMLArrayCall
|
||||
public Alternatives getAlternatives() { return cAlternatives; }
|
||||
|
||||
//WMLValue
|
||||
public RuleCall getWMLValueParserRuleCall_0() { return cWMLValueParserRuleCall_0; }
|
||||
|
||||
//WMLMacroCall
|
||||
public RuleCall getWMLMacroCallParserRuleCall_1() { return cWMLMacroCallParserRuleCall_1; }
|
||||
|
||||
//WMLLuaCode
|
||||
public RuleCall getWMLLuaCodeParserRuleCall_2() { return cWMLLuaCodeParserRuleCall_2; }
|
||||
|
||||
//WMLArrayCall
|
||||
public RuleCall getWMLArrayCallParserRuleCall_3() { return cWMLArrayCallParserRuleCall_3; }
|
||||
}
|
||||
|
||||
public class WMLMacroCallElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLMacroCall");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
||||
private final Assignment cPointAssignment_1 = (Assignment)cGroup.eContents().get(1);
|
||||
private final Keyword cPointFullStopSolidusKeyword_1_0 = (Keyword)cPointAssignment_1.eContents().get(0);
|
||||
private final Assignment cRelativeAssignment_2 = (Assignment)cGroup.eContents().get(2);
|
||||
private final Keyword cRelativeTildeKeyword_2_0 = (Keyword)cRelativeAssignment_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);
|
||||
private final Alternatives cAlternatives_4 = (Alternatives)cGroup.eContents().get(4);
|
||||
private final Assignment cParamsAssignment_4_0 = (Assignment)cAlternatives_4.eContents().get(0);
|
||||
private final Alternatives cParamsAlternatives_4_0_0 = (Alternatives)cParamsAssignment_4_0.eContents().get(0);
|
||||
private final RuleCall cParamsWMLValueParserRuleCall_4_0_0_0 = (RuleCall)cParamsAlternatives_4_0_0.eContents().get(0);
|
||||
private final RuleCall cParamsMacroTokensParserRuleCall_4_0_0_1 = (RuleCall)cParamsAlternatives_4_0_0.eContents().get(1);
|
||||
private final Assignment cExtraMacrosAssignment_4_1 = (Assignment)cAlternatives_4.eContents().get(1);
|
||||
private final RuleCall cExtraMacrosWMLMacroCallParserRuleCall_4_1_0 = (RuleCall)cExtraMacrosAssignment_4_1.eContents().get(0);
|
||||
private final Keyword cRightCurlyBracketKeyword_5 = (Keyword)cGroup.eContents().get(5);
|
||||
|
||||
//WMLMacroCall:
|
||||
// "{" point?="./"? relative?="~"? name=ID (params+=(WMLValue | MacroTokens) | extraMacros+=WMLMacroCall)* "}";
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//"{" point?="./"? relative?="~"? name=ID (params+=(WMLValue | MacroTokens) | extraMacros+=WMLMacroCall)* "}"
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//"{"
|
||||
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
|
||||
|
||||
//point?="./"?
|
||||
public Assignment getPointAssignment_1() { return cPointAssignment_1; }
|
||||
|
||||
//"./"
|
||||
public Keyword getPointFullStopSolidusKeyword_1_0() { return cPointFullStopSolidusKeyword_1_0; }
|
||||
|
||||
//relative?="~"?
|
||||
public Assignment getRelativeAssignment_2() { return cRelativeAssignment_2; }
|
||||
|
||||
//"~"
|
||||
public Keyword getRelativeTildeKeyword_2_0() { return cRelativeTildeKeyword_2_0; }
|
||||
|
||||
//name=ID
|
||||
public Assignment getNameAssignment_3() { return cNameAssignment_3; }
|
||||
|
||||
//ID
|
||||
public RuleCall getNameIDTerminalRuleCall_3_0() { return cNameIDTerminalRuleCall_3_0; }
|
||||
|
||||
//(params+=(WMLValue | MacroTokens) | extraMacros+=WMLMacroCall)*
|
||||
public Alternatives getAlternatives_4() { return cAlternatives_4; }
|
||||
|
||||
//params+=(WMLValue | MacroTokens)
|
||||
public Assignment getParamsAssignment_4_0() { return cParamsAssignment_4_0; }
|
||||
|
||||
//WMLValue | MacroTokens
|
||||
public Alternatives getParamsAlternatives_4_0_0() { return cParamsAlternatives_4_0_0; }
|
||||
|
||||
//WMLValue
|
||||
public RuleCall getParamsWMLValueParserRuleCall_4_0_0_0() { return cParamsWMLValueParserRuleCall_4_0_0_0; }
|
||||
|
||||
//MacroTokens
|
||||
public RuleCall getParamsMacroTokensParserRuleCall_4_0_0_1() { return cParamsMacroTokensParserRuleCall_4_0_0_1; }
|
||||
|
||||
//extraMacros+=WMLMacroCall
|
||||
public Assignment getExtraMacrosAssignment_4_1() { return cExtraMacrosAssignment_4_1; }
|
||||
|
||||
//WMLMacroCall
|
||||
public RuleCall getExtraMacrosWMLMacroCallParserRuleCall_4_1_0() { return cExtraMacrosWMLMacroCallParserRuleCall_4_1_0; }
|
||||
|
||||
//"}"
|
||||
public Keyword getRightCurlyBracketKeyword_5() { return cRightCurlyBracketKeyword_5; }
|
||||
}
|
||||
|
||||
public class WMLLuaCodeElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLLuaCode");
|
||||
private final Assignment cValueAssignment = (Assignment)rule.eContents().get(1);
|
||||
private final RuleCall cValueLUA_CODETerminalRuleCall_0 = (RuleCall)cValueAssignment.eContents().get(0);
|
||||
|
||||
//WMLLuaCode:
|
||||
// value=LUA_CODE;
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//value=LUA_CODE
|
||||
public Assignment getValueAssignment() { return cValueAssignment; }
|
||||
|
||||
//LUA_CODE
|
||||
public RuleCall getValueLUA_CODETerminalRuleCall_0() { return cValueLUA_CODETerminalRuleCall_0; }
|
||||
}
|
||||
|
||||
public class WMLArrayCallElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLArrayCall");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
private final Keyword cLeftSquareBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
|
||||
private final Assignment cValueAssignment_1 = (Assignment)cGroup.eContents().get(1);
|
||||
private final RuleCall cValueWMLValueParserRuleCall_1_0 = (RuleCall)cValueAssignment_1.eContents().get(0);
|
||||
private final Keyword cRightSquareBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
|
||||
|
||||
//WMLArrayCall:
|
||||
// "[" value+=WMLValue+ "]";
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//"[" value+=WMLValue+ "]"
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//"["
|
||||
public Keyword getLeftSquareBracketKeyword_0() { return cLeftSquareBracketKeyword_0; }
|
||||
|
||||
//value+=WMLValue+
|
||||
public Assignment getValueAssignment_1() { return cValueAssignment_1; }
|
||||
|
||||
//WMLValue
|
||||
public RuleCall getValueWMLValueParserRuleCall_1_0() { return cValueWMLValueParserRuleCall_1_0; }
|
||||
|
||||
//"]"
|
||||
public Keyword getRightSquareBracketKeyword_2() { return cRightSquareBracketKeyword_2; }
|
||||
}
|
||||
|
||||
public class WMLMacroDefineElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLMacroDefine");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
|
||||
private final RuleCall cNameDEFINETerminalRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0);
|
||||
private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
|
||||
private final Assignment cTagsAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
|
||||
private final RuleCall cTagsWMLTagParserRuleCall_1_0_0 = (RuleCall)cTagsAssignment_1_0.eContents().get(0);
|
||||
private final Assignment cKeysAssignment_1_1 = (Assignment)cAlternatives_1.eContents().get(1);
|
||||
private final RuleCall cKeysWMLKeyParserRuleCall_1_1_0 = (RuleCall)cKeysAssignment_1_1.eContents().get(0);
|
||||
private final Assignment cMacroCallsAssignment_1_2 = (Assignment)cAlternatives_1.eContents().get(2);
|
||||
private final RuleCall cMacroCallsWMLMacroCallParserRuleCall_1_2_0 = (RuleCall)cMacroCallsAssignment_1_2.eContents().get(0);
|
||||
private final Assignment cMacroDefinesAssignment_1_3 = (Assignment)cAlternatives_1.eContents().get(3);
|
||||
private final RuleCall cMacroDefinesWMLMacroDefineParserRuleCall_1_3_0 = (RuleCall)cMacroDefinesAssignment_1_3.eContents().get(0);
|
||||
private final Assignment cTextdomainsAssignment_1_4 = (Assignment)cAlternatives_1.eContents().get(4);
|
||||
private final RuleCall cTextdomainsWMLTextdomainParserRuleCall_1_4_0 = (RuleCall)cTextdomainsAssignment_1_4.eContents().get(0);
|
||||
private final Assignment cValuesAssignment_1_5 = (Assignment)cAlternatives_1.eContents().get(5);
|
||||
private final RuleCall cValuesWMLValueParserRuleCall_1_5_0 = (RuleCall)cValuesAssignment_1_5.eContents().get(0);
|
||||
private final Assignment cIfDefsAssignment_1_6 = (Assignment)cAlternatives_1.eContents().get(6);
|
||||
private final RuleCall cIfDefsWMLPreprocIFParserRuleCall_1_6_0 = (RuleCall)cIfDefsAssignment_1_6.eContents().get(0);
|
||||
private final Assignment cEndNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
|
||||
private final RuleCall cEndNameENDDEFTerminalRuleCall_2_0 = (RuleCall)cEndNameAssignment_2.eContents().get(0);
|
||||
|
||||
//WMLMacroDefine:
|
||||
// name=DEFINE (Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine |
|
||||
// Textdomains+=WMLTextdomain | Values+=WMLValue | IfDefs+=WMLPreprocIF)* endName=ENDDEF;
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//name=DEFINE (Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine |
|
||||
//Textdomains+=WMLTextdomain | Values+=WMLValue | IfDefs+=WMLPreprocIF)* endName=ENDDEF
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//name=DEFINE
|
||||
public Assignment getNameAssignment_0() { return cNameAssignment_0; }
|
||||
|
||||
//DEFINE
|
||||
public RuleCall getNameDEFINETerminalRuleCall_0_0() { return cNameDEFINETerminalRuleCall_0_0; }
|
||||
|
||||
//(Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine | Textdomains+=WMLTextdomain |
|
||||
//Values+=WMLValue | IfDefs+=WMLPreprocIF)*
|
||||
public Alternatives getAlternatives_1() { return cAlternatives_1; }
|
||||
|
||||
//Tags+=WMLTag
|
||||
public Assignment getTagsAssignment_1_0() { return cTagsAssignment_1_0; }
|
||||
|
||||
//WMLTag
|
||||
public RuleCall getTagsWMLTagParserRuleCall_1_0_0() { return cTagsWMLTagParserRuleCall_1_0_0; }
|
||||
|
||||
//Keys+=WMLKey
|
||||
public Assignment getKeysAssignment_1_1() { return cKeysAssignment_1_1; }
|
||||
|
||||
//WMLKey
|
||||
public RuleCall getKeysWMLKeyParserRuleCall_1_1_0() { return cKeysWMLKeyParserRuleCall_1_1_0; }
|
||||
|
||||
//MacroCalls+=WMLMacroCall
|
||||
public Assignment getMacroCallsAssignment_1_2() { return cMacroCallsAssignment_1_2; }
|
||||
|
||||
//WMLMacroCall
|
||||
public RuleCall getMacroCallsWMLMacroCallParserRuleCall_1_2_0() { return cMacroCallsWMLMacroCallParserRuleCall_1_2_0; }
|
||||
|
||||
//MacroDefines+=WMLMacroDefine
|
||||
public Assignment getMacroDefinesAssignment_1_3() { return cMacroDefinesAssignment_1_3; }
|
||||
|
||||
//WMLMacroDefine
|
||||
public RuleCall getMacroDefinesWMLMacroDefineParserRuleCall_1_3_0() { return cMacroDefinesWMLMacroDefineParserRuleCall_1_3_0; }
|
||||
|
||||
//Textdomains+=WMLTextdomain
|
||||
public Assignment getTextdomainsAssignment_1_4() { return cTextdomainsAssignment_1_4; }
|
||||
|
||||
//WMLTextdomain
|
||||
public RuleCall getTextdomainsWMLTextdomainParserRuleCall_1_4_0() { return cTextdomainsWMLTextdomainParserRuleCall_1_4_0; }
|
||||
|
||||
//Values+=WMLValue
|
||||
public Assignment getValuesAssignment_1_5() { return cValuesAssignment_1_5; }
|
||||
|
||||
//WMLValue
|
||||
public RuleCall getValuesWMLValueParserRuleCall_1_5_0() { return cValuesWMLValueParserRuleCall_1_5_0; }
|
||||
|
||||
//IfDefs+=WMLPreprocIF
|
||||
public Assignment getIfDefsAssignment_1_6() { return cIfDefsAssignment_1_6; }
|
||||
|
||||
//WMLPreprocIF
|
||||
public RuleCall getIfDefsWMLPreprocIFParserRuleCall_1_6_0() { return cIfDefsWMLPreprocIFParserRuleCall_1_6_0; }
|
||||
|
||||
//endName=ENDDEF
|
||||
public Assignment getEndNameAssignment_2() { return cEndNameAssignment_2; }
|
||||
|
||||
//ENDDEF
|
||||
public RuleCall getEndNameENDDEFTerminalRuleCall_2_0() { return cEndNameENDDEFTerminalRuleCall_2_0; }
|
||||
}
|
||||
|
||||
public class WMLPreprocIFElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLPreprocIF");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
|
||||
private final Alternatives cNameAlternatives_0_0 = (Alternatives)cNameAssignment_0.eContents().get(0);
|
||||
private final RuleCall cNameIFDEFTerminalRuleCall_0_0_0 = (RuleCall)cNameAlternatives_0_0.eContents().get(0);
|
||||
private final RuleCall cNameIFNDEFTerminalRuleCall_0_0_1 = (RuleCall)cNameAlternatives_0_0.eContents().get(1);
|
||||
private final RuleCall cNameIFHAVETerminalRuleCall_0_0_2 = (RuleCall)cNameAlternatives_0_0.eContents().get(2);
|
||||
private final RuleCall cNameIFNHAVETerminalRuleCall_0_0_3 = (RuleCall)cNameAlternatives_0_0.eContents().get(3);
|
||||
private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
|
||||
private final Assignment cTagsAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
|
||||
private final RuleCall cTagsWMLTagParserRuleCall_1_0_0 = (RuleCall)cTagsAssignment_1_0.eContents().get(0);
|
||||
private final Assignment cKeysAssignment_1_1 = (Assignment)cAlternatives_1.eContents().get(1);
|
||||
private final RuleCall cKeysWMLKeyParserRuleCall_1_1_0 = (RuleCall)cKeysAssignment_1_1.eContents().get(0);
|
||||
private final Assignment cMacroCallsAssignment_1_2 = (Assignment)cAlternatives_1.eContents().get(2);
|
||||
private final RuleCall cMacroCallsWMLMacroCallParserRuleCall_1_2_0 = (RuleCall)cMacroCallsAssignment_1_2.eContents().get(0);
|
||||
private final Assignment cMacroDefinesAssignment_1_3 = (Assignment)cAlternatives_1.eContents().get(3);
|
||||
private final RuleCall cMacroDefinesWMLMacroDefineParserRuleCall_1_3_0 = (RuleCall)cMacroDefinesAssignment_1_3.eContents().get(0);
|
||||
private final Assignment cTextdomainsAssignment_1_4 = (Assignment)cAlternatives_1.eContents().get(4);
|
||||
private final RuleCall cTextdomainsWMLTextdomainParserRuleCall_1_4_0 = (RuleCall)cTextdomainsAssignment_1_4.eContents().get(0);
|
||||
private final Assignment cValuesAssignment_1_5 = (Assignment)cAlternatives_1.eContents().get(5);
|
||||
private final RuleCall cValuesWMLValueParserRuleCall_1_5_0 = (RuleCall)cValuesAssignment_1_5.eContents().get(0);
|
||||
private final Assignment cIfDefsAssignment_1_6 = (Assignment)cAlternatives_1.eContents().get(6);
|
||||
private final RuleCall cIfDefsWMLPreprocIFParserRuleCall_1_6_0 = (RuleCall)cIfDefsAssignment_1_6.eContents().get(0);
|
||||
private final Assignment cElsesAssignment_1_7 = (Assignment)cAlternatives_1.eContents().get(7);
|
||||
private final RuleCall cElsesELSETerminalRuleCall_1_7_0 = (RuleCall)cElsesAssignment_1_7.eContents().get(0);
|
||||
private final Assignment cEndNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
|
||||
private final RuleCall cEndNameENDIFTerminalRuleCall_2_0 = (RuleCall)cEndNameAssignment_2.eContents().get(0);
|
||||
|
||||
//WMLPreprocIF:
|
||||
// name=(IFDEF | IFNDEF | IFHAVE | IFNHAVE) (Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall |
|
||||
// MacroDefines+=WMLMacroDefine | Textdomains+=WMLTextdomain | Values+=WMLValue | IfDefs+=WMLPreprocIF | Elses+=ELSE)*
|
||||
// endName=ENDIF;
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//name=(IFDEF | IFNDEF | IFHAVE | IFNHAVE) (Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall |
|
||||
//MacroDefines+=WMLMacroDefine | Textdomains+=WMLTextdomain | Values+=WMLValue | IfDefs+=WMLPreprocIF | Elses+=ELSE)*
|
||||
//endName=ENDIF
|
||||
public Group getGroup() { return cGroup; }
|
||||
|
||||
//name=(IFDEF | IFNDEF | IFHAVE | IFNHAVE)
|
||||
public Assignment getNameAssignment_0() { return cNameAssignment_0; }
|
||||
|
||||
//IFDEF | IFNDEF | IFHAVE | IFNHAVE
|
||||
public Alternatives getNameAlternatives_0_0() { return cNameAlternatives_0_0; }
|
||||
|
||||
//IFDEF
|
||||
public RuleCall getNameIFDEFTerminalRuleCall_0_0_0() { return cNameIFDEFTerminalRuleCall_0_0_0; }
|
||||
|
||||
//IFNDEF
|
||||
public RuleCall getNameIFNDEFTerminalRuleCall_0_0_1() { return cNameIFNDEFTerminalRuleCall_0_0_1; }
|
||||
|
||||
//IFHAVE
|
||||
public RuleCall getNameIFHAVETerminalRuleCall_0_0_2() { return cNameIFHAVETerminalRuleCall_0_0_2; }
|
||||
|
||||
//IFNHAVE
|
||||
public RuleCall getNameIFNHAVETerminalRuleCall_0_0_3() { return cNameIFNHAVETerminalRuleCall_0_0_3; }
|
||||
|
||||
//(Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine | Textdomains+=WMLTextdomain |
|
||||
//Values+=WMLValue | IfDefs+=WMLPreprocIF | Elses+=ELSE)*
|
||||
public Alternatives getAlternatives_1() { return cAlternatives_1; }
|
||||
|
||||
//Tags+=WMLTag
|
||||
public Assignment getTagsAssignment_1_0() { return cTagsAssignment_1_0; }
|
||||
|
||||
//WMLTag
|
||||
public RuleCall getTagsWMLTagParserRuleCall_1_0_0() { return cTagsWMLTagParserRuleCall_1_0_0; }
|
||||
|
||||
//Keys+=WMLKey
|
||||
public Assignment getKeysAssignment_1_1() { return cKeysAssignment_1_1; }
|
||||
|
||||
//WMLKey
|
||||
public RuleCall getKeysWMLKeyParserRuleCall_1_1_0() { return cKeysWMLKeyParserRuleCall_1_1_0; }
|
||||
|
||||
//MacroCalls+=WMLMacroCall
|
||||
public Assignment getMacroCallsAssignment_1_2() { return cMacroCallsAssignment_1_2; }
|
||||
|
||||
//WMLMacroCall
|
||||
public RuleCall getMacroCallsWMLMacroCallParserRuleCall_1_2_0() { return cMacroCallsWMLMacroCallParserRuleCall_1_2_0; }
|
||||
|
||||
//MacroDefines+=WMLMacroDefine
|
||||
public Assignment getMacroDefinesAssignment_1_3() { return cMacroDefinesAssignment_1_3; }
|
||||
|
||||
//WMLMacroDefine
|
||||
public RuleCall getMacroDefinesWMLMacroDefineParserRuleCall_1_3_0() { return cMacroDefinesWMLMacroDefineParserRuleCall_1_3_0; }
|
||||
|
||||
//Textdomains+=WMLTextdomain
|
||||
public Assignment getTextdomainsAssignment_1_4() { return cTextdomainsAssignment_1_4; }
|
||||
|
||||
//WMLTextdomain
|
||||
public RuleCall getTextdomainsWMLTextdomainParserRuleCall_1_4_0() { return cTextdomainsWMLTextdomainParserRuleCall_1_4_0; }
|
||||
|
||||
//Values+=WMLValue
|
||||
public Assignment getValuesAssignment_1_5() { return cValuesAssignment_1_5; }
|
||||
|
||||
//WMLValue
|
||||
public RuleCall getValuesWMLValueParserRuleCall_1_5_0() { return cValuesWMLValueParserRuleCall_1_5_0; }
|
||||
|
||||
//IfDefs+=WMLPreprocIF
|
||||
public Assignment getIfDefsAssignment_1_6() { return cIfDefsAssignment_1_6; }
|
||||
|
||||
//WMLPreprocIF
|
||||
public RuleCall getIfDefsWMLPreprocIFParserRuleCall_1_6_0() { return cIfDefsWMLPreprocIFParserRuleCall_1_6_0; }
|
||||
|
||||
//Elses+=ELSE
|
||||
public Assignment getElsesAssignment_1_7() { return cElsesAssignment_1_7; }
|
||||
|
||||
//ELSE
|
||||
public RuleCall getElsesELSETerminalRuleCall_1_7_0() { return cElsesELSETerminalRuleCall_1_7_0; }
|
||||
|
||||
//endName=ENDIF
|
||||
public Assignment getEndNameAssignment_2() { return cEndNameAssignment_2; }
|
||||
|
||||
//ENDIF
|
||||
public RuleCall getEndNameENDIFTerminalRuleCall_2_0() { return cEndNameENDIFTerminalRuleCall_2_0; }
|
||||
}
|
||||
|
||||
public class WMLTextdomainElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLTextdomain");
|
||||
private final Assignment cNameAssignment = (Assignment)rule.eContents().get(1);
|
||||
private final RuleCall cNameTEXTDOMAINTerminalRuleCall_0 = (RuleCall)cNameAssignment.eContents().get(0);
|
||||
|
||||
//WMLTextdomain:
|
||||
// name=TEXTDOMAIN;
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//name=TEXTDOMAIN
|
||||
public Assignment getNameAssignment() { return cNameAssignment; }
|
||||
|
||||
//TEXTDOMAIN
|
||||
public RuleCall getNameTEXTDOMAINTerminalRuleCall_0() { return cNameTEXTDOMAINTerminalRuleCall_0; }
|
||||
}
|
||||
|
||||
public class WMLValueElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WMLValue");
|
||||
private final Assignment cValueAssignment = (Assignment)rule.eContents().get(1);
|
||||
private final Alternatives cValueAlternatives_0 = (Alternatives)cValueAssignment.eContents().get(0);
|
||||
private final RuleCall cValueIDTerminalRuleCall_0_0 = (RuleCall)cValueAlternatives_0.eContents().get(0);
|
||||
private final RuleCall cValueSTRINGTerminalRuleCall_0_1 = (RuleCall)cValueAlternatives_0.eContents().get(1);
|
||||
private final Keyword cValue_Keyword_0_2 = (Keyword)cValueAlternatives_0.eContents().get(2);
|
||||
private final Keyword cValueTildeKeyword_0_3 = (Keyword)cValueAlternatives_0.eContents().get(3);
|
||||
private final Keyword cValueFullStopKeyword_0_4 = (Keyword)cValueAlternatives_0.eContents().get(4);
|
||||
private final Keyword cValueFullStopSolidusKeyword_0_5 = (Keyword)cValueAlternatives_0.eContents().get(5);
|
||||
private final Keyword cValueDollarSignKeyword_0_6 = (Keyword)cValueAlternatives_0.eContents().get(6);
|
||||
private final Keyword cValueSolidusKeyword_0_7 = (Keyword)cValueAlternatives_0.eContents().get(7);
|
||||
private final Keyword cValueLeftParenthesisKeyword_0_8 = (Keyword)cValueAlternatives_0.eContents().get(8);
|
||||
private final Keyword cValueRightParenthesisKeyword_0_9 = (Keyword)cValueAlternatives_0.eContents().get(9);
|
||||
private final RuleCall cValueANY_OTHERTerminalRuleCall_0_10 = (RuleCall)cValueAlternatives_0.eContents().get(10);
|
||||
|
||||
//WMLValue:
|
||||
// value=(ID | STRING | "_" | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER);
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//value=(ID | STRING | "_" | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER)
|
||||
public Assignment getValueAssignment() { return cValueAssignment; }
|
||||
|
||||
//ID | STRING | "_" | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER
|
||||
public Alternatives getValueAlternatives_0() { return cValueAlternatives_0; }
|
||||
|
||||
//ID
|
||||
public RuleCall getValueIDTerminalRuleCall_0_0() { return cValueIDTerminalRuleCall_0_0; }
|
||||
|
||||
//STRING
|
||||
public RuleCall getValueSTRINGTerminalRuleCall_0_1() { return cValueSTRINGTerminalRuleCall_0_1; }
|
||||
|
||||
//"_"
|
||||
public Keyword getValue_Keyword_0_2() { return cValue_Keyword_0_2; }
|
||||
|
||||
//"~"
|
||||
public Keyword getValueTildeKeyword_0_3() { return cValueTildeKeyword_0_3; }
|
||||
|
||||
//"."
|
||||
public Keyword getValueFullStopKeyword_0_4() { return cValueFullStopKeyword_0_4; }
|
||||
|
||||
//"./"
|
||||
public Keyword getValueFullStopSolidusKeyword_0_5() { return cValueFullStopSolidusKeyword_0_5; }
|
||||
|
||||
//"$"
|
||||
public Keyword getValueDollarSignKeyword_0_6() { return cValueDollarSignKeyword_0_6; }
|
||||
|
||||
//"/"
|
||||
public Keyword getValueSolidusKeyword_0_7() { return cValueSolidusKeyword_0_7; }
|
||||
|
||||
//"("
|
||||
public Keyword getValueLeftParenthesisKeyword_0_8() { return cValueLeftParenthesisKeyword_0_8; }
|
||||
|
||||
//")"
|
||||
public Keyword getValueRightParenthesisKeyword_0_9() { return cValueRightParenthesisKeyword_0_9; }
|
||||
|
||||
//ANY_OTHER
|
||||
public RuleCall getValueANY_OTHERTerminalRuleCall_0_10() { return cValueANY_OTHERTerminalRuleCall_0_10; }
|
||||
}
|
||||
|
||||
public class MacroTokensElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "MacroTokens");
|
||||
private final Assignment cValAssignment = (Assignment)rule.eContents().get(1);
|
||||
private final Alternatives cValAlternatives_0 = (Alternatives)cValAssignment.eContents().get(0);
|
||||
private final Keyword cValEqualsSignKeyword_0_0 = (Keyword)cValAlternatives_0.eContents().get(0);
|
||||
private final Keyword cValLeftSquareBracketKeyword_0_1 = (Keyword)cValAlternatives_0.eContents().get(1);
|
||||
private final Keyword cValRightSquareBracketKeyword_0_2 = (Keyword)cValAlternatives_0.eContents().get(2);
|
||||
private final Keyword cValPlusSignKeyword_0_3 = (Keyword)cValAlternatives_0.eContents().get(3);
|
||||
private final Keyword cValLeftSquareBracketSolidusKeyword_0_4 = (Keyword)cValAlternatives_0.eContents().get(4);
|
||||
|
||||
//// we use this as a hack for any characters in the macro call
|
||||
//// so we won't trigger things like: key=value or [tag]
|
||||
//MacroTokens:
|
||||
// val=("=" | "[" | "]" | "+" | "[/");
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//val=("=" | "[" | "]" | "+" | "[/")
|
||||
public Assignment getValAssignment() { return cValAssignment; }
|
||||
|
||||
//"=" | "[" | "]" | "+" | "[/"
|
||||
public Alternatives getValAlternatives_0() { return cValAlternatives_0; }
|
||||
|
||||
//"="
|
||||
public Keyword getValEqualsSignKeyword_0_0() { return cValEqualsSignKeyword_0_0; }
|
||||
|
||||
//"["
|
||||
public Keyword getValLeftSquareBracketKeyword_0_1() { return cValLeftSquareBracketKeyword_0_1; }
|
||||
|
||||
//"]"
|
||||
public Keyword getValRightSquareBracketKeyword_0_2() { return cValRightSquareBracketKeyword_0_2; }
|
||||
|
||||
//"+"
|
||||
public Keyword getValPlusSignKeyword_0_3() { return cValPlusSignKeyword_0_3; }
|
||||
|
||||
//"[/"
|
||||
public Keyword getValLeftSquareBracketSolidusKeyword_0_4() { return cValLeftSquareBracketSolidusKeyword_0_4; }
|
||||
}
|
||||
|
||||
|
||||
private WMLRootElements pWMLRoot;
|
||||
private WMLTagElements pWMLTag;
|
||||
private WMLKeyElements pWMLKey;
|
||||
private WMLKeyValueElements pWMLKeyValue;
|
||||
private WMLMacroCallElements pWMLMacroCall;
|
||||
private WMLLuaCodeElements pWMLLuaCode;
|
||||
private WMLArrayCallElements pWMLArrayCall;
|
||||
private WMLMacroDefineElements pWMLMacroDefine;
|
||||
private WMLPreprocIFElements pWMLPreprocIF;
|
||||
private WMLTextdomainElements pWMLTextdomain;
|
||||
private WMLValueElements pWMLValue;
|
||||
private MacroTokensElements pMacroTokens;
|
||||
private TerminalRule tLUA_CODE;
|
||||
private TerminalRule tIFHAVE;
|
||||
private TerminalRule tIFNHAVE;
|
||||
private TerminalRule tIFDEF;
|
||||
private TerminalRule tIFNDEF;
|
||||
private TerminalRule tELSE;
|
||||
private TerminalRule tENDIF;
|
||||
private TerminalRule tDEFINE;
|
||||
private TerminalRule tENDDEF;
|
||||
private TerminalRule tTEXTDOMAIN;
|
||||
private TerminalRule tSTRING;
|
||||
private TerminalRule tID;
|
||||
private TerminalRule tEOL;
|
||||
private TerminalRule tWS;
|
||||
private TerminalRule tANY_OTHER;
|
||||
private TerminalRule tSL_COMMENT;
|
||||
|
||||
private final GrammarProvider grammarProvider;
|
||||
|
||||
@Inject
|
||||
public WMLGrammarAccess(GrammarProvider grammarProvider) {
|
||||
this.grammarProvider = grammarProvider;
|
||||
}
|
||||
|
||||
public Grammar getGrammar() {
|
||||
return grammarProvider.getGrammar(this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//WMLRoot:
|
||||
// (Tags+=WMLTag | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine | Textdomains+=WMLTextdomain |
|
||||
// IfDefs+=WMLPreprocIF)*;
|
||||
public WMLRootElements getWMLRootAccess() {
|
||||
return (pWMLRoot != null) ? pWMLRoot : (pWMLRoot = new WMLRootElements());
|
||||
}
|
||||
|
||||
public ParserRule getWMLRootRule() {
|
||||
return getWMLRootAccess().getRule();
|
||||
}
|
||||
|
||||
//WMLTag:
|
||||
// "[" plus?="+"? name=ID "]" (Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine |
|
||||
// Textdomains+=WMLTextdomain | IfDefs+=WMLPreprocIF)* "[/" endName=ID "]";
|
||||
public WMLTagElements getWMLTagAccess() {
|
||||
return (pWMLTag != null) ? pWMLTag : (pWMLTag = new WMLTagElements());
|
||||
}
|
||||
|
||||
public ParserRule getWMLTagRule() {
|
||||
return getWMLTagAccess().getRule();
|
||||
}
|
||||
|
||||
//WMLKey hidden(WS):
|
||||
// name=ID "=" value+=WMLKeyValue* (EOL? "+" EOL? value+=WMLKeyValue+)* eol=(EOL | SL_COMMENT);
|
||||
public WMLKeyElements getWMLKeyAccess() {
|
||||
return (pWMLKey != null) ? pWMLKey : (pWMLKey = new WMLKeyElements());
|
||||
}
|
||||
|
||||
public ParserRule getWMLKeyRule() {
|
||||
return getWMLKeyAccess().getRule();
|
||||
}
|
||||
|
||||
//WMLKeyValue:
|
||||
// WMLValue | WMLMacroCall | WMLLuaCode | WMLArrayCall;
|
||||
public WMLKeyValueElements getWMLKeyValueAccess() {
|
||||
return (pWMLKeyValue != null) ? pWMLKeyValue : (pWMLKeyValue = new WMLKeyValueElements());
|
||||
}
|
||||
|
||||
public ParserRule getWMLKeyValueRule() {
|
||||
return getWMLKeyValueAccess().getRule();
|
||||
}
|
||||
|
||||
//WMLMacroCall:
|
||||
// "{" point?="./"? relative?="~"? name=ID (params+=(WMLValue | MacroTokens) | extraMacros+=WMLMacroCall)* "}";
|
||||
public WMLMacroCallElements getWMLMacroCallAccess() {
|
||||
return (pWMLMacroCall != null) ? pWMLMacroCall : (pWMLMacroCall = new WMLMacroCallElements());
|
||||
}
|
||||
|
||||
public ParserRule getWMLMacroCallRule() {
|
||||
return getWMLMacroCallAccess().getRule();
|
||||
}
|
||||
|
||||
//WMLLuaCode:
|
||||
// value=LUA_CODE;
|
||||
public WMLLuaCodeElements getWMLLuaCodeAccess() {
|
||||
return (pWMLLuaCode != null) ? pWMLLuaCode : (pWMLLuaCode = new WMLLuaCodeElements());
|
||||
}
|
||||
|
||||
public ParserRule getWMLLuaCodeRule() {
|
||||
return getWMLLuaCodeAccess().getRule();
|
||||
}
|
||||
|
||||
//WMLArrayCall:
|
||||
// "[" value+=WMLValue+ "]";
|
||||
public WMLArrayCallElements getWMLArrayCallAccess() {
|
||||
return (pWMLArrayCall != null) ? pWMLArrayCall : (pWMLArrayCall = new WMLArrayCallElements());
|
||||
}
|
||||
|
||||
public ParserRule getWMLArrayCallRule() {
|
||||
return getWMLArrayCallAccess().getRule();
|
||||
}
|
||||
|
||||
//WMLMacroDefine:
|
||||
// name=DEFINE (Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall | MacroDefines+=WMLMacroDefine |
|
||||
// Textdomains+=WMLTextdomain | Values+=WMLValue | IfDefs+=WMLPreprocIF)* endName=ENDDEF;
|
||||
public WMLMacroDefineElements getWMLMacroDefineAccess() {
|
||||
return (pWMLMacroDefine != null) ? pWMLMacroDefine : (pWMLMacroDefine = new WMLMacroDefineElements());
|
||||
}
|
||||
|
||||
public ParserRule getWMLMacroDefineRule() {
|
||||
return getWMLMacroDefineAccess().getRule();
|
||||
}
|
||||
|
||||
//WMLPreprocIF:
|
||||
// name=(IFDEF | IFNDEF | IFHAVE | IFNHAVE) (Tags+=WMLTag | Keys+=WMLKey | MacroCalls+=WMLMacroCall |
|
||||
// MacroDefines+=WMLMacroDefine | Textdomains+=WMLTextdomain | Values+=WMLValue | IfDefs+=WMLPreprocIF | Elses+=ELSE)*
|
||||
// endName=ENDIF;
|
||||
public WMLPreprocIFElements getWMLPreprocIFAccess() {
|
||||
return (pWMLPreprocIF != null) ? pWMLPreprocIF : (pWMLPreprocIF = new WMLPreprocIFElements());
|
||||
}
|
||||
|
||||
public ParserRule getWMLPreprocIFRule() {
|
||||
return getWMLPreprocIFAccess().getRule();
|
||||
}
|
||||
|
||||
//WMLTextdomain:
|
||||
// name=TEXTDOMAIN;
|
||||
public WMLTextdomainElements getWMLTextdomainAccess() {
|
||||
return (pWMLTextdomain != null) ? pWMLTextdomain : (pWMLTextdomain = new WMLTextdomainElements());
|
||||
}
|
||||
|
||||
public ParserRule getWMLTextdomainRule() {
|
||||
return getWMLTextdomainAccess().getRule();
|
||||
}
|
||||
|
||||
//WMLValue:
|
||||
// value=(ID | STRING | "_" | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER);
|
||||
public WMLValueElements getWMLValueAccess() {
|
||||
return (pWMLValue != null) ? pWMLValue : (pWMLValue = new WMLValueElements());
|
||||
}
|
||||
|
||||
public ParserRule getWMLValueRule() {
|
||||
return getWMLValueAccess().getRule();
|
||||
}
|
||||
|
||||
//// we use this as a hack for any characters in the macro call
|
||||
//// so we won't trigger things like: key=value or [tag]
|
||||
//MacroTokens:
|
||||
// val=("=" | "[" | "]" | "+" | "[/");
|
||||
public MacroTokensElements getMacroTokensAccess() {
|
||||
return (pMacroTokens != null) ? pMacroTokens : (pMacroTokens = new MacroTokensElements());
|
||||
}
|
||||
|
||||
public ParserRule getMacroTokensRule() {
|
||||
return getMacroTokensAccess().getRule();
|
||||
}
|
||||
|
||||
//terminal LUA_CODE:
|
||||
// "<<"->">>";
|
||||
public TerminalRule getLUA_CODERule() {
|
||||
return (tLUA_CODE != null) ? tLUA_CODE : (tLUA_CODE = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "LUA_CODE"));
|
||||
}
|
||||
|
||||
//// Preprocessor terminals
|
||||
//terminal IFHAVE:
|
||||
// "#ifhave" !("\n" | "\r")* ("\r"? "\n")?;
|
||||
public TerminalRule getIFHAVERule() {
|
||||
return (tIFHAVE != null) ? tIFHAVE : (tIFHAVE = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "IFHAVE"));
|
||||
}
|
||||
|
||||
//terminal IFNHAVE:
|
||||
// "#ifnhave" !("\n" | "\r")* ("\r"? "\n")?;
|
||||
public TerminalRule getIFNHAVERule() {
|
||||
return (tIFNHAVE != null) ? tIFNHAVE : (tIFNHAVE = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "IFNHAVE"));
|
||||
}
|
||||
|
||||
//terminal IFDEF:
|
||||
// "#ifdef" !("\n" | "\r")* ("\r"? "\n")?;
|
||||
public TerminalRule getIFDEFRule() {
|
||||
return (tIFDEF != null) ? tIFDEF : (tIFDEF = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "IFDEF"));
|
||||
}
|
||||
|
||||
//terminal IFNDEF:
|
||||
// "#ifndef" !("\n" | "\r")* ("\r"? "\n")?;
|
||||
public TerminalRule getIFNDEFRule() {
|
||||
return (tIFNDEF != null) ? tIFNDEF : (tIFNDEF = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "IFNDEF"));
|
||||
}
|
||||
|
||||
//terminal ELSE:
|
||||
// "#else" !("\n" | "\r")* ("\r"? "\n")?;
|
||||
public TerminalRule getELSERule() {
|
||||
return (tELSE != null) ? tELSE : (tELSE = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "ELSE"));
|
||||
}
|
||||
|
||||
//terminal ENDIF:
|
||||
// "#endif" !("\n" | "\r")* ("\r"? "\n")?;
|
||||
public TerminalRule getENDIFRule() {
|
||||
return (tENDIF != null) ? tENDIF : (tENDIF = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "ENDIF"));
|
||||
}
|
||||
|
||||
//terminal DEFINE:
|
||||
// "#define" !("\n" | "\r")* ("\r"? "\n")?;
|
||||
public TerminalRule getDEFINERule() {
|
||||
return (tDEFINE != null) ? tDEFINE : (tDEFINE = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "DEFINE"));
|
||||
}
|
||||
|
||||
//terminal ENDDEF:
|
||||
// "#enddef" !("\n" | "\r")* ("\r"? "\n")?;
|
||||
public TerminalRule getENDDEFRule() {
|
||||
return (tENDDEF != null) ? tENDDEF : (tENDDEF = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "ENDDEF"));
|
||||
}
|
||||
|
||||
//terminal TEXTDOMAIN:
|
||||
// "#textdomain" !("\n" | "\r")* ("\r"? "\n")?;
|
||||
public TerminalRule getTEXTDOMAINRule() {
|
||||
return (tTEXTDOMAIN != null) ? tTEXTDOMAIN : (tTEXTDOMAIN = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "TEXTDOMAIN"));
|
||||
}
|
||||
|
||||
//// end preprocessor terminals
|
||||
//terminal STRING:
|
||||
// "\"" ("\\" ("b" | "t" | "n" | "f" | "r" | "\"" | "\'" | "\\") | !("\\" | "\""))* "\"";
|
||||
public TerminalRule getSTRINGRule() {
|
||||
return (tSTRING != null) ? tSTRING : (tSTRING = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "STRING"));
|
||||
}
|
||||
|
||||
//terminal ID:
|
||||
// ("a".."z" | "A".."Z" | "0".."9" | "_" | "-" | ",")+;
|
||||
public TerminalRule getIDRule() {
|
||||
return (tID != null) ? tID : (tID = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "ID"));
|
||||
}
|
||||
|
||||
//terminal EOL:
|
||||
// "\r" | "\n";
|
||||
public TerminalRule getEOLRule() {
|
||||
return (tEOL != null) ? tEOL : (tEOL = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "EOL"));
|
||||
}
|
||||
|
||||
//terminal WS:
|
||||
// (" " | "\t")+;
|
||||
public TerminalRule getWSRule() {
|
||||
return (tWS != null) ? tWS : (tWS = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "WS"));
|
||||
}
|
||||
|
||||
//terminal ANY_OTHER:
|
||||
// .;
|
||||
public TerminalRule getANY_OTHERRule() {
|
||||
return (tANY_OTHER != null) ? tANY_OTHER : (tANY_OTHER = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "ANY_OTHER"));
|
||||
}
|
||||
|
||||
//terminal SL_COMMENT:
|
||||
// "#" !("\n" | "\r")* ("\r"? "\n")?;
|
||||
public TerminalRule getSL_COMMENTRule() {
|
||||
return (tSL_COMMENT != null) ? tSL_COMMENT : (tSL_COMMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "SL_COMMENT"));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
package org.wesnoth.validation;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.eclipse.emf.ecore.EPackage;
|
||||
import org.eclipse.xtext.validation.AbstractDeclarativeValidator;
|
||||
import org.eclipse.xtext.validation.ComposedChecks;
|
||||
|
||||
@ComposedChecks(validators= {org.eclipse.xtext.validation.ImportUriValidator.class})
|
||||
public class AbstractWMLJavaValidator extends AbstractDeclarativeValidator {
|
||||
|
||||
@Override
|
||||
protected List<EPackage> getEPackages() {
|
||||
List<EPackage> result = new ArrayList<EPackage>();
|
||||
result.add(org.wesnoth.wml.WmlPackage.eINSTANCE);
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Macro Tokens</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.MacroTokens#getVal <em>Val</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getMacroTokens()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface MacroTokens extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Val</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Val</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Val</em>' attribute.
|
||||
* @see #setVal(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getMacroTokens_Val()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getVal();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.MacroTokens#getVal <em>Val</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Val</em>' attribute.
|
||||
* @see #getVal()
|
||||
* @generated
|
||||
*/
|
||||
void setVal(String value);
|
||||
|
||||
} // MacroTokens
|
|
@ -0,0 +1,45 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Array Call</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLArrayCall#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLArrayCall()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLArrayCall extends WMLKeyValue
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Value</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLValue}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Value</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>Value</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLArrayCall_Value()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLValue> getValue();
|
||||
|
||||
} // WMLArrayCall
|
101
utils/java/org.wesnoth.wml/src-gen/org/wesnoth/wml/WMLKey.java
Normal file
101
utils/java/org.wesnoth.wml/src-gen/org/wesnoth/wml/WMLKey.java
Normal file
|
@ -0,0 +1,101 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Key</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLKey#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLKey#getValue <em>Value</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLKey#getEol <em>Eol</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLKey()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLKey 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.wesnoth.wml.WmlPackage#getWMLKey_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLKey#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>Value</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLKeyValue}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Value</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>Value</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLKey_Value()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLKeyValue> getValue();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Eol</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Eol</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Eol</em>' attribute.
|
||||
* @see #setEol(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLKey_Eol()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getEol();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLKey#getEol <em>Eol</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Eol</em>' attribute.
|
||||
* @see #getEol()
|
||||
* @generated
|
||||
*/
|
||||
void setEol(String value);
|
||||
|
||||
} // WMLKey
|
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Key Value</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLKeyValue()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLKeyValue extends EObject
|
||||
{
|
||||
} // WMLKeyValue
|
|
@ -0,0 +1,54 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Lua Code</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLLuaCode#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLLuaCode()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLLuaCode extends WMLKeyValue
|
||||
{
|
||||
/**
|
||||
* 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.wesnoth.wml.WmlPackage#getWMLLuaCode_Value()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getValue();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLLuaCode#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);
|
||||
|
||||
} // WMLLuaCode
|
|
@ -0,0 +1,145 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Macro Call</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroCall#isPoint <em>Point</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroCall#isRelative <em>Relative</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroCall#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroCall#getParams <em>Params</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroCall#getExtraMacros <em>Extra Macros</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroCall()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLMacroCall extends WMLKeyValue
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Point</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Point</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Point</em>' attribute.
|
||||
* @see #setPoint(boolean)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroCall_Point()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
boolean isPoint();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLMacroCall#isPoint <em>Point</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Point</em>' attribute.
|
||||
* @see #isPoint()
|
||||
* @generated
|
||||
*/
|
||||
void setPoint(boolean value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Relative</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Relative</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Relative</em>' attribute.
|
||||
* @see #setRelative(boolean)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroCall_Relative()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
boolean isRelative();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLMacroCall#isRelative <em>Relative</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Relative</em>' attribute.
|
||||
* @see #isRelative()
|
||||
* @generated
|
||||
*/
|
||||
void setRelative(boolean 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.wesnoth.wml.WmlPackage#getWMLMacroCall_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLMacroCall#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>Params</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>Params</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>Params</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroCall_Params()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<EObject> getParams();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Extra Macros</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLMacroCall}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Extra Macros</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>Extra Macros</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroCall_ExtraMacros()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLMacroCall> getExtraMacros();
|
||||
|
||||
} // WMLMacroCall
|
|
@ -0,0 +1,203 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Macro Define</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroDefine#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroDefine#getTags <em>Tags</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroDefine#getKeys <em>Keys</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroDefine#getMacroCalls <em>Macro Calls</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroDefine#getMacroDefines <em>Macro Defines</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroDefine#getTextdomains <em>Textdomains</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroDefine#getValues <em>Values</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroDefine#getIfDefs <em>If Defs</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLMacroDefine#getEndName <em>End Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLMacroDefine 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.wesnoth.wml.WmlPackage#getWMLMacroDefine_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLMacroDefine#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>Tags</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLTag}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Tags</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>Tags</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine_Tags()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLTag> getTags();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Keys</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLKey}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Keys</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>Keys</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine_Keys()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLKey> getKeys();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Macro Calls</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLMacroCall}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Macro Calls</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>Macro Calls</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine_MacroCalls()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLMacroCall> getMacroCalls();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Macro Defines</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLMacroDefine}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Macro Defines</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>Macro Defines</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine_MacroDefines()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLMacroDefine> getMacroDefines();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Textdomains</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLTextdomain}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Textdomains</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>Textdomains</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine_Textdomains()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLTextdomain> getTextdomains();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Values</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLValue}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Values</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>Values</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine_Values()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLValue> getValues();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>If Defs</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLPreprocIF}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>If Defs</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>If Defs</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine_IfDefs()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLPreprocIF> getIfDefs();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>End Name</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>End 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>End Name</em>' attribute.
|
||||
* @see #setEndName(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLMacroDefine_EndName()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getEndName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLMacroDefine#getEndName <em>End Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>End Name</em>' attribute.
|
||||
* @see #getEndName()
|
||||
* @generated
|
||||
*/
|
||||
void setEndName(String value);
|
||||
|
||||
} // WMLMacroDefine
|
|
@ -0,0 +1,220 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Preproc IF</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getTags <em>Tags</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getKeys <em>Keys</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getMacroCalls <em>Macro Calls</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getMacroDefines <em>Macro Defines</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getTextdomains <em>Textdomains</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getValues <em>Values</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getIfDefs <em>If Defs</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getElses <em>Elses</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLPreprocIF#getEndName <em>End Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLPreprocIF 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.wesnoth.wml.WmlPackage#getWMLPreprocIF_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLPreprocIF#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>Tags</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLTag}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Tags</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>Tags</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_Tags()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLTag> getTags();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Keys</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLKey}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Keys</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>Keys</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_Keys()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLKey> getKeys();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Macro Calls</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLMacroCall}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Macro Calls</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>Macro Calls</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_MacroCalls()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLMacroCall> getMacroCalls();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Macro Defines</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLMacroDefine}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Macro Defines</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>Macro Defines</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_MacroDefines()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLMacroDefine> getMacroDefines();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Textdomains</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLTextdomain}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Textdomains</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>Textdomains</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_Textdomains()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLTextdomain> getTextdomains();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Values</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLValue}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Values</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>Values</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_Values()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLValue> getValues();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>If Defs</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLPreprocIF}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>If Defs</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>If Defs</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_IfDefs()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLPreprocIF> getIfDefs();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Elses</b></em>' attribute list.
|
||||
* The list contents are of type {@link java.lang.String}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Elses</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>Elses</em>' attribute list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_Elses()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<String> getElses();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>End Name</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>End 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>End Name</em>' attribute.
|
||||
* @see #setEndName(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLPreprocIF_EndName()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getEndName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLPreprocIF#getEndName <em>End Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>End Name</em>' attribute.
|
||||
* @see #getEndName()
|
||||
* @generated
|
||||
*/
|
||||
void setEndName(String value);
|
||||
|
||||
} // WMLPreprocIF
|
115
utils/java/org.wesnoth.wml/src-gen/org/wesnoth/wml/WMLRoot.java
Normal file
115
utils/java/org.wesnoth.wml/src-gen/org/wesnoth/wml/WMLRoot.java
Normal file
|
@ -0,0 +1,115 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Root</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLRoot#getTags <em>Tags</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLRoot#getMacroCalls <em>Macro Calls</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLRoot#getMacroDefines <em>Macro Defines</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLRoot#getTextdomains <em>Textdomains</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLRoot#getIfDefs <em>If Defs</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLRoot()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLRoot extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Tags</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLTag}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Tags</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>Tags</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLRoot_Tags()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLTag> getTags();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Macro Calls</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLMacroCall}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Macro Calls</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>Macro Calls</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLRoot_MacroCalls()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLMacroCall> getMacroCalls();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Macro Defines</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLMacroDefine}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Macro Defines</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>Macro Defines</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLRoot_MacroDefines()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLMacroDefine> getMacroDefines();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Textdomains</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLTextdomain}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Textdomains</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>Textdomains</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLRoot_Textdomains()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLTextdomain> getTextdomains();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>If Defs</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLPreprocIF}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>If Defs</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>If Defs</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLRoot_IfDefs()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLPreprocIF> getIfDefs();
|
||||
|
||||
} // WMLRoot
|
213
utils/java/org.wesnoth.wml/src-gen/org/wesnoth/wml/WMLTag.java
Normal file
213
utils/java/org.wesnoth.wml/src-gen/org/wesnoth/wml/WMLTag.java
Normal file
|
@ -0,0 +1,213 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Tag</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLTag#isPlus <em>Plus</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLTag#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLTag#getTags <em>Tags</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLTag#getKeys <em>Keys</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLTag#getMacroCalls <em>Macro Calls</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLTag#getMacroDefines <em>Macro Defines</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLTag#getTextdomains <em>Textdomains</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLTag#getIfDefs <em>If Defs</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.WMLTag#getEndName <em>End Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLTag extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Plus</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Plus</em>' attribute isn't clear,
|
||||
* there really should be more of a description here...
|
||||
* </p>
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Plus</em>' attribute.
|
||||
* @see #setPlus(boolean)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag_Plus()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
boolean isPlus();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLTag#isPlus <em>Plus</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Plus</em>' attribute.
|
||||
* @see #isPlus()
|
||||
* @generated
|
||||
*/
|
||||
void setPlus(boolean 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.wesnoth.wml.WmlPackage#getWMLTag_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLTag#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>Tags</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLTag}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Tags</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>Tags</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag_Tags()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLTag> getTags();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Keys</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLKey}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Keys</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>Keys</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag_Keys()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLKey> getKeys();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Macro Calls</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLMacroCall}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Macro Calls</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>Macro Calls</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag_MacroCalls()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLMacroCall> getMacroCalls();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Macro Defines</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLMacroDefine}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Macro Defines</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>Macro Defines</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag_MacroDefines()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLMacroDefine> getMacroDefines();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Textdomains</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLTextdomain}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>Textdomains</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>Textdomains</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag_Textdomains()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLTextdomain> getTextdomains();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>If Defs</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.wesnoth.wml.WMLPreprocIF}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>If Defs</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>If Defs</em>' containment reference list.
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag_IfDefs()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<WMLPreprocIF> getIfDefs();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>End Name</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <p>
|
||||
* If the meaning of the '<em>End 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>End Name</em>' attribute.
|
||||
* @see #setEndName(String)
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTag_EndName()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getEndName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLTag#getEndName <em>End Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>End Name</em>' attribute.
|
||||
* @see #getEndName()
|
||||
* @generated
|
||||
*/
|
||||
void setEndName(String value);
|
||||
|
||||
} // WMLTag
|
|
@ -0,0 +1,55 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Textdomain</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLTextdomain#getName <em>Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLTextdomain()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLTextdomain 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.wesnoth.wml.WmlPackage#getWMLTextdomain_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLTextdomain#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);
|
||||
|
||||
} // WMLTextdomain
|
|
@ -0,0 +1,54 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>WML Value</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.WMLValue#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @see org.wesnoth.wml.WmlPackage#getWMLValue()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLValue extends WMLKeyValue
|
||||
{
|
||||
/**
|
||||
* 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.wesnoth.wml.WmlPackage#getWMLValue_Value()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getValue();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.wesnoth.wml.WMLValue#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);
|
||||
|
||||
} // WMLValue
|
|
@ -0,0 +1,146 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml;
|
||||
|
||||
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.wesnoth.wml.WmlPackage
|
||||
* @generated
|
||||
*/
|
||||
public interface WmlFactory extends EFactory
|
||||
{
|
||||
/**
|
||||
* The singleton instance of the factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
WmlFactory eINSTANCE = org.wesnoth.wml.impl.WmlFactoryImpl.init();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Root</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Root</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLRoot createWMLRoot();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Tag</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Tag</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLTag createWMLTag();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Key</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Key</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLKey createWMLKey();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Key Value</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Key Value</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLKeyValue createWMLKeyValue();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Macro Call</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Macro Call</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLMacroCall createWMLMacroCall();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Lua Code</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Lua Code</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLLuaCode createWMLLuaCode();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Array Call</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Array Call</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLArrayCall createWMLArrayCall();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Macro Define</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Macro Define</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLMacroDefine createWMLMacroDefine();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Preproc IF</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Preproc IF</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLPreprocIF createWMLPreprocIF();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Textdomain</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Textdomain</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLTextdomain createWMLTextdomain();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>WML Value</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>WML Value</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLValue createWMLValue();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Macro Tokens</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Macro Tokens</em>'.
|
||||
* @generated
|
||||
*/
|
||||
MacroTokens createMacroTokens();
|
||||
|
||||
/**
|
||||
* Returns the package supported by this factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the package supported by this factory.
|
||||
* @generated
|
||||
*/
|
||||
WmlPackage getWmlPackage();
|
||||
|
||||
} //WmlFactory
|
1845
utils/java/org.wesnoth.wml/src-gen/org/wesnoth/wml/WmlPackage.java
Normal file
1845
utils/java/org.wesnoth.wml/src-gen/org/wesnoth/wml/WmlPackage.java
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,181 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.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.wesnoth.wml.MacroTokens;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Macro Tokens</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.MacroTokensImpl#getVal <em>Val</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class MacroTokensImpl extends MinimalEObjectImpl.Container implements MacroTokens
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getVal() <em>Val</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getVal()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String VAL_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getVal() <em>Val</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getVal()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String val = VAL_EDEFAULT;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected MacroTokensImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.MACRO_TOKENS;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getVal()
|
||||
{
|
||||
return val;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setVal(String newVal)
|
||||
{
|
||||
String oldVal = val;
|
||||
val = newVal;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.MACRO_TOKENS__VAL, oldVal, val));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.MACRO_TOKENS__VAL:
|
||||
return getVal();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.MACRO_TOKENS__VAL:
|
||||
setVal((String)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.MACRO_TOKENS__VAL:
|
||||
setVal(VAL_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.MACRO_TOKENS__VAL:
|
||||
return VAL_EDEFAULT == null ? val != null : !VAL_EDEFAULT.equals(val);
|
||||
}
|
||||
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(" (val: ");
|
||||
result.append(val);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //MacroTokensImpl
|
|
@ -0,0 +1,169 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.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.wesnoth.wml.WMLArrayCall;
|
||||
import org.wesnoth.wml.WMLValue;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Array Call</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLArrayCallImpl#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLArrayCallImpl extends WMLKeyValueImpl implements WMLArrayCall
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getValue() <em>Value</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getValue()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLValue> value;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLArrayCallImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_ARRAY_CALL;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLValue> getValue()
|
||||
{
|
||||
if (value == null)
|
||||
{
|
||||
value = new EObjectContainmentEList<WMLValue>(WMLValue.class, this, WmlPackage.WML_ARRAY_CALL__VALUE);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ARRAY_CALL__VALUE:
|
||||
return ((InternalEList<?>)getValue()).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 WmlPackage.WML_ARRAY_CALL__VALUE:
|
||||
return getValue();
|
||||
}
|
||||
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 WmlPackage.WML_ARRAY_CALL__VALUE:
|
||||
getValue().clear();
|
||||
getValue().addAll((Collection<? extends WMLValue>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ARRAY_CALL__VALUE:
|
||||
getValue().clear();
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ARRAY_CALL__VALUE:
|
||||
return value != null && !value.isEmpty();
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //WMLArrayCallImpl
|
|
@ -0,0 +1,300 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.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.wesnoth.wml.WMLKey;
|
||||
import org.wesnoth.wml.WMLKeyValue;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Key</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLKeyImpl#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLKeyImpl#getValue <em>Value</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLKeyImpl#getEol <em>Eol</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLKeyImpl extends MinimalEObjectImpl.Container implements WMLKey
|
||||
{
|
||||
/**
|
||||
* 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 #getValue() <em>Value</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getValue()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLKeyValue> value;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getEol() <em>Eol</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEol()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String EOL_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getEol() <em>Eol</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEol()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String eol = EOL_EDEFAULT;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLKeyImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_KEY;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- 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, WmlPackage.WML_KEY__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLKeyValue> getValue()
|
||||
{
|
||||
if (value == null)
|
||||
{
|
||||
value = new EObjectContainmentEList<WMLKeyValue>(WMLKeyValue.class, this, WmlPackage.WML_KEY__VALUE);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getEol()
|
||||
{
|
||||
return eol;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setEol(String newEol)
|
||||
{
|
||||
String oldEol = eol;
|
||||
eol = newEol;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_KEY__EOL, oldEol, eol));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_KEY__VALUE:
|
||||
return ((InternalEList<?>)getValue()).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 WmlPackage.WML_KEY__NAME:
|
||||
return getName();
|
||||
case WmlPackage.WML_KEY__VALUE:
|
||||
return getValue();
|
||||
case WmlPackage.WML_KEY__EOL:
|
||||
return getEol();
|
||||
}
|
||||
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 WmlPackage.WML_KEY__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_KEY__VALUE:
|
||||
getValue().clear();
|
||||
getValue().addAll((Collection<? extends WMLKeyValue>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_KEY__EOL:
|
||||
setEol((String)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_KEY__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
case WmlPackage.WML_KEY__VALUE:
|
||||
getValue().clear();
|
||||
return;
|
||||
case WmlPackage.WML_KEY__EOL:
|
||||
setEol(EOL_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_KEY__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
case WmlPackage.WML_KEY__VALUE:
|
||||
return value != null && !value.isEmpty();
|
||||
case WmlPackage.WML_KEY__EOL:
|
||||
return EOL_EDEFAULT == null ? eol != null : !EOL_EDEFAULT.equals(eol);
|
||||
}
|
||||
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(", eol: ");
|
||||
result.append(eol);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //WMLKeyImpl
|
|
@ -0,0 +1,48 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.wesnoth.wml.WMLKeyValue;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Key Value</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLKeyValueImpl extends MinimalEObjectImpl.Container implements WMLKeyValue
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLKeyValueImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_KEY_VALUE;
|
||||
}
|
||||
|
||||
} //WMLKeyValueImpl
|
|
@ -0,0 +1,180 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.wesnoth.wml.WMLLuaCode;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Lua Code</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLLuaCodeImpl#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLLuaCodeImpl extends WMLKeyValueImpl implements WMLLuaCode
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getValue() <em>Value</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getValue()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String VALUE_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getValue()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String value = VALUE_EDEFAULT;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLLuaCodeImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_LUA_CODE;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getValue()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setValue(String newValue)
|
||||
{
|
||||
String oldValue = value;
|
||||
value = newValue;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_LUA_CODE__VALUE, oldValue, value));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_LUA_CODE__VALUE:
|
||||
return getValue();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_LUA_CODE__VALUE:
|
||||
setValue((String)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_LUA_CODE__VALUE:
|
||||
setValue(VALUE_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_LUA_CODE__VALUE:
|
||||
return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
|
||||
}
|
||||
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(" (value: ");
|
||||
result.append(value);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //WMLLuaCodeImpl
|
|
@ -0,0 +1,393 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.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.wesnoth.wml.WMLMacroCall;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Macro Call</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroCallImpl#isPoint <em>Point</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroCallImpl#isRelative <em>Relative</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroCallImpl#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroCallImpl#getParams <em>Params</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroCallImpl#getExtraMacros <em>Extra Macros</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLMacroCallImpl extends WMLKeyValueImpl implements WMLMacroCall
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #isPoint() <em>Point</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #isPoint()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final boolean POINT_EDEFAULT = false;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #isPoint() <em>Point</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #isPoint()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected boolean point = POINT_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #isRelative() <em>Relative</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #isRelative()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final boolean RELATIVE_EDEFAULT = false;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #isRelative() <em>Relative</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #isRelative()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected boolean relative = RELATIVE_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;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getParams() <em>Params</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getParams()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<EObject> params;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getExtraMacros() <em>Extra Macros</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getExtraMacros()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLMacroCall> extraMacros;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLMacroCallImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_MACRO_CALL;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public boolean isPoint()
|
||||
{
|
||||
return point;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setPoint(boolean newPoint)
|
||||
{
|
||||
boolean oldPoint = point;
|
||||
point = newPoint;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_MACRO_CALL__POINT, oldPoint, point));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public boolean isRelative()
|
||||
{
|
||||
return relative;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setRelative(boolean newRelative)
|
||||
{
|
||||
boolean oldRelative = relative;
|
||||
relative = newRelative;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_MACRO_CALL__RELATIVE, oldRelative, relative));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- 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, WmlPackage.WML_MACRO_CALL__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<EObject> getParams()
|
||||
{
|
||||
if (params == null)
|
||||
{
|
||||
params = new EObjectContainmentEList<EObject>(EObject.class, this, WmlPackage.WML_MACRO_CALL__PARAMS);
|
||||
}
|
||||
return params;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLMacroCall> getExtraMacros()
|
||||
{
|
||||
if (extraMacros == null)
|
||||
{
|
||||
extraMacros = new EObjectContainmentEList<WMLMacroCall>(WMLMacroCall.class, this, WmlPackage.WML_MACRO_CALL__EXTRA_MACROS);
|
||||
}
|
||||
return extraMacros;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_CALL__PARAMS:
|
||||
return ((InternalEList<?>)getParams()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_MACRO_CALL__EXTRA_MACROS:
|
||||
return ((InternalEList<?>)getExtraMacros()).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 WmlPackage.WML_MACRO_CALL__POINT:
|
||||
return isPoint();
|
||||
case WmlPackage.WML_MACRO_CALL__RELATIVE:
|
||||
return isRelative();
|
||||
case WmlPackage.WML_MACRO_CALL__NAME:
|
||||
return getName();
|
||||
case WmlPackage.WML_MACRO_CALL__PARAMS:
|
||||
return getParams();
|
||||
case WmlPackage.WML_MACRO_CALL__EXTRA_MACROS:
|
||||
return getExtraMacros();
|
||||
}
|
||||
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 WmlPackage.WML_MACRO_CALL__POINT:
|
||||
setPoint((Boolean)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_CALL__RELATIVE:
|
||||
setRelative((Boolean)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_CALL__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_CALL__PARAMS:
|
||||
getParams().clear();
|
||||
getParams().addAll((Collection<? extends EObject>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_CALL__EXTRA_MACROS:
|
||||
getExtraMacros().clear();
|
||||
getExtraMacros().addAll((Collection<? extends WMLMacroCall>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_CALL__POINT:
|
||||
setPoint(POINT_EDEFAULT);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_CALL__RELATIVE:
|
||||
setRelative(RELATIVE_EDEFAULT);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_CALL__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_CALL__PARAMS:
|
||||
getParams().clear();
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_CALL__EXTRA_MACROS:
|
||||
getExtraMacros().clear();
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_CALL__POINT:
|
||||
return point != POINT_EDEFAULT;
|
||||
case WmlPackage.WML_MACRO_CALL__RELATIVE:
|
||||
return relative != RELATIVE_EDEFAULT;
|
||||
case WmlPackage.WML_MACRO_CALL__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
case WmlPackage.WML_MACRO_CALL__PARAMS:
|
||||
return params != null && !params.isEmpty();
|
||||
case WmlPackage.WML_MACRO_CALL__EXTRA_MACROS:
|
||||
return extraMacros != null && !extraMacros.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(" (point: ");
|
||||
result.append(point);
|
||||
result.append(", relative: ");
|
||||
result.append(relative);
|
||||
result.append(", name: ");
|
||||
result.append(name);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //WMLMacroCallImpl
|
|
@ -0,0 +1,533 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.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.wesnoth.wml.WMLKey;
|
||||
import org.wesnoth.wml.WMLMacroCall;
|
||||
import org.wesnoth.wml.WMLMacroDefine;
|
||||
import org.wesnoth.wml.WMLPreprocIF;
|
||||
import org.wesnoth.wml.WMLTag;
|
||||
import org.wesnoth.wml.WMLTextdomain;
|
||||
import org.wesnoth.wml.WMLValue;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Macro Define</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroDefineImpl#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroDefineImpl#getTags <em>Tags</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroDefineImpl#getKeys <em>Keys</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroDefineImpl#getMacroCalls <em>Macro Calls</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroDefineImpl#getMacroDefines <em>Macro Defines</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroDefineImpl#getTextdomains <em>Textdomains</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroDefineImpl#getValues <em>Values</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroDefineImpl#getIfDefs <em>If Defs</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLMacroDefineImpl#getEndName <em>End Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLMacroDefineImpl extends MinimalEObjectImpl.Container implements WMLMacroDefine
|
||||
{
|
||||
/**
|
||||
* 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 #getTags() <em>Tags</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getTags()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLTag> tags;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getKeys() <em>Keys</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getKeys()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLKey> keys;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getMacroCalls() <em>Macro Calls</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getMacroCalls()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLMacroCall> macroCalls;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getMacroDefines() <em>Macro Defines</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getMacroDefines()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLMacroDefine> macroDefines;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getTextdomains() <em>Textdomains</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getTextdomains()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLTextdomain> textdomains;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getValues() <em>Values</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getValues()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLValue> values;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getIfDefs() <em>If Defs</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getIfDefs()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLPreprocIF> ifDefs;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getEndName() <em>End Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEndName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String END_NAME_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getEndName() <em>End Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEndName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String endName = END_NAME_EDEFAULT;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLMacroDefineImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_MACRO_DEFINE;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- 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, WmlPackage.WML_MACRO_DEFINE__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLTag> getTags()
|
||||
{
|
||||
if (tags == null)
|
||||
{
|
||||
tags = new EObjectContainmentEList<WMLTag>(WMLTag.class, this, WmlPackage.WML_MACRO_DEFINE__TAGS);
|
||||
}
|
||||
return tags;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLKey> getKeys()
|
||||
{
|
||||
if (keys == null)
|
||||
{
|
||||
keys = new EObjectContainmentEList<WMLKey>(WMLKey.class, this, WmlPackage.WML_MACRO_DEFINE__KEYS);
|
||||
}
|
||||
return keys;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLMacroCall> getMacroCalls()
|
||||
{
|
||||
if (macroCalls == null)
|
||||
{
|
||||
macroCalls = new EObjectContainmentEList<WMLMacroCall>(WMLMacroCall.class, this, WmlPackage.WML_MACRO_DEFINE__MACRO_CALLS);
|
||||
}
|
||||
return macroCalls;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLMacroDefine> getMacroDefines()
|
||||
{
|
||||
if (macroDefines == null)
|
||||
{
|
||||
macroDefines = new EObjectContainmentEList<WMLMacroDefine>(WMLMacroDefine.class, this, WmlPackage.WML_MACRO_DEFINE__MACRO_DEFINES);
|
||||
}
|
||||
return macroDefines;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLTextdomain> getTextdomains()
|
||||
{
|
||||
if (textdomains == null)
|
||||
{
|
||||
textdomains = new EObjectContainmentEList<WMLTextdomain>(WMLTextdomain.class, this, WmlPackage.WML_MACRO_DEFINE__TEXTDOMAINS);
|
||||
}
|
||||
return textdomains;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLValue> getValues()
|
||||
{
|
||||
if (values == null)
|
||||
{
|
||||
values = new EObjectContainmentEList<WMLValue>(WMLValue.class, this, WmlPackage.WML_MACRO_DEFINE__VALUES);
|
||||
}
|
||||
return values;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLPreprocIF> getIfDefs()
|
||||
{
|
||||
if (ifDefs == null)
|
||||
{
|
||||
ifDefs = new EObjectContainmentEList<WMLPreprocIF>(WMLPreprocIF.class, this, WmlPackage.WML_MACRO_DEFINE__IF_DEFS);
|
||||
}
|
||||
return ifDefs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getEndName()
|
||||
{
|
||||
return endName;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setEndName(String newEndName)
|
||||
{
|
||||
String oldEndName = endName;
|
||||
endName = newEndName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_MACRO_DEFINE__END_NAME, oldEndName, endName));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_DEFINE__TAGS:
|
||||
return ((InternalEList<?>)getTags()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_MACRO_DEFINE__KEYS:
|
||||
return ((InternalEList<?>)getKeys()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_MACRO_DEFINE__MACRO_CALLS:
|
||||
return ((InternalEList<?>)getMacroCalls()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_MACRO_DEFINE__MACRO_DEFINES:
|
||||
return ((InternalEList<?>)getMacroDefines()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_MACRO_DEFINE__TEXTDOMAINS:
|
||||
return ((InternalEList<?>)getTextdomains()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_MACRO_DEFINE__VALUES:
|
||||
return ((InternalEList<?>)getValues()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_MACRO_DEFINE__IF_DEFS:
|
||||
return ((InternalEList<?>)getIfDefs()).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 WmlPackage.WML_MACRO_DEFINE__NAME:
|
||||
return getName();
|
||||
case WmlPackage.WML_MACRO_DEFINE__TAGS:
|
||||
return getTags();
|
||||
case WmlPackage.WML_MACRO_DEFINE__KEYS:
|
||||
return getKeys();
|
||||
case WmlPackage.WML_MACRO_DEFINE__MACRO_CALLS:
|
||||
return getMacroCalls();
|
||||
case WmlPackage.WML_MACRO_DEFINE__MACRO_DEFINES:
|
||||
return getMacroDefines();
|
||||
case WmlPackage.WML_MACRO_DEFINE__TEXTDOMAINS:
|
||||
return getTextdomains();
|
||||
case WmlPackage.WML_MACRO_DEFINE__VALUES:
|
||||
return getValues();
|
||||
case WmlPackage.WML_MACRO_DEFINE__IF_DEFS:
|
||||
return getIfDefs();
|
||||
case WmlPackage.WML_MACRO_DEFINE__END_NAME:
|
||||
return getEndName();
|
||||
}
|
||||
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 WmlPackage.WML_MACRO_DEFINE__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__TAGS:
|
||||
getTags().clear();
|
||||
getTags().addAll((Collection<? extends WMLTag>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__KEYS:
|
||||
getKeys().clear();
|
||||
getKeys().addAll((Collection<? extends WMLKey>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__MACRO_CALLS:
|
||||
getMacroCalls().clear();
|
||||
getMacroCalls().addAll((Collection<? extends WMLMacroCall>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__MACRO_DEFINES:
|
||||
getMacroDefines().clear();
|
||||
getMacroDefines().addAll((Collection<? extends WMLMacroDefine>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__TEXTDOMAINS:
|
||||
getTextdomains().clear();
|
||||
getTextdomains().addAll((Collection<? extends WMLTextdomain>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__VALUES:
|
||||
getValues().clear();
|
||||
getValues().addAll((Collection<? extends WMLValue>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__IF_DEFS:
|
||||
getIfDefs().clear();
|
||||
getIfDefs().addAll((Collection<? extends WMLPreprocIF>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__END_NAME:
|
||||
setEndName((String)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_DEFINE__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__TAGS:
|
||||
getTags().clear();
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__KEYS:
|
||||
getKeys().clear();
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__MACRO_CALLS:
|
||||
getMacroCalls().clear();
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__MACRO_DEFINES:
|
||||
getMacroDefines().clear();
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__TEXTDOMAINS:
|
||||
getTextdomains().clear();
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__VALUES:
|
||||
getValues().clear();
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__IF_DEFS:
|
||||
getIfDefs().clear();
|
||||
return;
|
||||
case WmlPackage.WML_MACRO_DEFINE__END_NAME:
|
||||
setEndName(END_NAME_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_MACRO_DEFINE__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
case WmlPackage.WML_MACRO_DEFINE__TAGS:
|
||||
return tags != null && !tags.isEmpty();
|
||||
case WmlPackage.WML_MACRO_DEFINE__KEYS:
|
||||
return keys != null && !keys.isEmpty();
|
||||
case WmlPackage.WML_MACRO_DEFINE__MACRO_CALLS:
|
||||
return macroCalls != null && !macroCalls.isEmpty();
|
||||
case WmlPackage.WML_MACRO_DEFINE__MACRO_DEFINES:
|
||||
return macroDefines != null && !macroDefines.isEmpty();
|
||||
case WmlPackage.WML_MACRO_DEFINE__TEXTDOMAINS:
|
||||
return textdomains != null && !textdomains.isEmpty();
|
||||
case WmlPackage.WML_MACRO_DEFINE__VALUES:
|
||||
return values != null && !values.isEmpty();
|
||||
case WmlPackage.WML_MACRO_DEFINE__IF_DEFS:
|
||||
return ifDefs != null && !ifDefs.isEmpty();
|
||||
case WmlPackage.WML_MACRO_DEFINE__END_NAME:
|
||||
return END_NAME_EDEFAULT == null ? endName != null : !END_NAME_EDEFAULT.equals(endName);
|
||||
}
|
||||
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(", endName: ");
|
||||
result.append(endName);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //WMLMacroDefineImpl
|
|
@ -0,0 +1,572 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.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.EDataTypeEList;
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import org.wesnoth.wml.WMLKey;
|
||||
import org.wesnoth.wml.WMLMacroCall;
|
||||
import org.wesnoth.wml.WMLMacroDefine;
|
||||
import org.wesnoth.wml.WMLPreprocIF;
|
||||
import org.wesnoth.wml.WMLTag;
|
||||
import org.wesnoth.wml.WMLTextdomain;
|
||||
import org.wesnoth.wml.WMLValue;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Preproc IF</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getTags <em>Tags</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getKeys <em>Keys</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getMacroCalls <em>Macro Calls</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getMacroDefines <em>Macro Defines</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getTextdomains <em>Textdomains</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getValues <em>Values</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getIfDefs <em>If Defs</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getElses <em>Elses</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLPreprocIFImpl#getEndName <em>End Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLPreprocIFImpl extends MinimalEObjectImpl.Container implements WMLPreprocIF
|
||||
{
|
||||
/**
|
||||
* 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 #getTags() <em>Tags</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getTags()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLTag> tags;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getKeys() <em>Keys</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getKeys()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLKey> keys;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getMacroCalls() <em>Macro Calls</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getMacroCalls()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLMacroCall> macroCalls;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getMacroDefines() <em>Macro Defines</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getMacroDefines()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLMacroDefine> macroDefines;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getTextdomains() <em>Textdomains</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getTextdomains()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLTextdomain> textdomains;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getValues() <em>Values</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getValues()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLValue> values;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getIfDefs() <em>If Defs</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getIfDefs()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLPreprocIF> ifDefs;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getElses() <em>Elses</em>}' attribute list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getElses()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<String> elses;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getEndName() <em>End Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEndName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String END_NAME_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getEndName() <em>End Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEndName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String endName = END_NAME_EDEFAULT;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLPreprocIFImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_PREPROC_IF;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- 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, WmlPackage.WML_PREPROC_IF__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLTag> getTags()
|
||||
{
|
||||
if (tags == null)
|
||||
{
|
||||
tags = new EObjectContainmentEList<WMLTag>(WMLTag.class, this, WmlPackage.WML_PREPROC_IF__TAGS);
|
||||
}
|
||||
return tags;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLKey> getKeys()
|
||||
{
|
||||
if (keys == null)
|
||||
{
|
||||
keys = new EObjectContainmentEList<WMLKey>(WMLKey.class, this, WmlPackage.WML_PREPROC_IF__KEYS);
|
||||
}
|
||||
return keys;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLMacroCall> getMacroCalls()
|
||||
{
|
||||
if (macroCalls == null)
|
||||
{
|
||||
macroCalls = new EObjectContainmentEList<WMLMacroCall>(WMLMacroCall.class, this, WmlPackage.WML_PREPROC_IF__MACRO_CALLS);
|
||||
}
|
||||
return macroCalls;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLMacroDefine> getMacroDefines()
|
||||
{
|
||||
if (macroDefines == null)
|
||||
{
|
||||
macroDefines = new EObjectContainmentEList<WMLMacroDefine>(WMLMacroDefine.class, this, WmlPackage.WML_PREPROC_IF__MACRO_DEFINES);
|
||||
}
|
||||
return macroDefines;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLTextdomain> getTextdomains()
|
||||
{
|
||||
if (textdomains == null)
|
||||
{
|
||||
textdomains = new EObjectContainmentEList<WMLTextdomain>(WMLTextdomain.class, this, WmlPackage.WML_PREPROC_IF__TEXTDOMAINS);
|
||||
}
|
||||
return textdomains;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLValue> getValues()
|
||||
{
|
||||
if (values == null)
|
||||
{
|
||||
values = new EObjectContainmentEList<WMLValue>(WMLValue.class, this, WmlPackage.WML_PREPROC_IF__VALUES);
|
||||
}
|
||||
return values;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLPreprocIF> getIfDefs()
|
||||
{
|
||||
if (ifDefs == null)
|
||||
{
|
||||
ifDefs = new EObjectContainmentEList<WMLPreprocIF>(WMLPreprocIF.class, this, WmlPackage.WML_PREPROC_IF__IF_DEFS);
|
||||
}
|
||||
return ifDefs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<String> getElses()
|
||||
{
|
||||
if (elses == null)
|
||||
{
|
||||
elses = new EDataTypeEList<String>(String.class, this, WmlPackage.WML_PREPROC_IF__ELSES);
|
||||
}
|
||||
return elses;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getEndName()
|
||||
{
|
||||
return endName;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setEndName(String newEndName)
|
||||
{
|
||||
String oldEndName = endName;
|
||||
endName = newEndName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_PREPROC_IF__END_NAME, oldEndName, endName));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_PREPROC_IF__TAGS:
|
||||
return ((InternalEList<?>)getTags()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_PREPROC_IF__KEYS:
|
||||
return ((InternalEList<?>)getKeys()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_PREPROC_IF__MACRO_CALLS:
|
||||
return ((InternalEList<?>)getMacroCalls()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_PREPROC_IF__MACRO_DEFINES:
|
||||
return ((InternalEList<?>)getMacroDefines()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_PREPROC_IF__TEXTDOMAINS:
|
||||
return ((InternalEList<?>)getTextdomains()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_PREPROC_IF__VALUES:
|
||||
return ((InternalEList<?>)getValues()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_PREPROC_IF__IF_DEFS:
|
||||
return ((InternalEList<?>)getIfDefs()).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 WmlPackage.WML_PREPROC_IF__NAME:
|
||||
return getName();
|
||||
case WmlPackage.WML_PREPROC_IF__TAGS:
|
||||
return getTags();
|
||||
case WmlPackage.WML_PREPROC_IF__KEYS:
|
||||
return getKeys();
|
||||
case WmlPackage.WML_PREPROC_IF__MACRO_CALLS:
|
||||
return getMacroCalls();
|
||||
case WmlPackage.WML_PREPROC_IF__MACRO_DEFINES:
|
||||
return getMacroDefines();
|
||||
case WmlPackage.WML_PREPROC_IF__TEXTDOMAINS:
|
||||
return getTextdomains();
|
||||
case WmlPackage.WML_PREPROC_IF__VALUES:
|
||||
return getValues();
|
||||
case WmlPackage.WML_PREPROC_IF__IF_DEFS:
|
||||
return getIfDefs();
|
||||
case WmlPackage.WML_PREPROC_IF__ELSES:
|
||||
return getElses();
|
||||
case WmlPackage.WML_PREPROC_IF__END_NAME:
|
||||
return getEndName();
|
||||
}
|
||||
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 WmlPackage.WML_PREPROC_IF__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__TAGS:
|
||||
getTags().clear();
|
||||
getTags().addAll((Collection<? extends WMLTag>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__KEYS:
|
||||
getKeys().clear();
|
||||
getKeys().addAll((Collection<? extends WMLKey>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__MACRO_CALLS:
|
||||
getMacroCalls().clear();
|
||||
getMacroCalls().addAll((Collection<? extends WMLMacroCall>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__MACRO_DEFINES:
|
||||
getMacroDefines().clear();
|
||||
getMacroDefines().addAll((Collection<? extends WMLMacroDefine>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__TEXTDOMAINS:
|
||||
getTextdomains().clear();
|
||||
getTextdomains().addAll((Collection<? extends WMLTextdomain>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__VALUES:
|
||||
getValues().clear();
|
||||
getValues().addAll((Collection<? extends WMLValue>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__IF_DEFS:
|
||||
getIfDefs().clear();
|
||||
getIfDefs().addAll((Collection<? extends WMLPreprocIF>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__ELSES:
|
||||
getElses().clear();
|
||||
getElses().addAll((Collection<? extends String>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__END_NAME:
|
||||
setEndName((String)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_PREPROC_IF__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__TAGS:
|
||||
getTags().clear();
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__KEYS:
|
||||
getKeys().clear();
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__MACRO_CALLS:
|
||||
getMacroCalls().clear();
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__MACRO_DEFINES:
|
||||
getMacroDefines().clear();
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__TEXTDOMAINS:
|
||||
getTextdomains().clear();
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__VALUES:
|
||||
getValues().clear();
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__IF_DEFS:
|
||||
getIfDefs().clear();
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__ELSES:
|
||||
getElses().clear();
|
||||
return;
|
||||
case WmlPackage.WML_PREPROC_IF__END_NAME:
|
||||
setEndName(END_NAME_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_PREPROC_IF__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
case WmlPackage.WML_PREPROC_IF__TAGS:
|
||||
return tags != null && !tags.isEmpty();
|
||||
case WmlPackage.WML_PREPROC_IF__KEYS:
|
||||
return keys != null && !keys.isEmpty();
|
||||
case WmlPackage.WML_PREPROC_IF__MACRO_CALLS:
|
||||
return macroCalls != null && !macroCalls.isEmpty();
|
||||
case WmlPackage.WML_PREPROC_IF__MACRO_DEFINES:
|
||||
return macroDefines != null && !macroDefines.isEmpty();
|
||||
case WmlPackage.WML_PREPROC_IF__TEXTDOMAINS:
|
||||
return textdomains != null && !textdomains.isEmpty();
|
||||
case WmlPackage.WML_PREPROC_IF__VALUES:
|
||||
return values != null && !values.isEmpty();
|
||||
case WmlPackage.WML_PREPROC_IF__IF_DEFS:
|
||||
return ifDefs != null && !ifDefs.isEmpty();
|
||||
case WmlPackage.WML_PREPROC_IF__ELSES:
|
||||
return elses != null && !elses.isEmpty();
|
||||
case WmlPackage.WML_PREPROC_IF__END_NAME:
|
||||
return END_NAME_EDEFAULT == null ? endName != null : !END_NAME_EDEFAULT.equals(endName);
|
||||
}
|
||||
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(", Elses: ");
|
||||
result.append(elses);
|
||||
result.append(", endName: ");
|
||||
result.append(endName);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //WMLPreprocIFImpl
|
|
@ -0,0 +1,327 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.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.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import org.wesnoth.wml.WMLMacroCall;
|
||||
import org.wesnoth.wml.WMLMacroDefine;
|
||||
import org.wesnoth.wml.WMLPreprocIF;
|
||||
import org.wesnoth.wml.WMLRoot;
|
||||
import org.wesnoth.wml.WMLTag;
|
||||
import org.wesnoth.wml.WMLTextdomain;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Root</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLRootImpl#getTags <em>Tags</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLRootImpl#getMacroCalls <em>Macro Calls</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLRootImpl#getMacroDefines <em>Macro Defines</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLRootImpl#getTextdomains <em>Textdomains</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLRootImpl#getIfDefs <em>If Defs</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLRootImpl extends MinimalEObjectImpl.Container implements WMLRoot
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getTags() <em>Tags</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getTags()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLTag> tags;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getMacroCalls() <em>Macro Calls</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getMacroCalls()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLMacroCall> macroCalls;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getMacroDefines() <em>Macro Defines</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getMacroDefines()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLMacroDefine> macroDefines;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getTextdomains() <em>Textdomains</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getTextdomains()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLTextdomain> textdomains;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getIfDefs() <em>If Defs</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getIfDefs()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLPreprocIF> ifDefs;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLRootImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_ROOT;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLTag> getTags()
|
||||
{
|
||||
if (tags == null)
|
||||
{
|
||||
tags = new EObjectContainmentEList<WMLTag>(WMLTag.class, this, WmlPackage.WML_ROOT__TAGS);
|
||||
}
|
||||
return tags;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLMacroCall> getMacroCalls()
|
||||
{
|
||||
if (macroCalls == null)
|
||||
{
|
||||
macroCalls = new EObjectContainmentEList<WMLMacroCall>(WMLMacroCall.class, this, WmlPackage.WML_ROOT__MACRO_CALLS);
|
||||
}
|
||||
return macroCalls;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLMacroDefine> getMacroDefines()
|
||||
{
|
||||
if (macroDefines == null)
|
||||
{
|
||||
macroDefines = new EObjectContainmentEList<WMLMacroDefine>(WMLMacroDefine.class, this, WmlPackage.WML_ROOT__MACRO_DEFINES);
|
||||
}
|
||||
return macroDefines;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLTextdomain> getTextdomains()
|
||||
{
|
||||
if (textdomains == null)
|
||||
{
|
||||
textdomains = new EObjectContainmentEList<WMLTextdomain>(WMLTextdomain.class, this, WmlPackage.WML_ROOT__TEXTDOMAINS);
|
||||
}
|
||||
return textdomains;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLPreprocIF> getIfDefs()
|
||||
{
|
||||
if (ifDefs == null)
|
||||
{
|
||||
ifDefs = new EObjectContainmentEList<WMLPreprocIF>(WMLPreprocIF.class, this, WmlPackage.WML_ROOT__IF_DEFS);
|
||||
}
|
||||
return ifDefs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ROOT__TAGS:
|
||||
return ((InternalEList<?>)getTags()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_ROOT__MACRO_CALLS:
|
||||
return ((InternalEList<?>)getMacroCalls()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_ROOT__MACRO_DEFINES:
|
||||
return ((InternalEList<?>)getMacroDefines()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_ROOT__TEXTDOMAINS:
|
||||
return ((InternalEList<?>)getTextdomains()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_ROOT__IF_DEFS:
|
||||
return ((InternalEList<?>)getIfDefs()).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 WmlPackage.WML_ROOT__TAGS:
|
||||
return getTags();
|
||||
case WmlPackage.WML_ROOT__MACRO_CALLS:
|
||||
return getMacroCalls();
|
||||
case WmlPackage.WML_ROOT__MACRO_DEFINES:
|
||||
return getMacroDefines();
|
||||
case WmlPackage.WML_ROOT__TEXTDOMAINS:
|
||||
return getTextdomains();
|
||||
case WmlPackage.WML_ROOT__IF_DEFS:
|
||||
return getIfDefs();
|
||||
}
|
||||
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 WmlPackage.WML_ROOT__TAGS:
|
||||
getTags().clear();
|
||||
getTags().addAll((Collection<? extends WMLTag>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_ROOT__MACRO_CALLS:
|
||||
getMacroCalls().clear();
|
||||
getMacroCalls().addAll((Collection<? extends WMLMacroCall>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_ROOT__MACRO_DEFINES:
|
||||
getMacroDefines().clear();
|
||||
getMacroDefines().addAll((Collection<? extends WMLMacroDefine>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_ROOT__TEXTDOMAINS:
|
||||
getTextdomains().clear();
|
||||
getTextdomains().addAll((Collection<? extends WMLTextdomain>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_ROOT__IF_DEFS:
|
||||
getIfDefs().clear();
|
||||
getIfDefs().addAll((Collection<? extends WMLPreprocIF>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ROOT__TAGS:
|
||||
getTags().clear();
|
||||
return;
|
||||
case WmlPackage.WML_ROOT__MACRO_CALLS:
|
||||
getMacroCalls().clear();
|
||||
return;
|
||||
case WmlPackage.WML_ROOT__MACRO_DEFINES:
|
||||
getMacroDefines().clear();
|
||||
return;
|
||||
case WmlPackage.WML_ROOT__TEXTDOMAINS:
|
||||
getTextdomains().clear();
|
||||
return;
|
||||
case WmlPackage.WML_ROOT__IF_DEFS:
|
||||
getIfDefs().clear();
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_ROOT__TAGS:
|
||||
return tags != null && !tags.isEmpty();
|
||||
case WmlPackage.WML_ROOT__MACRO_CALLS:
|
||||
return macroCalls != null && !macroCalls.isEmpty();
|
||||
case WmlPackage.WML_ROOT__MACRO_DEFINES:
|
||||
return macroDefines != null && !macroDefines.isEmpty();
|
||||
case WmlPackage.WML_ROOT__TEXTDOMAINS:
|
||||
return textdomains != null && !textdomains.isEmpty();
|
||||
case WmlPackage.WML_ROOT__IF_DEFS:
|
||||
return ifDefs != null && !ifDefs.isEmpty();
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //WMLRootImpl
|
|
@ -0,0 +1,550 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.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.wesnoth.wml.WMLKey;
|
||||
import org.wesnoth.wml.WMLMacroCall;
|
||||
import org.wesnoth.wml.WMLMacroDefine;
|
||||
import org.wesnoth.wml.WMLPreprocIF;
|
||||
import org.wesnoth.wml.WMLTag;
|
||||
import org.wesnoth.wml.WMLTextdomain;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Tag</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#isPlus <em>Plus</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#getTags <em>Tags</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#getKeys <em>Keys</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#getMacroCalls <em>Macro Calls</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#getMacroDefines <em>Macro Defines</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#getTextdomains <em>Textdomains</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#getIfDefs <em>If Defs</em>}</li>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLTagImpl#getEndName <em>End Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLTagImpl extends MinimalEObjectImpl.Container implements WMLTag
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #isPlus() <em>Plus</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #isPlus()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final boolean PLUS_EDEFAULT = false;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #isPlus() <em>Plus</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #isPlus()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected boolean plus = PLUS_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;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getTags() <em>Tags</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getTags()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLTag> tags;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getKeys() <em>Keys</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getKeys()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLKey> keys;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getMacroCalls() <em>Macro Calls</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getMacroCalls()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLMacroCall> macroCalls;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getMacroDefines() <em>Macro Defines</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getMacroDefines()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLMacroDefine> macroDefines;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getTextdomains() <em>Textdomains</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getTextdomains()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLTextdomain> textdomains;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getIfDefs() <em>If Defs</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getIfDefs()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<WMLPreprocIF> ifDefs;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getEndName() <em>End Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEndName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String END_NAME_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getEndName() <em>End Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEndName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String endName = END_NAME_EDEFAULT;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLTagImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_TAG;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public boolean isPlus()
|
||||
{
|
||||
return plus;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setPlus(boolean newPlus)
|
||||
{
|
||||
boolean oldPlus = plus;
|
||||
plus = newPlus;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_TAG__PLUS, oldPlus, plus));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- 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, WmlPackage.WML_TAG__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLTag> getTags()
|
||||
{
|
||||
if (tags == null)
|
||||
{
|
||||
tags = new EObjectContainmentEList<WMLTag>(WMLTag.class, this, WmlPackage.WML_TAG__TAGS);
|
||||
}
|
||||
return tags;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLKey> getKeys()
|
||||
{
|
||||
if (keys == null)
|
||||
{
|
||||
keys = new EObjectContainmentEList<WMLKey>(WMLKey.class, this, WmlPackage.WML_TAG__KEYS);
|
||||
}
|
||||
return keys;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLMacroCall> getMacroCalls()
|
||||
{
|
||||
if (macroCalls == null)
|
||||
{
|
||||
macroCalls = new EObjectContainmentEList<WMLMacroCall>(WMLMacroCall.class, this, WmlPackage.WML_TAG__MACRO_CALLS);
|
||||
}
|
||||
return macroCalls;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLMacroDefine> getMacroDefines()
|
||||
{
|
||||
if (macroDefines == null)
|
||||
{
|
||||
macroDefines = new EObjectContainmentEList<WMLMacroDefine>(WMLMacroDefine.class, this, WmlPackage.WML_TAG__MACRO_DEFINES);
|
||||
}
|
||||
return macroDefines;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLTextdomain> getTextdomains()
|
||||
{
|
||||
if (textdomains == null)
|
||||
{
|
||||
textdomains = new EObjectContainmentEList<WMLTextdomain>(WMLTextdomain.class, this, WmlPackage.WML_TAG__TEXTDOMAINS);
|
||||
}
|
||||
return textdomains;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EList<WMLPreprocIF> getIfDefs()
|
||||
{
|
||||
if (ifDefs == null)
|
||||
{
|
||||
ifDefs = new EObjectContainmentEList<WMLPreprocIF>(WMLPreprocIF.class, this, WmlPackage.WML_TAG__IF_DEFS);
|
||||
}
|
||||
return ifDefs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getEndName()
|
||||
{
|
||||
return endName;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setEndName(String newEndName)
|
||||
{
|
||||
String oldEndName = endName;
|
||||
endName = newEndName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_TAG__END_NAME, oldEndName, endName));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_TAG__TAGS:
|
||||
return ((InternalEList<?>)getTags()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_TAG__KEYS:
|
||||
return ((InternalEList<?>)getKeys()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_TAG__MACRO_CALLS:
|
||||
return ((InternalEList<?>)getMacroCalls()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_TAG__MACRO_DEFINES:
|
||||
return ((InternalEList<?>)getMacroDefines()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_TAG__TEXTDOMAINS:
|
||||
return ((InternalEList<?>)getTextdomains()).basicRemove(otherEnd, msgs);
|
||||
case WmlPackage.WML_TAG__IF_DEFS:
|
||||
return ((InternalEList<?>)getIfDefs()).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 WmlPackage.WML_TAG__PLUS:
|
||||
return isPlus();
|
||||
case WmlPackage.WML_TAG__NAME:
|
||||
return getName();
|
||||
case WmlPackage.WML_TAG__TAGS:
|
||||
return getTags();
|
||||
case WmlPackage.WML_TAG__KEYS:
|
||||
return getKeys();
|
||||
case WmlPackage.WML_TAG__MACRO_CALLS:
|
||||
return getMacroCalls();
|
||||
case WmlPackage.WML_TAG__MACRO_DEFINES:
|
||||
return getMacroDefines();
|
||||
case WmlPackage.WML_TAG__TEXTDOMAINS:
|
||||
return getTextdomains();
|
||||
case WmlPackage.WML_TAG__IF_DEFS:
|
||||
return getIfDefs();
|
||||
case WmlPackage.WML_TAG__END_NAME:
|
||||
return getEndName();
|
||||
}
|
||||
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 WmlPackage.WML_TAG__PLUS:
|
||||
setPlus((Boolean)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_TAG__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_TAG__TAGS:
|
||||
getTags().clear();
|
||||
getTags().addAll((Collection<? extends WMLTag>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_TAG__KEYS:
|
||||
getKeys().clear();
|
||||
getKeys().addAll((Collection<? extends WMLKey>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_TAG__MACRO_CALLS:
|
||||
getMacroCalls().clear();
|
||||
getMacroCalls().addAll((Collection<? extends WMLMacroCall>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_TAG__MACRO_DEFINES:
|
||||
getMacroDefines().clear();
|
||||
getMacroDefines().addAll((Collection<? extends WMLMacroDefine>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_TAG__TEXTDOMAINS:
|
||||
getTextdomains().clear();
|
||||
getTextdomains().addAll((Collection<? extends WMLTextdomain>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_TAG__IF_DEFS:
|
||||
getIfDefs().clear();
|
||||
getIfDefs().addAll((Collection<? extends WMLPreprocIF>)newValue);
|
||||
return;
|
||||
case WmlPackage.WML_TAG__END_NAME:
|
||||
setEndName((String)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_TAG__PLUS:
|
||||
setPlus(PLUS_EDEFAULT);
|
||||
return;
|
||||
case WmlPackage.WML_TAG__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
case WmlPackage.WML_TAG__TAGS:
|
||||
getTags().clear();
|
||||
return;
|
||||
case WmlPackage.WML_TAG__KEYS:
|
||||
getKeys().clear();
|
||||
return;
|
||||
case WmlPackage.WML_TAG__MACRO_CALLS:
|
||||
getMacroCalls().clear();
|
||||
return;
|
||||
case WmlPackage.WML_TAG__MACRO_DEFINES:
|
||||
getMacroDefines().clear();
|
||||
return;
|
||||
case WmlPackage.WML_TAG__TEXTDOMAINS:
|
||||
getTextdomains().clear();
|
||||
return;
|
||||
case WmlPackage.WML_TAG__IF_DEFS:
|
||||
getIfDefs().clear();
|
||||
return;
|
||||
case WmlPackage.WML_TAG__END_NAME:
|
||||
setEndName(END_NAME_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_TAG__PLUS:
|
||||
return plus != PLUS_EDEFAULT;
|
||||
case WmlPackage.WML_TAG__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
case WmlPackage.WML_TAG__TAGS:
|
||||
return tags != null && !tags.isEmpty();
|
||||
case WmlPackage.WML_TAG__KEYS:
|
||||
return keys != null && !keys.isEmpty();
|
||||
case WmlPackage.WML_TAG__MACRO_CALLS:
|
||||
return macroCalls != null && !macroCalls.isEmpty();
|
||||
case WmlPackage.WML_TAG__MACRO_DEFINES:
|
||||
return macroDefines != null && !macroDefines.isEmpty();
|
||||
case WmlPackage.WML_TAG__TEXTDOMAINS:
|
||||
return textdomains != null && !textdomains.isEmpty();
|
||||
case WmlPackage.WML_TAG__IF_DEFS:
|
||||
return ifDefs != null && !ifDefs.isEmpty();
|
||||
case WmlPackage.WML_TAG__END_NAME:
|
||||
return END_NAME_EDEFAULT == null ? endName != null : !END_NAME_EDEFAULT.equals(endName);
|
||||
}
|
||||
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(" (plus: ");
|
||||
result.append(plus);
|
||||
result.append(", name: ");
|
||||
result.append(name);
|
||||
result.append(", endName: ");
|
||||
result.append(endName);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //WMLTagImpl
|
|
@ -0,0 +1,181 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.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.wesnoth.wml.WMLTextdomain;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Textdomain</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLTextdomainImpl#getName <em>Name</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLTextdomainImpl extends MinimalEObjectImpl.Container implements WMLTextdomain
|
||||
{
|
||||
/**
|
||||
* 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 WMLTextdomainImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_TEXTDOMAIN;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- 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, WmlPackage.WML_TEXTDOMAIN__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_TEXTDOMAIN__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 WmlPackage.WML_TEXTDOMAIN__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 WmlPackage.WML_TEXTDOMAIN__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_TEXTDOMAIN__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();
|
||||
}
|
||||
|
||||
} //WMLTextdomainImpl
|
|
@ -0,0 +1,180 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.wesnoth.wml.WMLValue;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>WML Value</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* <ul>
|
||||
* <li>{@link org.wesnoth.wml.impl.WMLValueImpl#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class WMLValueImpl extends WMLKeyValueImpl implements WMLValue
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getValue() <em>Value</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getValue()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String VALUE_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getValue()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String value = VALUE_EDEFAULT;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected WMLValueImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return WmlPackage.Literals.WML_VALUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public String getValue()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public void setValue(String newValue)
|
||||
{
|
||||
String oldValue = value;
|
||||
value = newValue;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, WmlPackage.WML_VALUE__VALUE, oldValue, value));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_VALUE__VALUE:
|
||||
return getValue();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_VALUE__VALUE:
|
||||
setValue((String)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_VALUE__VALUE:
|
||||
setValue(VALUE_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case WmlPackage.WML_VALUE__VALUE:
|
||||
return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
|
||||
}
|
||||
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(" (value: ");
|
||||
result.append(value);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //WMLValueImpl
|
|
@ -0,0 +1,242 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.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.wesnoth.wml.*;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model <b>Factory</b>.
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public class WmlFactoryImpl extends EFactoryImpl implements WmlFactory
|
||||
{
|
||||
/**
|
||||
* Creates the default factory implementation.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static WmlFactory init()
|
||||
{
|
||||
try
|
||||
{
|
||||
WmlFactory theWmlFactory = (WmlFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.wesnoth.org/WML");
|
||||
if (theWmlFactory != null)
|
||||
{
|
||||
return theWmlFactory;
|
||||
}
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
EcorePlugin.INSTANCE.log(exception);
|
||||
}
|
||||
return new WmlFactoryImpl();
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an instance of the factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WmlFactoryImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EObject create(EClass eClass)
|
||||
{
|
||||
switch (eClass.getClassifierID())
|
||||
{
|
||||
case WmlPackage.WML_ROOT: return createWMLRoot();
|
||||
case WmlPackage.WML_TAG: return createWMLTag();
|
||||
case WmlPackage.WML_KEY: return createWMLKey();
|
||||
case WmlPackage.WML_KEY_VALUE: return createWMLKeyValue();
|
||||
case WmlPackage.WML_MACRO_CALL: return createWMLMacroCall();
|
||||
case WmlPackage.WML_LUA_CODE: return createWMLLuaCode();
|
||||
case WmlPackage.WML_ARRAY_CALL: return createWMLArrayCall();
|
||||
case WmlPackage.WML_MACRO_DEFINE: return createWMLMacroDefine();
|
||||
case WmlPackage.WML_PREPROC_IF: return createWMLPreprocIF();
|
||||
case WmlPackage.WML_TEXTDOMAIN: return createWMLTextdomain();
|
||||
case WmlPackage.WML_VALUE: return createWMLValue();
|
||||
case WmlPackage.MACRO_TOKENS: return createMacroTokens();
|
||||
default:
|
||||
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLRoot createWMLRoot()
|
||||
{
|
||||
WMLRootImpl wmlRoot = new WMLRootImpl();
|
||||
return wmlRoot;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLTag createWMLTag()
|
||||
{
|
||||
WMLTagImpl wmlTag = new WMLTagImpl();
|
||||
return wmlTag;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLKey createWMLKey()
|
||||
{
|
||||
WMLKeyImpl wmlKey = new WMLKeyImpl();
|
||||
return wmlKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLKeyValue createWMLKeyValue()
|
||||
{
|
||||
WMLKeyValueImpl wmlKeyValue = new WMLKeyValueImpl();
|
||||
return wmlKeyValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLMacroCall createWMLMacroCall()
|
||||
{
|
||||
WMLMacroCallImpl wmlMacroCall = new WMLMacroCallImpl();
|
||||
return wmlMacroCall;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLLuaCode createWMLLuaCode()
|
||||
{
|
||||
WMLLuaCodeImpl wmlLuaCode = new WMLLuaCodeImpl();
|
||||
return wmlLuaCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLArrayCall createWMLArrayCall()
|
||||
{
|
||||
WMLArrayCallImpl wmlArrayCall = new WMLArrayCallImpl();
|
||||
return wmlArrayCall;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLMacroDefine createWMLMacroDefine()
|
||||
{
|
||||
WMLMacroDefineImpl wmlMacroDefine = new WMLMacroDefineImpl();
|
||||
return wmlMacroDefine;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLPreprocIF createWMLPreprocIF()
|
||||
{
|
||||
WMLPreprocIFImpl wmlPreprocIF = new WMLPreprocIFImpl();
|
||||
return wmlPreprocIF;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLTextdomain createWMLTextdomain()
|
||||
{
|
||||
WMLTextdomainImpl wmlTextdomain = new WMLTextdomainImpl();
|
||||
return wmlTextdomain;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WMLValue createWMLValue()
|
||||
{
|
||||
WMLValueImpl wmlValue = new WMLValueImpl();
|
||||
return wmlValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public MacroTokens createMacroTokens()
|
||||
{
|
||||
MacroTokensImpl macroTokens = new MacroTokensImpl();
|
||||
return macroTokens;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WmlPackage getWmlPackage()
|
||||
{
|
||||
return (WmlPackage)getEPackage();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @deprecated
|
||||
* @generated
|
||||
*/
|
||||
@Deprecated
|
||||
public static WmlPackage getPackage()
|
||||
{
|
||||
return WmlPackage.eINSTANCE;
|
||||
}
|
||||
|
||||
} //WmlFactoryImpl
|
|
@ -0,0 +1,976 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.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.impl.EPackageImpl;
|
||||
|
||||
import org.wesnoth.wml.MacroTokens;
|
||||
import org.wesnoth.wml.WMLArrayCall;
|
||||
import org.wesnoth.wml.WMLKey;
|
||||
import org.wesnoth.wml.WMLKeyValue;
|
||||
import org.wesnoth.wml.WMLLuaCode;
|
||||
import org.wesnoth.wml.WMLMacroCall;
|
||||
import org.wesnoth.wml.WMLMacroDefine;
|
||||
import org.wesnoth.wml.WMLPreprocIF;
|
||||
import org.wesnoth.wml.WMLRoot;
|
||||
import org.wesnoth.wml.WMLTag;
|
||||
import org.wesnoth.wml.WMLTextdomain;
|
||||
import org.wesnoth.wml.WMLValue;
|
||||
import org.wesnoth.wml.WmlFactory;
|
||||
import org.wesnoth.wml.WmlPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model <b>Package</b>.
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public class WmlPackageImpl extends EPackageImpl implements WmlPackage
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass wmlRootEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass wmlTagEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass wmlKeyEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass wmlKeyValueEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass wmlMacroCallEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass wmlLuaCodeEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass wmlArrayCallEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass wmlMacroDefineEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass wmlPreprocIFEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass wmlTextdomainEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass wmlValueEClass = null;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private EClass macroTokensEClass = 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.wesnoth.wml.WmlPackage#eNS_URI
|
||||
* @see #init()
|
||||
* @generated
|
||||
*/
|
||||
private WmlPackageImpl()
|
||||
{
|
||||
super(eNS_URI, WmlFactory.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 WmlPackage#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 WmlPackage init()
|
||||
{
|
||||
if (isInited) return (WmlPackage)EPackage.Registry.INSTANCE.getEPackage(WmlPackage.eNS_URI);
|
||||
|
||||
// Obtain or create and register package
|
||||
WmlPackageImpl theWmlPackage = (WmlPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof WmlPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new WmlPackageImpl());
|
||||
|
||||
isInited = true;
|
||||
|
||||
// Create package meta-data objects
|
||||
theWmlPackage.createPackageContents();
|
||||
|
||||
// Initialize created meta-data
|
||||
theWmlPackage.initializePackageContents();
|
||||
|
||||
// Mark meta-data to indicate it can't be changed
|
||||
theWmlPackage.freeze();
|
||||
|
||||
|
||||
// Update the registry and return the package
|
||||
EPackage.Registry.INSTANCE.put(WmlPackage.eNS_URI, theWmlPackage);
|
||||
return theWmlPackage;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getWMLRoot()
|
||||
{
|
||||
return wmlRootEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLRoot_Tags()
|
||||
{
|
||||
return (EReference)wmlRootEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLRoot_MacroCalls()
|
||||
{
|
||||
return (EReference)wmlRootEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLRoot_MacroDefines()
|
||||
{
|
||||
return (EReference)wmlRootEClass.getEStructuralFeatures().get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLRoot_Textdomains()
|
||||
{
|
||||
return (EReference)wmlRootEClass.getEStructuralFeatures().get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLRoot_IfDefs()
|
||||
{
|
||||
return (EReference)wmlRootEClass.getEStructuralFeatures().get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getWMLTag()
|
||||
{
|
||||
return wmlTagEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLTag_Plus()
|
||||
{
|
||||
return (EAttribute)wmlTagEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLTag_Name()
|
||||
{
|
||||
return (EAttribute)wmlTagEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLTag_Tags()
|
||||
{
|
||||
return (EReference)wmlTagEClass.getEStructuralFeatures().get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLTag_Keys()
|
||||
{
|
||||
return (EReference)wmlTagEClass.getEStructuralFeatures().get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLTag_MacroCalls()
|
||||
{
|
||||
return (EReference)wmlTagEClass.getEStructuralFeatures().get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLTag_MacroDefines()
|
||||
{
|
||||
return (EReference)wmlTagEClass.getEStructuralFeatures().get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLTag_Textdomains()
|
||||
{
|
||||
return (EReference)wmlTagEClass.getEStructuralFeatures().get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLTag_IfDefs()
|
||||
{
|
||||
return (EReference)wmlTagEClass.getEStructuralFeatures().get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLTag_EndName()
|
||||
{
|
||||
return (EAttribute)wmlTagEClass.getEStructuralFeatures().get(8);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getWMLKey()
|
||||
{
|
||||
return wmlKeyEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLKey_Name()
|
||||
{
|
||||
return (EAttribute)wmlKeyEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLKey_Value()
|
||||
{
|
||||
return (EReference)wmlKeyEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLKey_Eol()
|
||||
{
|
||||
return (EAttribute)wmlKeyEClass.getEStructuralFeatures().get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getWMLKeyValue()
|
||||
{
|
||||
return wmlKeyValueEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getWMLMacroCall()
|
||||
{
|
||||
return wmlMacroCallEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLMacroCall_Point()
|
||||
{
|
||||
return (EAttribute)wmlMacroCallEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLMacroCall_Relative()
|
||||
{
|
||||
return (EAttribute)wmlMacroCallEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLMacroCall_Name()
|
||||
{
|
||||
return (EAttribute)wmlMacroCallEClass.getEStructuralFeatures().get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLMacroCall_Params()
|
||||
{
|
||||
return (EReference)wmlMacroCallEClass.getEStructuralFeatures().get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLMacroCall_ExtraMacros()
|
||||
{
|
||||
return (EReference)wmlMacroCallEClass.getEStructuralFeatures().get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getWMLLuaCode()
|
||||
{
|
||||
return wmlLuaCodeEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLLuaCode_Value()
|
||||
{
|
||||
return (EAttribute)wmlLuaCodeEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getWMLArrayCall()
|
||||
{
|
||||
return wmlArrayCallEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLArrayCall_Value()
|
||||
{
|
||||
return (EReference)wmlArrayCallEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getWMLMacroDefine()
|
||||
{
|
||||
return wmlMacroDefineEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLMacroDefine_Name()
|
||||
{
|
||||
return (EAttribute)wmlMacroDefineEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLMacroDefine_Tags()
|
||||
{
|
||||
return (EReference)wmlMacroDefineEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLMacroDefine_Keys()
|
||||
{
|
||||
return (EReference)wmlMacroDefineEClass.getEStructuralFeatures().get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLMacroDefine_MacroCalls()
|
||||
{
|
||||
return (EReference)wmlMacroDefineEClass.getEStructuralFeatures().get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLMacroDefine_MacroDefines()
|
||||
{
|
||||
return (EReference)wmlMacroDefineEClass.getEStructuralFeatures().get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLMacroDefine_Textdomains()
|
||||
{
|
||||
return (EReference)wmlMacroDefineEClass.getEStructuralFeatures().get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLMacroDefine_Values()
|
||||
{
|
||||
return (EReference)wmlMacroDefineEClass.getEStructuralFeatures().get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLMacroDefine_IfDefs()
|
||||
{
|
||||
return (EReference)wmlMacroDefineEClass.getEStructuralFeatures().get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLMacroDefine_EndName()
|
||||
{
|
||||
return (EAttribute)wmlMacroDefineEClass.getEStructuralFeatures().get(8);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getWMLPreprocIF()
|
||||
{
|
||||
return wmlPreprocIFEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLPreprocIF_Name()
|
||||
{
|
||||
return (EAttribute)wmlPreprocIFEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLPreprocIF_Tags()
|
||||
{
|
||||
return (EReference)wmlPreprocIFEClass.getEStructuralFeatures().get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLPreprocIF_Keys()
|
||||
{
|
||||
return (EReference)wmlPreprocIFEClass.getEStructuralFeatures().get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLPreprocIF_MacroCalls()
|
||||
{
|
||||
return (EReference)wmlPreprocIFEClass.getEStructuralFeatures().get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLPreprocIF_MacroDefines()
|
||||
{
|
||||
return (EReference)wmlPreprocIFEClass.getEStructuralFeatures().get(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLPreprocIF_Textdomains()
|
||||
{
|
||||
return (EReference)wmlPreprocIFEClass.getEStructuralFeatures().get(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLPreprocIF_Values()
|
||||
{
|
||||
return (EReference)wmlPreprocIFEClass.getEStructuralFeatures().get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference getWMLPreprocIF_IfDefs()
|
||||
{
|
||||
return (EReference)wmlPreprocIFEClass.getEStructuralFeatures().get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLPreprocIF_Elses()
|
||||
{
|
||||
return (EAttribute)wmlPreprocIFEClass.getEStructuralFeatures().get(8);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLPreprocIF_EndName()
|
||||
{
|
||||
return (EAttribute)wmlPreprocIFEClass.getEStructuralFeatures().get(9);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getWMLTextdomain()
|
||||
{
|
||||
return wmlTextdomainEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLTextdomain_Name()
|
||||
{
|
||||
return (EAttribute)wmlTextdomainEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getWMLValue()
|
||||
{
|
||||
return wmlValueEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getWMLValue_Value()
|
||||
{
|
||||
return (EAttribute)wmlValueEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass getMacroTokens()
|
||||
{
|
||||
return macroTokensEClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute getMacroTokens_Val()
|
||||
{
|
||||
return (EAttribute)macroTokensEClass.getEStructuralFeatures().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WmlFactory getWmlFactory()
|
||||
{
|
||||
return (WmlFactory)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
|
||||
wmlRootEClass = createEClass(WML_ROOT);
|
||||
createEReference(wmlRootEClass, WML_ROOT__TAGS);
|
||||
createEReference(wmlRootEClass, WML_ROOT__MACRO_CALLS);
|
||||
createEReference(wmlRootEClass, WML_ROOT__MACRO_DEFINES);
|
||||
createEReference(wmlRootEClass, WML_ROOT__TEXTDOMAINS);
|
||||
createEReference(wmlRootEClass, WML_ROOT__IF_DEFS);
|
||||
|
||||
wmlTagEClass = createEClass(WML_TAG);
|
||||
createEAttribute(wmlTagEClass, WML_TAG__PLUS);
|
||||
createEAttribute(wmlTagEClass, WML_TAG__NAME);
|
||||
createEReference(wmlTagEClass, WML_TAG__TAGS);
|
||||
createEReference(wmlTagEClass, WML_TAG__KEYS);
|
||||
createEReference(wmlTagEClass, WML_TAG__MACRO_CALLS);
|
||||
createEReference(wmlTagEClass, WML_TAG__MACRO_DEFINES);
|
||||
createEReference(wmlTagEClass, WML_TAG__TEXTDOMAINS);
|
||||
createEReference(wmlTagEClass, WML_TAG__IF_DEFS);
|
||||
createEAttribute(wmlTagEClass, WML_TAG__END_NAME);
|
||||
|
||||
wmlKeyEClass = createEClass(WML_KEY);
|
||||
createEAttribute(wmlKeyEClass, WML_KEY__NAME);
|
||||
createEReference(wmlKeyEClass, WML_KEY__VALUE);
|
||||
createEAttribute(wmlKeyEClass, WML_KEY__EOL);
|
||||
|
||||
wmlKeyValueEClass = createEClass(WML_KEY_VALUE);
|
||||
|
||||
wmlMacroCallEClass = createEClass(WML_MACRO_CALL);
|
||||
createEAttribute(wmlMacroCallEClass, WML_MACRO_CALL__POINT);
|
||||
createEAttribute(wmlMacroCallEClass, WML_MACRO_CALL__RELATIVE);
|
||||
createEAttribute(wmlMacroCallEClass, WML_MACRO_CALL__NAME);
|
||||
createEReference(wmlMacroCallEClass, WML_MACRO_CALL__PARAMS);
|
||||
createEReference(wmlMacroCallEClass, WML_MACRO_CALL__EXTRA_MACROS);
|
||||
|
||||
wmlLuaCodeEClass = createEClass(WML_LUA_CODE);
|
||||
createEAttribute(wmlLuaCodeEClass, WML_LUA_CODE__VALUE);
|
||||
|
||||
wmlArrayCallEClass = createEClass(WML_ARRAY_CALL);
|
||||
createEReference(wmlArrayCallEClass, WML_ARRAY_CALL__VALUE);
|
||||
|
||||
wmlMacroDefineEClass = createEClass(WML_MACRO_DEFINE);
|
||||
createEAttribute(wmlMacroDefineEClass, WML_MACRO_DEFINE__NAME);
|
||||
createEReference(wmlMacroDefineEClass, WML_MACRO_DEFINE__TAGS);
|
||||
createEReference(wmlMacroDefineEClass, WML_MACRO_DEFINE__KEYS);
|
||||
createEReference(wmlMacroDefineEClass, WML_MACRO_DEFINE__MACRO_CALLS);
|
||||
createEReference(wmlMacroDefineEClass, WML_MACRO_DEFINE__MACRO_DEFINES);
|
||||
createEReference(wmlMacroDefineEClass, WML_MACRO_DEFINE__TEXTDOMAINS);
|
||||
createEReference(wmlMacroDefineEClass, WML_MACRO_DEFINE__VALUES);
|
||||
createEReference(wmlMacroDefineEClass, WML_MACRO_DEFINE__IF_DEFS);
|
||||
createEAttribute(wmlMacroDefineEClass, WML_MACRO_DEFINE__END_NAME);
|
||||
|
||||
wmlPreprocIFEClass = createEClass(WML_PREPROC_IF);
|
||||
createEAttribute(wmlPreprocIFEClass, WML_PREPROC_IF__NAME);
|
||||
createEReference(wmlPreprocIFEClass, WML_PREPROC_IF__TAGS);
|
||||
createEReference(wmlPreprocIFEClass, WML_PREPROC_IF__KEYS);
|
||||
createEReference(wmlPreprocIFEClass, WML_PREPROC_IF__MACRO_CALLS);
|
||||
createEReference(wmlPreprocIFEClass, WML_PREPROC_IF__MACRO_DEFINES);
|
||||
createEReference(wmlPreprocIFEClass, WML_PREPROC_IF__TEXTDOMAINS);
|
||||
createEReference(wmlPreprocIFEClass, WML_PREPROC_IF__VALUES);
|
||||
createEReference(wmlPreprocIFEClass, WML_PREPROC_IF__IF_DEFS);
|
||||
createEAttribute(wmlPreprocIFEClass, WML_PREPROC_IF__ELSES);
|
||||
createEAttribute(wmlPreprocIFEClass, WML_PREPROC_IF__END_NAME);
|
||||
|
||||
wmlTextdomainEClass = createEClass(WML_TEXTDOMAIN);
|
||||
createEAttribute(wmlTextdomainEClass, WML_TEXTDOMAIN__NAME);
|
||||
|
||||
wmlValueEClass = createEClass(WML_VALUE);
|
||||
createEAttribute(wmlValueEClass, WML_VALUE__VALUE);
|
||||
|
||||
macroTokensEClass = createEClass(MACRO_TOKENS);
|
||||
createEAttribute(macroTokensEClass, MACRO_TOKENS__VAL);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- 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);
|
||||
|
||||
// Create type parameters
|
||||
|
||||
// Set bounds for type parameters
|
||||
|
||||
// Add supertypes to classes
|
||||
wmlMacroCallEClass.getESuperTypes().add(this.getWMLKeyValue());
|
||||
wmlLuaCodeEClass.getESuperTypes().add(this.getWMLKeyValue());
|
||||
wmlArrayCallEClass.getESuperTypes().add(this.getWMLKeyValue());
|
||||
wmlValueEClass.getESuperTypes().add(this.getWMLKeyValue());
|
||||
|
||||
// Initialize classes and features; add operations and parameters
|
||||
initEClass(wmlRootEClass, WMLRoot.class, "WMLRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEReference(getWMLRoot_Tags(), this.getWMLTag(), null, "Tags", null, 0, -1, WMLRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLRoot_MacroCalls(), this.getWMLMacroCall(), null, "MacroCalls", null, 0, -1, WMLRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLRoot_MacroDefines(), this.getWMLMacroDefine(), null, "MacroDefines", null, 0, -1, WMLRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLRoot_Textdomains(), this.getWMLTextdomain(), null, "Textdomains", null, 0, -1, WMLRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLRoot_IfDefs(), this.getWMLPreprocIF(), null, "IfDefs", null, 0, -1, WMLRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(wmlTagEClass, WMLTag.class, "WMLTag", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getWMLTag_Plus(), ecorePackage.getEBoolean(), "plus", null, 0, 1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getWMLTag_Name(), ecorePackage.getEString(), "name", null, 0, 1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLTag_Tags(), this.getWMLTag(), null, "Tags", null, 0, -1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLTag_Keys(), this.getWMLKey(), null, "Keys", null, 0, -1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLTag_MacroCalls(), this.getWMLMacroCall(), null, "MacroCalls", null, 0, -1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLTag_MacroDefines(), this.getWMLMacroDefine(), null, "MacroDefines", null, 0, -1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLTag_Textdomains(), this.getWMLTextdomain(), null, "Textdomains", null, 0, -1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLTag_IfDefs(), this.getWMLPreprocIF(), null, "IfDefs", null, 0, -1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getWMLTag_EndName(), ecorePackage.getEString(), "endName", null, 0, 1, WMLTag.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(wmlKeyEClass, WMLKey.class, "WMLKey", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getWMLKey_Name(), ecorePackage.getEString(), "name", null, 0, 1, WMLKey.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLKey_Value(), this.getWMLKeyValue(), null, "value", null, 0, -1, WMLKey.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getWMLKey_Eol(), ecorePackage.getEString(), "eol", null, 0, 1, WMLKey.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(wmlKeyValueEClass, WMLKeyValue.class, "WMLKeyValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
|
||||
initEClass(wmlMacroCallEClass, WMLMacroCall.class, "WMLMacroCall", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getWMLMacroCall_Point(), ecorePackage.getEBoolean(), "point", null, 0, 1, WMLMacroCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getWMLMacroCall_Relative(), ecorePackage.getEBoolean(), "relative", null, 0, 1, WMLMacroCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getWMLMacroCall_Name(), ecorePackage.getEString(), "name", null, 0, 1, WMLMacroCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLMacroCall_Params(), ecorePackage.getEObject(), null, "params", null, 0, -1, WMLMacroCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLMacroCall_ExtraMacros(), this.getWMLMacroCall(), null, "extraMacros", null, 0, -1, WMLMacroCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(wmlLuaCodeEClass, WMLLuaCode.class, "WMLLuaCode", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getWMLLuaCode_Value(), ecorePackage.getEString(), "value", null, 0, 1, WMLLuaCode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(wmlArrayCallEClass, WMLArrayCall.class, "WMLArrayCall", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEReference(getWMLArrayCall_Value(), this.getWMLValue(), null, "value", null, 0, -1, WMLArrayCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(wmlMacroDefineEClass, WMLMacroDefine.class, "WMLMacroDefine", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getWMLMacroDefine_Name(), ecorePackage.getEString(), "name", null, 0, 1, WMLMacroDefine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLMacroDefine_Tags(), this.getWMLTag(), null, "Tags", null, 0, -1, WMLMacroDefine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLMacroDefine_Keys(), this.getWMLKey(), null, "Keys", null, 0, -1, WMLMacroDefine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLMacroDefine_MacroCalls(), this.getWMLMacroCall(), null, "MacroCalls", null, 0, -1, WMLMacroDefine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLMacroDefine_MacroDefines(), this.getWMLMacroDefine(), null, "MacroDefines", null, 0, -1, WMLMacroDefine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLMacroDefine_Textdomains(), this.getWMLTextdomain(), null, "Textdomains", null, 0, -1, WMLMacroDefine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLMacroDefine_Values(), this.getWMLValue(), null, "Values", null, 0, -1, WMLMacroDefine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLMacroDefine_IfDefs(), this.getWMLPreprocIF(), null, "IfDefs", null, 0, -1, WMLMacroDefine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getWMLMacroDefine_EndName(), ecorePackage.getEString(), "endName", null, 0, 1, WMLMacroDefine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(wmlPreprocIFEClass, WMLPreprocIF.class, "WMLPreprocIF", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getWMLPreprocIF_Name(), ecorePackage.getEString(), "name", null, 0, 1, WMLPreprocIF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLPreprocIF_Tags(), this.getWMLTag(), null, "Tags", null, 0, -1, WMLPreprocIF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLPreprocIF_Keys(), this.getWMLKey(), null, "Keys", null, 0, -1, WMLPreprocIF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLPreprocIF_MacroCalls(), this.getWMLMacroCall(), null, "MacroCalls", null, 0, -1, WMLPreprocIF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLPreprocIF_MacroDefines(), this.getWMLMacroDefine(), null, "MacroDefines", null, 0, -1, WMLPreprocIF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLPreprocIF_Textdomains(), this.getWMLTextdomain(), null, "Textdomains", null, 0, -1, WMLPreprocIF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLPreprocIF_Values(), this.getWMLValue(), null, "Values", null, 0, -1, WMLPreprocIF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEReference(getWMLPreprocIF_IfDefs(), this.getWMLPreprocIF(), null, "IfDefs", null, 0, -1, WMLPreprocIF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getWMLPreprocIF_Elses(), ecorePackage.getEString(), "Elses", null, 0, -1, WMLPreprocIF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
initEAttribute(getWMLPreprocIF_EndName(), ecorePackage.getEString(), "endName", null, 0, 1, WMLPreprocIF.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(wmlTextdomainEClass, WMLTextdomain.class, "WMLTextdomain", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getWMLTextdomain_Name(), ecorePackage.getEString(), "name", null, 0, 1, WMLTextdomain.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(wmlValueEClass, WMLValue.class, "WMLValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getWMLValue_Value(), ecorePackage.getEString(), "value", null, 0, 1, WMLValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(macroTokensEClass, MacroTokens.class, "MacroTokens", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getMacroTokens_Val(), ecorePackage.getEString(), "val", null, 0, 1, MacroTokens.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
// Create resource
|
||||
createResource(eNS_URI);
|
||||
}
|
||||
|
||||
} //WmlPackageImpl
|
|
@ -0,0 +1,356 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.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.wesnoth.wml.*;
|
||||
|
||||
/**
|
||||
* <!-- 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.wesnoth.wml.WmlPackage
|
||||
* @generated
|
||||
*/
|
||||
public class WmlAdapterFactory extends AdapterFactoryImpl
|
||||
{
|
||||
/**
|
||||
* The cached model package.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected static WmlPackage modelPackage;
|
||||
|
||||
/**
|
||||
* Creates an instance of the adapter factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WmlAdapterFactory()
|
||||
{
|
||||
if (modelPackage == null)
|
||||
{
|
||||
modelPackage = WmlPackage.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 WmlSwitch<Adapter> modelSwitch =
|
||||
new WmlSwitch<Adapter>()
|
||||
{
|
||||
@Override
|
||||
public Adapter caseWMLRoot(WMLRoot object)
|
||||
{
|
||||
return createWMLRootAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLTag(WMLTag object)
|
||||
{
|
||||
return createWMLTagAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLKey(WMLKey object)
|
||||
{
|
||||
return createWMLKeyAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLKeyValue(WMLKeyValue object)
|
||||
{
|
||||
return createWMLKeyValueAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLMacroCall(WMLMacroCall object)
|
||||
{
|
||||
return createWMLMacroCallAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLLuaCode(WMLLuaCode object)
|
||||
{
|
||||
return createWMLLuaCodeAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLArrayCall(WMLArrayCall object)
|
||||
{
|
||||
return createWMLArrayCallAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLMacroDefine(WMLMacroDefine object)
|
||||
{
|
||||
return createWMLMacroDefineAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLPreprocIF(WMLPreprocIF object)
|
||||
{
|
||||
return createWMLPreprocIFAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLTextdomain(WMLTextdomain object)
|
||||
{
|
||||
return createWMLTextdomainAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseWMLValue(WMLValue object)
|
||||
{
|
||||
return createWMLValueAdapter();
|
||||
}
|
||||
@Override
|
||||
public Adapter caseMacroTokens(MacroTokens object)
|
||||
{
|
||||
return createMacroTokensAdapter();
|
||||
}
|
||||
@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.wesnoth.wml.WMLRoot <em>WML 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.wesnoth.wml.WMLRoot
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLRootAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLTag <em>WML Tag</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.wesnoth.wml.WMLTag
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLTagAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLKey <em>WML Key</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.wesnoth.wml.WMLKey
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLKeyAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLKeyValue <em>WML Key Value</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.wesnoth.wml.WMLKeyValue
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLKeyValueAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLMacroCall <em>WML Macro Call</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.wesnoth.wml.WMLMacroCall
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLMacroCallAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLLuaCode <em>WML Lua Code</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.wesnoth.wml.WMLLuaCode
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLLuaCodeAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLArrayCall <em>WML Array Call</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.wesnoth.wml.WMLArrayCall
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLArrayCallAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLMacroDefine <em>WML Macro Define</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.wesnoth.wml.WMLMacroDefine
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLMacroDefineAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLPreprocIF <em>WML Preproc IF</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.wesnoth.wml.WMLPreprocIF
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLPreprocIFAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLTextdomain <em>WML Textdomain</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.wesnoth.wml.WMLTextdomain
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLTextdomainAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.WMLValue <em>WML Value</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.wesnoth.wml.WMLValue
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createWMLValueAdapter()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new adapter for an object of class '{@link org.wesnoth.wml.MacroTokens <em>Macro Tokens</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.wesnoth.wml.MacroTokens
|
||||
* @generated
|
||||
*/
|
||||
public Adapter createMacroTokensAdapter()
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
} //WmlAdapterFactory
|
|
@ -0,0 +1,399 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wml.util;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
import org.wesnoth.wml.*;
|
||||
|
||||
/**
|
||||
* <!-- 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.wesnoth.wml.WmlPackage
|
||||
* @generated
|
||||
*/
|
||||
public class WmlSwitch<T>
|
||||
{
|
||||
/**
|
||||
* The cached model package
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected static WmlPackage modelPackage;
|
||||
|
||||
/**
|
||||
* Creates an instance of the switch.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public WmlSwitch()
|
||||
{
|
||||
if (modelPackage == null)
|
||||
{
|
||||
modelPackage = WmlPackage.eINSTANCE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
public T doSwitch(EObject theEObject)
|
||||
{
|
||||
return doSwitch(theEObject.eClass(), theEObject);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
protected T doSwitch(EClass theEClass, EObject theEObject)
|
||||
{
|
||||
if (theEClass.eContainer() == modelPackage)
|
||||
{
|
||||
return doSwitch(theEClass.getClassifierID(), theEObject);
|
||||
}
|
||||
else
|
||||
{
|
||||
List<EClass> eSuperTypes = theEClass.getESuperTypes();
|
||||
return
|
||||
eSuperTypes.isEmpty() ?
|
||||
defaultCase(theEObject) :
|
||||
doSwitch(eSuperTypes.get(0), theEObject);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
protected T doSwitch(int classifierID, EObject theEObject)
|
||||
{
|
||||
switch (classifierID)
|
||||
{
|
||||
case WmlPackage.WML_ROOT:
|
||||
{
|
||||
WMLRoot wmlRoot = (WMLRoot)theEObject;
|
||||
T result = caseWMLRoot(wmlRoot);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case WmlPackage.WML_TAG:
|
||||
{
|
||||
WMLTag wmlTag = (WMLTag)theEObject;
|
||||
T result = caseWMLTag(wmlTag);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case WmlPackage.WML_KEY:
|
||||
{
|
||||
WMLKey wmlKey = (WMLKey)theEObject;
|
||||
T result = caseWMLKey(wmlKey);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case WmlPackage.WML_KEY_VALUE:
|
||||
{
|
||||
WMLKeyValue wmlKeyValue = (WMLKeyValue)theEObject;
|
||||
T result = caseWMLKeyValue(wmlKeyValue);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case WmlPackage.WML_MACRO_CALL:
|
||||
{
|
||||
WMLMacroCall wmlMacroCall = (WMLMacroCall)theEObject;
|
||||
T result = caseWMLMacroCall(wmlMacroCall);
|
||||
if (result == null) result = caseWMLKeyValue(wmlMacroCall);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case WmlPackage.WML_LUA_CODE:
|
||||
{
|
||||
WMLLuaCode wmlLuaCode = (WMLLuaCode)theEObject;
|
||||
T result = caseWMLLuaCode(wmlLuaCode);
|
||||
if (result == null) result = caseWMLKeyValue(wmlLuaCode);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case WmlPackage.WML_ARRAY_CALL:
|
||||
{
|
||||
WMLArrayCall wmlArrayCall = (WMLArrayCall)theEObject;
|
||||
T result = caseWMLArrayCall(wmlArrayCall);
|
||||
if (result == null) result = caseWMLKeyValue(wmlArrayCall);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case WmlPackage.WML_MACRO_DEFINE:
|
||||
{
|
||||
WMLMacroDefine wmlMacroDefine = (WMLMacroDefine)theEObject;
|
||||
T result = caseWMLMacroDefine(wmlMacroDefine);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case WmlPackage.WML_PREPROC_IF:
|
||||
{
|
||||
WMLPreprocIF wmlPreprocIF = (WMLPreprocIF)theEObject;
|
||||
T result = caseWMLPreprocIF(wmlPreprocIF);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case WmlPackage.WML_TEXTDOMAIN:
|
||||
{
|
||||
WMLTextdomain wmlTextdomain = (WMLTextdomain)theEObject;
|
||||
T result = caseWMLTextdomain(wmlTextdomain);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case WmlPackage.WML_VALUE:
|
||||
{
|
||||
WMLValue wmlValue = (WMLValue)theEObject;
|
||||
T result = caseWMLValue(wmlValue);
|
||||
if (result == null) result = caseWMLKeyValue(wmlValue);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
case WmlPackage.MACRO_TOKENS:
|
||||
{
|
||||
MacroTokens macroTokens = (MacroTokens)theEObject;
|
||||
T result = caseMacroTokens(macroTokens);
|
||||
if (result == null) result = defaultCase(theEObject);
|
||||
return result;
|
||||
}
|
||||
default: return defaultCase(theEObject);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>WML 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>WML Root</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseWMLRoot(WMLRoot object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>WML Tag</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>WML Tag</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseWMLTag(WMLTag object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>WML Key</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>WML Key</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseWMLKey(WMLKey object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>WML Key Value</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>WML Key Value</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseWMLKeyValue(WMLKeyValue object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>WML Macro Call</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>WML Macro Call</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseWMLMacroCall(WMLMacroCall object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>WML Lua Code</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>WML Lua Code</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseWMLLuaCode(WMLLuaCode object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>WML Array Call</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>WML Array Call</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseWMLArrayCall(WMLArrayCall object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>WML Macro Define</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>WML Macro Define</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseWMLMacroDefine(WMLMacroDefine object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>WML Preproc IF</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>WML Preproc IF</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseWMLPreprocIF(WMLPreprocIF object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>WML Textdomain</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>WML Textdomain</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseWMLTextdomain(WMLTextdomain object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>WML Value</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>WML Value</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseWMLValue(WMLValue object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the result of interpreting the object as an instance of '<em>Macro Tokens</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>Macro Tokens</em>'.
|
||||
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
|
||||
* @generated
|
||||
*/
|
||||
public T caseMacroTokens(MacroTokens 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
|
||||
*/
|
||||
public T defaultCase(EObject object)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
} //WmlSwitch
|
Loading…
Add table
Reference in a new issue