eclipse plugin: update the grammar
This commit is contained in:
parent
ff35896e66
commit
257a44aead
48 changed files with 11673 additions and 12587 deletions
|
@ -157,8 +157,6 @@ public class AbstractWMLProposalProvider extends AbstractJavaBasedContentProposa
|
|||
public void completeWMLValue_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(0)), context, acceptor);
|
||||
completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(1)), context, acceptor);
|
||||
completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(2)), context, acceptor);
|
||||
completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(3)), context, acceptor);
|
||||
// subclasses may override
|
||||
// subclasses may override
|
||||
// subclasses may override
|
||||
|
@ -166,7 +164,8 @@ public class AbstractWMLProposalProvider extends AbstractJavaBasedContentProposa
|
|||
// subclasses may override
|
||||
// subclasses may override
|
||||
// subclasses may override
|
||||
completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(11)), context, acceptor);
|
||||
// subclasses may override
|
||||
completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(10)), context, acceptor);
|
||||
}
|
||||
public void completeMacroTokens_Val(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
|
@ -209,12 +208,6 @@ public class AbstractWMLProposalProvider extends AbstractJavaBasedContentProposa
|
|||
public void complete_WMLValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_TSTRING(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_TVAR(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_MacroTokens(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
|
|
|
@ -55,7 +55,6 @@ public class WMLParser extends AbstractContentAssistParser {
|
|||
put(grammarAccess.getWMLArrayCallAccess().getGroup(), "rule__WMLArrayCall__Group__0");
|
||||
put(grammarAccess.getWMLMacroDefineAccess().getGroup(), "rule__WMLMacroDefine__Group__0");
|
||||
put(grammarAccess.getWMLPreprocIFAccess().getGroup(), "rule__WMLPreprocIF__Group__0");
|
||||
put(grammarAccess.getTSTRINGAccess().getGroup(), "rule__TSTRING__Group__0");
|
||||
put(grammarAccess.getWMLRootAccess().getTagsAssignment_0(), "rule__WMLRoot__TagsAssignment_0");
|
||||
put(grammarAccess.getWMLRootAccess().getMacroCallsAssignment_1(), "rule__WMLRoot__MacroCallsAssignment_1");
|
||||
put(grammarAccess.getWMLRootAccess().getMacroDefinesAssignment_2(), "rule__WMLRoot__MacroDefinesAssignment_2");
|
||||
|
|
|
@ -373,64 +373,6 @@ finally {
|
|||
|
||||
|
||||
|
||||
// Entry rule entryRuleTSTRING
|
||||
entryRuleTSTRING
|
||||
:
|
||||
{ before(grammarAccess.getTSTRINGRule()); }
|
||||
ruleTSTRING
|
||||
{ after(grammarAccess.getTSTRINGRule()); }
|
||||
EOF
|
||||
;
|
||||
|
||||
// Rule TSTRING
|
||||
ruleTSTRING
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getTSTRINGAccess().getGroup()); }
|
||||
(rule__TSTRING__Group__0)
|
||||
{ after(grammarAccess.getTSTRINGAccess().getGroup()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Entry rule entryRuleTVAR
|
||||
entryRuleTVAR
|
||||
:
|
||||
{ before(grammarAccess.getTVARRule()); }
|
||||
ruleTVAR
|
||||
{ after(grammarAccess.getTVARRule()); }
|
||||
EOF
|
||||
;
|
||||
|
||||
// Rule TVAR
|
||||
ruleTVAR
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getTVARAccess().get_Keyword()); }
|
||||
|
||||
'_$'
|
||||
|
||||
{ after(grammarAccess.getTVARAccess().get_Keyword()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Entry rule entryRuleMacroTokens
|
||||
entryRuleMacroTokens
|
||||
:
|
||||
|
@ -802,83 +744,79 @@ rule__WMLValue__ValueAlternatives_0
|
|||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueTSTRINGParserRuleCall_0_1()); }
|
||||
ruleTSTRING
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueTSTRINGParserRuleCall_0_1()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueTVARParserRuleCall_0_2()); }
|
||||
ruleTVAR
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueTVARParserRuleCall_0_2()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueSTRINGTerminalRuleCall_0_3()); }
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueSTRINGTerminalRuleCall_0_1()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueSTRINGTerminalRuleCall_0_3()); }
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueSTRINGTerminalRuleCall_0_1()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueTildeKeyword_0_4()); }
|
||||
{ before(grammarAccess.getWMLValueAccess().getValue_Keyword_0_2()); }
|
||||
|
||||
'_'
|
||||
|
||||
{ after(grammarAccess.getWMLValueAccess().getValue_Keyword_0_2()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueTildeKeyword_0_3()); }
|
||||
|
||||
'~'
|
||||
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueTildeKeyword_0_4()); }
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueTildeKeyword_0_3()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueFullStopKeyword_0_5()); }
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueFullStopKeyword_0_4()); }
|
||||
|
||||
'.'
|
||||
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueFullStopKeyword_0_5()); }
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueFullStopKeyword_0_4()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueFullStopSolidusKeyword_0_6()); }
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueFullStopSolidusKeyword_0_5()); }
|
||||
|
||||
'./'
|
||||
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueFullStopSolidusKeyword_0_6()); }
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueFullStopSolidusKeyword_0_5()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueDollarSignKeyword_0_7()); }
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueDollarSignKeyword_0_6()); }
|
||||
|
||||
'$'
|
||||
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueDollarSignKeyword_0_7()); }
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueDollarSignKeyword_0_6()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueSolidusKeyword_0_8()); }
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueSolidusKeyword_0_7()); }
|
||||
|
||||
'/'
|
||||
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueSolidusKeyword_0_8()); }
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueSolidusKeyword_0_7()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueLeftParenthesisKeyword_0_9()); }
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueLeftParenthesisKeyword_0_8()); }
|
||||
|
||||
'('
|
||||
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueLeftParenthesisKeyword_0_9()); }
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueLeftParenthesisKeyword_0_8()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueRightParenthesisKeyword_0_10()); }
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueRightParenthesisKeyword_0_9()); }
|
||||
|
||||
')'
|
||||
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueRightParenthesisKeyword_0_10()); }
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueRightParenthesisKeyword_0_9()); }
|
||||
)
|
||||
|
||||
|(
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueANY_OTHERTerminalRuleCall_0_11()); }
|
||||
{ before(grammarAccess.getWMLValueAccess().getValueANY_OTHERTerminalRuleCall_0_10()); }
|
||||
RULE_ANY_OTHER
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueANY_OTHERTerminalRuleCall_0_11()); }
|
||||
{ after(grammarAccess.getWMLValueAccess().getValueANY_OTHERTerminalRuleCall_0_10()); }
|
||||
)
|
||||
|
||||
;
|
||||
|
@ -1957,69 +1895,6 @@ finally {
|
|||
|
||||
|
||||
|
||||
rule__TSTRING__Group__0
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
rule__TSTRING__Group__0__Impl
|
||||
rule__TSTRING__Group__1
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__TSTRING__Group__0__Impl
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getTSTRINGAccess().get_Keyword_0()); }
|
||||
|
||||
'_'
|
||||
|
||||
{ after(grammarAccess.getTSTRINGAccess().get_Keyword_0()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
|
||||
rule__TSTRING__Group__1
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
rule__TSTRING__Group__1__Impl
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
rule__TSTRING__Group__1__Impl
|
||||
@init {
|
||||
int stackSize = keepStackSize();
|
||||
}
|
||||
:
|
||||
(
|
||||
{ before(grammarAccess.getTSTRINGAccess().getSTRINGTerminalRuleCall_1()); }
|
||||
RULE_STRING
|
||||
{ after(grammarAccess.getTSTRINGAccess().getSTRINGTerminalRuleCall_1()); }
|
||||
)
|
||||
|
||||
;
|
||||
finally {
|
||||
restoreStackSize(stackSize);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
rule__WMLRoot__TagsAssignment_0
|
||||
@init {
|
||||
|
|
|
@ -18,14 +18,13 @@ RULE_ELSE=16
|
|||
'}'=34
|
||||
'~'=21
|
||||
'/'=25
|
||||
'_$'=20
|
||||
'{'=33
|
||||
'='=28
|
||||
'('=26
|
||||
'['=29
|
||||
'[/'=32
|
||||
'+'=31
|
||||
'_'=35
|
||||
'_'=20
|
||||
'.'=22
|
||||
')'=27
|
||||
'./'=23
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -7,7 +7,7 @@ package org.wesnoth.ui.contentassist.antlr.internal;
|
|||
import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer;
|
||||
}
|
||||
|
||||
T20 : '_$' ;
|
||||
T20 : '_' ;
|
||||
T21 : '~' ;
|
||||
T22 : '.' ;
|
||||
T23 : './' ;
|
||||
|
@ -22,54 +22,53 @@ T31 : '+' ;
|
|||
T32 : '[/' ;
|
||||
T33 : '{' ;
|
||||
T34 : '}' ;
|
||||
T35 : '_' ;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2759
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2634
|
||||
RULE_LUA_CODE : '<<' ( options {greedy=false;} : . )*'>>';
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2761
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2636
|
||||
RULE_IFHAVE : '#ifhave' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2763
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2638
|
||||
RULE_IFNHAVE : '#ifnhave' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2765
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2640
|
||||
RULE_IFDEF : '#ifdef' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2767
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2642
|
||||
RULE_IFNDEF : '#ifndef' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2769
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2644
|
||||
RULE_ELSE : '#else' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2771
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2646
|
||||
RULE_ENDIF : '#endif' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2773
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2648
|
||||
RULE_DEFINE : '#define' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2775
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2650
|
||||
RULE_ENDDEF : '#enddef' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2777
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2652
|
||||
RULE_TEXTDOMAIN : '#textdomain' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2779
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2654
|
||||
RULE_STRING : '"' ('\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'\\')|~(('\\'|'"')))* '"';
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2781
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2656
|
||||
RULE_ID : ('a'..'z'|'A'..'Z'|'0'..'9'|'_'|'-'|',')+;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2783
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2658
|
||||
RULE_EOL : ('\r'|'\n');
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2785
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2660
|
||||
RULE_WS : (' '|'\t')+;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2787
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2662
|
||||
RULE_ANY_OTHER : .;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2789
|
||||
// $ANTLR src "../org.wesnoth.wml.ui/src-gen/org/wesnoth/ui/contentassist/antlr/internal/InternalWML.g" 2664
|
||||
RULE_SL_COMMENT : '#' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
|
||||
|
|
|
@ -1,105 +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>
|
||||
<?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>
|
||||
|
|
|
@ -1,81 +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>
|
||||
<?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>
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -2859,11 +2859,11 @@ protected class WMLTextdomain_NameAssignment extends AssignmentToken {
|
|||
/************ begin Rule WMLValue ****************
|
||||
*
|
||||
* WMLValue:
|
||||
* value=(ID | TSTRING | TVAR | STRING | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER);
|
||||
* value=(ID | STRING | "_" | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER);
|
||||
*
|
||||
**/
|
||||
|
||||
// value=(ID | TSTRING | TVAR | STRING | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER)
|
||||
// value=(ID | STRING | "_" | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER)
|
||||
protected class WMLValue_ValueAssignment extends AssignmentToken {
|
||||
|
||||
public WMLValue_ValueAssignment(AbstractToken lastRuleCallOrigin, AbstractToken next, int transitionIndex, IEObjectConsumer eObjectConsumer) {
|
||||
|
@ -2888,39 +2888,44 @@ protected class WMLValue_ValueAssignment extends AssignmentToken {
|
|||
return null;
|
||||
if((value = eObjectConsumer.getConsumable("value",true)) == null) return null;
|
||||
IEObjectConsumer obj = eObjectConsumer.cloneAndConsume("value");
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueTildeKeyword_0_4(), value, null)) {
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValue_Keyword_0_2(), value, null)) {
|
||||
type = AssignmentType.KEYWORD;
|
||||
element = grammarAccess.getWMLValueAccess().getValueTildeKeyword_0_4();
|
||||
element = grammarAccess.getWMLValueAccess().getValue_Keyword_0_2();
|
||||
return obj;
|
||||
}
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueFullStopKeyword_0_5(), value, null)) {
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueTildeKeyword_0_3(), value, null)) {
|
||||
type = AssignmentType.KEYWORD;
|
||||
element = grammarAccess.getWMLValueAccess().getValueFullStopKeyword_0_5();
|
||||
element = grammarAccess.getWMLValueAccess().getValueTildeKeyword_0_3();
|
||||
return obj;
|
||||
}
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueFullStopSolidusKeyword_0_6(), value, null)) {
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueFullStopKeyword_0_4(), value, null)) {
|
||||
type = AssignmentType.KEYWORD;
|
||||
element = grammarAccess.getWMLValueAccess().getValueFullStopSolidusKeyword_0_6();
|
||||
element = grammarAccess.getWMLValueAccess().getValueFullStopKeyword_0_4();
|
||||
return obj;
|
||||
}
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueDollarSignKeyword_0_7(), value, null)) {
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueFullStopSolidusKeyword_0_5(), value, null)) {
|
||||
type = AssignmentType.KEYWORD;
|
||||
element = grammarAccess.getWMLValueAccess().getValueDollarSignKeyword_0_7();
|
||||
element = grammarAccess.getWMLValueAccess().getValueFullStopSolidusKeyword_0_5();
|
||||
return obj;
|
||||
}
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueSolidusKeyword_0_8(), value, null)) {
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueDollarSignKeyword_0_6(), value, null)) {
|
||||
type = AssignmentType.KEYWORD;
|
||||
element = grammarAccess.getWMLValueAccess().getValueSolidusKeyword_0_8();
|
||||
element = grammarAccess.getWMLValueAccess().getValueDollarSignKeyword_0_6();
|
||||
return obj;
|
||||
}
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueLeftParenthesisKeyword_0_9(), value, null)) {
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueSolidusKeyword_0_7(), value, null)) {
|
||||
type = AssignmentType.KEYWORD;
|
||||
element = grammarAccess.getWMLValueAccess().getValueLeftParenthesisKeyword_0_9();
|
||||
element = grammarAccess.getWMLValueAccess().getValueSolidusKeyword_0_7();
|
||||
return obj;
|
||||
}
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueRightParenthesisKeyword_0_10(), value, null)) {
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueLeftParenthesisKeyword_0_8(), value, null)) {
|
||||
type = AssignmentType.KEYWORD;
|
||||
element = grammarAccess.getWMLValueAccess().getValueRightParenthesisKeyword_0_10();
|
||||
element = grammarAccess.getWMLValueAccess().getValueLeftParenthesisKeyword_0_8();
|
||||
return obj;
|
||||
}
|
||||
if(keywordSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueRightParenthesisKeyword_0_9(), value, null)) {
|
||||
type = AssignmentType.KEYWORD;
|
||||
element = grammarAccess.getWMLValueAccess().getValueRightParenthesisKeyword_0_9();
|
||||
return obj;
|
||||
}
|
||||
if(valueSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueIDTerminalRuleCall_0_0(), value, null)) {
|
||||
|
@ -2928,24 +2933,14 @@ protected class WMLValue_ValueAssignment extends AssignmentToken {
|
|||
element = grammarAccess.getWMLValueAccess().getValueIDTerminalRuleCall_0_0();
|
||||
return obj;
|
||||
}
|
||||
if(valueSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueTSTRINGParserRuleCall_0_1(), value, null)) {
|
||||
type = AssignmentType.DATATYPE_RULE_CALL;
|
||||
element = grammarAccess.getWMLValueAccess().getValueTSTRINGParserRuleCall_0_1();
|
||||
return obj;
|
||||
}
|
||||
if(valueSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueTVARParserRuleCall_0_2(), value, null)) {
|
||||
type = AssignmentType.DATATYPE_RULE_CALL;
|
||||
element = grammarAccess.getWMLValueAccess().getValueTVARParserRuleCall_0_2();
|
||||
return obj;
|
||||
}
|
||||
if(valueSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueSTRINGTerminalRuleCall_0_3(), value, null)) {
|
||||
if(valueSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueSTRINGTerminalRuleCall_0_1(), value, null)) {
|
||||
type = AssignmentType.TERMINAL_RULE_CALL;
|
||||
element = grammarAccess.getWMLValueAccess().getValueSTRINGTerminalRuleCall_0_3();
|
||||
element = grammarAccess.getWMLValueAccess().getValueSTRINGTerminalRuleCall_0_1();
|
||||
return obj;
|
||||
}
|
||||
if(valueSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueANY_OTHERTerminalRuleCall_0_11(), value, null)) {
|
||||
if(valueSerializer.isValid(obj.getEObject(), grammarAccess.getWMLValueAccess().getValueANY_OTHERTerminalRuleCall_0_10(), value, null)) {
|
||||
type = AssignmentType.TERMINAL_RULE_CALL;
|
||||
element = grammarAccess.getWMLValueAccess().getValueANY_OTHERTerminalRuleCall_0_11();
|
||||
element = grammarAccess.getWMLValueAccess().getValueANY_OTHERTerminalRuleCall_0_10();
|
||||
return obj;
|
||||
}
|
||||
return null;
|
||||
|
@ -2956,8 +2951,6 @@ protected class WMLValue_ValueAssignment extends AssignmentToken {
|
|||
/************ end Rule WMLValue ****************/
|
||||
|
||||
|
||||
|
||||
|
||||
/************ begin Rule MacroTokens ****************
|
||||
*
|
||||
* // we use this as a hack for any characters in the macro call
|
||||
|
|
|
@ -1648,51 +1648,9 @@ ruleWMLValue returns [EObject current=null]
|
|||
}
|
||||
}
|
||||
|
||||
| {
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLValueAccess().getValueTSTRINGParserRuleCall_0_1(), currentNode);
|
||||
}
|
||||
lv_value_0_2=ruleTSTRING {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLValueRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
}
|
||||
try {
|
||||
set(
|
||||
$current,
|
||||
"value",
|
||||
lv_value_0_2,
|
||||
"TSTRING",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
| {
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLValueAccess().getValueTVARParserRuleCall_0_2(), currentNode);
|
||||
}
|
||||
lv_value_0_3=ruleTVAR {
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLValueRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), $current);
|
||||
}
|
||||
try {
|
||||
set(
|
||||
$current,
|
||||
"value",
|
||||
lv_value_0_3,
|
||||
"TVAR",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
}
|
||||
|
||||
| lv_value_0_4=RULE_STRING
|
||||
| lv_value_0_2=RULE_STRING
|
||||
{
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueSTRINGTerminalRuleCall_0_3(), "value");
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueSTRINGTerminalRuleCall_0_1(), "value");
|
||||
}
|
||||
{
|
||||
if ($current==null) {
|
||||
|
@ -1703,7 +1661,7 @@ ruleWMLValue returns [EObject current=null]
|
|||
set(
|
||||
$current,
|
||||
"value",
|
||||
lv_value_0_4,
|
||||
lv_value_0_2,
|
||||
"STRING",
|
||||
lastConsumedNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
|
@ -1711,9 +1669,45 @@ ruleWMLValue returns [EObject current=null]
|
|||
}
|
||||
}
|
||||
|
||||
| lv_value_0_5= '~'
|
||||
| lv_value_0_3= '_'
|
||||
{
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueTildeKeyword_0_4(), "value");
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValue_Keyword_0_2(), "value");
|
||||
}
|
||||
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLValueRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode, $current);
|
||||
}
|
||||
|
||||
try {
|
||||
set($current, "value", lv_value_0_3, null, lastConsumedNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
}
|
||||
|
||||
| lv_value_0_4= '~'
|
||||
{
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueTildeKeyword_0_3(), "value");
|
||||
}
|
||||
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLValueRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode, $current);
|
||||
}
|
||||
|
||||
try {
|
||||
set($current, "value", lv_value_0_4, null, lastConsumedNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
}
|
||||
|
||||
| lv_value_0_5= '.'
|
||||
{
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueFullStopKeyword_0_4(), "value");
|
||||
}
|
||||
|
||||
{
|
||||
|
@ -1729,9 +1723,9 @@ ruleWMLValue returns [EObject current=null]
|
|||
}
|
||||
}
|
||||
|
||||
| lv_value_0_6= '.'
|
||||
| lv_value_0_6= './'
|
||||
{
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueFullStopKeyword_0_5(), "value");
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueFullStopSolidusKeyword_0_5(), "value");
|
||||
}
|
||||
|
||||
{
|
||||
|
@ -1747,9 +1741,9 @@ ruleWMLValue returns [EObject current=null]
|
|||
}
|
||||
}
|
||||
|
||||
| lv_value_0_7= './'
|
||||
| lv_value_0_7= '$'
|
||||
{
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueFullStopSolidusKeyword_0_6(), "value");
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueDollarSignKeyword_0_6(), "value");
|
||||
}
|
||||
|
||||
{
|
||||
|
@ -1765,9 +1759,9 @@ ruleWMLValue returns [EObject current=null]
|
|||
}
|
||||
}
|
||||
|
||||
| lv_value_0_8= '$'
|
||||
| lv_value_0_8= '/'
|
||||
{
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueDollarSignKeyword_0_7(), "value");
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueSolidusKeyword_0_7(), "value");
|
||||
}
|
||||
|
||||
{
|
||||
|
@ -1783,9 +1777,9 @@ ruleWMLValue returns [EObject current=null]
|
|||
}
|
||||
}
|
||||
|
||||
| lv_value_0_9= '/'
|
||||
| lv_value_0_9= '('
|
||||
{
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueSolidusKeyword_0_8(), "value");
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueLeftParenthesisKeyword_0_8(), "value");
|
||||
}
|
||||
|
||||
{
|
||||
|
@ -1801,9 +1795,9 @@ ruleWMLValue returns [EObject current=null]
|
|||
}
|
||||
}
|
||||
|
||||
| lv_value_0_10= '('
|
||||
| lv_value_0_10= ')'
|
||||
{
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueLeftParenthesisKeyword_0_9(), "value");
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueRightParenthesisKeyword_0_9(), "value");
|
||||
}
|
||||
|
||||
{
|
||||
|
@ -1819,27 +1813,9 @@ ruleWMLValue returns [EObject current=null]
|
|||
}
|
||||
}
|
||||
|
||||
| lv_value_0_11= ')'
|
||||
{
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueRightParenthesisKeyword_0_10(), "value");
|
||||
}
|
||||
|
||||
{
|
||||
if ($current==null) {
|
||||
$current = factory.create(grammarAccess.getWMLValueRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode, $current);
|
||||
}
|
||||
|
||||
try {
|
||||
set($current, "value", lv_value_0_11, null, lastConsumedNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
}
|
||||
|
||||
| lv_value_0_12=RULE_ANY_OTHER
|
||||
| lv_value_0_11=RULE_ANY_OTHER
|
||||
{
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueANY_OTHERTerminalRuleCall_0_11(), "value");
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueANY_OTHERTerminalRuleCall_0_10(), "value");
|
||||
}
|
||||
{
|
||||
if ($current==null) {
|
||||
|
@ -1850,7 +1826,7 @@ ruleWMLValue returns [EObject current=null]
|
|||
set(
|
||||
$current,
|
||||
"value",
|
||||
lv_value_0_12,
|
||||
lv_value_0_11,
|
||||
"ANY_OTHER",
|
||||
lastConsumedNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
|
@ -1868,71 +1844,6 @@ ruleWMLValue returns [EObject current=null]
|
|||
|
||||
|
||||
|
||||
// Entry rule entryRuleTSTRING
|
||||
entryRuleTSTRING returns [String current=null]
|
||||
:
|
||||
{ currentNode = createCompositeNode(grammarAccess.getTSTRINGRule(), currentNode); }
|
||||
iv_ruleTSTRING=ruleTSTRING
|
||||
{ $current=$iv_ruleTSTRING.current.getText(); }
|
||||
EOF
|
||||
;
|
||||
|
||||
// Rule TSTRING
|
||||
ruleTSTRING returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
|
||||
@init { setCurrentLookahead(); resetLookahead();
|
||||
}
|
||||
@after { resetLookahead();
|
||||
lastConsumedNode = currentNode;
|
||||
}:
|
||||
(
|
||||
kw='_'
|
||||
{
|
||||
$current.merge(kw);
|
||||
createLeafNode(grammarAccess.getTSTRINGAccess().get_Keyword_0(), null);
|
||||
}
|
||||
this_STRING_1=RULE_STRING {
|
||||
$current.merge(this_STRING_1);
|
||||
}
|
||||
|
||||
{
|
||||
createLeafNode(grammarAccess.getTSTRINGAccess().getSTRINGTerminalRuleCall_1(), null);
|
||||
}
|
||||
)
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Entry rule entryRuleTVAR
|
||||
entryRuleTVAR returns [String current=null]
|
||||
:
|
||||
{ currentNode = createCompositeNode(grammarAccess.getTVARRule(), currentNode); }
|
||||
iv_ruleTVAR=ruleTVAR
|
||||
{ $current=$iv_ruleTVAR.current.getText(); }
|
||||
EOF
|
||||
;
|
||||
|
||||
// Rule TVAR
|
||||
ruleTVAR returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
|
||||
@init { setCurrentLookahead(); resetLookahead();
|
||||
}
|
||||
@after { resetLookahead();
|
||||
lastConsumedNode = currentNode;
|
||||
}:
|
||||
|
||||
kw='_$'
|
||||
{
|
||||
$current.merge(kw);
|
||||
createLeafNode(grammarAccess.getTVARAccess().get_Keyword(), null);
|
||||
}
|
||||
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Entry rule entryRuleMacroTokens
|
||||
entryRuleMacroTokens returns [EObject current=null]
|
||||
:
|
||||
|
|
|
@ -14,19 +14,18 @@ RULE_ENDDEF=9
|
|||
RULE_IFHAVE=12
|
||||
RULE_WS=19
|
||||
RULE_ELSE=14
|
||||
'$'=30
|
||||
'$'=31
|
||||
'}'=28
|
||||
'~'=27
|
||||
'/'=31
|
||||
'_$'=35
|
||||
'/'=32
|
||||
'{'=25
|
||||
'='=24
|
||||
'('=32
|
||||
'('=33
|
||||
'['=20
|
||||
'[/'=23
|
||||
'+'=21
|
||||
'_'=34
|
||||
')'=33
|
||||
'.'=29
|
||||
'_'=29
|
||||
')'=34
|
||||
'.'=30
|
||||
']'=22
|
||||
'./'=26
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -24,7 +24,7 @@ import java.util.ArrayList;
|
|||
@SuppressWarnings("all")
|
||||
public class InternalWMLParser extends AbstractInternalAntlrParser {
|
||||
public static final String[] tokenNames = new String[] {
|
||||
"<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_EOL", "RULE_SL_COMMENT", "RULE_LUA_CODE", "RULE_DEFINE", "RULE_ENDDEF", "RULE_IFDEF", "RULE_IFNDEF", "RULE_IFHAVE", "RULE_IFNHAVE", "RULE_ELSE", "RULE_ENDIF", "RULE_TEXTDOMAIN", "RULE_STRING", "RULE_ANY_OTHER", "RULE_WS", "'['", "'+'", "']'", "'[/'", "'='", "'{'", "'./'", "'~'", "'}'", "'.'", "'$'", "'/'", "'('", "')'", "'_'", "'_$'"
|
||||
"<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_EOL", "RULE_SL_COMMENT", "RULE_LUA_CODE", "RULE_DEFINE", "RULE_ENDDEF", "RULE_IFDEF", "RULE_IFNDEF", "RULE_IFHAVE", "RULE_IFNHAVE", "RULE_ELSE", "RULE_ENDIF", "RULE_TEXTDOMAIN", "RULE_STRING", "RULE_ANY_OTHER", "RULE_WS", "'['", "'+'", "']'", "'[/'", "'='", "'{'", "'./'", "'~'", "'}'", "'_'", "'.'", "'$'", "'/'", "'('", "')'"
|
||||
};
|
||||
public static final int RULE_LUA_CODE=7;
|
||||
public static final int RULE_ID=4;
|
||||
|
@ -1026,7 +1026,7 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
int alt4=2;
|
||||
int LA4_0 = input.LA(1);
|
||||
|
||||
if ( (LA4_0==RULE_ID||LA4_0==RULE_LUA_CODE||(LA4_0>=RULE_STRING && LA4_0<=RULE_ANY_OTHER)||LA4_0==20||(LA4_0>=25 && LA4_0<=27)||(LA4_0>=29 && LA4_0<=35)) ) {
|
||||
if ( (LA4_0==RULE_ID||LA4_0==RULE_LUA_CODE||(LA4_0>=RULE_STRING && LA4_0<=RULE_ANY_OTHER)||LA4_0==20||(LA4_0>=25 && LA4_0<=27)||(LA4_0>=29 && LA4_0<=34)) ) {
|
||||
alt4=1;
|
||||
}
|
||||
|
||||
|
@ -1151,7 +1151,7 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
int alt7=2;
|
||||
int LA7_0 = input.LA(1);
|
||||
|
||||
if ( (LA7_0==RULE_ID||LA7_0==RULE_LUA_CODE||(LA7_0>=RULE_STRING && LA7_0<=RULE_ANY_OTHER)||LA7_0==20||(LA7_0>=25 && LA7_0<=27)||(LA7_0>=29 && LA7_0<=35)) ) {
|
||||
if ( (LA7_0==RULE_ID||LA7_0==RULE_LUA_CODE||(LA7_0>=RULE_STRING && LA7_0<=RULE_ANY_OTHER)||LA7_0==20||(LA7_0>=25 && LA7_0<=27)||(LA7_0>=29 && LA7_0<=34)) ) {
|
||||
alt7=1;
|
||||
}
|
||||
|
||||
|
@ -1392,7 +1392,6 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
case 32:
|
||||
case 33:
|
||||
case 34:
|
||||
case 35:
|
||||
{
|
||||
alt10=1;
|
||||
}
|
||||
|
@ -1692,7 +1691,7 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
int alt14=3;
|
||||
int LA14_0 = input.LA(1);
|
||||
|
||||
if ( (LA14_0==RULE_ID||(LA14_0>=RULE_STRING && LA14_0<=RULE_ANY_OTHER)||(LA14_0>=20 && LA14_0<=24)||(LA14_0>=26 && LA14_0<=27)||(LA14_0>=29 && LA14_0<=35)) ) {
|
||||
if ( (LA14_0==RULE_ID||(LA14_0>=RULE_STRING && LA14_0<=RULE_ANY_OTHER)||(LA14_0>=20 && LA14_0<=24)||(LA14_0>=26 && LA14_0<=27)||(LA14_0>=29 && LA14_0<=34)) ) {
|
||||
alt14=1;
|
||||
}
|
||||
else if ( (LA14_0==25) ) {
|
||||
|
@ -1714,7 +1713,7 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
int alt13=2;
|
||||
int LA13_0 = input.LA(1);
|
||||
|
||||
if ( (LA13_0==RULE_ID||(LA13_0>=RULE_STRING && LA13_0<=RULE_ANY_OTHER)||(LA13_0>=26 && LA13_0<=27)||(LA13_0>=29 && LA13_0<=35)) ) {
|
||||
if ( (LA13_0==RULE_ID||(LA13_0>=RULE_STRING && LA13_0<=RULE_ANY_OTHER)||(LA13_0>=26 && LA13_0<=27)||(LA13_0>=29 && LA13_0<=34)) ) {
|
||||
alt13=1;
|
||||
}
|
||||
else if ( ((LA13_0>=20 && LA13_0<=24)) ) {
|
||||
|
@ -2036,7 +2035,7 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
int alt15=2;
|
||||
int LA15_0 = input.LA(1);
|
||||
|
||||
if ( (LA15_0==RULE_ID||(LA15_0>=RULE_STRING && LA15_0<=RULE_ANY_OTHER)||(LA15_0>=26 && LA15_0<=27)||(LA15_0>=29 && LA15_0<=35)) ) {
|
||||
if ( (LA15_0==RULE_ID||(LA15_0>=RULE_STRING && LA15_0<=RULE_ANY_OTHER)||(LA15_0>=26 && LA15_0<=27)||(LA15_0>=29 && LA15_0<=34)) ) {
|
||||
alt15=1;
|
||||
}
|
||||
|
||||
|
@ -2230,7 +2229,7 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
if ( (LA16_3==24) ) {
|
||||
alt16=2;
|
||||
}
|
||||
else if ( (LA16_3==RULE_ID||(LA16_3>=RULE_DEFINE && LA16_3<=RULE_IFNHAVE)||(LA16_3>=RULE_TEXTDOMAIN && LA16_3<=RULE_ANY_OTHER)||LA16_3==20||(LA16_3>=25 && LA16_3<=27)||(LA16_3>=29 && LA16_3<=35)) ) {
|
||||
else if ( (LA16_3==RULE_ID||(LA16_3>=RULE_DEFINE && LA16_3<=RULE_IFNHAVE)||(LA16_3>=RULE_TEXTDOMAIN && LA16_3<=RULE_ANY_OTHER)||LA16_3==20||(LA16_3>=25 && LA16_3<=27)||(LA16_3>=29 && LA16_3<=34)) ) {
|
||||
alt16=6;
|
||||
}
|
||||
|
||||
|
@ -2262,7 +2261,6 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
case 32:
|
||||
case 33:
|
||||
case 34:
|
||||
case 35:
|
||||
{
|
||||
alt16=6;
|
||||
}
|
||||
|
@ -2875,7 +2873,7 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
if ( (LA18_3==24) ) {
|
||||
alt18=2;
|
||||
}
|
||||
else if ( (LA18_3==RULE_ID||LA18_3==RULE_DEFINE||(LA18_3>=RULE_IFDEF && LA18_3<=RULE_ANY_OTHER)||LA18_3==20||(LA18_3>=25 && LA18_3<=27)||(LA18_3>=29 && LA18_3<=35)) ) {
|
||||
else if ( (LA18_3==RULE_ID||LA18_3==RULE_DEFINE||(LA18_3>=RULE_IFDEF && LA18_3<=RULE_ANY_OTHER)||LA18_3==20||(LA18_3>=25 && LA18_3<=27)||(LA18_3>=29 && LA18_3<=34)) ) {
|
||||
alt18=6;
|
||||
}
|
||||
|
||||
|
@ -2907,7 +2905,6 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
case 32:
|
||||
case 33:
|
||||
case 34:
|
||||
case 35:
|
||||
{
|
||||
alt18=6;
|
||||
}
|
||||
|
@ -3459,11 +3456,13 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
|
||||
|
||||
// $ANTLR start ruleWMLValue
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1621:1: ruleWMLValue returns [EObject current=null] : ( ( (lv_value_0_1= RULE_ID | lv_value_0_2= ruleTSTRING | lv_value_0_3= ruleTVAR | lv_value_0_4= RULE_STRING | lv_value_0_5= '~' | lv_value_0_6= '.' | lv_value_0_7= './' | lv_value_0_8= '$' | lv_value_0_9= '/' | lv_value_0_10= '(' | lv_value_0_11= ')' | lv_value_0_12= RULE_ANY_OTHER ) ) ) ;
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1621:1: ruleWMLValue returns [EObject current=null] : ( ( (lv_value_0_1= RULE_ID | lv_value_0_2= RULE_STRING | lv_value_0_3= '_' | lv_value_0_4= '~' | lv_value_0_5= '.' | lv_value_0_6= './' | lv_value_0_7= '$' | lv_value_0_8= '/' | lv_value_0_9= '(' | lv_value_0_10= ')' | lv_value_0_11= RULE_ANY_OTHER ) ) ) ;
|
||||
public final EObject ruleWMLValue() throws RecognitionException {
|
||||
EObject current = null;
|
||||
|
||||
Token lv_value_0_1=null;
|
||||
Token lv_value_0_2=null;
|
||||
Token lv_value_0_3=null;
|
||||
Token lv_value_0_4=null;
|
||||
Token lv_value_0_5=null;
|
||||
Token lv_value_0_6=null;
|
||||
|
@ -3472,90 +3471,80 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
Token lv_value_0_9=null;
|
||||
Token lv_value_0_10=null;
|
||||
Token lv_value_0_11=null;
|
||||
Token lv_value_0_12=null;
|
||||
AntlrDatatypeRuleToken lv_value_0_2 = null;
|
||||
|
||||
AntlrDatatypeRuleToken lv_value_0_3 = null;
|
||||
|
||||
|
||||
EObject temp=null; setCurrentLookahead(); resetLookahead();
|
||||
|
||||
try {
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1626:6: ( ( ( (lv_value_0_1= RULE_ID | lv_value_0_2= ruleTSTRING | lv_value_0_3= ruleTVAR | lv_value_0_4= RULE_STRING | lv_value_0_5= '~' | lv_value_0_6= '.' | lv_value_0_7= './' | lv_value_0_8= '$' | lv_value_0_9= '/' | lv_value_0_10= '(' | lv_value_0_11= ')' | lv_value_0_12= RULE_ANY_OTHER ) ) ) )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1627:1: ( ( (lv_value_0_1= RULE_ID | lv_value_0_2= ruleTSTRING | lv_value_0_3= ruleTVAR | lv_value_0_4= RULE_STRING | lv_value_0_5= '~' | lv_value_0_6= '.' | lv_value_0_7= './' | lv_value_0_8= '$' | lv_value_0_9= '/' | lv_value_0_10= '(' | lv_value_0_11= ')' | lv_value_0_12= RULE_ANY_OTHER ) ) )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1626:6: ( ( ( (lv_value_0_1= RULE_ID | lv_value_0_2= RULE_STRING | lv_value_0_3= '_' | lv_value_0_4= '~' | lv_value_0_5= '.' | lv_value_0_6= './' | lv_value_0_7= '$' | lv_value_0_8= '/' | lv_value_0_9= '(' | lv_value_0_10= ')' | lv_value_0_11= RULE_ANY_OTHER ) ) ) )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1627:1: ( ( (lv_value_0_1= RULE_ID | lv_value_0_2= RULE_STRING | lv_value_0_3= '_' | lv_value_0_4= '~' | lv_value_0_5= '.' | lv_value_0_6= './' | lv_value_0_7= '$' | lv_value_0_8= '/' | lv_value_0_9= '(' | lv_value_0_10= ')' | lv_value_0_11= RULE_ANY_OTHER ) ) )
|
||||
{
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1627:1: ( ( (lv_value_0_1= RULE_ID | lv_value_0_2= ruleTSTRING | lv_value_0_3= ruleTVAR | lv_value_0_4= RULE_STRING | lv_value_0_5= '~' | lv_value_0_6= '.' | lv_value_0_7= './' | lv_value_0_8= '$' | lv_value_0_9= '/' | lv_value_0_10= '(' | lv_value_0_11= ')' | lv_value_0_12= RULE_ANY_OTHER ) ) )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1628:1: ( (lv_value_0_1= RULE_ID | lv_value_0_2= ruleTSTRING | lv_value_0_3= ruleTVAR | lv_value_0_4= RULE_STRING | lv_value_0_5= '~' | lv_value_0_6= '.' | lv_value_0_7= './' | lv_value_0_8= '$' | lv_value_0_9= '/' | lv_value_0_10= '(' | lv_value_0_11= ')' | lv_value_0_12= RULE_ANY_OTHER ) )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1627:1: ( ( (lv_value_0_1= RULE_ID | lv_value_0_2= RULE_STRING | lv_value_0_3= '_' | lv_value_0_4= '~' | lv_value_0_5= '.' | lv_value_0_6= './' | lv_value_0_7= '$' | lv_value_0_8= '/' | lv_value_0_9= '(' | lv_value_0_10= ')' | lv_value_0_11= RULE_ANY_OTHER ) ) )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1628:1: ( (lv_value_0_1= RULE_ID | lv_value_0_2= RULE_STRING | lv_value_0_3= '_' | lv_value_0_4= '~' | lv_value_0_5= '.' | lv_value_0_6= './' | lv_value_0_7= '$' | lv_value_0_8= '/' | lv_value_0_9= '(' | lv_value_0_10= ')' | lv_value_0_11= RULE_ANY_OTHER ) )
|
||||
{
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1628:1: ( (lv_value_0_1= RULE_ID | lv_value_0_2= ruleTSTRING | lv_value_0_3= ruleTVAR | lv_value_0_4= RULE_STRING | lv_value_0_5= '~' | lv_value_0_6= '.' | lv_value_0_7= './' | lv_value_0_8= '$' | lv_value_0_9= '/' | lv_value_0_10= '(' | lv_value_0_11= ')' | lv_value_0_12= RULE_ANY_OTHER ) )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1629:1: (lv_value_0_1= RULE_ID | lv_value_0_2= ruleTSTRING | lv_value_0_3= ruleTVAR | lv_value_0_4= RULE_STRING | lv_value_0_5= '~' | lv_value_0_6= '.' | lv_value_0_7= './' | lv_value_0_8= '$' | lv_value_0_9= '/' | lv_value_0_10= '(' | lv_value_0_11= ')' | lv_value_0_12= RULE_ANY_OTHER )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1628:1: ( (lv_value_0_1= RULE_ID | lv_value_0_2= RULE_STRING | lv_value_0_3= '_' | lv_value_0_4= '~' | lv_value_0_5= '.' | lv_value_0_6= './' | lv_value_0_7= '$' | lv_value_0_8= '/' | lv_value_0_9= '(' | lv_value_0_10= ')' | lv_value_0_11= RULE_ANY_OTHER ) )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1629:1: (lv_value_0_1= RULE_ID | lv_value_0_2= RULE_STRING | lv_value_0_3= '_' | lv_value_0_4= '~' | lv_value_0_5= '.' | lv_value_0_6= './' | lv_value_0_7= '$' | lv_value_0_8= '/' | lv_value_0_9= '(' | lv_value_0_10= ')' | lv_value_0_11= RULE_ANY_OTHER )
|
||||
{
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1629:1: (lv_value_0_1= RULE_ID | lv_value_0_2= ruleTSTRING | lv_value_0_3= ruleTVAR | lv_value_0_4= RULE_STRING | lv_value_0_5= '~' | lv_value_0_6= '.' | lv_value_0_7= './' | lv_value_0_8= '$' | lv_value_0_9= '/' | lv_value_0_10= '(' | lv_value_0_11= ')' | lv_value_0_12= RULE_ANY_OTHER )
|
||||
int alt19=12;
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1629:1: (lv_value_0_1= RULE_ID | lv_value_0_2= RULE_STRING | lv_value_0_3= '_' | lv_value_0_4= '~' | lv_value_0_5= '.' | lv_value_0_6= './' | lv_value_0_7= '$' | lv_value_0_8= '/' | lv_value_0_9= '(' | lv_value_0_10= ')' | lv_value_0_11= RULE_ANY_OTHER )
|
||||
int alt19=11;
|
||||
switch ( input.LA(1) ) {
|
||||
case RULE_ID:
|
||||
{
|
||||
alt19=1;
|
||||
}
|
||||
break;
|
||||
case 34:
|
||||
case RULE_STRING:
|
||||
{
|
||||
alt19=2;
|
||||
}
|
||||
break;
|
||||
case 35:
|
||||
case 29:
|
||||
{
|
||||
alt19=3;
|
||||
}
|
||||
break;
|
||||
case RULE_STRING:
|
||||
case 27:
|
||||
{
|
||||
alt19=4;
|
||||
}
|
||||
break;
|
||||
case 27:
|
||||
case 30:
|
||||
{
|
||||
alt19=5;
|
||||
}
|
||||
break;
|
||||
case 29:
|
||||
case 26:
|
||||
{
|
||||
alt19=6;
|
||||
}
|
||||
break;
|
||||
case 26:
|
||||
case 31:
|
||||
{
|
||||
alt19=7;
|
||||
}
|
||||
break;
|
||||
case 30:
|
||||
case 32:
|
||||
{
|
||||
alt19=8;
|
||||
}
|
||||
break;
|
||||
case 31:
|
||||
case 33:
|
||||
{
|
||||
alt19=9;
|
||||
}
|
||||
break;
|
||||
case 32:
|
||||
case 34:
|
||||
{
|
||||
alt19=10;
|
||||
}
|
||||
break;
|
||||
case 33:
|
||||
case RULE_ANY_OTHER:
|
||||
{
|
||||
alt19=11;
|
||||
}
|
||||
break;
|
||||
case RULE_ANY_OTHER:
|
||||
{
|
||||
alt19=12;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
NoViableAltException nvae =
|
||||
new NoViableAltException("1629:1: (lv_value_0_1= RULE_ID | lv_value_0_2= ruleTSTRING | lv_value_0_3= ruleTVAR | lv_value_0_4= RULE_STRING | lv_value_0_5= '~' | lv_value_0_6= '.' | lv_value_0_7= './' | lv_value_0_8= '$' | lv_value_0_9= '/' | lv_value_0_10= '(' | lv_value_0_11= ')' | lv_value_0_12= RULE_ANY_OTHER )", 19, 0, input);
|
||||
new NoViableAltException("1629:1: (lv_value_0_1= RULE_ID | lv_value_0_2= RULE_STRING | lv_value_0_3= '_' | lv_value_0_4= '~' | lv_value_0_5= '.' | lv_value_0_6= './' | lv_value_0_7= '$' | lv_value_0_8= '/' | lv_value_0_9= '(' | lv_value_0_10= ')' | lv_value_0_11= RULE_ANY_OTHER )", 19, 0, input);
|
||||
|
||||
throw nvae;
|
||||
}
|
||||
|
@ -3589,72 +3578,12 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
}
|
||||
break;
|
||||
case 2 :
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1651:8: lv_value_0_2= ruleTSTRING
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1651:8: lv_value_0_2= RULE_STRING
|
||||
{
|
||||
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLValueAccess().getValueTSTRINGParserRuleCall_0_1(), currentNode);
|
||||
|
||||
pushFollow(FOLLOW_ruleTSTRING_in_ruleWMLValue2357);
|
||||
lv_value_0_2=ruleTSTRING();
|
||||
_fsp--;
|
||||
lv_value_0_2=(Token)input.LT(1);
|
||||
match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleWMLValue2353);
|
||||
|
||||
|
||||
if (current==null) {
|
||||
current = factory.create(grammarAccess.getWMLValueRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), current);
|
||||
}
|
||||
try {
|
||||
set(
|
||||
current,
|
||||
"value",
|
||||
lv_value_0_2,
|
||||
"TSTRING",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
|
||||
|
||||
}
|
||||
break;
|
||||
case 3 :
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1672:8: lv_value_0_3= ruleTVAR
|
||||
{
|
||||
|
||||
currentNode=createCompositeNode(grammarAccess.getWMLValueAccess().getValueTVARParserRuleCall_0_2(), currentNode);
|
||||
|
||||
pushFollow(FOLLOW_ruleTVAR_in_ruleWMLValue2376);
|
||||
lv_value_0_3=ruleTVAR();
|
||||
_fsp--;
|
||||
|
||||
|
||||
if (current==null) {
|
||||
current = factory.create(grammarAccess.getWMLValueRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode.getParent(), current);
|
||||
}
|
||||
try {
|
||||
set(
|
||||
current,
|
||||
"value",
|
||||
lv_value_0_3,
|
||||
"TVAR",
|
||||
currentNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
currentNode = currentNode.getParent();
|
||||
|
||||
|
||||
}
|
||||
break;
|
||||
case 4 :
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1693:8: lv_value_0_4= RULE_STRING
|
||||
{
|
||||
lv_value_0_4=(Token)input.LT(1);
|
||||
match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleWMLValue2391);
|
||||
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueSTRINGTerminalRuleCall_0_3(), "value");
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueSTRINGTerminalRuleCall_0_1(), "value");
|
||||
|
||||
|
||||
if (current==null) {
|
||||
|
@ -3665,7 +3594,7 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
set(
|
||||
current,
|
||||
"value",
|
||||
lv_value_0_4,
|
||||
lv_value_0_2,
|
||||
"STRING",
|
||||
lastConsumedNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
|
@ -3673,15 +3602,61 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
}
|
||||
|
||||
|
||||
}
|
||||
break;
|
||||
case 3 :
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1672:8: lv_value_0_3= '_'
|
||||
{
|
||||
lv_value_0_3=(Token)input.LT(1);
|
||||
match(input,29,FOLLOW_29_in_ruleWMLValue2374);
|
||||
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValue_Keyword_0_2(), "value");
|
||||
|
||||
|
||||
if (current==null) {
|
||||
current = factory.create(grammarAccess.getWMLValueRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode, current);
|
||||
}
|
||||
|
||||
try {
|
||||
set(current, "value", lv_value_0_3, null, lastConsumedNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
break;
|
||||
case 4 :
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1690:8: lv_value_0_4= '~'
|
||||
{
|
||||
lv_value_0_4=(Token)input.LT(1);
|
||||
match(input,27,FOLLOW_27_in_ruleWMLValue2403);
|
||||
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueTildeKeyword_0_3(), "value");
|
||||
|
||||
|
||||
if (current==null) {
|
||||
current = factory.create(grammarAccess.getWMLValueRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode, current);
|
||||
}
|
||||
|
||||
try {
|
||||
set(current, "value", lv_value_0_4, null, lastConsumedNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
break;
|
||||
case 5 :
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1714:8: lv_value_0_5= '~'
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1708:8: lv_value_0_5= '.'
|
||||
{
|
||||
lv_value_0_5=(Token)input.LT(1);
|
||||
match(input,27,FOLLOW_27_in_ruleWMLValue2412);
|
||||
match(input,30,FOLLOW_30_in_ruleWMLValue2432);
|
||||
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueTildeKeyword_0_4(), "value");
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueFullStopKeyword_0_4(), "value");
|
||||
|
||||
|
||||
if (current==null) {
|
||||
|
@ -3699,12 +3674,12 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
}
|
||||
break;
|
||||
case 6 :
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1732:8: lv_value_0_6= '.'
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1726:8: lv_value_0_6= './'
|
||||
{
|
||||
lv_value_0_6=(Token)input.LT(1);
|
||||
match(input,29,FOLLOW_29_in_ruleWMLValue2441);
|
||||
match(input,26,FOLLOW_26_in_ruleWMLValue2461);
|
||||
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueFullStopKeyword_0_5(), "value");
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueFullStopSolidusKeyword_0_5(), "value");
|
||||
|
||||
|
||||
if (current==null) {
|
||||
|
@ -3722,12 +3697,12 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
}
|
||||
break;
|
||||
case 7 :
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1750:8: lv_value_0_7= './'
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1744:8: lv_value_0_7= '$'
|
||||
{
|
||||
lv_value_0_7=(Token)input.LT(1);
|
||||
match(input,26,FOLLOW_26_in_ruleWMLValue2470);
|
||||
match(input,31,FOLLOW_31_in_ruleWMLValue2490);
|
||||
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueFullStopSolidusKeyword_0_6(), "value");
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueDollarSignKeyword_0_6(), "value");
|
||||
|
||||
|
||||
if (current==null) {
|
||||
|
@ -3745,12 +3720,12 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
}
|
||||
break;
|
||||
case 8 :
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1768:8: lv_value_0_8= '$'
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1762:8: lv_value_0_8= '/'
|
||||
{
|
||||
lv_value_0_8=(Token)input.LT(1);
|
||||
match(input,30,FOLLOW_30_in_ruleWMLValue2499);
|
||||
match(input,32,FOLLOW_32_in_ruleWMLValue2519);
|
||||
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueDollarSignKeyword_0_7(), "value");
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueSolidusKeyword_0_7(), "value");
|
||||
|
||||
|
||||
if (current==null) {
|
||||
|
@ -3768,12 +3743,12 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
}
|
||||
break;
|
||||
case 9 :
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1786:8: lv_value_0_9= '/'
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1780:8: lv_value_0_9= '('
|
||||
{
|
||||
lv_value_0_9=(Token)input.LT(1);
|
||||
match(input,31,FOLLOW_31_in_ruleWMLValue2528);
|
||||
match(input,33,FOLLOW_33_in_ruleWMLValue2548);
|
||||
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueSolidusKeyword_0_8(), "value");
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueLeftParenthesisKeyword_0_8(), "value");
|
||||
|
||||
|
||||
if (current==null) {
|
||||
|
@ -3791,12 +3766,12 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
}
|
||||
break;
|
||||
case 10 :
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1804:8: lv_value_0_10= '('
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1798:8: lv_value_0_10= ')'
|
||||
{
|
||||
lv_value_0_10=(Token)input.LT(1);
|
||||
match(input,32,FOLLOW_32_in_ruleWMLValue2557);
|
||||
match(input,34,FOLLOW_34_in_ruleWMLValue2577);
|
||||
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueLeftParenthesisKeyword_0_9(), "value");
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueRightParenthesisKeyword_0_9(), "value");
|
||||
|
||||
|
||||
if (current==null) {
|
||||
|
@ -3814,35 +3789,12 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
}
|
||||
break;
|
||||
case 11 :
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1822:8: lv_value_0_11= ')'
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1816:8: lv_value_0_11= RULE_ANY_OTHER
|
||||
{
|
||||
lv_value_0_11=(Token)input.LT(1);
|
||||
match(input,33,FOLLOW_33_in_ruleWMLValue2586);
|
||||
match(input,RULE_ANY_OTHER,FOLLOW_RULE_ANY_OTHER_in_ruleWMLValue2605);
|
||||
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueRightParenthesisKeyword_0_10(), "value");
|
||||
|
||||
|
||||
if (current==null) {
|
||||
current = factory.create(grammarAccess.getWMLValueRule().getType().getClassifier());
|
||||
associateNodeWithAstElement(currentNode, current);
|
||||
}
|
||||
|
||||
try {
|
||||
set(current, "value", lv_value_0_11, null, lastConsumedNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
handleValueConverterException(vce);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
break;
|
||||
case 12 :
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1840:8: lv_value_0_12= RULE_ANY_OTHER
|
||||
{
|
||||
lv_value_0_12=(Token)input.LT(1);
|
||||
match(input,RULE_ANY_OTHER,FOLLOW_RULE_ANY_OTHER_in_ruleWMLValue2614);
|
||||
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueANY_OTHERTerminalRuleCall_0_11(), "value");
|
||||
createLeafNode(grammarAccess.getWMLValueAccess().getValueANY_OTHERTerminalRuleCall_0_10(), "value");
|
||||
|
||||
|
||||
if (current==null) {
|
||||
|
@ -3853,7 +3805,7 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
set(
|
||||
current,
|
||||
"value",
|
||||
lv_value_0_12,
|
||||
lv_value_0_11,
|
||||
"ANY_OTHER",
|
||||
lastConsumedNode);
|
||||
} catch (ValueConverterException vce) {
|
||||
|
@ -3891,169 +3843,8 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
// $ANTLR end ruleWMLValue
|
||||
|
||||
|
||||
// $ANTLR start entryRuleTSTRING
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1872:1: entryRuleTSTRING returns [String current=null] : iv_ruleTSTRING= ruleTSTRING EOF ;
|
||||
public final String entryRuleTSTRING() throws RecognitionException {
|
||||
String current = null;
|
||||
|
||||
AntlrDatatypeRuleToken iv_ruleTSTRING = null;
|
||||
|
||||
|
||||
try {
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1873:2: (iv_ruleTSTRING= ruleTSTRING EOF )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1874:2: iv_ruleTSTRING= ruleTSTRING EOF
|
||||
{
|
||||
currentNode = createCompositeNode(grammarAccess.getTSTRINGRule(), currentNode);
|
||||
pushFollow(FOLLOW_ruleTSTRING_in_entryRuleTSTRING2658);
|
||||
iv_ruleTSTRING=ruleTSTRING();
|
||||
_fsp--;
|
||||
|
||||
current =iv_ruleTSTRING.getText();
|
||||
match(input,EOF,FOLLOW_EOF_in_entryRuleTSTRING2669);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
catch (RecognitionException re) {
|
||||
recover(input,re);
|
||||
appendSkippedTokens();
|
||||
}
|
||||
finally {
|
||||
}
|
||||
return current;
|
||||
}
|
||||
// $ANTLR end entryRuleTSTRING
|
||||
|
||||
|
||||
// $ANTLR start ruleTSTRING
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1881:1: ruleTSTRING returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '_' this_STRING_1= RULE_STRING ) ;
|
||||
public final AntlrDatatypeRuleToken ruleTSTRING() throws RecognitionException {
|
||||
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
|
||||
|
||||
Token kw=null;
|
||||
Token this_STRING_1=null;
|
||||
|
||||
setCurrentLookahead(); resetLookahead();
|
||||
|
||||
try {
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1886:6: ( (kw= '_' this_STRING_1= RULE_STRING ) )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1887:1: (kw= '_' this_STRING_1= RULE_STRING )
|
||||
{
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1887:1: (kw= '_' this_STRING_1= RULE_STRING )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1888:2: kw= '_' this_STRING_1= RULE_STRING
|
||||
{
|
||||
kw=(Token)input.LT(1);
|
||||
match(input,34,FOLLOW_34_in_ruleTSTRING2707);
|
||||
|
||||
current.merge(kw);
|
||||
createLeafNode(grammarAccess.getTSTRINGAccess().get_Keyword_0(), null);
|
||||
|
||||
this_STRING_1=(Token)input.LT(1);
|
||||
match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleTSTRING2722);
|
||||
|
||||
current.merge(this_STRING_1);
|
||||
|
||||
|
||||
createLeafNode(grammarAccess.getTSTRINGAccess().getSTRINGTerminalRuleCall_1(), null);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
resetLookahead();
|
||||
lastConsumedNode = currentNode;
|
||||
|
||||
}
|
||||
|
||||
catch (RecognitionException re) {
|
||||
recover(input,re);
|
||||
appendSkippedTokens();
|
||||
}
|
||||
finally {
|
||||
}
|
||||
return current;
|
||||
}
|
||||
// $ANTLR end ruleTSTRING
|
||||
|
||||
|
||||
// $ANTLR start entryRuleTVAR
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1908:1: entryRuleTVAR returns [String current=null] : iv_ruleTVAR= ruleTVAR EOF ;
|
||||
public final String entryRuleTVAR() throws RecognitionException {
|
||||
String current = null;
|
||||
|
||||
AntlrDatatypeRuleToken iv_ruleTVAR = null;
|
||||
|
||||
|
||||
try {
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1909:2: (iv_ruleTVAR= ruleTVAR EOF )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1910:2: iv_ruleTVAR= ruleTVAR EOF
|
||||
{
|
||||
currentNode = createCompositeNode(grammarAccess.getTVARRule(), currentNode);
|
||||
pushFollow(FOLLOW_ruleTVAR_in_entryRuleTVAR2768);
|
||||
iv_ruleTVAR=ruleTVAR();
|
||||
_fsp--;
|
||||
|
||||
current =iv_ruleTVAR.getText();
|
||||
match(input,EOF,FOLLOW_EOF_in_entryRuleTVAR2779);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
catch (RecognitionException re) {
|
||||
recover(input,re);
|
||||
appendSkippedTokens();
|
||||
}
|
||||
finally {
|
||||
}
|
||||
return current;
|
||||
}
|
||||
// $ANTLR end entryRuleTVAR
|
||||
|
||||
|
||||
// $ANTLR start ruleTVAR
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1917:1: ruleTVAR returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '_$' ;
|
||||
public final AntlrDatatypeRuleToken ruleTVAR() throws RecognitionException {
|
||||
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
|
||||
|
||||
Token kw=null;
|
||||
|
||||
setCurrentLookahead(); resetLookahead();
|
||||
|
||||
try {
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1922:6: (kw= '_$' )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1924:2: kw= '_$'
|
||||
{
|
||||
kw=(Token)input.LT(1);
|
||||
match(input,35,FOLLOW_35_in_ruleTVAR2816);
|
||||
|
||||
current.merge(kw);
|
||||
createLeafNode(grammarAccess.getTVARAccess().get_Keyword(), null);
|
||||
|
||||
|
||||
}
|
||||
|
||||
resetLookahead();
|
||||
lastConsumedNode = currentNode;
|
||||
|
||||
}
|
||||
|
||||
catch (RecognitionException re) {
|
||||
recover(input,re);
|
||||
appendSkippedTokens();
|
||||
}
|
||||
finally {
|
||||
}
|
||||
return current;
|
||||
}
|
||||
// $ANTLR end ruleTVAR
|
||||
|
||||
|
||||
// $ANTLR start entryRuleMacroTokens
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1937:1: entryRuleMacroTokens returns [EObject current=null] : iv_ruleMacroTokens= ruleMacroTokens EOF ;
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1848:1: entryRuleMacroTokens returns [EObject current=null] : iv_ruleMacroTokens= ruleMacroTokens EOF ;
|
||||
public final EObject entryRuleMacroTokens() throws RecognitionException {
|
||||
EObject current = null;
|
||||
|
||||
|
@ -4061,16 +3852,16 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
|
||||
|
||||
try {
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1938:2: (iv_ruleMacroTokens= ruleMacroTokens EOF )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1939:2: iv_ruleMacroTokens= ruleMacroTokens EOF
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1849:2: (iv_ruleMacroTokens= ruleMacroTokens EOF )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1850:2: iv_ruleMacroTokens= ruleMacroTokens EOF
|
||||
{
|
||||
currentNode = createCompositeNode(grammarAccess.getMacroTokensRule(), currentNode);
|
||||
pushFollow(FOLLOW_ruleMacroTokens_in_entryRuleMacroTokens2855);
|
||||
pushFollow(FOLLOW_ruleMacroTokens_in_entryRuleMacroTokens2648);
|
||||
iv_ruleMacroTokens=ruleMacroTokens();
|
||||
_fsp--;
|
||||
|
||||
current =iv_ruleMacroTokens;
|
||||
match(input,EOF,FOLLOW_EOF_in_entryRuleMacroTokens2865);
|
||||
match(input,EOF,FOLLOW_EOF_in_entryRuleMacroTokens2658);
|
||||
|
||||
}
|
||||
|
||||
|
@ -4088,7 +3879,7 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
|
||||
|
||||
// $ANTLR start ruleMacroTokens
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1946:1: ruleMacroTokens returns [EObject current=null] : ( ( (lv_val_0_1= '=' | lv_val_0_2= '[' | lv_val_0_3= ']' | lv_val_0_4= '+' | lv_val_0_5= '[/' ) ) ) ;
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1857:1: ruleMacroTokens returns [EObject current=null] : ( ( (lv_val_0_1= '=' | lv_val_0_2= '[' | lv_val_0_3= ']' | lv_val_0_4= '+' | lv_val_0_5= '[/' ) ) ) ;
|
||||
public final EObject ruleMacroTokens() throws RecognitionException {
|
||||
EObject current = null;
|
||||
|
||||
|
@ -4101,16 +3892,16 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
EObject temp=null; setCurrentLookahead(); resetLookahead();
|
||||
|
||||
try {
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1951:6: ( ( ( (lv_val_0_1= '=' | lv_val_0_2= '[' | lv_val_0_3= ']' | lv_val_0_4= '+' | lv_val_0_5= '[/' ) ) ) )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1952:1: ( ( (lv_val_0_1= '=' | lv_val_0_2= '[' | lv_val_0_3= ']' | lv_val_0_4= '+' | lv_val_0_5= '[/' ) ) )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1862:6: ( ( ( (lv_val_0_1= '=' | lv_val_0_2= '[' | lv_val_0_3= ']' | lv_val_0_4= '+' | lv_val_0_5= '[/' ) ) ) )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1863:1: ( ( (lv_val_0_1= '=' | lv_val_0_2= '[' | lv_val_0_3= ']' | lv_val_0_4= '+' | lv_val_0_5= '[/' ) ) )
|
||||
{
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1952:1: ( ( (lv_val_0_1= '=' | lv_val_0_2= '[' | lv_val_0_3= ']' | lv_val_0_4= '+' | lv_val_0_5= '[/' ) ) )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1953:1: ( (lv_val_0_1= '=' | lv_val_0_2= '[' | lv_val_0_3= ']' | lv_val_0_4= '+' | lv_val_0_5= '[/' ) )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1863:1: ( ( (lv_val_0_1= '=' | lv_val_0_2= '[' | lv_val_0_3= ']' | lv_val_0_4= '+' | lv_val_0_5= '[/' ) ) )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1864:1: ( (lv_val_0_1= '=' | lv_val_0_2= '[' | lv_val_0_3= ']' | lv_val_0_4= '+' | lv_val_0_5= '[/' ) )
|
||||
{
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1953:1: ( (lv_val_0_1= '=' | lv_val_0_2= '[' | lv_val_0_3= ']' | lv_val_0_4= '+' | lv_val_0_5= '[/' ) )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1954:1: (lv_val_0_1= '=' | lv_val_0_2= '[' | lv_val_0_3= ']' | lv_val_0_4= '+' | lv_val_0_5= '[/' )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1864:1: ( (lv_val_0_1= '=' | lv_val_0_2= '[' | lv_val_0_3= ']' | lv_val_0_4= '+' | lv_val_0_5= '[/' ) )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1865:1: (lv_val_0_1= '=' | lv_val_0_2= '[' | lv_val_0_3= ']' | lv_val_0_4= '+' | lv_val_0_5= '[/' )
|
||||
{
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1954:1: (lv_val_0_1= '=' | lv_val_0_2= '[' | lv_val_0_3= ']' | lv_val_0_4= '+' | lv_val_0_5= '[/' )
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1865:1: (lv_val_0_1= '=' | lv_val_0_2= '[' | lv_val_0_3= ']' | lv_val_0_4= '+' | lv_val_0_5= '[/' )
|
||||
int alt20=5;
|
||||
switch ( input.LA(1) ) {
|
||||
case 24:
|
||||
|
@ -4140,17 +3931,17 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
break;
|
||||
default:
|
||||
NoViableAltException nvae =
|
||||
new NoViableAltException("1954:1: (lv_val_0_1= '=' | lv_val_0_2= '[' | lv_val_0_3= ']' | lv_val_0_4= '+' | lv_val_0_5= '[/' )", 20, 0, input);
|
||||
new NoViableAltException("1865:1: (lv_val_0_1= '=' | lv_val_0_2= '[' | lv_val_0_3= ']' | lv_val_0_4= '+' | lv_val_0_5= '[/' )", 20, 0, input);
|
||||
|
||||
throw nvae;
|
||||
}
|
||||
|
||||
switch (alt20) {
|
||||
case 1 :
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1955:3: lv_val_0_1= '='
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1866:3: lv_val_0_1= '='
|
||||
{
|
||||
lv_val_0_1=(Token)input.LT(1);
|
||||
match(input,24,FOLLOW_24_in_ruleMacroTokens2909);
|
||||
match(input,24,FOLLOW_24_in_ruleMacroTokens2702);
|
||||
|
||||
createLeafNode(grammarAccess.getMacroTokensAccess().getValEqualsSignKeyword_0_0(), "val");
|
||||
|
||||
|
@ -4170,10 +3961,10 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
}
|
||||
break;
|
||||
case 2 :
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1973:8: lv_val_0_2= '['
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1884:8: lv_val_0_2= '['
|
||||
{
|
||||
lv_val_0_2=(Token)input.LT(1);
|
||||
match(input,20,FOLLOW_20_in_ruleMacroTokens2938);
|
||||
match(input,20,FOLLOW_20_in_ruleMacroTokens2731);
|
||||
|
||||
createLeafNode(grammarAccess.getMacroTokensAccess().getValLeftSquareBracketKeyword_0_1(), "val");
|
||||
|
||||
|
@ -4193,10 +3984,10 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
}
|
||||
break;
|
||||
case 3 :
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1991:8: lv_val_0_3= ']'
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1902:8: lv_val_0_3= ']'
|
||||
{
|
||||
lv_val_0_3=(Token)input.LT(1);
|
||||
match(input,22,FOLLOW_22_in_ruleMacroTokens2967);
|
||||
match(input,22,FOLLOW_22_in_ruleMacroTokens2760);
|
||||
|
||||
createLeafNode(grammarAccess.getMacroTokensAccess().getValRightSquareBracketKeyword_0_2(), "val");
|
||||
|
||||
|
@ -4216,10 +4007,10 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
}
|
||||
break;
|
||||
case 4 :
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:2009:8: lv_val_0_4= '+'
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1920:8: lv_val_0_4= '+'
|
||||
{
|
||||
lv_val_0_4=(Token)input.LT(1);
|
||||
match(input,21,FOLLOW_21_in_ruleMacroTokens2996);
|
||||
match(input,21,FOLLOW_21_in_ruleMacroTokens2789);
|
||||
|
||||
createLeafNode(grammarAccess.getMacroTokensAccess().getValPlusSignKeyword_0_3(), "val");
|
||||
|
||||
|
@ -4239,10 +4030,10 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
}
|
||||
break;
|
||||
case 5 :
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:2027:8: lv_val_0_5= '[/'
|
||||
// ../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g:1938:8: lv_val_0_5= '[/'
|
||||
{
|
||||
lv_val_0_5=(Token)input.LT(1);
|
||||
match(input,23,FOLLOW_23_in_ruleMacroTokens3025);
|
||||
match(input,23,FOLLOW_23_in_ruleMacroTokens2818);
|
||||
|
||||
createLeafNode(grammarAccess.getMacroTokensAccess().getValLeftSquareBracketSolidusKeyword_0_4(), "val");
|
||||
|
||||
|
@ -4316,12 +4107,12 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
public static final BitSet FOLLOW_ruleWMLKey_in_entryRuleWMLKey628 = new BitSet(new long[]{0x0000000000000000L});
|
||||
public static final BitSet FOLLOW_EOF_in_entryRuleWMLKey638 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_RULE_ID_in_ruleWMLKey684 = new BitSet(new long[]{0x0000000001000000L});
|
||||
public static final BitSet FOLLOW_24_in_ruleWMLKey699 = new BitSet(new long[]{0x0000000FEE3600F0L});
|
||||
public static final BitSet FOLLOW_ruleWMLKeyValue_in_ruleWMLKey720 = new BitSet(new long[]{0x0000000FEE3600F0L});
|
||||
public static final BitSet FOLLOW_24_in_ruleWMLKey699 = new BitSet(new long[]{0x00000007EE3600F0L});
|
||||
public static final BitSet FOLLOW_ruleWMLKeyValue_in_ruleWMLKey720 = new BitSet(new long[]{0x00000007EE3600F0L});
|
||||
public static final BitSet FOLLOW_RULE_EOL_in_ruleWMLKey732 = new BitSet(new long[]{0x0000000000200000L});
|
||||
public static final BitSet FOLLOW_21_in_ruleWMLKey743 = new BitSet(new long[]{0x0000000FEE1600B0L});
|
||||
public static final BitSet FOLLOW_RULE_EOL_in_ruleWMLKey753 = new BitSet(new long[]{0x0000000FEE160090L});
|
||||
public static final BitSet FOLLOW_ruleWMLKeyValue_in_ruleWMLKey775 = new BitSet(new long[]{0x0000000FEE3600F0L});
|
||||
public static final BitSet FOLLOW_21_in_ruleWMLKey743 = new BitSet(new long[]{0x00000007EE1600B0L});
|
||||
public static final BitSet FOLLOW_RULE_EOL_in_ruleWMLKey753 = new BitSet(new long[]{0x00000007EE160090L});
|
||||
public static final BitSet FOLLOW_ruleWMLKeyValue_in_ruleWMLKey775 = new BitSet(new long[]{0x00000007EE3600F0L});
|
||||
public static final BitSet FOLLOW_RULE_EOL_in_ruleWMLKey797 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_RULE_SL_COMMENT_in_ruleWMLKey817 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_ruleWMLKeyValue_in_entryRuleWMLKeyValue865 = new BitSet(new long[]{0x0000000000000000L});
|
||||
|
@ -4335,44 +4126,44 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
public static final BitSet FOLLOW_25_in_ruleWMLMacroCall1083 = new BitSet(new long[]{0x000000000C000010L});
|
||||
public static final BitSet FOLLOW_26_in_ruleWMLMacroCall1101 = new BitSet(new long[]{0x0000000008000010L});
|
||||
public static final BitSet FOLLOW_27_in_ruleWMLMacroCall1133 = new BitSet(new long[]{0x0000000000000010L});
|
||||
public static final BitSet FOLLOW_RULE_ID_in_ruleWMLMacroCall1164 = new BitSet(new long[]{0x0000000FFFF60010L});
|
||||
public static final BitSet FOLLOW_ruleWMLValue_in_ruleWMLMacroCall1193 = new BitSet(new long[]{0x0000000FFFF60010L});
|
||||
public static final BitSet FOLLOW_ruleMacroTokens_in_ruleWMLMacroCall1212 = new BitSet(new long[]{0x0000000FFFF60010L});
|
||||
public static final BitSet FOLLOW_ruleWMLMacroCall_in_ruleWMLMacroCall1242 = new BitSet(new long[]{0x0000000FFFF60010L});
|
||||
public static final BitSet FOLLOW_RULE_ID_in_ruleWMLMacroCall1164 = new BitSet(new long[]{0x00000007FFF60010L});
|
||||
public static final BitSet FOLLOW_ruleWMLValue_in_ruleWMLMacroCall1193 = new BitSet(new long[]{0x00000007FFF60010L});
|
||||
public static final BitSet FOLLOW_ruleMacroTokens_in_ruleWMLMacroCall1212 = new BitSet(new long[]{0x00000007FFF60010L});
|
||||
public static final BitSet FOLLOW_ruleWMLMacroCall_in_ruleWMLMacroCall1242 = new BitSet(new long[]{0x00000007FFF60010L});
|
||||
public static final BitSet FOLLOW_28_in_ruleWMLMacroCall1254 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_ruleWMLLuaCode_in_entryRuleWMLLuaCode1290 = new BitSet(new long[]{0x0000000000000000L});
|
||||
public static final BitSet FOLLOW_EOF_in_entryRuleWMLLuaCode1300 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_RULE_LUA_CODE_in_ruleWMLLuaCode1341 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_ruleWMLArrayCall_in_entryRuleWMLArrayCall1381 = new BitSet(new long[]{0x0000000000000000L});
|
||||
public static final BitSet FOLLOW_EOF_in_entryRuleWMLArrayCall1391 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_20_in_ruleWMLArrayCall1426 = new BitSet(new long[]{0x0000000FEC060010L});
|
||||
public static final BitSet FOLLOW_ruleWMLValue_in_ruleWMLArrayCall1447 = new BitSet(new long[]{0x0000000FEC460010L});
|
||||
public static final BitSet FOLLOW_20_in_ruleWMLArrayCall1426 = new BitSet(new long[]{0x00000007EC060010L});
|
||||
public static final BitSet FOLLOW_ruleWMLValue_in_ruleWMLArrayCall1447 = new BitSet(new long[]{0x00000007EC460010L});
|
||||
public static final BitSet FOLLOW_22_in_ruleWMLArrayCall1458 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_ruleWMLMacroDefine_in_entryRuleWMLMacroDefine1494 = new BitSet(new long[]{0x0000000000000000L});
|
||||
public static final BitSet FOLLOW_EOF_in_entryRuleWMLMacroDefine1504 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_RULE_DEFINE_in_ruleWMLMacroDefine1546 = new BitSet(new long[]{0x0000000FEE173F10L});
|
||||
public static final BitSet FOLLOW_ruleWMLTag_in_ruleWMLMacroDefine1573 = new BitSet(new long[]{0x0000000FEE173F10L});
|
||||
public static final BitSet FOLLOW_ruleWMLKey_in_ruleWMLMacroDefine1600 = new BitSet(new long[]{0x0000000FEE173F10L});
|
||||
public static final BitSet FOLLOW_ruleWMLMacroCall_in_ruleWMLMacroDefine1627 = new BitSet(new long[]{0x0000000FEE173F10L});
|
||||
public static final BitSet FOLLOW_ruleWMLMacroDefine_in_ruleWMLMacroDefine1654 = new BitSet(new long[]{0x0000000FEE173F10L});
|
||||
public static final BitSet FOLLOW_ruleWMLTextdomain_in_ruleWMLMacroDefine1681 = new BitSet(new long[]{0x0000000FEE173F10L});
|
||||
public static final BitSet FOLLOW_ruleWMLValue_in_ruleWMLMacroDefine1708 = new BitSet(new long[]{0x0000000FEE173F10L});
|
||||
public static final BitSet FOLLOW_ruleWMLPreprocIF_in_ruleWMLMacroDefine1735 = new BitSet(new long[]{0x0000000FEE173F10L});
|
||||
public static final BitSet FOLLOW_RULE_DEFINE_in_ruleWMLMacroDefine1546 = new BitSet(new long[]{0x00000007EE173F10L});
|
||||
public static final BitSet FOLLOW_ruleWMLTag_in_ruleWMLMacroDefine1573 = new BitSet(new long[]{0x00000007EE173F10L});
|
||||
public static final BitSet FOLLOW_ruleWMLKey_in_ruleWMLMacroDefine1600 = new BitSet(new long[]{0x00000007EE173F10L});
|
||||
public static final BitSet FOLLOW_ruleWMLMacroCall_in_ruleWMLMacroDefine1627 = new BitSet(new long[]{0x00000007EE173F10L});
|
||||
public static final BitSet FOLLOW_ruleWMLMacroDefine_in_ruleWMLMacroDefine1654 = new BitSet(new long[]{0x00000007EE173F10L});
|
||||
public static final BitSet FOLLOW_ruleWMLTextdomain_in_ruleWMLMacroDefine1681 = new BitSet(new long[]{0x00000007EE173F10L});
|
||||
public static final BitSet FOLLOW_ruleWMLValue_in_ruleWMLMacroDefine1708 = new BitSet(new long[]{0x00000007EE173F10L});
|
||||
public static final BitSet FOLLOW_ruleWMLPreprocIF_in_ruleWMLMacroDefine1735 = new BitSet(new long[]{0x00000007EE173F10L});
|
||||
public static final BitSet FOLLOW_RULE_ENDDEF_in_ruleWMLMacroDefine1754 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_ruleWMLPreprocIF_in_entryRuleWMLPreprocIF1795 = new BitSet(new long[]{0x0000000000000000L});
|
||||
public static final BitSet FOLLOW_EOF_in_entryRuleWMLPreprocIF1805 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_RULE_IFDEF_in_ruleWMLPreprocIF1849 = new BitSet(new long[]{0x0000000FEE17FD10L});
|
||||
public static final BitSet FOLLOW_RULE_IFNDEF_in_ruleWMLPreprocIF1869 = new BitSet(new long[]{0x0000000FEE17FD10L});
|
||||
public static final BitSet FOLLOW_RULE_IFHAVE_in_ruleWMLPreprocIF1889 = new BitSet(new long[]{0x0000000FEE17FD10L});
|
||||
public static final BitSet FOLLOW_RULE_IFNHAVE_in_ruleWMLPreprocIF1909 = new BitSet(new long[]{0x0000000FEE17FD10L});
|
||||
public static final BitSet FOLLOW_ruleWMLTag_in_ruleWMLPreprocIF1939 = new BitSet(new long[]{0x0000000FEE17FD10L});
|
||||
public static final BitSet FOLLOW_ruleWMLKey_in_ruleWMLPreprocIF1966 = new BitSet(new long[]{0x0000000FEE17FD10L});
|
||||
public static final BitSet FOLLOW_ruleWMLMacroCall_in_ruleWMLPreprocIF1993 = new BitSet(new long[]{0x0000000FEE17FD10L});
|
||||
public static final BitSet FOLLOW_ruleWMLMacroDefine_in_ruleWMLPreprocIF2020 = new BitSet(new long[]{0x0000000FEE17FD10L});
|
||||
public static final BitSet FOLLOW_ruleWMLTextdomain_in_ruleWMLPreprocIF2047 = new BitSet(new long[]{0x0000000FEE17FD10L});
|
||||
public static final BitSet FOLLOW_ruleWMLValue_in_ruleWMLPreprocIF2074 = new BitSet(new long[]{0x0000000FEE17FD10L});
|
||||
public static final BitSet FOLLOW_ruleWMLPreprocIF_in_ruleWMLPreprocIF2101 = new BitSet(new long[]{0x0000000FEE17FD10L});
|
||||
public static final BitSet FOLLOW_RULE_ELSE_in_ruleWMLPreprocIF2124 = new BitSet(new long[]{0x0000000FEE17FD10L});
|
||||
public static final BitSet FOLLOW_RULE_IFDEF_in_ruleWMLPreprocIF1849 = new BitSet(new long[]{0x00000007EE17FD10L});
|
||||
public static final BitSet FOLLOW_RULE_IFNDEF_in_ruleWMLPreprocIF1869 = new BitSet(new long[]{0x00000007EE17FD10L});
|
||||
public static final BitSet FOLLOW_RULE_IFHAVE_in_ruleWMLPreprocIF1889 = new BitSet(new long[]{0x00000007EE17FD10L});
|
||||
public static final BitSet FOLLOW_RULE_IFNHAVE_in_ruleWMLPreprocIF1909 = new BitSet(new long[]{0x00000007EE17FD10L});
|
||||
public static final BitSet FOLLOW_ruleWMLTag_in_ruleWMLPreprocIF1939 = new BitSet(new long[]{0x00000007EE17FD10L});
|
||||
public static final BitSet FOLLOW_ruleWMLKey_in_ruleWMLPreprocIF1966 = new BitSet(new long[]{0x00000007EE17FD10L});
|
||||
public static final BitSet FOLLOW_ruleWMLMacroCall_in_ruleWMLPreprocIF1993 = new BitSet(new long[]{0x00000007EE17FD10L});
|
||||
public static final BitSet FOLLOW_ruleWMLMacroDefine_in_ruleWMLPreprocIF2020 = new BitSet(new long[]{0x00000007EE17FD10L});
|
||||
public static final BitSet FOLLOW_ruleWMLTextdomain_in_ruleWMLPreprocIF2047 = new BitSet(new long[]{0x00000007EE17FD10L});
|
||||
public static final BitSet FOLLOW_ruleWMLValue_in_ruleWMLPreprocIF2074 = new BitSet(new long[]{0x00000007EE17FD10L});
|
||||
public static final BitSet FOLLOW_ruleWMLPreprocIF_in_ruleWMLPreprocIF2101 = new BitSet(new long[]{0x00000007EE17FD10L});
|
||||
public static final BitSet FOLLOW_RULE_ELSE_in_ruleWMLPreprocIF2124 = new BitSet(new long[]{0x00000007EE17FD10L});
|
||||
public static final BitSet FOLLOW_RULE_ENDIF_in_ruleWMLPreprocIF2148 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_ruleWMLTextdomain_in_entryRuleWMLTextdomain2189 = new BitSet(new long[]{0x0000000000000000L});
|
||||
public static final BitSet FOLLOW_EOF_in_entryRuleWMLTextdomain2199 = new BitSet(new long[]{0x0000000000000002L});
|
||||
|
@ -4380,30 +4171,22 @@ public class InternalWMLParser extends AbstractInternalAntlrParser {
|
|||
public static final BitSet FOLLOW_ruleWMLValue_in_entryRuleWMLValue2280 = new BitSet(new long[]{0x0000000000000000L});
|
||||
public static final BitSet FOLLOW_EOF_in_entryRuleWMLValue2290 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_RULE_ID_in_ruleWMLValue2333 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_ruleTSTRING_in_ruleWMLValue2357 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_ruleTVAR_in_ruleWMLValue2376 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_RULE_STRING_in_ruleWMLValue2391 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_27_in_ruleWMLValue2412 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_29_in_ruleWMLValue2441 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_26_in_ruleWMLValue2470 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_30_in_ruleWMLValue2499 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_31_in_ruleWMLValue2528 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_32_in_ruleWMLValue2557 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_33_in_ruleWMLValue2586 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_RULE_ANY_OTHER_in_ruleWMLValue2614 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_ruleTSTRING_in_entryRuleTSTRING2658 = new BitSet(new long[]{0x0000000000000000L});
|
||||
public static final BitSet FOLLOW_EOF_in_entryRuleTSTRING2669 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_34_in_ruleTSTRING2707 = new BitSet(new long[]{0x0000000000020000L});
|
||||
public static final BitSet FOLLOW_RULE_STRING_in_ruleTSTRING2722 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_ruleTVAR_in_entryRuleTVAR2768 = new BitSet(new long[]{0x0000000000000000L});
|
||||
public static final BitSet FOLLOW_EOF_in_entryRuleTVAR2779 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_35_in_ruleTVAR2816 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_ruleMacroTokens_in_entryRuleMacroTokens2855 = new BitSet(new long[]{0x0000000000000000L});
|
||||
public static final BitSet FOLLOW_EOF_in_entryRuleMacroTokens2865 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_24_in_ruleMacroTokens2909 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_20_in_ruleMacroTokens2938 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_22_in_ruleMacroTokens2967 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_21_in_ruleMacroTokens2996 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_23_in_ruleMacroTokens3025 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_RULE_STRING_in_ruleWMLValue2353 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_29_in_ruleWMLValue2374 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_27_in_ruleWMLValue2403 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_30_in_ruleWMLValue2432 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_26_in_ruleWMLValue2461 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_31_in_ruleWMLValue2490 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_32_in_ruleWMLValue2519 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_33_in_ruleWMLValue2548 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_34_in_ruleWMLValue2577 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_RULE_ANY_OTHER_in_ruleWMLValue2605 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_ruleMacroTokens_in_entryRuleMacroTokens2648 = new BitSet(new long[]{0x0000000000000000L});
|
||||
public static final BitSet FOLLOW_EOF_in_entryRuleMacroTokens2658 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_24_in_ruleMacroTokens2702 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_20_in_ruleMacroTokens2731 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_22_in_ruleMacroTokens2760 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_21_in_ruleMacroTokens2789 = new BitSet(new long[]{0x0000000000000002L});
|
||||
public static final BitSet FOLLOW_23_in_ruleMacroTokens2818 = new BitSet(new long[]{0x0000000000000002L});
|
||||
|
||||
}
|
|
@ -16,60 +16,59 @@ T25 : '{' ;
|
|||
T26 : './' ;
|
||||
T27 : '~' ;
|
||||
T28 : '}' ;
|
||||
T29 : '.' ;
|
||||
T30 : '$' ;
|
||||
T31 : '/' ;
|
||||
T32 : '(' ;
|
||||
T33 : ')' ;
|
||||
T34 : '_' ;
|
||||
T35 : '_$' ;
|
||||
T29 : '_' ;
|
||||
T30 : '.' ;
|
||||
T31 : '$' ;
|
||||
T32 : '/' ;
|
||||
T33 : '(' ;
|
||||
T34 : ')' ;
|
||||
|
||||
// $ANTLR src "../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 2055
|
||||
// $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" 2057
|
||||
// $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" 2059
|
||||
// $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" 2061
|
||||
// $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" 2063
|
||||
// $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" 2065
|
||||
// $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" 2067
|
||||
// $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" 2069
|
||||
// $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" 2071
|
||||
// $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" 2073
|
||||
// $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" 2075
|
||||
// $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" 2077
|
||||
// $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" 2079
|
||||
// $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" 2081
|
||||
// $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" 2083
|
||||
// $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" 2085
|
||||
// $ANTLR src "../org.wesnoth.wml/src-gen/org/wesnoth/parser/antlr/internal/InternalWML.g" 1996
|
||||
RULE_SL_COMMENT : '#' ~(('\n'|'\r'))* ('\r'? '\n')?;
|
||||
|
||||
|
||||
|
|
|
@ -622,95 +622,59 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
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 cValueTSTRINGParserRuleCall_0_1 = (RuleCall)cValueAlternatives_0.eContents().get(1);
|
||||
private final RuleCall cValueTVARParserRuleCall_0_2 = (RuleCall)cValueAlternatives_0.eContents().get(2);
|
||||
private final RuleCall cValueSTRINGTerminalRuleCall_0_3 = (RuleCall)cValueAlternatives_0.eContents().get(3);
|
||||
private final Keyword cValueTildeKeyword_0_4 = (Keyword)cValueAlternatives_0.eContents().get(4);
|
||||
private final Keyword cValueFullStopKeyword_0_5 = (Keyword)cValueAlternatives_0.eContents().get(5);
|
||||
private final Keyword cValueFullStopSolidusKeyword_0_6 = (Keyword)cValueAlternatives_0.eContents().get(6);
|
||||
private final Keyword cValueDollarSignKeyword_0_7 = (Keyword)cValueAlternatives_0.eContents().get(7);
|
||||
private final Keyword cValueSolidusKeyword_0_8 = (Keyword)cValueAlternatives_0.eContents().get(8);
|
||||
private final Keyword cValueLeftParenthesisKeyword_0_9 = (Keyword)cValueAlternatives_0.eContents().get(9);
|
||||
private final Keyword cValueRightParenthesisKeyword_0_10 = (Keyword)cValueAlternatives_0.eContents().get(10);
|
||||
private final RuleCall cValueANY_OTHERTerminalRuleCall_0_11 = (RuleCall)cValueAlternatives_0.eContents().get(11);
|
||||
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 | TSTRING | TVAR | STRING | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER);
|
||||
// value=(ID | STRING | "_" | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER);
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//value=(ID | TSTRING | TVAR | STRING | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER)
|
||||
//value=(ID | STRING | "_" | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER)
|
||||
public Assignment getValueAssignment() { return cValueAssignment; }
|
||||
|
||||
//ID | TSTRING | TVAR | STRING | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER
|
||||
//ID | STRING | "_" | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER
|
||||
public Alternatives getValueAlternatives_0() { return cValueAlternatives_0; }
|
||||
|
||||
//ID
|
||||
public RuleCall getValueIDTerminalRuleCall_0_0() { return cValueIDTerminalRuleCall_0_0; }
|
||||
|
||||
//TSTRING
|
||||
public RuleCall getValueTSTRINGParserRuleCall_0_1() { return cValueTSTRINGParserRuleCall_0_1; }
|
||||
|
||||
//TVAR
|
||||
public RuleCall getValueTVARParserRuleCall_0_2() { return cValueTVARParserRuleCall_0_2; }
|
||||
|
||||
//STRING
|
||||
public RuleCall getValueSTRINGTerminalRuleCall_0_3() { return cValueSTRINGTerminalRuleCall_0_3; }
|
||||
|
||||
//"~"
|
||||
public Keyword getValueTildeKeyword_0_4() { return cValueTildeKeyword_0_4; }
|
||||
|
||||
//"."
|
||||
public Keyword getValueFullStopKeyword_0_5() { return cValueFullStopKeyword_0_5; }
|
||||
|
||||
//"./"
|
||||
public Keyword getValueFullStopSolidusKeyword_0_6() { return cValueFullStopSolidusKeyword_0_6; }
|
||||
|
||||
//"$"
|
||||
public Keyword getValueDollarSignKeyword_0_7() { return cValueDollarSignKeyword_0_7; }
|
||||
|
||||
//"/"
|
||||
public Keyword getValueSolidusKeyword_0_8() { return cValueSolidusKeyword_0_8; }
|
||||
|
||||
//"("
|
||||
public Keyword getValueLeftParenthesisKeyword_0_9() { return cValueLeftParenthesisKeyword_0_9; }
|
||||
|
||||
//")"
|
||||
public Keyword getValueRightParenthesisKeyword_0_10() { return cValueRightParenthesisKeyword_0_10; }
|
||||
|
||||
//ANY_OTHER
|
||||
public RuleCall getValueANY_OTHERTerminalRuleCall_0_11() { return cValueANY_OTHERTerminalRuleCall_0_11; }
|
||||
}
|
||||
|
||||
public class TSTRINGElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "TSTRING");
|
||||
private final Group cGroup = (Group)rule.eContents().get(1);
|
||||
private final Keyword c_Keyword_0 = (Keyword)cGroup.eContents().get(0);
|
||||
private final RuleCall cSTRINGTerminalRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
|
||||
|
||||
//TSTRING returns ecore::EString:
|
||||
// "_" STRING;
|
||||
public ParserRule getRule() { return rule; }
|
||||
|
||||
//"_" STRING
|
||||
public Group getGroup() { return cGroup; }
|
||||
public RuleCall getValueSTRINGTerminalRuleCall_0_1() { return cValueSTRINGTerminalRuleCall_0_1; }
|
||||
|
||||
//"_"
|
||||
public Keyword get_Keyword_0() { return c_Keyword_0; }
|
||||
public Keyword getValue_Keyword_0_2() { return cValue_Keyword_0_2; }
|
||||
|
||||
//STRING
|
||||
public RuleCall getSTRINGTerminalRuleCall_1() { return cSTRINGTerminalRuleCall_1; }
|
||||
}
|
||||
//"~"
|
||||
public Keyword getValueTildeKeyword_0_3() { return cValueTildeKeyword_0_3; }
|
||||
|
||||
public class TVARElements extends AbstractParserRuleElementFinder {
|
||||
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "TVAR");
|
||||
private final Keyword c_Keyword = (Keyword)rule.eContents().get(1);
|
||||
|
||||
//TVAR returns ecore::EString:
|
||||
// "_$";
|
||||
public ParserRule getRule() { return rule; }
|
||||
//"."
|
||||
public Keyword getValueFullStopKeyword_0_4() { return cValueFullStopKeyword_0_4; }
|
||||
|
||||
//"_$"
|
||||
public Keyword get_Keyword() { return c_Keyword; }
|
||||
//"./"
|
||||
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 {
|
||||
|
@ -763,8 +727,6 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
private WMLPreprocIFElements pWMLPreprocIF;
|
||||
private WMLTextdomainElements pWMLTextdomain;
|
||||
private WMLValueElements pWMLValue;
|
||||
private TSTRINGElements pTSTRING;
|
||||
private TVARElements pTVAR;
|
||||
private MacroTokensElements pMacroTokens;
|
||||
private TerminalRule tLUA_CODE;
|
||||
private TerminalRule tIFHAVE;
|
||||
|
@ -902,7 +864,7 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
}
|
||||
|
||||
//WMLValue:
|
||||
// value=(ID | TSTRING | TVAR | STRING | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER);
|
||||
// value=(ID | STRING | "_" | "~" | "." | "./" | "$" | "/" | "(" | ")" | ANY_OTHER);
|
||||
public WMLValueElements getWMLValueAccess() {
|
||||
return (pWMLValue != null) ? pWMLValue : (pWMLValue = new WMLValueElements());
|
||||
}
|
||||
|
@ -911,26 +873,6 @@ public class WMLGrammarAccess extends AbstractGrammarElementFinder {
|
|||
return getWMLValueAccess().getRule();
|
||||
}
|
||||
|
||||
//TSTRING returns ecore::EString:
|
||||
// "_" STRING;
|
||||
public TSTRINGElements getTSTRINGAccess() {
|
||||
return (pTSTRING != null) ? pTSTRING : (pTSTRING = new TSTRINGElements());
|
||||
}
|
||||
|
||||
public ParserRule getTSTRINGRule() {
|
||||
return getTSTRINGAccess().getRule();
|
||||
}
|
||||
|
||||
//TVAR returns ecore::EString:
|
||||
// "_$";
|
||||
public TVARElements getTVARAccess() {
|
||||
return (pTVAR != null) ? pTVAR : (pTVAR = new TVARElements());
|
||||
}
|
||||
|
||||
public ParserRule getTVARRule() {
|
||||
return getTVARAccess().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:
|
||||
|
|
|
@ -1,55 +1,55 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <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
|
||||
*/
|
||||
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
|
||||
|
|
|
@ -1,45 +1,45 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wML;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>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
|
||||
*/
|
||||
package org.wesnoth.wML;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>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
|
||||
|
|
|
@ -1,146 +1,146 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <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>Root</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Root</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLRoot createWMLRoot();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Tag</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Tag</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLTag createWMLTag();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Key</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Key</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLKey createWMLKey();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Key Value</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Key Value</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLKeyValue createWMLKeyValue();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Macro Call</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Macro Call</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLMacroCall createWMLMacroCall();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Lua Code</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Lua Code</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLLuaCode createWMLLuaCode();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Array Call</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Array Call</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLArrayCall createWMLArrayCall();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Macro Define</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Macro Define</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLMacroDefine createWMLMacroDefine();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Preproc IF</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Preproc IF</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLPreprocIF createWMLPreprocIF();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Textdomain</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Textdomain</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLTextdomain createWMLTextdomain();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Value</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>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
|
||||
*/
|
||||
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>Root</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Root</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLRoot createWMLRoot();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Tag</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Tag</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLTag createWMLTag();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Key</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Key</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLKey createWMLKey();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Key Value</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Key Value</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLKeyValue createWMLKeyValue();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Macro Call</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Macro Call</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLMacroCall createWMLMacroCall();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Lua Code</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Lua Code</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLLuaCode createWMLLuaCode();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Array Call</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Array Call</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLArrayCall createWMLArrayCall();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Macro Define</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Macro Define</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLMacroDefine createWMLMacroDefine();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Preproc IF</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Preproc IF</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLPreprocIF createWMLPreprocIF();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Textdomain</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Textdomain</em>'.
|
||||
* @generated
|
||||
*/
|
||||
WMLTextdomain createWMLTextdomain();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Value</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>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
|
||||
|
|
|
@ -1,101 +1,101 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <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>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
|
||||
*/
|
||||
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>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
|
||||
|
|
|
@ -1,23 +1,23 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wML;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Key Value</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.wesnoth.wML.WMLPackage#getWMLKeyValue()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLKeyValue extends EObject
|
||||
{
|
||||
} // WMLKeyValue
|
||||
*/
|
||||
package org.wesnoth.wML;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Key Value</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.wesnoth.wML.WMLPackage#getWMLKeyValue()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface WMLKeyValue extends EObject
|
||||
{
|
||||
} // WMLKeyValue
|
||||
|
|
|
@ -1,54 +1,54 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wML;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>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
|
||||
*/
|
||||
package org.wesnoth.wML;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>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
|
||||
|
|
|
@ -1,145 +1,145 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <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>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
|
||||
*/
|
||||
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>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
|
||||
|
|
|
@ -1,203 +1,203 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <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>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
|
||||
*/
|
||||
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>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
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,220 +1,220 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <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>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
|
||||
*/
|
||||
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>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
|
||||
|
|
|
@ -1,115 +1,115 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <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>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
|
||||
*/
|
||||
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>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
|
||||
|
|
|
@ -1,213 +1,213 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <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>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
|
||||
*/
|
||||
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>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
|
||||
|
|
|
@ -1,55 +1,55 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wML;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>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
|
||||
*/
|
||||
package org.wesnoth.wML;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>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
|
||||
|
|
|
@ -1,54 +1,54 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
|
||||
*/
|
||||
package org.wesnoth.wML;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>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
|
||||
*/
|
||||
package org.wesnoth.wML;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>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
|
||||
|
|
|
@ -1,181 +1,181 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <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
|
||||
*/
|
||||
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
|
||||
|
|
|
@ -1,169 +1,169 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <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.WMLPackage;
|
||||
import org.wesnoth.wML.WMLValue;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>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
|
||||
*/
|
||||
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.WMLPackage;
|
||||
import org.wesnoth.wML.WMLValue;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>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
|
||||
|
|
|
@ -1,242 +1,242 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <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
|
||||
*/
|
||||
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
|
||||
|
|
|
@ -1,300 +1,300 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <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>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
|
||||
*/
|
||||
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>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
|
||||
|
|
|
@ -1,48 +1,48 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <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>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
|
||||
*/
|
||||
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>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
|
||||
|
|
|
@ -1,180 +1,180 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <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>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
|
||||
*/
|
||||
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>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
|
||||
|
|
|
@ -1,393 +1,393 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <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>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
|
||||
*/
|
||||
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>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
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,327 +1,327 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <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.WMLPackage;
|
||||
import org.wesnoth.wML.WMLPreprocIF;
|
||||
import org.wesnoth.wML.WMLRoot;
|
||||
import org.wesnoth.wML.WMLTag;
|
||||
import org.wesnoth.wML.WMLTextdomain;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>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
|
||||
*/
|
||||
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.WMLPackage;
|
||||
import org.wesnoth.wML.WMLPreprocIF;
|
||||
import org.wesnoth.wML.WMLRoot;
|
||||
import org.wesnoth.wML.WMLTag;
|
||||
import org.wesnoth.wML.WMLTextdomain;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>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
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,181 +1,181 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <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.WMLPackage;
|
||||
import org.wesnoth.wML.WMLTextdomain;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>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
|
||||
*/
|
||||
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.WMLPackage;
|
||||
import org.wesnoth.wML.WMLTextdomain;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>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
|
||||
|
|
|
@ -1,180 +1,180 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <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.WMLPackage;
|
||||
import org.wesnoth.wML.WMLValue;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>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
|
||||
*/
|
||||
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.WMLPackage;
|
||||
import org.wesnoth.wML.WMLValue;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>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
|
||||
|
|
|
@ -1,356 +1,356 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <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>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>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>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>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>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>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>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>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>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>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>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
|
||||
*/
|
||||
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>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>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>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>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>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>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>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>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>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>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>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
|
||||
|
|
|
@ -1,399 +1,399 @@
|
|||
/**
|
||||
* <copyright>
|
||||
* </copyright>
|
||||
*
|
||||
/**
|
||||
* <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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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
|
||||
*/
|
||||
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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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>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
|
||||
|
|
|
@ -73,12 +73,7 @@ WMLTextdomain:
|
|||
name = TEXTDOMAIN;
|
||||
|
||||
WMLValue:
|
||||
value = (ID | TSTRING | TVAR | STRING |'~' | '.' | './' |'$'|'/' |'(' | ')'| ANY_OTHER);
|
||||
|
||||
TSTRING:
|
||||
'_' STRING;
|
||||
TVAR:
|
||||
'_$';
|
||||
value = (ID | STRING |'_'|'~' | '.' | './' |'$'|'/' |'(' | ')'| ANY_OTHER);
|
||||
// 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:
|
||||
|
|
Loading…
Add table
Reference in a new issue