diff options
author | Henrik Rentz-Reichert | 2013-11-18 09:06:00 +0000 |
---|---|---|
committer | Henrik Rentz-Reichert | 2013-11-18 09:09:17 +0000 |
commit | d3a863d1cdeda33ff3eabf48a255dfce6b2db6d8 (patch) | |
tree | 60e70b405743ffc5521cc32afa8b499695b44725 | |
parent | 55a914aaa99a29da51b976082e1a955d7dec9683 (diff) | |
download | org.eclipse.etrice-d3a863d1cdeda33ff3eabf48a255dfce6b2db6d8.tar.gz org.eclipse.etrice-d3a863d1cdeda33ff3eabf48a255dfce6b2db6d8.tar.xz org.eclipse.etrice-d3a863d1cdeda33ff3eabf48a255dfce6b2db6d8.zip |
[doc, core.*] minor improvement and re-generation
5 files changed, 7 insertions, 183 deletions
diff --git a/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/services/ConfigGrammarAccess.java b/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/services/ConfigGrammarAccess.java index e5dcf2c74..a951c9a29 100644 --- a/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/services/ConfigGrammarAccess.java +++ b/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/services/ConfigGrammarAccess.java @@ -32,7 +32,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRightCurlyBracketKeyword_5 = (Keyword)cGroup.eContents().get(5); //ConfigModel: - // // "ConfigModel" name=FQN "{" imports+=Import* configElements+=ConfigElement* "}"; public ParserRule getRule() { return rule; } @@ -76,7 +75,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { private final RuleCall cProtocolClassConfigParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3); //ConfigElement: - // // SubSystemConfig | ActorClassConfig | ActorInstanceConfig | ProtocolClassConfig; public ParserRule getRule() { return rule; } @@ -113,7 +111,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRightCurlyBracketKeyword_6 = (Keyword)cGroup.eContents().get(6); //SubSystemConfig: - // // "SubSystemConfig" root=[room::LogicalSystem|FQN] "/" subSystem=[room::SubSystemRef] "{" dynConfig=DynamicConfig "}"; public ParserRule getRule() { return rule; } @@ -184,14 +181,11 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3); //DynamicConfig: - // // "dynamic configuration" "{" (("file path" filePath=STRING | ("user import" userCode1=STRING) ("user constructor" - // // userCode2=STRING)) & ("polling timer [ms]" polling=INT)?) "}"; public ParserRule getRule() { return rule; } //"dynamic configuration" "{" (("file path" filePath=STRING | ("user import" userCode1=STRING) ("user constructor" - // //userCode2=STRING)) & ("polling timer [ms]" polling=INT)?) "}" public Group getGroup() { return cGroup; } @@ -202,7 +196,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; } //("file path" filePath=STRING | ("user import" userCode1=STRING) ("user constructor" userCode2=STRING)) & - // //("polling timer [ms]" polling=INT)? public UnorderedGroup getUnorderedGroup_2() { return cUnorderedGroup_2; } @@ -277,7 +270,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4); //ActorClassConfig: - // // "ActorClassConfig" actor=[room::ActorClass|FQN] "{" attributes+=AttrClassConfig* "}"; public ParserRule getRule() { return rule; } @@ -332,14 +324,11 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRightCurlyBracketKeyword_8 = (Keyword)cGroup.eContents().get(8); //ActorInstanceConfig: - // // "ActorInstanceConfig" root=[room::LogicalSystem|FQN] "/" subSystem=[room::SubSystemRef] "/" path=RefPath "{" - // // (attributes+=AttrInstanceConfig* & ports+=PortInstanceConfig*) "}"; public ParserRule getRule() { return rule; } //"ActorInstanceConfig" root=[room::LogicalSystem|FQN] "/" subSystem=[room::SubSystemRef] "/" path=RefPath "{" - // //(attributes+=AttrInstanceConfig* & ports+=PortInstanceConfig*) "}" public Group getGroup() { return cGroup; } @@ -418,14 +407,11 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4); //ProtocolClassConfig: - // // "ProtocolClassConfig" protocol=[room::ProtocolClass|FQN] "{" (("regular" regular=PortClassConfig)? & ("conjugate" - // // conjugated=PortClassConfig)?) "}"; public ParserRule getRule() { return rule; } //"ProtocolClassConfig" protocol=[room::ProtocolClass|FQN] "{" (("regular" regular=PortClassConfig)? & ("conjugate" - // //conjugated=PortClassConfig)?) "}" public Group getGroup() { return cGroup; } @@ -486,7 +472,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4); //PortClassConfig: - // // {PortClassConfig} "Port" "{" attributes+=AttrClassConfig* "}"; public ParserRule getRule() { return rule; } @@ -525,7 +510,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4); //PortInstanceConfig: - // // "InterfaceItem" item=[room::InterfaceItem] "{" attributes+=AttrInstanceConfig* "}"; public ParserRule getRule() { return rule; } @@ -564,7 +548,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { private final RuleCall cAttrInstanceConfigParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); //AttrConfig: - // // AttrClassConfig | AttrInstanceConfig; public ParserRule getRule() { return rule; } @@ -607,14 +590,11 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRightCurlyBracketKeyword_3_2 = (Keyword)cGroup_3.eContents().get(2); //AttrClassConfig: - // // "Attr" attribute=[room::Attribute] ("=" value=LiteralArray)? ("{" (("min" "=" min=NumberLiteral)? ("max" "=" - // // max=NumberLiteral)? attributes+=AttrClassConfig*) "}")?; public ParserRule getRule() { return rule; } //"Attr" attribute=[room::Attribute] ("=" value=LiteralArray)? ("{" (("min" "=" min=NumberLiteral)? ("max" "=" - // //max=NumberLiteral)? attributes+=AttrClassConfig*) "}")? public Group getGroup() { return cGroup; } @@ -717,14 +697,11 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRightCurlyBracketKeyword_3_2 = (Keyword)cGroup_3.eContents().get(2); //AttrInstanceConfig: - // // "Attr" attribute=[room::Attribute] ("=" value=LiteralArray)? ("{" ((dynConfig?="dynamic configuration" - // // (readOnly?="read" | "write"))? attributes+=AttrInstanceConfig*) "}")?; public ParserRule getRule() { return rule; } //"Attr" attribute=[room::Attribute] ("=" value=LiteralArray)? ("{" ((dynConfig?="dynamic configuration" (readOnly?="read" - // //| "write"))? attributes+=AttrInstanceConfig*) "}")? public Group getGroup() { return cGroup; } @@ -803,7 +780,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { private final RuleCall cRefsRefSegmentParserRuleCall_1_1_0 = (RuleCall)cRefsAssignment_1_1.eContents().get(0); //RefPath: - // // refs+=RefSegment ("/" refs+=RefSegment)*; public ParserRule getRule() { return rule; } @@ -840,7 +816,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { private final RuleCall cIdxINTTerminalRuleCall_1_1_0 = (RuleCall)cIdxAssignment_1_1.eContents().get(0); //RefSegment: - // // ref=ID (":" idx=INT)?; public ParserRule getRule() { return rule; } @@ -880,9 +855,7 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { private final RuleCall cImportURISTRINGTerminalRuleCall_2_0 = (RuleCall)cImportURIAssignment_2.eContents().get(0); //// -------------------- from org.eclipse.etrice.core.Room.xtext --------------- - // //Import: - // // "import" (importedNamespace=ImportedFQN "from" | "model") importURI=STRING; public ParserRule getRule() { return rule; } @@ -924,7 +897,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cFullStopAsteriskKeyword_1 = (Keyword)cGroup.eContents().get(1); //ImportedFQN: - // // FQN ".*"?; public ParserRule getRule() { return rule; } @@ -947,7 +919,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { private final RuleCall cIDTerminalRuleCall_1_1 = (RuleCall)cGroup_1.eContents().get(1); //FQN: - // // ID ("." ID)*; public ParserRule getRule() { return rule; } @@ -1025,7 +996,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { //ConfigModel: - // // "ConfigModel" name=FQN "{" imports+=Import* configElements+=ConfigElement* "}"; public ConfigModelElements getConfigModelAccess() { return (pConfigModel != null) ? pConfigModel : (pConfigModel = new ConfigModelElements()); @@ -1036,7 +1006,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //ConfigElement: - // // SubSystemConfig | ActorClassConfig | ActorInstanceConfig | ProtocolClassConfig; public ConfigElementElements getConfigElementAccess() { return (pConfigElement != null) ? pConfigElement : (pConfigElement = new ConfigElementElements()); @@ -1047,7 +1016,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //SubSystemConfig: - // // "SubSystemConfig" root=[room::LogicalSystem|FQN] "/" subSystem=[room::SubSystemRef] "{" dynConfig=DynamicConfig "}"; public SubSystemConfigElements getSubSystemConfigAccess() { return (pSubSystemConfig != null) ? pSubSystemConfig : (pSubSystemConfig = new SubSystemConfigElements()); @@ -1058,9 +1026,7 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //DynamicConfig: - // // "dynamic configuration" "{" (("file path" filePath=STRING | ("user import" userCode1=STRING) ("user constructor" - // // userCode2=STRING)) & ("polling timer [ms]" polling=INT)?) "}"; public DynamicConfigElements getDynamicConfigAccess() { return (pDynamicConfig != null) ? pDynamicConfig : (pDynamicConfig = new DynamicConfigElements()); @@ -1071,7 +1037,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //ActorClassConfig: - // // "ActorClassConfig" actor=[room::ActorClass|FQN] "{" attributes+=AttrClassConfig* "}"; public ActorClassConfigElements getActorClassConfigAccess() { return (pActorClassConfig != null) ? pActorClassConfig : (pActorClassConfig = new ActorClassConfigElements()); @@ -1082,9 +1047,7 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //ActorInstanceConfig: - // // "ActorInstanceConfig" root=[room::LogicalSystem|FQN] "/" subSystem=[room::SubSystemRef] "/" path=RefPath "{" - // // (attributes+=AttrInstanceConfig* & ports+=PortInstanceConfig*) "}"; public ActorInstanceConfigElements getActorInstanceConfigAccess() { return (pActorInstanceConfig != null) ? pActorInstanceConfig : (pActorInstanceConfig = new ActorInstanceConfigElements()); @@ -1095,9 +1058,7 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //ProtocolClassConfig: - // // "ProtocolClassConfig" protocol=[room::ProtocolClass|FQN] "{" (("regular" regular=PortClassConfig)? & ("conjugate" - // // conjugated=PortClassConfig)?) "}"; public ProtocolClassConfigElements getProtocolClassConfigAccess() { return (pProtocolClassConfig != null) ? pProtocolClassConfig : (pProtocolClassConfig = new ProtocolClassConfigElements()); @@ -1108,7 +1069,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //PortClassConfig: - // // {PortClassConfig} "Port" "{" attributes+=AttrClassConfig* "}"; public PortClassConfigElements getPortClassConfigAccess() { return (pPortClassConfig != null) ? pPortClassConfig : (pPortClassConfig = new PortClassConfigElements()); @@ -1119,7 +1079,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //PortInstanceConfig: - // // "InterfaceItem" item=[room::InterfaceItem] "{" attributes+=AttrInstanceConfig* "}"; public PortInstanceConfigElements getPortInstanceConfigAccess() { return (pPortInstanceConfig != null) ? pPortInstanceConfig : (pPortInstanceConfig = new PortInstanceConfigElements()); @@ -1130,7 +1089,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //AttrConfig: - // // AttrClassConfig | AttrInstanceConfig; public AttrConfigElements getAttrConfigAccess() { return (pAttrConfig != null) ? pAttrConfig : (pAttrConfig = new AttrConfigElements()); @@ -1141,9 +1099,7 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //AttrClassConfig: - // // "Attr" attribute=[room::Attribute] ("=" value=LiteralArray)? ("{" (("min" "=" min=NumberLiteral)? ("max" "=" - // // max=NumberLiteral)? attributes+=AttrClassConfig*) "}")?; public AttrClassConfigElements getAttrClassConfigAccess() { return (pAttrClassConfig != null) ? pAttrClassConfig : (pAttrClassConfig = new AttrClassConfigElements()); @@ -1154,9 +1110,7 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //AttrInstanceConfig: - // // "Attr" attribute=[room::Attribute] ("=" value=LiteralArray)? ("{" ((dynConfig?="dynamic configuration" - // // (readOnly?="read" | "write"))? attributes+=AttrInstanceConfig*) "}")?; public AttrInstanceConfigElements getAttrInstanceConfigAccess() { return (pAttrInstanceConfig != null) ? pAttrInstanceConfig : (pAttrInstanceConfig = new AttrInstanceConfigElements()); @@ -1167,7 +1121,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //RefPath: - // // refs+=RefSegment ("/" refs+=RefSegment)*; public RefPathElements getRefPathAccess() { return (pRefPath != null) ? pRefPath : (pRefPath = new RefPathElements()); @@ -1178,7 +1131,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //RefSegment: - // // ref=ID (":" idx=INT)?; public RefSegmentElements getRefSegmentAccess() { return (pRefSegment != null) ? pRefSegment : (pRefSegment = new RefSegmentElements()); @@ -1189,9 +1141,7 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //// -------------------- from org.eclipse.etrice.core.Room.xtext --------------- - // //Import: - // // "import" (importedNamespace=ImportedFQN "from" | "model") importURI=STRING; public ImportElements getImportAccess() { return (pImport != null) ? pImport : (pImport = new ImportElements()); @@ -1202,7 +1152,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //ImportedFQN: - // // FQN ".*"?; public ImportedFQNElements getImportedFQNAccess() { return (pImportedFQN != null) ? pImportedFQN : (pImportedFQN = new ImportedFQNElements()); @@ -1213,7 +1162,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //FQN: - // // ID ("." ID)*; public FQNElements getFQNAccess() { return (pFQN != null) ? pFQN : (pFQN = new FQNElements()); @@ -1224,11 +1172,8 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //// ************************************************************** - // //// AnnotationType and Annotation Rules - // //Annotation: - // // "@" type=[AnnotationType|FQN] ("(" attributes+=KeyValue ("," attributes+=KeyValue)* ")")?; public BaseGrammarAccess.AnnotationElements getAnnotationAccess() { return gaBase.getAnnotationAccess(); @@ -1239,7 +1184,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //KeyValue: - // // key=ID "=" value=Literal; public BaseGrammarAccess.KeyValueElements getKeyValueAccess() { return gaBase.getKeyValueAccess(); @@ -1250,9 +1194,7 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //AnnotationType: - // // "AnnotationType" name=ID docu=Documentation? "{" "target" "=" (targets+=AnnotationTargetType | "{" - // // targets+=AnnotationTargetType ("," targets+=AnnotationTargetType)* "}") attributes+=AnnotationAttribute* "}"; public BaseGrammarAccess.AnnotationTypeElements getAnnotationTypeAccess() { return gaBase.getAnnotationTypeAccess(); @@ -1263,23 +1205,14 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //// - // //// Sub-grammars should use AnnotationTargetType to refer to - // //// specific sub-grammar targets. For example, valid values for - // //// AnnotationTargetType in the Room.xtext sub-grammar include "ActorClass", - // //// "ActorBehavior", "ProtocolClass", etc. The sub-grammar is responsible for - // //// implementing validation, quick-fixes, and code completion proposals via the - // //// usual Xtext mechanisms. - // //// - // //AnnotationTargetType: - // // ID; public BaseGrammarAccess.AnnotationTargetTypeElements getAnnotationTargetTypeAccess() { return gaBase.getAnnotationTargetTypeAccess(); @@ -1290,7 +1223,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //AnnotationAttribute: - // // SimpleAnnotationAttribute | EnumAnnotationAttribute; public BaseGrammarAccess.AnnotationAttributeElements getAnnotationAttributeAccess() { return gaBase.getAnnotationAttributeAccess(); @@ -1301,7 +1233,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //SimpleAnnotationAttribute: - // // (optional?="optional" | "mandatory") "attribute" name=ID ":" type=LiteralType; public BaseGrammarAccess.SimpleAnnotationAttributeElements getSimpleAnnotationAttributeAccess() { return gaBase.getSimpleAnnotationAttributeAccess(); @@ -1312,7 +1243,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //EnumAnnotationAttribute: - // // (optional?="optional" | "mandatory") "attribute" name=ID ":" "{" values+=STRING ("," values+=STRING)* "}"; public BaseGrammarAccess.EnumAnnotationAttributeElements getEnumAnnotationAttributeAccess() { return gaBase.getEnumAnnotationAttributeAccess(); @@ -1323,11 +1253,8 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //// ************************************************************** - // //// Documentation Rule - // //Documentation: - // // {Documentation} "[" lines+=STRING* "]"; public BaseGrammarAccess.DocumentationElements getDocumentationAccess() { return gaBase.getDocumentationAccess(); @@ -1338,11 +1265,8 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //// ************************************************************** - // //// Literal Rules - // //enum LiteralType: - // // BOOL="ptBoolean" | INT="ptInteger" | REAL="ptReal" | CHAR="ptCharacter"; public BaseGrammarAccess.LiteralTypeElements getLiteralTypeAccess() { return gaBase.getLiteralTypeAccess(); @@ -1353,7 +1277,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //LiteralArray: - // // literals+=Literal ("," literals+=Literal)*; public BaseGrammarAccess.LiteralArrayElements getLiteralArrayAccess() { return gaBase.getLiteralArrayAccess(); @@ -1364,9 +1287,7 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //// Value Types for Attributes - // //Literal: - // // BooleanLiteral | NumberLiteral | StringLiteral; public BaseGrammarAccess.LiteralElements getLiteralAccess() { return gaBase.getLiteralAccess(); @@ -1377,7 +1298,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //BooleanLiteral: - // // {BooleanLiteral} ("false" | isTrue?="true"); public BaseGrammarAccess.BooleanLiteralElements getBooleanLiteralAccess() { return gaBase.getBooleanLiteralAccess(); @@ -1388,7 +1308,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //NumberLiteral: - // // IntLiteral | RealLiteral; public BaseGrammarAccess.NumberLiteralElements getNumberLiteralAccess() { return gaBase.getNumberLiteralAccess(); @@ -1399,7 +1318,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //RealLiteral: - // // {RealLiteral} value=Real; public BaseGrammarAccess.RealLiteralElements getRealLiteralAccess() { return gaBase.getRealLiteralAccess(); @@ -1410,7 +1328,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //IntLiteral: - // // {IntLiteral} value=Integer; public BaseGrammarAccess.IntLiteralElements getIntLiteralAccess() { return gaBase.getIntLiteralAccess(); @@ -1421,7 +1338,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //StringLiteral: - // // {StringLiteral} value=STRING; public BaseGrammarAccess.StringLiteralElements getStringLiteralAccess() { return gaBase.getStringLiteralAccess(); @@ -1432,7 +1348,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //Integer returns ecore::ELong: - // // SignedInteger | Hexadecimal; public BaseGrammarAccess.IntegerElements getIntegerAccess() { return gaBase.getIntegerAccess(); @@ -1443,7 +1358,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //SignedInteger hidden(): - // // ("+" | "-")? INT; public BaseGrammarAccess.SignedIntegerElements getSignedIntegerAccess() { return gaBase.getSignedIntegerAccess(); @@ -1454,7 +1368,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //Hexadecimal hidden(): - // // HEX; public BaseGrammarAccess.HexadecimalElements getHexadecimalAccess() { return gaBase.getHexadecimalAccess(); @@ -1465,7 +1378,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //Real returns ecore::EDouble: - // // Decimal | DotDecimal | DecimalDot | DecimalExp; public BaseGrammarAccess.RealElements getRealAccess() { return gaBase.getRealAccess(); @@ -1476,7 +1388,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //Decimal hidden(): - // // ("+" | "-")? INT "." INT; public BaseGrammarAccess.DecimalElements getDecimalAccess() { return gaBase.getDecimalAccess(); @@ -1487,7 +1398,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //DotDecimal hidden(): - // // ("+" | "-")? "." INT; public BaseGrammarAccess.DotDecimalElements getDotDecimalAccess() { return gaBase.getDotDecimalAccess(); @@ -1498,7 +1408,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //DecimalDot hidden(): - // // ("+" | "-")? INT "."; public BaseGrammarAccess.DecimalDotElements getDecimalDotAccess() { return gaBase.getDecimalDotAccess(); @@ -1509,7 +1418,6 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //DecimalExp hidden(): - // // ("+" | "-")? INT "." INT EXP; public BaseGrammarAccess.DecimalExpElements getDecimalExpAccess() { return gaBase.getDecimalExpAccess(); @@ -1520,65 +1428,55 @@ public class ConfigGrammarAccess extends AbstractGrammarElementFinder { } //terminal EXP: - // // ("e" | "E") ("+" | "-")? "0".."9"+; public TerminalRule getEXPRule() { return gaBase.getEXPRule(); } //terminal HEX: - // // ("0x" | "0X") ("0".."9" | "a".."f" | "A".."F")+; public TerminalRule getHEXRule() { return gaBase.getHEXRule(); } //terminal ID: - // // "^"? ("a".."z" | "A".."Z" | "_") ("a".."z" | "A".."Z" | "_" | "0".."9")*; public TerminalRule getIDRule() { return gaBase.getIDRule(); } //terminal INT returns ecore::EInt: - // // "0".."9"+; public TerminalRule getINTRule() { return gaBase.getINTRule(); } //terminal STRING: - // // "\"" ("\\" ("b" | "t" | "n" | "f" | "r" | "u" | "\"" | "\'" | "\\") | !("\\" | "\""))* "\"" | "\'" ("\\" ("b" | "t" | - // // "n" | "f" | "r" | "u" | "\"" | "\'" | "\\") | !("\\" | "\'"))* "\'"; public TerminalRule getSTRINGRule() { return gaBase.getSTRINGRule(); } //terminal ML_COMMENT: - // // "/ *"->"* /"; public TerminalRule getML_COMMENTRule() { return gaBase.getML_COMMENTRule(); } //terminal SL_COMMENT: - // // "//" !("\n" | "\r")* ("\r"? "\n")?; public TerminalRule getSL_COMMENTRule() { return gaBase.getSL_COMMENTRule(); } //terminal WS: - // // (" " | "\t" | "\r" | "\n")+; public TerminalRule getWSRule() { return gaBase.getWSRule(); } //terminal ANY_OTHER: - // // .; public TerminalRule getANY_OTHERRule() { return gaBase.getANY_OTHERRule(); diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/services/ETMapGrammarAccess.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/services/ETMapGrammarAccess.java index 0c36f0822..d00abf63b 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/services/ETMapGrammarAccess.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/services/ETMapGrammarAccess.java @@ -32,7 +32,6 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRightCurlyBracketKeyword_5 = (Keyword)cGroup.eContents().get(5); //MappingModel: - // // "MappingModel" name=FQN "{" imports+=Import* mappings+=Mapping* "}"; public ParserRule getRule() { return rule; } @@ -84,14 +83,11 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRightCurlyBracketKeyword_6 = (Keyword)cGroup.eContents().get(6); //Mapping: - // // "Mapping" logicalSys=[room::LogicalSystem|FQN] "->" physicalSys=[phys::PhysicalSystem|FQN] "{" - // // subsysMappings+=SubSystemMapping* "}"; public ParserRule getRule() { return rule; } //"Mapping" logicalSys=[room::LogicalSystem|FQN] "->" physicalSys=[phys::PhysicalSystem|FQN] "{" - // //subsysMappings+=SubSystemMapping* "}" public Group getGroup() { return cGroup; } @@ -150,14 +146,11 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRightCurlyBracketKeyword_4_2 = (Keyword)cGroup_4.eContents().get(2); //SubSystemMapping: - // // "SubSystemMapping" logicalSubSys=[room::SubSystemRef] "->" node=[phys::NodeRef] ("{" threadMappings+=ThreadMapping* - // // "}")?; public ParserRule getRule() { return rule; } //"SubSystemMapping" logicalSubSys=[room::SubSystemRef] "->" node=[phys::NodeRef] ("{" threadMappings+=ThreadMapping* - // //"}")? public Group getGroup() { return cGroup; } @@ -214,7 +207,6 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { private final RuleCall cPhysicalThreadPhysicalThreadIDTerminalRuleCall_3_0_1 = (RuleCall)cPhysicalThreadPhysicalThreadCrossReference_3_0.eContents().get(1); //ThreadMapping: - // // "ThreadMapping" logicalThread=[room::LogicalThread] "->" physicalThread=[phys::PhysicalThread]; public ParserRule getRule() { return rule; } @@ -260,7 +252,6 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { private final RuleCall cImportURISTRINGTerminalRuleCall_2_0 = (RuleCall)cImportURIAssignment_2.eContents().get(0); //Import: - // // "import" (importedNamespace=ImportedFQN "from" | "model") importURI=STRING; public ParserRule getRule() { return rule; } @@ -302,7 +293,6 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cFullStopAsteriskKeyword_1 = (Keyword)cGroup.eContents().get(1); //ImportedFQN: - // // FQN ".*"?; public ParserRule getRule() { return rule; } @@ -325,7 +315,6 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { private final RuleCall cIDTerminalRuleCall_1_1 = (RuleCall)cGroup_1.eContents().get(1); //FQN: - // // ID ("." ID)*; public ParserRule getRule() { return rule; } @@ -393,7 +382,6 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { //MappingModel: - // // "MappingModel" name=FQN "{" imports+=Import* mappings+=Mapping* "}"; public MappingModelElements getMappingModelAccess() { return (pMappingModel != null) ? pMappingModel : (pMappingModel = new MappingModelElements()); @@ -404,9 +392,7 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { } //Mapping: - // // "Mapping" logicalSys=[room::LogicalSystem|FQN] "->" physicalSys=[phys::PhysicalSystem|FQN] "{" - // // subsysMappings+=SubSystemMapping* "}"; public MappingElements getMappingAccess() { return (pMapping != null) ? pMapping : (pMapping = new MappingElements()); @@ -417,9 +403,7 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { } //SubSystemMapping: - // // "SubSystemMapping" logicalSubSys=[room::SubSystemRef] "->" node=[phys::NodeRef] ("{" threadMappings+=ThreadMapping* - // // "}")?; public SubSystemMappingElements getSubSystemMappingAccess() { return (pSubSystemMapping != null) ? pSubSystemMapping : (pSubSystemMapping = new SubSystemMappingElements()); @@ -430,7 +414,6 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { } //ThreadMapping: - // // "ThreadMapping" logicalThread=[room::LogicalThread] "->" physicalThread=[phys::PhysicalThread]; public ThreadMappingElements getThreadMappingAccess() { return (pThreadMapping != null) ? pThreadMapping : (pThreadMapping = new ThreadMappingElements()); @@ -441,7 +424,6 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { } //Import: - // // "import" (importedNamespace=ImportedFQN "from" | "model") importURI=STRING; public ImportElements getImportAccess() { return (pImport != null) ? pImport : (pImport = new ImportElements()); @@ -452,7 +434,6 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { } //ImportedFQN: - // // FQN ".*"?; public ImportedFQNElements getImportedFQNAccess() { return (pImportedFQN != null) ? pImportedFQN : (pImportedFQN = new ImportedFQNElements()); @@ -463,7 +444,6 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { } //FQN: - // // ID ("." ID)*; public FQNElements getFQNAccess() { return (pFQN != null) ? pFQN : (pFQN = new FQNElements()); @@ -474,51 +454,43 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { } //terminal ID: - // // "^"? ("a".."z" | "A".."Z" | "_") ("a".."z" | "A".."Z" | "_" | "0".."9")*; public TerminalRule getIDRule() { return gaTerminals.getIDRule(); } //terminal INT returns ecore::EInt: - // // "0".."9"+; public TerminalRule getINTRule() { return gaTerminals.getINTRule(); } //terminal STRING: - // // "\"" ("\\" ("b" | "t" | "n" | "f" | "r" | "u" | "\"" | "\'" | "\\") | !("\\" | "\""))* "\"" | "\'" ("\\" ("b" | "t" | - // // "n" | "f" | "r" | "u" | "\"" | "\'" | "\\") | !("\\" | "\'"))* "\'"; public TerminalRule getSTRINGRule() { return gaTerminals.getSTRINGRule(); } //terminal ML_COMMENT: - // // "/ *"->"* /"; public TerminalRule getML_COMMENTRule() { return gaTerminals.getML_COMMENTRule(); } //terminal SL_COMMENT: - // // "//" !("\n" | "\r")* ("\r"? "\n")?; public TerminalRule getSL_COMMENTRule() { return gaTerminals.getSL_COMMENTRule(); } //terminal WS: - // // (" " | "\t" | "\r" | "\n")+; public TerminalRule getWSRule() { return gaTerminals.getWSRule(); } //terminal ANY_OTHER: - // // .; public TerminalRule getANY_OTHERRule() { return gaTerminals.getANY_OTHERRule(); diff --git a/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/services/ETPhysGrammarAccess.java b/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/services/ETPhysGrammarAccess.java index 9124031c5..e7e8a3779 100644 --- a/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/services/ETPhysGrammarAccess.java +++ b/plugins/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/services/ETPhysGrammarAccess.java @@ -37,14 +37,11 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRightCurlyBracketKeyword_5 = (Keyword)cGroup.eContents().get(5); //PhysicalModel: - // // "PhysicalModel" name=FQN "{" imports+=Import* (systems+=PhysicalSystem | nodeClasses+=NodeClass | - // // runtimeClasses+=RuntimeClass)* "}"; public ParserRule getRule() { return rule; } //"PhysicalModel" name=FQN "{" imports+=Import* (systems+=PhysicalSystem | nodeClasses+=NodeClass | - // //runtimeClasses+=RuntimeClass)* "}" public Group getGroup() { return cGroup; } @@ -105,7 +102,6 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRightCurlyBracketKeyword_5 = (Keyword)cGroup.eContents().get(5); //PhysicalSystem: - // // "PhysicalSystem" name=ID docu=Documentation? "{" nodeRefs+=NodeRef* "}"; public ParserRule getRule() { return rule; } @@ -154,7 +150,6 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { private final RuleCall cDocuDocumentationParserRuleCall_4_0 = (RuleCall)cDocuAssignment_4.eContents().get(0); //NodeRef: - // // "NodeRef" name=ID ":" type=[NodeClass|FQN] docu=Documentation?; public ParserRule getRule() { return rule; } @@ -220,14 +215,11 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRightCurlyBracketKeyword_6 = (Keyword)cGroup.eContents().get(6); //NodeClass: - // // "NodeClass" name=ID docu=Documentation? "{" ("runtime" "=" runtime=[RuntimeClass|FQN] & "priomin" "=" priomin=PRIO & - // // "priomax" "=" priomax=PRIO) threads+=PhysicalThread* "}"; public ParserRule getRule() { return rule; } //"NodeClass" name=ID docu=Documentation? "{" ("runtime" "=" runtime=[RuntimeClass|FQN] & "priomin" "=" priomin=PRIO & - // //"priomax" "=" priomax=PRIO) threads+=PhysicalThread* "}" public Group getGroup() { return cGroup; } @@ -354,18 +346,13 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4); //PhysicalThread: - // // (default?="DefaultThread" | "Thread") name=ID "{" ("execmode" "=" execmode=ExecMode & ("interval" "=" time=TIME)? & - // // "prio" "=" prio=PRIO & "stacksize" "=" stacksize=INT & "msgblocksize" "=" msgblocksize=INT & "msgpoolsize" "=" - // // msgpoolsize=INT) "}"; public ParserRule getRule() { return rule; } //(default?="DefaultThread" | "Thread") name=ID "{" ("execmode" "=" execmode=ExecMode & ("interval" "=" time=TIME)? & - // //"prio" "=" prio=PRIO & "stacksize" "=" stacksize=INT & "msgblocksize" "=" msgblocksize=INT & "msgpoolsize" "=" - // //msgpoolsize=INT) "}" public Group getGroup() { return cGroup; } @@ -391,7 +378,6 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; } //"execmode" "=" execmode=ExecMode & ("interval" "=" time=TIME)? & "prio" "=" prio=PRIO & "stacksize" "=" stacksize=INT & - // //"msgblocksize" "=" msgblocksize=INT & "msgpoolsize" "=" msgpoolsize=INT public UnorderedGroup getUnorderedGroup_3() { return cUnorderedGroup_3; } @@ -505,7 +491,6 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRightCurlyBracketKeyword_7 = (Keyword)cGroup.eContents().get(7); //RuntimeClass: - // // "RuntimeClass" name=ID docu=Documentation? "{" "model" "=" threadModel=ThreadModel "}"; public ParserRule getRule() { return rule; } @@ -555,7 +540,6 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRightSquareBracketKeyword_2 = (Keyword)cGroup.eContents().get(2); //Documentation: - // // "[" text+=STRING+ "]"; public ParserRule getRule() { return rule; } @@ -584,7 +568,6 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { private final RuleCall cINTTerminalRuleCall_1 = (RuleCall)cGroup.eContents().get(1); //PRIO returns ecore::EInt hidden(): - // // ("+" | "-")? INT; public ParserRule getRule() { return rule; } @@ -618,7 +601,6 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { private final RuleCall cImportURISTRINGTerminalRuleCall_2_0 = (RuleCall)cImportURIAssignment_2.eContents().get(0); //Import: - // // "import" (importedNamespace=ImportedFQN "from" | "model") importURI=STRING; public ParserRule getRule() { return rule; } @@ -660,7 +642,6 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cFullStopAsteriskKeyword_1 = (Keyword)cGroup.eContents().get(1); //ImportedFQN: - // // FQN ".*"?; public ParserRule getRule() { return rule; } @@ -683,7 +664,6 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { private final RuleCall cIDTerminalRuleCall_1_1 = (RuleCall)cGroup_1.eContents().get(1); //FQN: - // // ID ("." ID)*; public ParserRule getRule() { return rule; } @@ -720,7 +700,6 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cNsKeyword_3_1 = (Keyword)cGroup_3.eContents().get(1); //TIME returns ecore::EInt: - // // INT "s" | INT "ms" | INT "us" | INT "ns"; public ParserRule getRule() { return rule; } @@ -776,7 +755,6 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cMIXEDMixedKeyword_2_0 = (Keyword)cMIXEDEnumLiteralDeclaration_2.eContents().get(0); //enum ExecMode: - // // POLLED="polled" | BLOCKED="blocked" | MIXED="mixed"; public EnumRule getRule() { return rule; } @@ -811,7 +789,6 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cMULTI_THREADEDMultiThreadedKeyword_1_0 = (Keyword)cMULTI_THREADEDEnumLiteralDeclaration_1.eContents().get(0); //enum ThreadModel: - // // SINGLE_THREADED="singleThreaded" | MULTI_THREADED="multiThreaded"; public EnumRule getRule() { return rule; } @@ -885,9 +862,7 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { //PhysicalModel: - // // "PhysicalModel" name=FQN "{" imports+=Import* (systems+=PhysicalSystem | nodeClasses+=NodeClass | - // // runtimeClasses+=RuntimeClass)* "}"; public PhysicalModelElements getPhysicalModelAccess() { return (pPhysicalModel != null) ? pPhysicalModel : (pPhysicalModel = new PhysicalModelElements()); @@ -898,7 +873,6 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { } //PhysicalSystem: - // // "PhysicalSystem" name=ID docu=Documentation? "{" nodeRefs+=NodeRef* "}"; public PhysicalSystemElements getPhysicalSystemAccess() { return (pPhysicalSystem != null) ? pPhysicalSystem : (pPhysicalSystem = new PhysicalSystemElements()); @@ -909,7 +883,6 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { } //NodeRef: - // // "NodeRef" name=ID ":" type=[NodeClass|FQN] docu=Documentation?; public NodeRefElements getNodeRefAccess() { return (pNodeRef != null) ? pNodeRef : (pNodeRef = new NodeRefElements()); @@ -920,9 +893,7 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { } //NodeClass: - // // "NodeClass" name=ID docu=Documentation? "{" ("runtime" "=" runtime=[RuntimeClass|FQN] & "priomin" "=" priomin=PRIO & - // // "priomax" "=" priomax=PRIO) threads+=PhysicalThread* "}"; public NodeClassElements getNodeClassAccess() { return (pNodeClass != null) ? pNodeClass : (pNodeClass = new NodeClassElements()); @@ -933,11 +904,8 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { } //PhysicalThread: - // // (default?="DefaultThread" | "Thread") name=ID "{" ("execmode" "=" execmode=ExecMode & ("interval" "=" time=TIME)? & - // // "prio" "=" prio=PRIO & "stacksize" "=" stacksize=INT & "msgblocksize" "=" msgblocksize=INT & "msgpoolsize" "=" - // // msgpoolsize=INT) "}"; public PhysicalThreadElements getPhysicalThreadAccess() { return (pPhysicalThread != null) ? pPhysicalThread : (pPhysicalThread = new PhysicalThreadElements()); @@ -948,7 +916,6 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { } //enum ExecMode: - // // POLLED="polled" | BLOCKED="blocked" | MIXED="mixed"; public ExecModeElements getExecModeAccess() { return (unknownRuleExecMode != null) ? unknownRuleExecMode : (unknownRuleExecMode = new ExecModeElements()); @@ -959,7 +926,6 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { } //RuntimeClass: - // // "RuntimeClass" name=ID docu=Documentation? "{" "model" "=" threadModel=ThreadModel "}"; public RuntimeClassElements getRuntimeClassAccess() { return (pRuntimeClass != null) ? pRuntimeClass : (pRuntimeClass = new RuntimeClassElements()); @@ -970,7 +936,6 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { } //enum ThreadModel: - // // SINGLE_THREADED="singleThreaded" | MULTI_THREADED="multiThreaded"; public ThreadModelElements getThreadModelAccess() { return (unknownRuleThreadModel != null) ? unknownRuleThreadModel : (unknownRuleThreadModel = new ThreadModelElements()); @@ -981,7 +946,6 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { } //Documentation: - // // "[" text+=STRING+ "]"; public DocumentationElements getDocumentationAccess() { return (pDocumentation != null) ? pDocumentation : (pDocumentation = new DocumentationElements()); @@ -992,7 +956,6 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { } //PRIO returns ecore::EInt hidden(): - // // ("+" | "-")? INT; public PRIOElements getPRIOAccess() { return (pPRIO != null) ? pPRIO : (pPRIO = new PRIOElements()); @@ -1003,7 +966,6 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { } //Import: - // // "import" (importedNamespace=ImportedFQN "from" | "model") importURI=STRING; public ImportElements getImportAccess() { return (pImport != null) ? pImport : (pImport = new ImportElements()); @@ -1014,7 +976,6 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { } //ImportedFQN: - // // FQN ".*"?; public ImportedFQNElements getImportedFQNAccess() { return (pImportedFQN != null) ? pImportedFQN : (pImportedFQN = new ImportedFQNElements()); @@ -1025,7 +986,6 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { } //FQN: - // // ID ("." ID)*; public FQNElements getFQNAccess() { return (pFQN != null) ? pFQN : (pFQN = new FQNElements()); @@ -1036,7 +996,6 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { } //TIME returns ecore::EInt: - // // INT "s" | INT "ms" | INT "us" | INT "ns"; public TIMEElements getTIMEAccess() { return (pTIME != null) ? pTIME : (pTIME = new TIMEElements()); @@ -1047,51 +1006,43 @@ public class ETPhysGrammarAccess extends AbstractGrammarElementFinder { } //terminal ID: - // // "^"? ("a".."z" | "A".."Z" | "_") ("a".."z" | "A".."Z" | "_" | "0".."9")*; public TerminalRule getIDRule() { return gaTerminals.getIDRule(); } //terminal INT returns ecore::EInt: - // // "0".."9"+; public TerminalRule getINTRule() { return gaTerminals.getINTRule(); } //terminal STRING: - // // "\"" ("\\" ("b" | "t" | "n" | "f" | "r" | "u" | "\"" | "\'" | "\\") | !("\\" | "\""))* "\"" | "\'" ("\\" ("b" | "t" | - // // "n" | "f" | "r" | "u" | "\"" | "\'" | "\\") | !("\\" | "\'"))* "\'"; public TerminalRule getSTRINGRule() { return gaTerminals.getSTRINGRule(); } //terminal ML_COMMENT: - // // "/ *"->"* /"; public TerminalRule getML_COMMENTRule() { return gaTerminals.getML_COMMENTRule(); } //terminal SL_COMMENT: - // // "//" !("\n" | "\r")* ("\r"? "\n")?; public TerminalRule getSL_COMMENTRule() { return gaTerminals.getSL_COMMENTRule(); } //terminal WS: - // // (" " | "\t" | "\r" | "\n")+; public TerminalRule getWSRule() { return gaTerminals.getWSRule(); } //terminal ANY_OTHER: - // // .; public TerminalRule getANY_OTHERRule() { return gaTerminals.getANY_OTHERRule(); diff --git a/plugins/org.eclipse.etrice.generator.doc/src/org/eclipse/etrice/generator/doc/gen/DocGen.xtend b/plugins/org.eclipse.etrice.generator.doc/src/org/eclipse/etrice/generator/doc/gen/DocGen.xtend index e51bc993a..286d2b2ca 100644 --- a/plugins/org.eclipse.etrice.generator.doc/src/org/eclipse/etrice/generator/doc/gen/DocGen.xtend +++ b/plugins/org.eclipse.etrice.generator.doc/src/org/eclipse/etrice/generator/doc/gen/DocGen.xtend @@ -432,12 +432,13 @@ class DocGen { def private generateDocText(Documentation doc){ ''' - % text from user Documentation «IF doc!=null» + % begin text from user Documentation «FOR line: doc.lines» «line» «ENDFOR» - «ENDIF» + % end text from user Documentation + «ENDIF» ''' } diff --git a/plugins/org.eclipse.etrice.generator.doc/xtend-gen/org/eclipse/etrice/generator/doc/gen/DocGen.java b/plugins/org.eclipse.etrice.generator.doc/xtend-gen/org/eclipse/etrice/generator/doc/gen/DocGen.java index 2f03c6a2d..732cdf173 100644 --- a/plugins/org.eclipse.etrice.generator.doc/xtend-gen/org/eclipse/etrice/generator/doc/gen/DocGen.java +++ b/plugins/org.eclipse.etrice.generator.doc/xtend-gen/org/eclipse/etrice/generator/doc/gen/DocGen.java @@ -1141,11 +1141,11 @@ public class DocGen { private CharSequence generateDocText(final Documentation doc) { StringConcatenation _builder = new StringConcatenation(); - _builder.append("% text from user Documentation"); - _builder.newLine(); { boolean _notEquals = (!Objects.equal(doc, null)); if (_notEquals) { + _builder.append("% begin text from user Documentation"); + _builder.newLine(); { EList<String> _lines = doc.getLines(); for(final String line : _lines) { @@ -1153,6 +1153,8 @@ public class DocGen { _builder.newLineIfNotEmpty(); } } + _builder.append("% end text from user Documentation"); + _builder.newLine(); } } return _builder; |