mirror of https://github.com/Minres/RDL-Editor.git
updates build system and versions
This commit is contained in:
parent
26fc38b7ee
commit
954bf79d9c
|
@ -2,7 +2,7 @@
|
|||
<feature
|
||||
id="com.minres.rdl.feature"
|
||||
label="RDL Feature "
|
||||
version="1.0.0.qualifier"
|
||||
version="1.4.0"
|
||||
provider-name="MINRES Technologies GmbH">
|
||||
|
||||
<plugin
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<parent>
|
||||
<groupId>com.minres.rdl</groupId>
|
||||
<artifactId>com.minres.rdl.parent</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<version>1.4.0</version>
|
||||
</parent>
|
||||
<artifactId>com.minres.rdl.feature</artifactId>
|
||||
<packaging>eclipse-feature</packaging>
|
||||
|
|
|
@ -3,7 +3,7 @@ Automatic-Module-Name: com.minres.rdl.ide
|
|||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: com.minres.rdl.ide
|
||||
Bundle-Vendor: My Company
|
||||
Bundle-Version: 1.0.0.qualifier
|
||||
Bundle-Version: 1.4.0
|
||||
Bundle-SymbolicName: com.minres.rdl.ide; singleton:=true
|
||||
Bundle-ActivationPolicy: lazy
|
||||
Require-Bundle: com.minres.rdl,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<parent>
|
||||
<groupId>com.minres.rdl</groupId>
|
||||
<artifactId>com.minres.rdl.parent</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<version>1.4.0</version>
|
||||
</parent>
|
||||
<artifactId>com.minres.rdl.ide</artifactId>
|
||||
<packaging>eclipse-plugin</packaging>
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
/*
|
|
@ -0,0 +1 @@
|
|||
com.minres.rdl.ide.RDLIdeSetup
|
|
@ -0,0 +1,60 @@
|
|||
/*
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.ide;
|
||||
|
||||
import com.google.inject.Binder;
|
||||
import com.google.inject.name.Names;
|
||||
import com.minres.rdl.ide.contentassist.antlr.RDLParser;
|
||||
import com.minres.rdl.ide.contentassist.antlr.internal.InternalRDLLexer;
|
||||
import org.eclipse.xtext.ide.DefaultIdeModule;
|
||||
import org.eclipse.xtext.ide.LexerIdeBindings;
|
||||
import org.eclipse.xtext.ide.editor.contentassist.FQNPrefixMatcher;
|
||||
import org.eclipse.xtext.ide.editor.contentassist.IPrefixMatcher;
|
||||
import org.eclipse.xtext.ide.editor.contentassist.IProposalConflictHelper;
|
||||
import org.eclipse.xtext.ide.editor.contentassist.antlr.AntlrProposalConflictHelper;
|
||||
import org.eclipse.xtext.ide.editor.contentassist.antlr.IContentAssistParser;
|
||||
import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.Lexer;
|
||||
import org.eclipse.xtext.ide.refactoring.IRenameStrategy2;
|
||||
import org.eclipse.xtext.ide.server.rename.IRenameService2;
|
||||
import org.eclipse.xtext.ide.server.rename.RenameService2;
|
||||
|
||||
/**
|
||||
* Manual modifications go to {@link RDLIdeModule}.
|
||||
*/
|
||||
@SuppressWarnings("all")
|
||||
public abstract class AbstractRDLIdeModule extends DefaultIdeModule {
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public void configureContentAssistLexer(Binder binder) {
|
||||
binder.bind(Lexer.class)
|
||||
.annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
|
||||
.to(InternalRDLLexer.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends IContentAssistParser> bindIContentAssistParser() {
|
||||
return RDLParser.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends IProposalConflictHelper> bindIProposalConflictHelper() {
|
||||
return AntlrProposalConflictHelper.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.exporting.QualifiedNamesFragment2
|
||||
public Class<? extends IPrefixMatcher> bindIPrefixMatcher() {
|
||||
return FQNPrefixMatcher.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2
|
||||
public Class<? extends IRenameService2> bindIRenameService2() {
|
||||
return RenameService2.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2
|
||||
public Class<? extends IRenameStrategy2> bindIRenameStrategy2() {
|
||||
return IRenameStrategy2.DefaultImpl.class;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.ide.contentassist.antlr;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import org.eclipse.xtext.AbstractRule;
|
||||
import org.eclipse.xtext.ide.editor.contentassist.antlr.FollowElement;
|
||||
import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser;
|
||||
import org.eclipse.xtext.util.PolymorphicDispatcher;
|
||||
|
||||
public class PartialRDLContentAssistParser extends RDLParser {
|
||||
|
||||
private AbstractRule rule;
|
||||
|
||||
@Override
|
||||
public void initializeFor(AbstractRule rule) {
|
||||
this.rule = rule;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
|
||||
if (rule == null || rule.eIsProxy())
|
||||
return Collections.emptyList();
|
||||
String methodName = "entryRule" + rule.getName();
|
||||
PolymorphicDispatcher<Collection<FollowElement>> dispatcher =
|
||||
new PolymorphicDispatcher<Collection<FollowElement>>(methodName, 0, 0, Collections.singletonList(parser));
|
||||
dispatcher.invoke();
|
||||
return parser.getFollowElements();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,252 @@
|
|||
/*
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.ide.contentassist.antlr;
|
||||
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.Singleton;
|
||||
import com.minres.rdl.ide.contentassist.antlr.internal.InternalRDLParser;
|
||||
import com.minres.rdl.services.RDLGrammarAccess;
|
||||
import java.util.Map;
|
||||
import org.eclipse.xtext.AbstractElement;
|
||||
import org.eclipse.xtext.ide.editor.contentassist.antlr.AbstractContentAssistParser;
|
||||
|
||||
public class RDLParser extends AbstractContentAssistParser {
|
||||
|
||||
@Singleton
|
||||
public static final class NameMappings {
|
||||
|
||||
private final Map<AbstractElement, String> mappings;
|
||||
|
||||
@Inject
|
||||
public NameMappings(RDLGrammarAccess grammarAccess) {
|
||||
ImmutableMap.Builder<AbstractElement, String> builder = ImmutableMap.builder();
|
||||
init(builder, grammarAccess);
|
||||
this.mappings = builder.build();
|
||||
}
|
||||
|
||||
public String getRuleName(AbstractElement element) {
|
||||
return mappings.get(element);
|
||||
}
|
||||
|
||||
private static void init(ImmutableMap.Builder<AbstractElement, String> builder, RDLGrammarAccess grammarAccess) {
|
||||
builder.put(grammarAccess.getRootAccess().getAlternatives(), "rule__Root__Alternatives");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getAlternatives_3(), "rule__PropertyDefinition__Alternatives_3");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getAlternatives_3_0_4(), "rule__PropertyDefinition__Alternatives_3_0_4");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getAlternatives_3_1_1(), "rule__PropertyDefinition__Alternatives_3_1_1");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getAlternatives_3_2_1(), "rule__PropertyDefinition__Alternatives_3_2_1");
|
||||
builder.put(grammarAccess.getPropertyDefaultAccess().getAlternatives_2(), "rule__PropertyDefault__Alternatives_2");
|
||||
builder.put(grammarAccess.getComponentDefinitionAccess().getAlternatives_3(), "rule__ComponentDefinition__Alternatives_3");
|
||||
builder.put(grammarAccess.getInstantiationAccess().getAlternatives_0(), "rule__Instantiation__Alternatives_0");
|
||||
builder.put(grammarAccess.getRangeAccess().getAlternatives_1(), "rule__Range__Alternatives_1");
|
||||
builder.put(grammarAccess.getPropertyAssignmentAccess().getAlternatives(), "rule__PropertyAssignment__Alternatives");
|
||||
builder.put(grammarAccess.getExplicitPropertyAssignmentAccess().getAlternatives(), "rule__ExplicitPropertyAssignment__Alternatives");
|
||||
builder.put(grammarAccess.getPostPropertyAssignmentAccess().getAlternatives_0(), "rule__PostPropertyAssignment__Alternatives_0");
|
||||
builder.put(grammarAccess.getPostPropertyAssignmentAccess().getAlternatives_0_0_2(), "rule__PostPropertyAssignment__Alternatives_0_0_2");
|
||||
builder.put(grammarAccess.getInstancePropertyRefAccess().getAlternatives_1_1(), "rule__InstancePropertyRef__Alternatives_1_1");
|
||||
builder.put(grammarAccess.getEntityAccess().getAlternatives(), "rule__Entity__Alternatives");
|
||||
builder.put(grammarAccess.getPropertyAssignmentRhsAccess().getAlternatives(), "rule__PropertyAssignmentRhs__Alternatives");
|
||||
builder.put(grammarAccess.getConcatElemAccess().getAlternatives(), "rule__ConcatElem__Alternatives");
|
||||
builder.put(grammarAccess.getPropertyRvalueConstantAccess().getAlternatives(), "rule__PropertyRvalueConstant__Alternatives");
|
||||
builder.put(grammarAccess.getEnumPropertyAccess().getAlternatives_0(), "rule__EnumProperty__Alternatives_0");
|
||||
builder.put(grammarAccess.getEnumInstanceTypeAccess().getAlternatives(), "rule__EnumInstanceType__Alternatives");
|
||||
builder.put(grammarAccess.getPropertyTypeNameAccess().getAlternatives(), "rule__PropertyTypeName__Alternatives");
|
||||
builder.put(grammarAccess.getPropertyComponentAccess().getAlternatives(), "rule__PropertyComponent__Alternatives");
|
||||
builder.put(grammarAccess.getComponentDefinitionTypeAccess().getAlternatives(), "rule__ComponentDefinitionType__Alternatives");
|
||||
builder.put(grammarAccess.getPropertyEnumAccess().getAlternatives(), "rule__PropertyEnum__Alternatives");
|
||||
builder.put(grammarAccess.getPropertyAccess().getAlternatives(), "rule__Property__Alternatives");
|
||||
builder.put(grammarAccess.getRValueConstantAccess().getAlternatives(), "rule__RValueConstant__Alternatives");
|
||||
builder.put(grammarAccess.getPropertyModifierAccess().getAlternatives(), "rule__PropertyModifier__Alternatives");
|
||||
builder.put(grammarAccess.getRootAccess().getGroup_1(), "rule__Root__Group_1__0");
|
||||
builder.put(grammarAccess.getRootAccess().getGroup_2(), "rule__Root__Group_2__0");
|
||||
builder.put(grammarAccess.getRootAccess().getGroup_3(), "rule__Root__Group_3__0");
|
||||
builder.put(grammarAccess.getRootAccess().getGroup_4(), "rule__Root__Group_4__0");
|
||||
builder.put(grammarAccess.getRootAccess().getGroup_5(), "rule__Root__Group_5__0");
|
||||
builder.put(grammarAccess.getIncludeAccess().getGroup(), "rule__Include__Group__0");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getGroup(), "rule__PropertyDefinition__Group__0");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_0(), "rule__PropertyDefinition__Group_3_0__0");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_0_4_0(), "rule__PropertyDefinition__Group_3_0_4_0__0");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_0_4_1(), "rule__PropertyDefinition__Group_3_0_4_1__0");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_1(), "rule__PropertyDefinition__Group_3_1__0");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_1_1_0(), "rule__PropertyDefinition__Group_3_1_1_0__0");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_1_1_1(), "rule__PropertyDefinition__Group_3_1_1_1__0");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_2(), "rule__PropertyDefinition__Group_3_2__0");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_2_1_0(), "rule__PropertyDefinition__Group_3_2_1_0__0");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getGroup_3_2_1_1(), "rule__PropertyDefinition__Group_3_2_1_1__0");
|
||||
builder.put(grammarAccess.getPropertyDefaultAccess().getGroup(), "rule__PropertyDefault__Group__0");
|
||||
builder.put(grammarAccess.getPropertyUsageAccess().getGroup(), "rule__PropertyUsage__Group__0");
|
||||
builder.put(grammarAccess.getPropertyUsageAccess().getGroup_3(), "rule__PropertyUsage__Group_3__0");
|
||||
builder.put(grammarAccess.getComponentDefinitionAccess().getGroup(), "rule__ComponentDefinition__Group__0");
|
||||
builder.put(grammarAccess.getComponentDefinitionAccess().getGroup_3_0(), "rule__ComponentDefinition__Group_3_0__0");
|
||||
builder.put(grammarAccess.getComponentDefinitionAccess().getGroup_3_1(), "rule__ComponentDefinition__Group_3_1__0");
|
||||
builder.put(grammarAccess.getComponentDefinitionAccess().getGroup_3_2(), "rule__ComponentDefinition__Group_3_2__0");
|
||||
builder.put(grammarAccess.getComponentDefinitionAccess().getGroup_3_3(), "rule__ComponentDefinition__Group_3_3__0");
|
||||
builder.put(grammarAccess.getInstantiationAccess().getGroup(), "rule__Instantiation__Group__0");
|
||||
builder.put(grammarAccess.getInstantiationAccess().getGroup_0_0(), "rule__Instantiation__Group_0_0__0");
|
||||
builder.put(grammarAccess.getInstantiationAccess().getGroup_0_0_1(), "rule__Instantiation__Group_0_0_1__0");
|
||||
builder.put(grammarAccess.getInstantiationAccess().getGroup_0_1(), "rule__Instantiation__Group_0_1__0");
|
||||
builder.put(grammarAccess.getInstantiationAccess().getGroup_2(), "rule__Instantiation__Group_2__0");
|
||||
builder.put(grammarAccess.getComponentInstanceAccess().getGroup(), "rule__ComponentInstance__Group__0");
|
||||
builder.put(grammarAccess.getComponentInstanceAccess().getGroup_2(), "rule__ComponentInstance__Group_2__0");
|
||||
builder.put(grammarAccess.getComponentInstanceAccess().getGroup_3(), "rule__ComponentInstance__Group_3__0");
|
||||
builder.put(grammarAccess.getComponentInstanceAccess().getGroup_4(), "rule__ComponentInstance__Group_4__0");
|
||||
builder.put(grammarAccess.getComponentInstanceAccess().getGroup_5(), "rule__ComponentInstance__Group_5__0");
|
||||
builder.put(grammarAccess.getRangeAccess().getGroup(), "rule__Range__Group__0");
|
||||
builder.put(grammarAccess.getRangeAccess().getGroup_1_0(), "rule__Range__Group_1_0__0");
|
||||
builder.put(grammarAccess.getDefaultProperyAssignmentAccess().getGroup(), "rule__DefaultProperyAssignment__Group__0");
|
||||
builder.put(grammarAccess.getExplicitPropertyAssignmentAccess().getGroup_0(), "rule__ExplicitPropertyAssignment__Group_0__0");
|
||||
builder.put(grammarAccess.getExplicitPropertyAssignmentAccess().getGroup_1(), "rule__ExplicitPropertyAssignment__Group_1__0");
|
||||
builder.put(grammarAccess.getExplicitPropertyAssignmentAccess().getGroup_1_1(), "rule__ExplicitPropertyAssignment__Group_1_1__0");
|
||||
builder.put(grammarAccess.getPostPropertyAssignmentAccess().getGroup(), "rule__PostPropertyAssignment__Group__0");
|
||||
builder.put(grammarAccess.getPostPropertyAssignmentAccess().getGroup_0_0(), "rule__PostPropertyAssignment__Group_0_0__0");
|
||||
builder.put(grammarAccess.getPostPropertyAssignmentAccess().getGroup_1(), "rule__PostPropertyAssignment__Group_1__0");
|
||||
builder.put(grammarAccess.getInstancePropertyRefAccess().getGroup(), "rule__InstancePropertyRef__Group__0");
|
||||
builder.put(grammarAccess.getInstancePropertyRefAccess().getGroup_1(), "rule__InstancePropertyRef__Group_1__0");
|
||||
builder.put(grammarAccess.getInstanceRefAccess().getGroup(), "rule__InstanceRef__Group__0");
|
||||
builder.put(grammarAccess.getInstanceRefAccess().getGroup_1(), "rule__InstanceRef__Group_1__0");
|
||||
builder.put(grammarAccess.getHierInstanceRefAccess().getGroup(), "rule__HierInstanceRef__Group__0");
|
||||
builder.put(grammarAccess.getHierInstanceRefAccess().getGroup_1(), "rule__HierInstanceRef__Group_1__0");
|
||||
builder.put(grammarAccess.getPropertyAssignmentRhsAccess().getGroup_2(), "rule__PropertyAssignmentRhs__Group_2__0");
|
||||
builder.put(grammarAccess.getConcatAccess().getGroup(), "rule__Concat__Group__0");
|
||||
builder.put(grammarAccess.getConcatAccess().getGroup_2(), "rule__Concat__Group_2__0");
|
||||
builder.put(grammarAccess.getEnumDefinitionAccess().getGroup(), "rule__EnumDefinition__Group__0");
|
||||
builder.put(grammarAccess.getEnumBodyAccess().getGroup(), "rule__EnumBody__Group__0");
|
||||
builder.put(grammarAccess.getEnumEntryAccess().getGroup(), "rule__EnumEntry__Group__0");
|
||||
builder.put(grammarAccess.getEnumEntryAccess().getGroup_3(), "rule__EnumEntry__Group_3__0");
|
||||
builder.put(grammarAccess.getEnumPropertyAccess().getGroup(), "rule__EnumProperty__Group__0");
|
||||
builder.put(grammarAccess.getEnumPropertyAccess().getGroup_0_0(), "rule__EnumProperty__Group_0_0__0");
|
||||
builder.put(grammarAccess.getEnumPropertyAccess().getGroup_0_1(), "rule__EnumProperty__Group_0_1__0");
|
||||
builder.put(grammarAccess.getRootAccess().getIncludesAssignment_0(), "rule__Root__IncludesAssignment_0");
|
||||
builder.put(grammarAccess.getRootAccess().getComponentDefinitionsAssignment_1_0(), "rule__Root__ComponentDefinitionsAssignment_1_0");
|
||||
builder.put(grammarAccess.getRootAccess().getEnumDefinitionsAssignment_2_0(), "rule__Root__EnumDefinitionsAssignment_2_0");
|
||||
builder.put(grammarAccess.getRootAccess().getInstantiationsAssignment_3_0(), "rule__Root__InstantiationsAssignment_3_0");
|
||||
builder.put(grammarAccess.getRootAccess().getPropertyAssignmentsAssignment_4_0(), "rule__Root__PropertyAssignmentsAssignment_4_0");
|
||||
builder.put(grammarAccess.getRootAccess().getPropertyDefinitionsAssignment_5_0(), "rule__Root__PropertyDefinitionsAssignment_5_0");
|
||||
builder.put(grammarAccess.getIncludeAccess().getImportURIAssignment_1(), "rule__Include__ImportURIAssignment_1");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getNameAssignment_1(), "rule__PropertyDefinition__NameAssignment_1");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getTypeAssignment_3_0_2(), "rule__PropertyDefinition__TypeAssignment_3_0_2");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getUsageAssignment_3_0_4_0_0(), "rule__PropertyDefinition__UsageAssignment_3_0_4_0_0");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getDefaultAssignment_3_0_4_0_1(), "rule__PropertyDefinition__DefaultAssignment_3_0_4_0_1");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getDefaultAssignment_3_0_4_1_0(), "rule__PropertyDefinition__DefaultAssignment_3_0_4_1_0");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getUsageAssignment_3_0_4_1_1(), "rule__PropertyDefinition__UsageAssignment_3_0_4_1_1");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getUsageAssignment_3_1_0(), "rule__PropertyDefinition__UsageAssignment_3_1_0");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getTypeAssignment_3_1_1_0_2(), "rule__PropertyDefinition__TypeAssignment_3_1_1_0_2");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getDefaultAssignment_3_1_1_0_4(), "rule__PropertyDefinition__DefaultAssignment_3_1_1_0_4");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getDefaultAssignment_3_1_1_1_0(), "rule__PropertyDefinition__DefaultAssignment_3_1_1_1_0");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getTypeAssignment_3_1_1_1_3(), "rule__PropertyDefinition__TypeAssignment_3_1_1_1_3");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getDefaultAssignment_3_2_0(), "rule__PropertyDefinition__DefaultAssignment_3_2_0");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getTypeAssignment_3_2_1_0_2(), "rule__PropertyDefinition__TypeAssignment_3_2_1_0_2");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getUsageAssignment_3_2_1_0_4(), "rule__PropertyDefinition__UsageAssignment_3_2_1_0_4");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getUsageAssignment_3_2_1_1_0(), "rule__PropertyDefinition__UsageAssignment_3_2_1_1_0");
|
||||
builder.put(grammarAccess.getPropertyDefinitionAccess().getTypeAssignment_3_2_1_1_3(), "rule__PropertyDefinition__TypeAssignment_3_2_1_1_3");
|
||||
builder.put(grammarAccess.getPropertyDefaultAccess().getStringAssignment_2_0(), "rule__PropertyDefault__StringAssignment_2_0");
|
||||
builder.put(grammarAccess.getPropertyDefaultAccess().getValueAssignment_2_1(), "rule__PropertyDefault__ValueAssignment_2_1");
|
||||
builder.put(grammarAccess.getPropertyDefaultAccess().getStringAssignment_2_2(), "rule__PropertyDefault__StringAssignment_2_2");
|
||||
builder.put(grammarAccess.getPropertyDefaultAccess().getStringAssignment_2_3(), "rule__PropertyDefault__StringAssignment_2_3");
|
||||
builder.put(grammarAccess.getPropertyUsageAccess().getComponentsAssignment_2(), "rule__PropertyUsage__ComponentsAssignment_2");
|
||||
builder.put(grammarAccess.getPropertyUsageAccess().getComponentsAssignment_3_1(), "rule__PropertyUsage__ComponentsAssignment_3_1");
|
||||
builder.put(grammarAccess.getComponentDefinitionAccess().getTypeAssignment_0(), "rule__ComponentDefinition__TypeAssignment_0");
|
||||
builder.put(grammarAccess.getComponentDefinitionAccess().getNameAssignment_1(), "rule__ComponentDefinition__NameAssignment_1");
|
||||
builder.put(grammarAccess.getComponentDefinitionAccess().getComponentDefinitionsAssignment_3_0_0(), "rule__ComponentDefinition__ComponentDefinitionsAssignment_3_0_0");
|
||||
builder.put(grammarAccess.getComponentDefinitionAccess().getInstantiationsAssignment_3_1_0(), "rule__ComponentDefinition__InstantiationsAssignment_3_1_0");
|
||||
builder.put(grammarAccess.getComponentDefinitionAccess().getPropertyAssignmentsAssignment_3_2_0(), "rule__ComponentDefinition__PropertyAssignmentsAssignment_3_2_0");
|
||||
builder.put(grammarAccess.getComponentDefinitionAccess().getEnumDefinitionsAssignment_3_3_0(), "rule__ComponentDefinition__EnumDefinitionsAssignment_3_3_0");
|
||||
builder.put(grammarAccess.getInstantiationAccess().getInstanceTypeAssignment_0_0_0(), "rule__Instantiation__InstanceTypeAssignment_0_0_0");
|
||||
builder.put(grammarAccess.getInstantiationAccess().getAliasAssignment_0_0_1_1(), "rule__Instantiation__AliasAssignment_0_0_1_1");
|
||||
builder.put(grammarAccess.getInstantiationAccess().getComponentRefAssignment_0_0_2(), "rule__Instantiation__ComponentRefAssignment_0_0_2");
|
||||
builder.put(grammarAccess.getInstantiationAccess().getComponentAssignment_0_1_0(), "rule__Instantiation__ComponentAssignment_0_1_0");
|
||||
builder.put(grammarAccess.getInstantiationAccess().getInstanceTypeAssignment_0_1_1(), "rule__Instantiation__InstanceTypeAssignment_0_1_1");
|
||||
builder.put(grammarAccess.getInstantiationAccess().getComponentInstancesAssignment_1(), "rule__Instantiation__ComponentInstancesAssignment_1");
|
||||
builder.put(grammarAccess.getInstantiationAccess().getComponentInstancesAssignment_2_1(), "rule__Instantiation__ComponentInstancesAssignment_2_1");
|
||||
builder.put(grammarAccess.getComponentInstanceAccess().getNameAssignment_0(), "rule__ComponentInstance__NameAssignment_0");
|
||||
builder.put(grammarAccess.getComponentInstanceAccess().getRangeAssignment_1(), "rule__ComponentInstance__RangeAssignment_1");
|
||||
builder.put(grammarAccess.getComponentInstanceAccess().getResetAssignment_2_1(), "rule__ComponentInstance__ResetAssignment_2_1");
|
||||
builder.put(grammarAccess.getComponentInstanceAccess().getAddressAssignment_3_1(), "rule__ComponentInstance__AddressAssignment_3_1");
|
||||
builder.put(grammarAccess.getComponentInstanceAccess().getAddrIncAssignment_4_1(), "rule__ComponentInstance__AddrIncAssignment_4_1");
|
||||
builder.put(grammarAccess.getComponentInstanceAccess().getAddrModAssignment_5_1(), "rule__ComponentInstance__AddrModAssignment_5_1");
|
||||
builder.put(grammarAccess.getRangeAccess().getLeftAssignment_1_0_0(), "rule__Range__LeftAssignment_1_0_0");
|
||||
builder.put(grammarAccess.getRangeAccess().getRightAssignment_1_0_2(), "rule__Range__RightAssignment_1_0_2");
|
||||
builder.put(grammarAccess.getRangeAccess().getSizeAssignment_1_1(), "rule__Range__SizeAssignment_1_1");
|
||||
builder.put(grammarAccess.getExplicitPropertyAssignmentAccess().getModifierAssignment_0_0(), "rule__ExplicitPropertyAssignment__ModifierAssignment_0_0");
|
||||
builder.put(grammarAccess.getExplicitPropertyAssignmentAccess().getNameAssignment_0_1(), "rule__ExplicitPropertyAssignment__NameAssignment_0_1");
|
||||
builder.put(grammarAccess.getExplicitPropertyAssignmentAccess().getNameAssignment_1_0(), "rule__ExplicitPropertyAssignment__NameAssignment_1_0");
|
||||
builder.put(grammarAccess.getExplicitPropertyAssignmentAccess().getRhsAssignment_1_1_1(), "rule__ExplicitPropertyAssignment__RhsAssignment_1_1_1");
|
||||
builder.put(grammarAccess.getPostPropertyAssignmentAccess().getInstanceAssignment_0_0_0(), "rule__PostPropertyAssignment__InstanceAssignment_0_0_0");
|
||||
builder.put(grammarAccess.getPostPropertyAssignmentAccess().getPropertyEnumAssignment_0_0_2_0(), "rule__PostPropertyAssignment__PropertyEnumAssignment_0_0_2_0");
|
||||
builder.put(grammarAccess.getPostPropertyAssignmentAccess().getPropertyAssignment_0_0_2_1(), "rule__PostPropertyAssignment__PropertyAssignment_0_0_2_1");
|
||||
builder.put(grammarAccess.getPostPropertyAssignmentAccess().getPropertyAssignment_0_1(), "rule__PostPropertyAssignment__PropertyAssignment_0_1");
|
||||
builder.put(grammarAccess.getPostPropertyAssignmentAccess().getRhsAssignment_1_1(), "rule__PostPropertyAssignment__RhsAssignment_1_1");
|
||||
builder.put(grammarAccess.getInstancePropertyRefAccess().getInstanceAssignment_0(), "rule__InstancePropertyRef__InstanceAssignment_0");
|
||||
builder.put(grammarAccess.getInstancePropertyRefAccess().getPropertyEnumAssignment_1_1_0(), "rule__InstancePropertyRef__PropertyEnumAssignment_1_1_0");
|
||||
builder.put(grammarAccess.getInstancePropertyRefAccess().getPropertyAssignment_1_1_1(), "rule__InstancePropertyRef__PropertyAssignment_1_1_1");
|
||||
builder.put(grammarAccess.getInstanceRefAccess().getInstanceAssignment_0(), "rule__InstanceRef__InstanceAssignment_0");
|
||||
builder.put(grammarAccess.getInstanceRefAccess().getTailAssignment_1_1(), "rule__InstanceRef__TailAssignment_1_1");
|
||||
builder.put(grammarAccess.getHierInstanceRefAccess().getInstanceAssignment_0(), "rule__HierInstanceRef__InstanceAssignment_0");
|
||||
builder.put(grammarAccess.getHierInstanceRefAccess().getTailAssignment_1_1(), "rule__HierInstanceRef__TailAssignment_1_1");
|
||||
builder.put(grammarAccess.getPropertyAssignmentRhsAccess().getValueAssignment_0(), "rule__PropertyAssignmentRhs__ValueAssignment_0");
|
||||
builder.put(grammarAccess.getPropertyAssignmentRhsAccess().getInstPropRefAssignment_1(), "rule__PropertyAssignmentRhs__InstPropRefAssignment_1");
|
||||
builder.put(grammarAccess.getPropertyAssignmentRhsAccess().getEnumRefAssignment_2_0(), "rule__PropertyAssignmentRhs__EnumRefAssignment_2_0");
|
||||
builder.put(grammarAccess.getPropertyAssignmentRhsAccess().getEnumsAssignment_2_2(), "rule__PropertyAssignmentRhs__EnumsAssignment_2_2");
|
||||
builder.put(grammarAccess.getPropertyAssignmentRhsAccess().getElementsAssignment_3(), "rule__PropertyAssignmentRhs__ElementsAssignment_3");
|
||||
builder.put(grammarAccess.getConcatAccess().getElementsAssignment_1(), "rule__Concat__ElementsAssignment_1");
|
||||
builder.put(grammarAccess.getConcatAccess().getElementsAssignment_2_1(), "rule__Concat__ElementsAssignment_2_1");
|
||||
builder.put(grammarAccess.getConcatElemAccess().getInstPropRefAssignment_0(), "rule__ConcatElem__InstPropRefAssignment_0");
|
||||
builder.put(grammarAccess.getConcatElemAccess().getValueAssignment_1(), "rule__ConcatElem__ValueAssignment_1");
|
||||
builder.put(grammarAccess.getPropertyRvalueConstantAccess().getValAssignment_0(), "rule__PropertyRvalueConstant__ValAssignment_0");
|
||||
builder.put(grammarAccess.getPropertyRvalueConstantAccess().getNumAssignment_1(), "rule__PropertyRvalueConstant__NumAssignment_1");
|
||||
builder.put(grammarAccess.getPropertyRvalueConstantAccess().getStrAssignment_2(), "rule__PropertyRvalueConstant__StrAssignment_2");
|
||||
builder.put(grammarAccess.getEnumDefinitionAccess().getNameAssignment_1(), "rule__EnumDefinition__NameAssignment_1");
|
||||
builder.put(grammarAccess.getEnumDefinitionAccess().getBodyAssignment_2(), "rule__EnumDefinition__BodyAssignment_2");
|
||||
builder.put(grammarAccess.getEnumBodyAccess().getEntriesAssignment_2(), "rule__EnumBody__EntriesAssignment_2");
|
||||
builder.put(grammarAccess.getEnumEntryAccess().getNameAssignment_0(), "rule__EnumEntry__NameAssignment_0");
|
||||
builder.put(grammarAccess.getEnumEntryAccess().getIndexAssignment_2(), "rule__EnumEntry__IndexAssignment_2");
|
||||
builder.put(grammarAccess.getEnumEntryAccess().getPropertiesAssignment_3_1(), "rule__EnumEntry__PropertiesAssignment_3_1");
|
||||
builder.put(grammarAccess.getEnumPropertyAccess().getNameAssignment_0_0_0(), "rule__EnumProperty__NameAssignment_0_0_0");
|
||||
builder.put(grammarAccess.getEnumPropertyAccess().getValueAssignment_0_0_2(), "rule__EnumProperty__ValueAssignment_0_0_2");
|
||||
builder.put(grammarAccess.getEnumPropertyAccess().getNameAssignment_0_1_0(), "rule__EnumProperty__NameAssignment_0_1_0");
|
||||
builder.put(grammarAccess.getEnumPropertyAccess().getValueAssignment_0_1_2(), "rule__EnumProperty__ValueAssignment_0_1_2");
|
||||
builder.put(grammarAccess.getEnumInstanceTypeAccess().getEXTERNALAssignment_0(), "rule__EnumInstanceType__EXTERNALAssignment_0");
|
||||
builder.put(grammarAccess.getEnumInstanceTypeAccess().getINTERNALAssignment_1(), "rule__EnumInstanceType__INTERNALAssignment_1");
|
||||
}
|
||||
}
|
||||
|
||||
@Inject
|
||||
private NameMappings nameMappings;
|
||||
|
||||
@Inject
|
||||
private RDLGrammarAccess grammarAccess;
|
||||
|
||||
@Override
|
||||
protected InternalRDLParser createParser() {
|
||||
InternalRDLParser result = new InternalRDLParser(null);
|
||||
result.setGrammarAccess(grammarAccess);
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getRuleName(AbstractElement element) {
|
||||
return nameMappings.getRuleName(element);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String[] getInitialHiddenTokens() {
|
||||
return new String[] { "RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_ESCAPE_JSP", "RULE_ESCAPE_ORDL" };
|
||||
}
|
||||
|
||||
public RDLGrammarAccess getGrammarAccess() {
|
||||
return this.grammarAccess;
|
||||
}
|
||||
|
||||
public void setGrammarAccess(RDLGrammarAccess grammarAccess) {
|
||||
this.grammarAccess = grammarAccess;
|
||||
}
|
||||
|
||||
public NameMappings getNameMappings() {
|
||||
return nameMappings;
|
||||
}
|
||||
|
||||
public void setNameMappings(NameMappings nameMappings) {
|
||||
this.nameMappings = nameMappings;
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,254 @@
|
|||
'%='=127
|
||||
'+='=126
|
||||
','=124
|
||||
'->'=131
|
||||
'.'=132
|
||||
':'=130
|
||||
';'=113
|
||||
'='=119
|
||||
'@'=125
|
||||
'UNDEFINED'=97
|
||||
'['=128
|
||||
']'=129
|
||||
'`include'=114
|
||||
'accesswidth'=81
|
||||
'activehigh'=60
|
||||
'activelow'=61
|
||||
'addressing'=84
|
||||
'addrmap'=15
|
||||
'alias'=123
|
||||
'alignment'=77
|
||||
'all'=21
|
||||
'anded'=40
|
||||
'arbiter'=24
|
||||
'async'=57
|
||||
'bigendian'=49
|
||||
'boolean'=14
|
||||
'bothedge'=110
|
||||
'bridge'=52
|
||||
'clock'=88
|
||||
'compact'=105
|
||||
'component'=121
|
||||
'counter'=43
|
||||
'cpuif_reset'=58
|
||||
'decr'=65
|
||||
'decrsaturate'=71
|
||||
'decrthreshold'=73
|
||||
'decrvalue'=69
|
||||
'decrwidth'=67
|
||||
'default'=120
|
||||
'desc'=23
|
||||
'dontcompare'=74
|
||||
'donttest'=75
|
||||
'enable'=90
|
||||
'encode'=86
|
||||
'enum'=133
|
||||
'errextbus'=46
|
||||
'external'=134
|
||||
'false'=99
|
||||
'field'=18
|
||||
'field_reset'=59
|
||||
'fieldwidth'=79
|
||||
'fullalign'=107
|
||||
'halt'=95
|
||||
'haltenable'=94
|
||||
'haltmask'=93
|
||||
'hw'=83
|
||||
'hwclr'=34
|
||||
'hwenable'=91
|
||||
'hwmask'=92
|
||||
'hwset'=33
|
||||
'incr'=64
|
||||
'incrvalue'=68
|
||||
'incrwidth'=66
|
||||
'internal'=76
|
||||
'intr'=39
|
||||
'level'=111
|
||||
'littleendian'=48
|
||||
'lsb0'=55
|
||||
'mask'=89
|
||||
'msb0'=54
|
||||
'na'=104
|
||||
'name'=22
|
||||
'negedge'=109
|
||||
'next'=96
|
||||
'nonsticky'=112
|
||||
'number'=13
|
||||
'ored'=41
|
||||
'overflow'=44
|
||||
'posedge'=108
|
||||
'precedence'=85
|
||||
'property'=115
|
||||
'r'=102
|
||||
'rclr'=26
|
||||
'ref'=19
|
||||
'reg'=16
|
||||
'regalign'=106
|
||||
'regfile'=17
|
||||
'regwidth'=78
|
||||
'reset'=47
|
||||
'resetsignal'=87
|
||||
'rset'=25
|
||||
'rsvdset'=50
|
||||
'rsvdsetX'=51
|
||||
'rw'=100
|
||||
'saturate'=70
|
||||
'shared'=53
|
||||
'sharedextbus'=45
|
||||
'signal'=20
|
||||
'signalwidth'=80
|
||||
'singlepulse'=62
|
||||
'sticky'=37
|
||||
'stickybit'=38
|
||||
'string'=12
|
||||
'sw'=82
|
||||
'swacc'=36
|
||||
'swmod'=35
|
||||
'swwe'=31
|
||||
'swwel'=32
|
||||
'sync'=56
|
||||
'threshold'=72
|
||||
'true'=98
|
||||
'type'=118
|
||||
'underflow'=63
|
||||
'w'=103
|
||||
'we'=29
|
||||
'wel'=30
|
||||
'woclr'=27
|
||||
'woset'=28
|
||||
'wr'=101
|
||||
'xored'=42
|
||||
'{'=116
|
||||
'|'=122
|
||||
'}'=117
|
||||
RULE_ESCAPE_JSP=10
|
||||
RULE_ESCAPE_ORDL=11
|
||||
RULE_ID=5
|
||||
RULE_ML_COMMENT=8
|
||||
RULE_NUM=6
|
||||
RULE_SL_COMMENT=9
|
||||
RULE_STR=4
|
||||
RULE_WS=7
|
||||
T__100=100
|
||||
T__101=101
|
||||
T__102=102
|
||||
T__103=103
|
||||
T__104=104
|
||||
T__105=105
|
||||
T__106=106
|
||||
T__107=107
|
||||
T__108=108
|
||||
T__109=109
|
||||
T__110=110
|
||||
T__111=111
|
||||
T__112=112
|
||||
T__113=113
|
||||
T__114=114
|
||||
T__115=115
|
||||
T__116=116
|
||||
T__117=117
|
||||
T__118=118
|
||||
T__119=119
|
||||
T__120=120
|
||||
T__121=121
|
||||
T__122=122
|
||||
T__123=123
|
||||
T__124=124
|
||||
T__125=125
|
||||
T__126=126
|
||||
T__127=127
|
||||
T__128=128
|
||||
T__129=129
|
||||
T__12=12
|
||||
T__130=130
|
||||
T__131=131
|
||||
T__132=132
|
||||
T__133=133
|
||||
T__134=134
|
||||
T__13=13
|
||||
T__14=14
|
||||
T__15=15
|
||||
T__16=16
|
||||
T__17=17
|
||||
T__18=18
|
||||
T__19=19
|
||||
T__20=20
|
||||
T__21=21
|
||||
T__22=22
|
||||
T__23=23
|
||||
T__24=24
|
||||
T__25=25
|
||||
T__26=26
|
||||
T__27=27
|
||||
T__28=28
|
||||
T__29=29
|
||||
T__30=30
|
||||
T__31=31
|
||||
T__32=32
|
||||
T__33=33
|
||||
T__34=34
|
||||
T__35=35
|
||||
T__36=36
|
||||
T__37=37
|
||||
T__38=38
|
||||
T__39=39
|
||||
T__40=40
|
||||
T__41=41
|
||||
T__42=42
|
||||
T__43=43
|
||||
T__44=44
|
||||
T__45=45
|
||||
T__46=46
|
||||
T__47=47
|
||||
T__48=48
|
||||
T__49=49
|
||||
T__50=50
|
||||
T__51=51
|
||||
T__52=52
|
||||
T__53=53
|
||||
T__54=54
|
||||
T__55=55
|
||||
T__56=56
|
||||
T__57=57
|
||||
T__58=58
|
||||
T__59=59
|
||||
T__60=60
|
||||
T__61=61
|
||||
T__62=62
|
||||
T__63=63
|
||||
T__64=64
|
||||
T__65=65
|
||||
T__66=66
|
||||
T__67=67
|
||||
T__68=68
|
||||
T__69=69
|
||||
T__70=70
|
||||
T__71=71
|
||||
T__72=72
|
||||
T__73=73
|
||||
T__74=74
|
||||
T__75=75
|
||||
T__76=76
|
||||
T__77=77
|
||||
T__78=78
|
||||
T__79=79
|
||||
T__80=80
|
||||
T__81=81
|
||||
T__82=82
|
||||
T__83=83
|
||||
T__84=84
|
||||
T__85=85
|
||||
T__86=86
|
||||
T__87=87
|
||||
T__88=88
|
||||
T__89=89
|
||||
T__90=90
|
||||
T__91=91
|
||||
T__92=92
|
||||
T__93=93
|
||||
T__94=94
|
||||
T__95=95
|
||||
T__96=96
|
||||
T__97=97
|
||||
T__98=98
|
||||
T__99=99
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -5,10 +5,9 @@
|
|||
<artifactId>com.minres.rdl.product.releng</artifactId>
|
||||
<packaging>eclipse-repository</packaging>
|
||||
<name>RDL Editor</name>
|
||||
<version>1.3.0-SNAPSHOT</version>
|
||||
|
||||
<parent>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<version>1.4.0</version>
|
||||
<groupId>com.minres.rdl</groupId>
|
||||
<artifactId>com.minres.rdl.parent</artifactId>
|
||||
</parent>
|
||||
|
|
|
@ -4,10 +4,9 @@
|
|||
<parent>
|
||||
<groupId>com.minres.rdl</groupId>
|
||||
<artifactId>com.minres.rdl.parent</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<version>1.4.0</version>
|
||||
</parent>
|
||||
<artifactId>com.minres.rdl.repository</artifactId>
|
||||
<version>1.3.0-SNAPSHOT</version>
|
||||
<packaging>eclipse-repository</packaging>
|
||||
|
||||
<build>
|
||||
|
@ -90,9 +89,9 @@
|
|||
<appArgLine>-application org.eclipse.ant.core.antRunner -buildfile packaging-p2-composite.ant p2.composite.add -Dsite.label="RDL-Editor Software Repository" -Dproject.build.directory=${project.build.directory} -DunqualifiedVersion=${unqualifiedVersion} -Dsoftware.download.area="${software.download.area}/RDL-Editor-GHP/repository"</appArgLine>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>2021-03</id>
|
||||
<id>2022-03</id>
|
||||
<layout>p2</layout>
|
||||
<url>http://download.eclipse.org/releases/2021-03/</url>
|
||||
<url>http://download.eclipse.org/releases/2022-03/</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
<dependencies>
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<parent>
|
||||
<artifactId>com.minres.rdl.parent</artifactId>
|
||||
<groupId>com.minres.rdl</groupId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<version>1.4.0</version>
|
||||
</parent>
|
||||
<artifactId>com.minres.rdl.standalone</artifactId>
|
||||
<version>1.2.0-SNAPSHOT</version>
|
||||
|
||||
<packaging>eclipse-repository</packaging>
|
||||
<build>
|
||||
<pluginManagement>
|
||||
|
@ -77,7 +77,7 @@
|
|||
<artifactItem>
|
||||
<groupId>com.minres.rdl</groupId>
|
||||
<artifactId>com.minres.rdl</artifactId>
|
||||
<version>${rdl-plugin.version}</version>
|
||||
<version>${project.version}</version>
|
||||
<type>jar</type>
|
||||
<overWrite>false</overWrite>
|
||||
<outputDirectory>${project.build.directory}/classes</outputDirectory>
|
||||
|
@ -175,7 +175,7 @@
|
|||
<dependency>
|
||||
<groupId>com.minres.rdl</groupId>
|
||||
<artifactId>com.minres.rdl</artifactId>
|
||||
<version>${rdl-plugin.version}</version>
|
||||
<version>${project.version}</version>
|
||||
<type>eclipse-plugin</type>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<parent>
|
||||
<groupId>com.minres.rdl</groupId>
|
||||
<artifactId>com.minres.rdl.parent</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<version>1.4.0</version>
|
||||
</parent>
|
||||
<artifactId>com.minres.rdl.target</artifactId>
|
||||
<packaging>eclipse-target-definition</packaging>
|
||||
|
|
|
@ -3,7 +3,7 @@ Automatic-Module-Name: com.minres.rdl.tests
|
|||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: com.minres.rdl.tests
|
||||
Bundle-Vendor: My Company
|
||||
Bundle-Version: 1.0.0.qualifier
|
||||
Bundle-Version: 1.4.0
|
||||
Bundle-SymbolicName: com.minres.rdl.tests; singleton:=true
|
||||
Bundle-ActivationPolicy: lazy
|
||||
Require-Bundle: com.minres.rdl,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<parent>
|
||||
<groupId>com.minres.rdl</groupId>
|
||||
<artifactId>com.minres.rdl.parent</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<version>1.4.0</version>
|
||||
</parent>
|
||||
<artifactId>com.minres.rdl.tests</artifactId>
|
||||
<packaging>eclipse-test-plugin</packaging>
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
/*
|
|
@ -0,0 +1,69 @@
|
|||
/*
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.tests;
|
||||
|
||||
import com.google.inject.Guice;
|
||||
import com.google.inject.Injector;
|
||||
import com.minres.rdl.RDLRuntimeModule;
|
||||
import com.minres.rdl.RDLStandaloneSetup;
|
||||
import org.eclipse.xtext.testing.GlobalRegistries;
|
||||
import org.eclipse.xtext.testing.GlobalRegistries.GlobalStateMemento;
|
||||
import org.eclipse.xtext.testing.IInjectorProvider;
|
||||
import org.eclipse.xtext.testing.IRegistryConfigurator;
|
||||
|
||||
public class RDLInjectorProvider implements IInjectorProvider, IRegistryConfigurator {
|
||||
|
||||
protected GlobalStateMemento stateBeforeInjectorCreation;
|
||||
protected GlobalStateMemento stateAfterInjectorCreation;
|
||||
protected Injector injector;
|
||||
|
||||
static {
|
||||
GlobalRegistries.initializeDefaults();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Injector getInjector() {
|
||||
if (injector == null) {
|
||||
this.injector = internalCreateInjector();
|
||||
stateAfterInjectorCreation = GlobalRegistries.makeCopyOfGlobalState();
|
||||
}
|
||||
return injector;
|
||||
}
|
||||
|
||||
protected Injector internalCreateInjector() {
|
||||
return new RDLStandaloneSetup() {
|
||||
@Override
|
||||
public Injector createInjector() {
|
||||
return Guice.createInjector(createRuntimeModule());
|
||||
}
|
||||
}.createInjectorAndDoEMFRegistration();
|
||||
}
|
||||
|
||||
protected RDLRuntimeModule createRuntimeModule() {
|
||||
// make it work also with Maven/Tycho and OSGI
|
||||
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=493672
|
||||
return new RDLRuntimeModule() {
|
||||
@Override
|
||||
public ClassLoader bindClassLoaderToInstance() {
|
||||
return RDLInjectorProvider.class
|
||||
.getClassLoader();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public void restoreRegistry() {
|
||||
stateBeforeInjectorCreation.restoreGlobalState();
|
||||
stateBeforeInjectorCreation = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setupRegistry() {
|
||||
stateBeforeInjectorCreation = GlobalRegistries.makeCopyOfGlobalState();
|
||||
if (injector == null) {
|
||||
getInjector();
|
||||
}
|
||||
stateAfterInjectorCreation.restoreGlobalState();
|
||||
}
|
||||
}
|
|
@ -3,7 +3,7 @@ Automatic-Module-Name: com.minres.rdl.ui.tests
|
|||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: com.minres.rdl.ui.tests
|
||||
Bundle-Vendor: My Company
|
||||
Bundle-Version: 1.0.0.qualifier
|
||||
Bundle-Version: 1.4.0
|
||||
Bundle-SymbolicName: com.minres.rdl.ui.tests; singleton:=true
|
||||
Bundle-ActivationPolicy: lazy
|
||||
Require-Bundle: com.minres.rdl.ui,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<parent>
|
||||
<groupId>com.minres.rdl</groupId>
|
||||
<artifactId>com.minres.rdl.parent</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<version>1.4.0</version>
|
||||
</parent>
|
||||
<artifactId>com.minres.rdl.ui.tests</artifactId>
|
||||
<packaging>eclipse-test-plugin</packaging>
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
/*
|
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.ui.tests;
|
||||
|
||||
import com.google.inject.Injector;
|
||||
import com.minres.rdl.ui.internal.RdlActivator;
|
||||
import org.eclipse.xtext.testing.IInjectorProvider;
|
||||
|
||||
public class RDLUiInjectorProvider implements IInjectorProvider {
|
||||
|
||||
@Override
|
||||
public Injector getInjector() {
|
||||
return RdlActivator.getInstance().getInjector("com.minres.rdl.RDL");
|
||||
}
|
||||
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
/*
|
|
@ -3,7 +3,7 @@ Automatic-Module-Name: com.minres.rdl.ui
|
|||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: com.minres.rdl.ui
|
||||
Bundle-Vendor: MINRES Technologies GmbH
|
||||
Bundle-Version: 1.2.0.qualifier
|
||||
Bundle-Version: 1.4.0
|
||||
Bundle-SymbolicName: com.minres.rdl.ui; singleton:=true
|
||||
Bundle-ActivationPolicy: lazy
|
||||
Require-Bundle: com.minres.rdl,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<parent>
|
||||
<groupId>com.minres.rdl</groupId>
|
||||
<artifactId>com.minres.rdl.parent</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<version>1.4.0</version>
|
||||
</parent>
|
||||
<artifactId>com.minres.rdl.ui</artifactId>
|
||||
<packaging>eclipse-plugin</packaging>
|
||||
|
@ -17,6 +17,4 @@
|
|||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<version>1.2.0-SNAPSHOT</version>
|
||||
</project>
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
/*
|
|
@ -0,0 +1,307 @@
|
|||
/*
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.ui;
|
||||
|
||||
import com.google.inject.Binder;
|
||||
import com.google.inject.Provider;
|
||||
import com.google.inject.name.Names;
|
||||
import com.minres.rdl.ide.contentassist.antlr.PartialRDLContentAssistParser;
|
||||
import com.minres.rdl.ide.contentassist.antlr.RDLParser;
|
||||
import com.minres.rdl.ide.contentassist.antlr.internal.InternalRDLLexer;
|
||||
import com.minres.rdl.ui.contentassist.RDLProposalProvider;
|
||||
import com.minres.rdl.ui.labeling.RDLDescriptionLabelProvider;
|
||||
import com.minres.rdl.ui.labeling.RDLLabelProvider;
|
||||
import com.minres.rdl.ui.outline.RDLOutlineTreeProvider;
|
||||
import com.minres.rdl.ui.quickfix.RDLQuickfixProvider;
|
||||
import com.minres.rdl.validation.RDLValidatorConfigurationBlock;
|
||||
import org.eclipse.compare.IViewerCreator;
|
||||
import org.eclipse.core.resources.IWorkspaceRoot;
|
||||
import org.eclipse.core.resources.ResourcesPlugin;
|
||||
import org.eclipse.jface.viewers.ILabelProvider;
|
||||
import org.eclipse.ui.plugin.AbstractUIPlugin;
|
||||
import org.eclipse.xtext.builder.BuilderParticipant;
|
||||
import org.eclipse.xtext.builder.EclipseOutputConfigurationProvider;
|
||||
import org.eclipse.xtext.builder.IXtextBuilderParticipant;
|
||||
import org.eclipse.xtext.builder.builderState.IBuilderState;
|
||||
import org.eclipse.xtext.builder.clustering.CurrentDescriptions;
|
||||
import org.eclipse.xtext.builder.impl.PersistentDataAwareDirtyResource;
|
||||
import org.eclipse.xtext.builder.nature.NatureAddingEditorCallback;
|
||||
import org.eclipse.xtext.builder.preferences.BuilderPreferenceAccess;
|
||||
import org.eclipse.xtext.generator.IContextualOutputConfigurationProvider;
|
||||
import org.eclipse.xtext.ide.LexerIdeBindings;
|
||||
import org.eclipse.xtext.ide.editor.contentassist.antlr.IContentAssistParser;
|
||||
import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.Lexer;
|
||||
import org.eclipse.xtext.ide.editor.partialEditing.IPartialEditingContentAssistParser;
|
||||
import org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider;
|
||||
import org.eclipse.xtext.parser.antlr.ITokenDefProvider;
|
||||
import org.eclipse.xtext.parser.antlr.LexerProvider;
|
||||
import org.eclipse.xtext.resource.IResourceDescriptions;
|
||||
import org.eclipse.xtext.resource.containers.IAllContainersState;
|
||||
import org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider;
|
||||
import org.eclipse.xtext.service.SingletonBinding;
|
||||
import org.eclipse.xtext.ui.DefaultUiModule;
|
||||
import org.eclipse.xtext.ui.UIBindings;
|
||||
import org.eclipse.xtext.ui.codetemplates.ui.AccessibleCodetemplatesActivator;
|
||||
import org.eclipse.xtext.ui.codetemplates.ui.partialEditing.IPartialEditingContentAssistContextFactory;
|
||||
import org.eclipse.xtext.ui.codetemplates.ui.partialEditing.PartialEditingContentAssistContextFactory;
|
||||
import org.eclipse.xtext.ui.codetemplates.ui.preferences.AdvancedTemplatesPreferencePage;
|
||||
import org.eclipse.xtext.ui.codetemplates.ui.preferences.TemplatesLanguageConfiguration;
|
||||
import org.eclipse.xtext.ui.codetemplates.ui.registry.LanguageRegistrar;
|
||||
import org.eclipse.xtext.ui.codetemplates.ui.registry.LanguageRegistry;
|
||||
import org.eclipse.xtext.ui.compare.DefaultViewerCreator;
|
||||
import org.eclipse.xtext.ui.editor.DocumentBasedDirtyResource;
|
||||
import org.eclipse.xtext.ui.editor.IXtextEditorCallback;
|
||||
import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext;
|
||||
import org.eclipse.xtext.ui.editor.contentassist.FQNPrefixMatcher;
|
||||
import org.eclipse.xtext.ui.editor.contentassist.IContentProposalProvider;
|
||||
import org.eclipse.xtext.ui.editor.contentassist.IProposalConflictHelper;
|
||||
import org.eclipse.xtext.ui.editor.contentassist.PrefixMatcher;
|
||||
import org.eclipse.xtext.ui.editor.contentassist.antlr.AntlrProposalConflictHelper;
|
||||
import org.eclipse.xtext.ui.editor.contentassist.antlr.DelegatingContentAssistContextFactory;
|
||||
import org.eclipse.xtext.ui.editor.formatting.IContentFormatterFactory;
|
||||
import org.eclipse.xtext.ui.editor.formatting2.ContentFormatterFactory;
|
||||
import org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider;
|
||||
import org.eclipse.xtext.ui.editor.outline.impl.IOutlineTreeStructureProvider;
|
||||
import org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreInitializer;
|
||||
import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider;
|
||||
import org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage;
|
||||
import org.eclipse.xtext.ui.refactoring.IDependentElementsCalculator;
|
||||
import org.eclipse.xtext.ui.refactoring.IReferenceUpdater;
|
||||
import org.eclipse.xtext.ui.refactoring.IRenameRefactoringProvider;
|
||||
import org.eclipse.xtext.ui.refactoring.IRenameStrategy;
|
||||
import org.eclipse.xtext.ui.refactoring.impl.DefaultDependentElementsCalculator;
|
||||
import org.eclipse.xtext.ui.refactoring.impl.DefaultReferenceUpdater;
|
||||
import org.eclipse.xtext.ui.refactoring.impl.DefaultRenameRefactoringProvider;
|
||||
import org.eclipse.xtext.ui.refactoring.impl.DefaultRenameStrategy;
|
||||
import org.eclipse.xtext.ui.refactoring.ui.DefaultRenameSupport;
|
||||
import org.eclipse.xtext.ui.refactoring.ui.IRenameSupport;
|
||||
import org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferences;
|
||||
import org.eclipse.xtext.ui.resource.ResourceServiceDescriptionLabelProvider;
|
||||
import org.eclipse.xtext.ui.shared.Access;
|
||||
import org.eclipse.xtext.ui.validation.AbstractValidatorConfigurationBlock;
|
||||
import org.eclipse.xtext.ui.wizard.IProjectCreator;
|
||||
import org.eclipse.xtext.ui.wizard.template.DefaultTemplateProjectCreator;
|
||||
|
||||
/**
|
||||
* Manual modifications go to {@link RDLUiModule}.
|
||||
*/
|
||||
@SuppressWarnings("all")
|
||||
public abstract class AbstractRDLUiModule extends DefaultUiModule {
|
||||
|
||||
public AbstractRDLUiModule(AbstractUIPlugin plugin) {
|
||||
super(plugin);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ImplicitFragment
|
||||
public Provider<? extends IAllContainersState> provideIAllContainersState() {
|
||||
return Access.getJavaProjectsState();
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends IProposalConflictHelper> bindIProposalConflictHelper() {
|
||||
return AntlrProposalConflictHelper.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public void configureContentAssistLexer(Binder binder) {
|
||||
binder.bind(Lexer.class)
|
||||
.annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
|
||||
.to(InternalRDLLexer.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public void configureHighlightingLexer(Binder binder) {
|
||||
binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class)
|
||||
.annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING))
|
||||
.to(com.minres.rdl.parser.antlr.internal.InternalRDLLexer.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public void configureHighlightingTokenDefProvider(Binder binder) {
|
||||
binder.bind(ITokenDefProvider.class)
|
||||
.annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING))
|
||||
.to(AntlrTokenDefProvider.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends ContentAssistContext.Factory> bindContentAssistContext$Factory() {
|
||||
return DelegatingContentAssistContextFactory.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends IContentAssistParser> bindIContentAssistParser() {
|
||||
return RDLParser.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public void configureContentAssistLexerProvider(Binder binder) {
|
||||
binder.bind(InternalRDLLexer.class).toProvider(LexerProvider.create(InternalRDLLexer.class));
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.validation.ValidatorFragment2
|
||||
public Class<? extends AbstractValidatorConfigurationBlock> bindAbstractValidatorConfigurationBlock() {
|
||||
return RDLValidatorConfigurationBlock.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.exporting.QualifiedNamesFragment2
|
||||
public Class<? extends PrefixMatcher> bindPrefixMatcher() {
|
||||
return FQNPrefixMatcher.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2
|
||||
public void configureIResourceDescriptionsBuilderScope(Binder binder) {
|
||||
binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.NAMED_BUILDER_SCOPE)).to(CurrentDescriptions.ResourceSetAware.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2
|
||||
public Class<? extends IXtextEditorCallback> bindIXtextEditorCallback() {
|
||||
return NatureAddingEditorCallback.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2
|
||||
public Class<? extends IContextualOutputConfigurationProvider> bindIContextualOutputConfigurationProvider() {
|
||||
return EclipseOutputConfigurationProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2
|
||||
public void configureIResourceDescriptionsPersisted(Binder binder) {
|
||||
binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(IBuilderState.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2
|
||||
public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() {
|
||||
return PersistentDataAwareDirtyResource.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.generator.GeneratorFragment2
|
||||
public Class<? extends IXtextBuilderParticipant> bindIXtextBuilderParticipant() {
|
||||
return BuilderParticipant.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.generator.GeneratorFragment2
|
||||
public IWorkspaceRoot bindIWorkspaceRootToInstance() {
|
||||
return ResourcesPlugin.getWorkspace().getRoot();
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.generator.GeneratorFragment2
|
||||
public void configureBuilderPreferenceStoreInitializer(Binder binder) {
|
||||
binder.bind(IPreferenceStoreInitializer.class)
|
||||
.annotatedWith(Names.named("builderPreferenceInitializer"))
|
||||
.to(BuilderPreferenceAccess.Initializer.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.formatting.Formatter2Fragment2
|
||||
public Class<? extends IContentFormatterFactory> bindIContentFormatterFactory() {
|
||||
return ContentFormatterFactory.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.labeling.LabelProviderFragment2
|
||||
public Class<? extends ILabelProvider> bindILabelProvider() {
|
||||
return RDLLabelProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.labeling.LabelProviderFragment2
|
||||
public void configureResourceUIServiceLabelProvider(Binder binder) {
|
||||
binder.bind(ILabelProvider.class).annotatedWith(ResourceServiceDescriptionLabelProvider.class).to(RDLDescriptionLabelProvider.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.outline.OutlineTreeProviderFragment2
|
||||
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() {
|
||||
return RDLOutlineTreeProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.outline.OutlineTreeProviderFragment2
|
||||
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() {
|
||||
return RDLOutlineTreeProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.quickfix.QuickfixProviderFragment2
|
||||
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
|
||||
return RDLQuickfixProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.contentAssist.ContentAssistFragment2
|
||||
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
|
||||
return RDLProposalProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2
|
||||
public void configureIPreferenceStoreInitializer(Binder binder) {
|
||||
binder.bind(IPreferenceStoreInitializer.class)
|
||||
.annotatedWith(Names.named("RefactoringPreferences"))
|
||||
.to(RefactoringPreferences.Initializer.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2
|
||||
public Class<? extends IRenameStrategy> bindIRenameStrategy() {
|
||||
return DefaultRenameStrategy.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2
|
||||
public Class<? extends IReferenceUpdater> bindIReferenceUpdater() {
|
||||
return DefaultReferenceUpdater.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2
|
||||
public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() {
|
||||
return DefaultRenameRefactoringProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2
|
||||
public Class<? extends IRenameSupport.Factory> bindIRenameSupport$Factory() {
|
||||
return DefaultRenameSupport.Factory.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2
|
||||
public Provider<? extends TemplatesLanguageConfiguration> provideTemplatesLanguageConfiguration() {
|
||||
return AccessibleCodetemplatesActivator.getTemplatesLanguageConfigurationProvider();
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2
|
||||
public Provider<? extends LanguageRegistry> provideLanguageRegistry() {
|
||||
return AccessibleCodetemplatesActivator.getLanguageRegistry();
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2
|
||||
@SingletonBinding(eager=true)
|
||||
public Class<? extends LanguageRegistrar> bindLanguageRegistrar() {
|
||||
return LanguageRegistrar.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2
|
||||
public Class<? extends XtextTemplatePreferencePage> bindXtextTemplatePreferencePage() {
|
||||
return AdvancedTemplatesPreferencePage.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2
|
||||
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
|
||||
return PartialRDLContentAssistParser.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2
|
||||
public Class<? extends IPartialEditingContentAssistContextFactory> bindIPartialEditingContentAssistContextFactory() {
|
||||
return PartialEditingContentAssistContextFactory.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.compare.CompareFragment2
|
||||
public Class<? extends IViewerCreator> bindIViewerCreator() {
|
||||
return DefaultViewerCreator.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.compare.CompareFragment2
|
||||
public void configureCompareViewerTitle(Binder binder) {
|
||||
binder.bind(String.class).annotatedWith(Names.named(UIBindings.COMPARE_VIEWER_TITLE)).toInstance("RDL Compare");
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.projectWizard.TemplateProjectWizardFragment
|
||||
public Class<? extends IProjectCreator> bindIProjectCreator() {
|
||||
return DefaultTemplateProjectCreator.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.exporting.SimpleNamesFragment2
|
||||
public Class<? extends IDependentElementsCalculator> bindIDependentElementsCalculator() {
|
||||
return DefaultDependentElementsCalculator.class;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.ui;
|
||||
|
||||
import com.google.inject.Injector;
|
||||
import com.minres.rdl.ui.internal.RdlActivator;
|
||||
import org.eclipse.xtext.ui.guice.AbstractGuiceAwareExecutableExtensionFactory;
|
||||
import org.osgi.framework.Bundle;
|
||||
import org.osgi.framework.FrameworkUtil;
|
||||
|
||||
/**
|
||||
* This class was generated. Customizations should only happen in a newly
|
||||
* introduced subclass.
|
||||
*/
|
||||
public class RDLExecutableExtensionFactory extends AbstractGuiceAwareExecutableExtensionFactory {
|
||||
|
||||
@Override
|
||||
protected Bundle getBundle() {
|
||||
return FrameworkUtil.getBundle(RdlActivator.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Injector getInjector() {
|
||||
RdlActivator activator = RdlActivator.getInstance();
|
||||
return activator != null ? activator.getInjector(RdlActivator.COM_MINRES_RDL_RDL) : null;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,358 @@
|
|||
/*
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.ui.contentassist;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
import org.eclipse.xtext.Assignment;
|
||||
import org.eclipse.xtext.CrossReference;
|
||||
import org.eclipse.xtext.Keyword;
|
||||
import org.eclipse.xtext.RuleCall;
|
||||
import org.eclipse.xtext.ui.editor.contentassist.AbstractJavaBasedContentProposalProvider;
|
||||
import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext;
|
||||
import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor;
|
||||
|
||||
/**
|
||||
* Represents a generated, default implementation of superclass {@link AbstractJavaBasedContentProposalProvider}.
|
||||
* Methods are dynamically dispatched on the first parameter, i.e., you can override them
|
||||
* with a more concrete subtype.
|
||||
*/
|
||||
public abstract class AbstractRDLProposalProvider extends AbstractJavaBasedContentProposalProvider {
|
||||
|
||||
public void completeRoot_Includes(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeRoot_ComponentDefinitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeRoot_EnumDefinitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeRoot_Instantiations(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeRoot_PropertyAssignments(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeRoot_PropertyDefinitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeInclude_ImportURI(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completePropertyDefinition_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completePropertyDefinition_Type(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completePropertyDefinition_Usage(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completePropertyDefinition_Default(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completePropertyDefault_String(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
if (assignment.getTerminal() instanceof RuleCall) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
if (assignment.getTerminal() instanceof Keyword) {
|
||||
// subclasses may override
|
||||
}
|
||||
}
|
||||
public void completePropertyDefault_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completePropertyUsage_Components(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeComponentDefinition_Type(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeComponentDefinition_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeComponentDefinition_ComponentDefinitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeComponentDefinition_Instantiations(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeComponentDefinition_PropertyAssignments(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeComponentDefinition_EnumDefinitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeInstantiation_InstanceType(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeInstantiation_Alias(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeInstantiation_ComponentRef(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeInstantiation_Component(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeInstantiation_ComponentInstances(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeComponentInstance_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeComponentInstance_Range(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeComponentInstance_Reset(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeComponentInstance_Address(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeComponentInstance_AddrInc(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeComponentInstance_AddrMod(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeRange_Left(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeRange_Right(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeRange_Size(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeExplicitPropertyAssignment_Modifier(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeExplicitPropertyAssignment_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeExplicitPropertyAssignment_Rhs(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completePostPropertyAssignment_Instance(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completePostPropertyAssignment_PropertyEnum(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completePostPropertyAssignment_Property(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completePostPropertyAssignment_Rhs(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeInstancePropertyRef_Instance(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeInstancePropertyRef_PropertyEnum(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeInstancePropertyRef_Property(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeInstanceRef_Instance(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeInstanceRef_Tail(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeHierInstanceRef_Instance(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeHierInstanceRef_Tail(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completePropertyAssignmentRhs_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completePropertyAssignmentRhs_InstPropRef(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completePropertyAssignmentRhs_EnumRef(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completePropertyAssignmentRhs_Enums(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completePropertyAssignmentRhs_Elements(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeConcat_Elements(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeConcatElem_InstPropRef(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeConcatElem_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completePropertyRvalueConstant_Val(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completePropertyRvalueConstant_Num(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completePropertyRvalueConstant_Str(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEnumDefinition_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEnumDefinition_Body(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEnumBody_Entries(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEnumEntry_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEnumEntry_Index(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEnumEntry_Properties(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEnumProperty_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void completeEnumProperty_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEnumInstanceType_EXTERNAL(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void completeEnumInstanceType_INTERNAL(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
|
||||
public void complete_Root(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_Include(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_PropertyDefinition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_PropertyTypeName(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_PropertyDefault(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_PropertyUsage(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_PropertyComponent(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_ComponentDefinition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_ComponentDefinitionType(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_Instantiation(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_ComponentInstance(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_Range(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_PropertyAssignment(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_DefaultProperyAssignment(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_ExplicitPropertyAssignment(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_PostPropertyAssignment(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_InstancePropertyRef(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_Entity(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_InstanceRef(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_HierInstanceRef(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_PropertyAssignmentRhs(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_Concat(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_ConcatElem(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_PropertyEnum(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_Property(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_PropertyRvalueConstant(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_RValueConstant(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_PropertyModifier(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EnumDefinition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EnumBody(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EnumEntry(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EnumProperty(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EnumInstanceType(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_ID(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_WS(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_ML_COMMENT(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_SL_COMMENT(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_ESCAPE_JSP(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_ESCAPE_ORDL(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_NUM(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_STR(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
}
|
|
@ -0,0 +1,94 @@
|
|||
/*
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.ui.internal;
|
||||
|
||||
import com.google.common.collect.Maps;
|
||||
import com.google.inject.Guice;
|
||||
import com.google.inject.Injector;
|
||||
import com.minres.rdl.RDLRuntimeModule;
|
||||
import com.minres.rdl.ui.RDLUiModule;
|
||||
import java.util.Collections;
|
||||
import java.util.Map;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.eclipse.ui.plugin.AbstractUIPlugin;
|
||||
import org.eclipse.xtext.ui.shared.SharedStateModule;
|
||||
import org.eclipse.xtext.util.Modules2;
|
||||
import org.osgi.framework.BundleContext;
|
||||
|
||||
/**
|
||||
* This class was generated. Customizations should only happen in a newly
|
||||
* introduced subclass.
|
||||
*/
|
||||
public class RdlActivator extends AbstractUIPlugin {
|
||||
|
||||
public static final String PLUGIN_ID = "com.minres.rdl.ui";
|
||||
public static final String COM_MINRES_RDL_RDL = "com.minres.rdl.RDL";
|
||||
|
||||
private static final Logger logger = Logger.getLogger(RdlActivator.class);
|
||||
|
||||
private static RdlActivator INSTANCE;
|
||||
|
||||
private Map<String, Injector> injectors = Collections.synchronizedMap(Maps.<String, Injector> newHashMapWithExpectedSize(1));
|
||||
|
||||
@Override
|
||||
public void start(BundleContext context) throws Exception {
|
||||
super.start(context);
|
||||
INSTANCE = this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stop(BundleContext context) throws Exception {
|
||||
injectors.clear();
|
||||
INSTANCE = null;
|
||||
super.stop(context);
|
||||
}
|
||||
|
||||
public static RdlActivator getInstance() {
|
||||
return INSTANCE;
|
||||
}
|
||||
|
||||
public Injector getInjector(String language) {
|
||||
synchronized (injectors) {
|
||||
Injector injector = injectors.get(language);
|
||||
if (injector == null) {
|
||||
injectors.put(language, injector = createInjector(language));
|
||||
}
|
||||
return injector;
|
||||
}
|
||||
}
|
||||
|
||||
protected Injector createInjector(String language) {
|
||||
try {
|
||||
com.google.inject.Module runtimeModule = getRuntimeModule(language);
|
||||
com.google.inject.Module sharedStateModule = getSharedStateModule();
|
||||
com.google.inject.Module uiModule = getUiModule(language);
|
||||
com.google.inject.Module mergedModule = Modules2.mixin(runtimeModule, sharedStateModule, uiModule);
|
||||
return Guice.createInjector(mergedModule);
|
||||
} catch (Exception e) {
|
||||
logger.error("Failed to create injector for " + language);
|
||||
logger.error(e.getMessage(), e);
|
||||
throw new RuntimeException("Failed to create injector for " + language, e);
|
||||
}
|
||||
}
|
||||
|
||||
protected com.google.inject.Module getRuntimeModule(String grammar) {
|
||||
if (COM_MINRES_RDL_RDL.equals(grammar)) {
|
||||
return new RDLRuntimeModule();
|
||||
}
|
||||
throw new IllegalArgumentException(grammar);
|
||||
}
|
||||
|
||||
protected com.google.inject.Module getUiModule(String grammar) {
|
||||
if (COM_MINRES_RDL_RDL.equals(grammar)) {
|
||||
return new RDLUiModule(this);
|
||||
}
|
||||
throw new IllegalArgumentException(grammar);
|
||||
}
|
||||
|
||||
protected com.google.inject.Module getSharedStateModule() {
|
||||
return new SharedStateModule();
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
/*
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.validation;
|
||||
|
||||
import org.eclipse.jface.dialogs.IDialogSettings;
|
||||
import org.eclipse.swt.widgets.Composite;
|
||||
import org.eclipse.xtext.ui.validation.AbstractValidatorConfigurationBlock;
|
||||
|
||||
@SuppressWarnings("restriction")
|
||||
public class RDLValidatorConfigurationBlock extends AbstractValidatorConfigurationBlock {
|
||||
|
||||
protected static final String SETTINGS_SECTION_NAME = "RDL";
|
||||
|
||||
@Override
|
||||
protected void fillSettingsPage(Composite composite, int nColumns, int defaultIndent) {
|
||||
addComboBox(RDLConfigurableIssueCodesProvider.DEPRECATED_MODEL_PART, "Deprecated Model Part", composite, defaultIndent);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dispose() {
|
||||
storeSectionExpansionStates(getDialogSettings());
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected IDialogSettings getDialogSettings() {
|
||||
IDialogSettings dialogSettings = super.getDialogSettings();
|
||||
IDialogSettings section = dialogSettings.getSection(SETTINGS_SECTION_NAME);
|
||||
if (section == null) {
|
||||
return dialogSettings.addNewSection(SETTINGS_SECTION_NAME);
|
||||
}
|
||||
return section;
|
||||
}
|
||||
}
|
|
@ -4,7 +4,7 @@
|
|||
<parent>
|
||||
<groupId>com.minres.rdl</groupId>
|
||||
<artifactId>com.minres.rdl.parent</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<version>1.4.0</version>
|
||||
</parent>
|
||||
<artifactId>com.minres.rdl.web</artifactId>
|
||||
<packaging>war</packaging>
|
||||
|
@ -76,7 +76,7 @@
|
|||
<dependency>
|
||||
<groupId>${project.groupId}</groupId>
|
||||
<artifactId>com.minres.rdl</artifactId>
|
||||
<version>${rdl-plugin.version}</version>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>${project.groupId}</groupId>
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
/*
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.web;
|
||||
|
||||
import org.eclipse.xtext.web.server.DefaultWebModule;
|
||||
|
||||
/**
|
||||
* Manual modifications go to {@link RDLWebModule}.
|
||||
*/
|
||||
@SuppressWarnings("all")
|
||||
public abstract class AbstractRDLWebModule extends DefaultWebModule {
|
||||
|
||||
}
|
|
@ -3,7 +3,7 @@ Automatic-Module-Name: com.minres.rdl
|
|||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: com.minres.rdl
|
||||
Bundle-Vendor: MINRES Technologies GmbH
|
||||
Bundle-Version: 1.3.0.qualifier
|
||||
Bundle-Version: 1.4.0
|
||||
Bundle-SymbolicName: com.minres.rdl; singleton:=true
|
||||
Bundle-ActivationPolicy: lazy
|
||||
Require-Bundle: org.eclipse.xtext,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<parent>
|
||||
<groupId>com.minres.rdl</groupId>
|
||||
<artifactId>com.minres.rdl.parent</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
<version>1.4.0</version>
|
||||
</parent>
|
||||
<artifactId>com.minres.rdl</artifactId>
|
||||
<packaging>eclipse-plugin</packaging>
|
||||
|
@ -152,5 +152,4 @@
|
|||
</pluginManagement>
|
||||
</build>
|
||||
|
||||
<version>1.3.0-SNAPSHOT</version>
|
||||
</project>
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
/*
|
|
@ -0,0 +1,216 @@
|
|||
/*
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl;
|
||||
|
||||
import com.google.inject.Binder;
|
||||
import com.google.inject.Provider;
|
||||
import com.google.inject.name.Names;
|
||||
import com.minres.rdl.formatting2.RDLFormatter;
|
||||
import com.minres.rdl.generator.RDLGenerator;
|
||||
import com.minres.rdl.parser.antlr.RDLAntlrTokenFileProvider;
|
||||
import com.minres.rdl.parser.antlr.RDLParser;
|
||||
import com.minres.rdl.parser.antlr.internal.InternalRDLLexer;
|
||||
import com.minres.rdl.scoping.RDLScopeProvider;
|
||||
import com.minres.rdl.serializer.RDLSemanticSequencer;
|
||||
import com.minres.rdl.serializer.RDLSyntacticSequencer;
|
||||
import com.minres.rdl.services.RDLGrammarAccess;
|
||||
import com.minres.rdl.validation.RDLConfigurableIssueCodesProvider;
|
||||
import com.minres.rdl.validation.RDLValidator;
|
||||
import java.util.Properties;
|
||||
import org.eclipse.xtext.Constants;
|
||||
import org.eclipse.xtext.IGrammarAccess;
|
||||
import org.eclipse.xtext.formatting2.FormatterPreferenceValuesProvider;
|
||||
import org.eclipse.xtext.formatting2.FormatterPreferences;
|
||||
import org.eclipse.xtext.formatting2.IFormatter2;
|
||||
import org.eclipse.xtext.generator.IGenerator2;
|
||||
import org.eclipse.xtext.naming.IQualifiedNameProvider;
|
||||
import org.eclipse.xtext.naming.SimpleNameProvider;
|
||||
import org.eclipse.xtext.parser.IParser;
|
||||
import org.eclipse.xtext.parser.ITokenToStringConverter;
|
||||
import org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider;
|
||||
import org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter;
|
||||
import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider;
|
||||
import org.eclipse.xtext.parser.antlr.ITokenDefProvider;
|
||||
import org.eclipse.xtext.parser.antlr.Lexer;
|
||||
import org.eclipse.xtext.parser.antlr.LexerBindings;
|
||||
import org.eclipse.xtext.parser.antlr.LexerProvider;
|
||||
import org.eclipse.xtext.preferences.IPreferenceValuesProvider;
|
||||
import org.eclipse.xtext.resource.IContainer;
|
||||
import org.eclipse.xtext.resource.IResourceDescriptions;
|
||||
import org.eclipse.xtext.resource.containers.IAllContainersState;
|
||||
import org.eclipse.xtext.resource.containers.ResourceSetBasedAllContainersStateProvider;
|
||||
import org.eclipse.xtext.resource.containers.StateBasedContainerManager;
|
||||
import org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider;
|
||||
import org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions;
|
||||
import org.eclipse.xtext.scoping.IGlobalScopeProvider;
|
||||
import org.eclipse.xtext.scoping.IScopeProvider;
|
||||
import org.eclipse.xtext.scoping.IgnoreCaseLinking;
|
||||
import org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider;
|
||||
import org.eclipse.xtext.scoping.impl.DefaultGlobalScopeProvider;
|
||||
import org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider;
|
||||
import org.eclipse.xtext.serializer.ISerializer;
|
||||
import org.eclipse.xtext.serializer.impl.Serializer;
|
||||
import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer;
|
||||
import org.eclipse.xtext.serializer.sequencer.ISyntacticSequencer;
|
||||
import org.eclipse.xtext.service.DefaultRuntimeModule;
|
||||
import org.eclipse.xtext.service.SingletonBinding;
|
||||
import org.eclipse.xtext.validation.ConfigurableIssueCodesProvider;
|
||||
|
||||
/**
|
||||
* Manual modifications go to {@link RDLRuntimeModule}.
|
||||
*/
|
||||
@SuppressWarnings("all")
|
||||
public abstract class AbstractRDLRuntimeModule extends DefaultRuntimeModule {
|
||||
|
||||
protected Properties properties = null;
|
||||
|
||||
@Override
|
||||
public void configure(Binder binder) {
|
||||
properties = tryBindProperties(binder, "com/minres/rdl/RDL.properties");
|
||||
super.configure(binder);
|
||||
}
|
||||
|
||||
public void configureLanguageName(Binder binder) {
|
||||
binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("com.minres.rdl.RDL");
|
||||
}
|
||||
|
||||
public void configureFileExtensions(Binder binder) {
|
||||
if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null)
|
||||
binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("rdl");
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2
|
||||
public ClassLoader bindClassLoaderToInstance() {
|
||||
return getClass().getClassLoader();
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2
|
||||
public Class<? extends IGrammarAccess> bindIGrammarAccess() {
|
||||
return RDLGrammarAccess.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2
|
||||
public Class<? extends ISemanticSequencer> bindISemanticSequencer() {
|
||||
return RDLSemanticSequencer.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2
|
||||
public Class<? extends ISyntacticSequencer> bindISyntacticSequencer() {
|
||||
return RDLSyntacticSequencer.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2
|
||||
public Class<? extends ISerializer> bindISerializer() {
|
||||
return Serializer.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends IParser> bindIParser() {
|
||||
return RDLParser.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
|
||||
return AntlrTokenToStringConverter.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
|
||||
return RDLAntlrTokenFileProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends Lexer> bindLexer() {
|
||||
return InternalRDLLexer.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends ITokenDefProvider> bindITokenDefProvider() {
|
||||
return AntlrTokenDefProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Provider<? extends InternalRDLLexer> provideInternalRDLLexer() {
|
||||
return LexerProvider.create(InternalRDLLexer.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public void configureRuntimeLexer(Binder binder) {
|
||||
binder.bind(Lexer.class)
|
||||
.annotatedWith(Names.named(LexerBindings.RUNTIME))
|
||||
.to(InternalRDLLexer.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.validation.ValidatorFragment2
|
||||
@SingletonBinding(eager=true)
|
||||
public Class<? extends RDLValidator> bindRDLValidator() {
|
||||
return RDLValidator.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.validation.ValidatorFragment2
|
||||
public Class<? extends ConfigurableIssueCodesProvider> bindConfigurableIssueCodesProvider() {
|
||||
return RDLConfigurableIssueCodesProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2
|
||||
public Class<? extends IScopeProvider> bindIScopeProvider() {
|
||||
return RDLScopeProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2
|
||||
public void configureIScopeProviderDelegate(Binder binder) {
|
||||
binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2
|
||||
public Class<? extends IGlobalScopeProvider> bindIGlobalScopeProvider() {
|
||||
return DefaultGlobalScopeProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2
|
||||
public void configureIgnoreCaseLinking(Binder binder) {
|
||||
binder.bindConstant().annotatedWith(IgnoreCaseLinking.class).to(false);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2
|
||||
public Class<? extends IContainer.Manager> bindIContainer$Manager() {
|
||||
return StateBasedContainerManager.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2
|
||||
public Class<? extends IAllContainersState.Provider> bindIAllContainersState$Provider() {
|
||||
return ResourceSetBasedAllContainersStateProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2
|
||||
public void configureIResourceDescriptions(Binder binder) {
|
||||
binder.bind(IResourceDescriptions.class).to(ResourceSetBasedResourceDescriptions.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2
|
||||
public void configureIResourceDescriptionsPersisted(Binder binder) {
|
||||
binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(ResourceSetBasedResourceDescriptions.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.generator.GeneratorFragment2
|
||||
public Class<? extends IGenerator2> bindIGenerator2() {
|
||||
return RDLGenerator.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.formatting.Formatter2Fragment2
|
||||
public Class<? extends IFormatter2> bindIFormatter2() {
|
||||
return RDLFormatter.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.formatting.Formatter2Fragment2
|
||||
public void configureFormatterPreferences(Binder binder) {
|
||||
binder.bind(IPreferenceValuesProvider.class).annotatedWith(FormatterPreferences.class).to(FormatterPreferenceValuesProvider.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.exporting.SimpleNamesFragment2
|
||||
public Class<? extends IQualifiedNameProvider> bindIQualifiedNameProvider() {
|
||||
return SimpleNameProvider.class;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,56 @@
|
|||
/*
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl;
|
||||
|
||||
import com.google.inject.Guice;
|
||||
import com.google.inject.Injector;
|
||||
import com.minres.rdl.rdl.RdlPackage;
|
||||
import org.eclipse.emf.ecore.EPackage;
|
||||
import org.eclipse.emf.ecore.resource.Resource;
|
||||
import org.eclipse.emf.ecore.xmi.impl.EcoreResourceFactoryImpl;
|
||||
import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl;
|
||||
import org.eclipse.xtext.ISetup;
|
||||
import org.eclipse.xtext.XtextPackage;
|
||||
import org.eclipse.xtext.resource.IResourceFactory;
|
||||
import org.eclipse.xtext.resource.IResourceServiceProvider;
|
||||
import org.eclipse.xtext.resource.impl.BinaryGrammarResourceFactoryImpl;
|
||||
|
||||
@SuppressWarnings("all")
|
||||
public class RDLStandaloneSetupGenerated implements ISetup {
|
||||
|
||||
@Override
|
||||
public Injector createInjectorAndDoEMFRegistration() {
|
||||
// register default ePackages
|
||||
if (!Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().containsKey("ecore"))
|
||||
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put(
|
||||
"ecore", new EcoreResourceFactoryImpl());
|
||||
if (!Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().containsKey("xmi"))
|
||||
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put(
|
||||
"xmi", new XMIResourceFactoryImpl());
|
||||
if (!Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().containsKey("xtextbin"))
|
||||
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put(
|
||||
"xtextbin", new BinaryGrammarResourceFactoryImpl());
|
||||
if (!EPackage.Registry.INSTANCE.containsKey(XtextPackage.eNS_URI))
|
||||
EPackage.Registry.INSTANCE.put(XtextPackage.eNS_URI, XtextPackage.eINSTANCE);
|
||||
|
||||
Injector injector = createInjector();
|
||||
register(injector);
|
||||
return injector;
|
||||
}
|
||||
|
||||
public Injector createInjector() {
|
||||
return Guice.createInjector(new RDLRuntimeModule());
|
||||
}
|
||||
|
||||
public void register(Injector injector) {
|
||||
if (!EPackage.Registry.INSTANCE.containsKey("http://www.minres.com/rdl/RDL")) {
|
||||
EPackage.Registry.INSTANCE.put("http://www.minres.com/rdl/RDL", RdlPackage.eINSTANCE);
|
||||
}
|
||||
IResourceFactory resourceFactory = injector.getInstance(IResourceFactory.class);
|
||||
IResourceServiceProvider serviceProvider = injector.getInstance(IResourceServiceProvider.class);
|
||||
|
||||
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("rdl", resourceFactory);
|
||||
IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("rdl", serviceProvider);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.parser.antlr;
|
||||
|
||||
import java.io.InputStream;
|
||||
import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider;
|
||||
|
||||
public class RDLAntlrTokenFileProvider implements IAntlrTokenFileProvider {
|
||||
|
||||
@Override
|
||||
public InputStream getAntlrTokenFile() {
|
||||
ClassLoader classLoader = getClass().getClassLoader();
|
||||
return classLoader.getResourceAsStream("com/minres/rdl/parser/antlr/internal/InternalRDL.tokens");
|
||||
}
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.parser.antlr;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import com.minres.rdl.parser.antlr.internal.InternalRDLParser;
|
||||
import com.minres.rdl.services.RDLGrammarAccess;
|
||||
import org.eclipse.xtext.parser.antlr.AbstractAntlrParser;
|
||||
import org.eclipse.xtext.parser.antlr.XtextTokenStream;
|
||||
|
||||
public class RDLParser extends AbstractAntlrParser {
|
||||
|
||||
@Inject
|
||||
private RDLGrammarAccess grammarAccess;
|
||||
|
||||
@Override
|
||||
protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
|
||||
tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_ESCAPE_JSP", "RULE_ESCAPE_ORDL");
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected InternalRDLParser createParser(XtextTokenStream stream) {
|
||||
return new InternalRDLParser(stream, getGrammarAccess());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getDefaultRuleName() {
|
||||
return "Root";
|
||||
}
|
||||
|
||||
public RDLGrammarAccess getGrammarAccess() {
|
||||
return this.grammarAccess;
|
||||
}
|
||||
|
||||
public void setGrammarAccess(RDLGrammarAccess grammarAccess) {
|
||||
this.grammarAccess = grammarAccess;
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,254 @@
|
|||
'%='=28
|
||||
'+='=27
|
||||
','=25
|
||||
'->'=32
|
||||
'.'=33
|
||||
':'=30
|
||||
';'=12
|
||||
'='=17
|
||||
'@'=26
|
||||
'UNDEFINED'=121
|
||||
'['=29
|
||||
']'=31
|
||||
'`include'=13
|
||||
'accesswidth'=105
|
||||
'activehigh'=85
|
||||
'activelow'=86
|
||||
'addressing'=108
|
||||
'addrmap'=42
|
||||
'alias'=24
|
||||
'alignment'=101
|
||||
'all'=48
|
||||
'anded'=65
|
||||
'arbiter'=49
|
||||
'async'=82
|
||||
'bigendian'=74
|
||||
'boolean'=41
|
||||
'bothedge'=132
|
||||
'bridge'=77
|
||||
'clock'=112
|
||||
'compact'=127
|
||||
'component'=22
|
||||
'counter'=68
|
||||
'cpuif_reset'=83
|
||||
'decr'=90
|
||||
'decrsaturate'=96
|
||||
'decrthreshold'=98
|
||||
'decrvalue'=94
|
||||
'decrwidth'=92
|
||||
'default'=19
|
||||
'desc'=36
|
||||
'dontcompare'=99
|
||||
'donttest'=100
|
||||
'enable'=114
|
||||
'encode'=110
|
||||
'enum'=34
|
||||
'errextbus'=71
|
||||
'external'=37
|
||||
'false'=21
|
||||
'field'=45
|
||||
'field_reset'=84
|
||||
'fieldwidth'=103
|
||||
'fullalign'=129
|
||||
'halt'=119
|
||||
'haltenable'=118
|
||||
'haltmask'=117
|
||||
'hw'=107
|
||||
'hwclr'=59
|
||||
'hwenable'=115
|
||||
'hwmask'=116
|
||||
'hwset'=58
|
||||
'incr'=89
|
||||
'incrvalue'=93
|
||||
'incrwidth'=91
|
||||
'internal'=38
|
||||
'intr'=64
|
||||
'level'=133
|
||||
'littleendian'=73
|
||||
'lsb0'=80
|
||||
'mask'=113
|
||||
'msb0'=79
|
||||
'na'=126
|
||||
'name'=35
|
||||
'negedge'=131
|
||||
'next'=120
|
||||
'nonsticky'=134
|
||||
'number'=40
|
||||
'ored'=66
|
||||
'overflow'=69
|
||||
'posedge'=130
|
||||
'precedence'=109
|
||||
'property'=14
|
||||
'r'=124
|
||||
'rclr'=51
|
||||
'ref'=46
|
||||
'reg'=43
|
||||
'regalign'=128
|
||||
'regfile'=44
|
||||
'regwidth'=102
|
||||
'reset'=72
|
||||
'resetsignal'=111
|
||||
'rset'=50
|
||||
'rsvdset'=75
|
||||
'rsvdsetX'=76
|
||||
'rw'=122
|
||||
'saturate'=95
|
||||
'shared'=78
|
||||
'sharedextbus'=70
|
||||
'signal'=47
|
||||
'signalwidth'=104
|
||||
'singlepulse'=87
|
||||
'sticky'=62
|
||||
'stickybit'=63
|
||||
'string'=39
|
||||
'sw'=106
|
||||
'swacc'=61
|
||||
'swmod'=60
|
||||
'swwe'=56
|
||||
'swwel'=57
|
||||
'sync'=81
|
||||
'threshold'=97
|
||||
'true'=20
|
||||
'type'=16
|
||||
'underflow'=88
|
||||
'w'=125
|
||||
'we'=54
|
||||
'wel'=55
|
||||
'woclr'=52
|
||||
'woset'=53
|
||||
'wr'=123
|
||||
'xored'=67
|
||||
'{'=15
|
||||
'|'=23
|
||||
'}'=18
|
||||
RULE_ESCAPE_JSP=10
|
||||
RULE_ESCAPE_ORDL=11
|
||||
RULE_ID=5
|
||||
RULE_ML_COMMENT=8
|
||||
RULE_NUM=6
|
||||
RULE_SL_COMMENT=9
|
||||
RULE_STR=4
|
||||
RULE_WS=7
|
||||
T__100=100
|
||||
T__101=101
|
||||
T__102=102
|
||||
T__103=103
|
||||
T__104=104
|
||||
T__105=105
|
||||
T__106=106
|
||||
T__107=107
|
||||
T__108=108
|
||||
T__109=109
|
||||
T__110=110
|
||||
T__111=111
|
||||
T__112=112
|
||||
T__113=113
|
||||
T__114=114
|
||||
T__115=115
|
||||
T__116=116
|
||||
T__117=117
|
||||
T__118=118
|
||||
T__119=119
|
||||
T__120=120
|
||||
T__121=121
|
||||
T__122=122
|
||||
T__123=123
|
||||
T__124=124
|
||||
T__125=125
|
||||
T__126=126
|
||||
T__127=127
|
||||
T__128=128
|
||||
T__129=129
|
||||
T__12=12
|
||||
T__130=130
|
||||
T__131=131
|
||||
T__132=132
|
||||
T__133=133
|
||||
T__134=134
|
||||
T__13=13
|
||||
T__14=14
|
||||
T__15=15
|
||||
T__16=16
|
||||
T__17=17
|
||||
T__18=18
|
||||
T__19=19
|
||||
T__20=20
|
||||
T__21=21
|
||||
T__22=22
|
||||
T__23=23
|
||||
T__24=24
|
||||
T__25=25
|
||||
T__26=26
|
||||
T__27=27
|
||||
T__28=28
|
||||
T__29=29
|
||||
T__30=30
|
||||
T__31=31
|
||||
T__32=32
|
||||
T__33=33
|
||||
T__34=34
|
||||
T__35=35
|
||||
T__36=36
|
||||
T__37=37
|
||||
T__38=38
|
||||
T__39=39
|
||||
T__40=40
|
||||
T__41=41
|
||||
T__42=42
|
||||
T__43=43
|
||||
T__44=44
|
||||
T__45=45
|
||||
T__46=46
|
||||
T__47=47
|
||||
T__48=48
|
||||
T__49=49
|
||||
T__50=50
|
||||
T__51=51
|
||||
T__52=52
|
||||
T__53=53
|
||||
T__54=54
|
||||
T__55=55
|
||||
T__56=56
|
||||
T__57=57
|
||||
T__58=58
|
||||
T__59=59
|
||||
T__60=60
|
||||
T__61=61
|
||||
T__62=62
|
||||
T__63=63
|
||||
T__64=64
|
||||
T__65=65
|
||||
T__66=66
|
||||
T__67=67
|
||||
T__68=68
|
||||
T__69=69
|
||||
T__70=70
|
||||
T__71=71
|
||||
T__72=72
|
||||
T__73=73
|
||||
T__74=74
|
||||
T__75=75
|
||||
T__76=76
|
||||
T__77=77
|
||||
T__78=78
|
||||
T__79=79
|
||||
T__80=80
|
||||
T__81=81
|
||||
T__82=82
|
||||
T__83=83
|
||||
T__84=84
|
||||
T__85=85
|
||||
T__86=86
|
||||
T__87=87
|
||||
T__88=88
|
||||
T__89=89
|
||||
T__90=90
|
||||
T__91=91
|
||||
T__92=92
|
||||
T__93=93
|
||||
T__94=94
|
||||
T__95=95
|
||||
T__96=96
|
||||
T__97=97
|
||||
T__98=98
|
||||
T__99=99
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,128 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Component Definition</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.ComponentDefinition#getType <em>Type</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.ComponentDefinition#getName <em>Name</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.ComponentDefinition#getComponentDefinitions <em>Component Definitions</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.ComponentDefinition#getInstantiations <em>Instantiations</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.ComponentDefinition#getPropertyAssignments <em>Property Assignments</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.ComponentDefinition#getEnumDefinitions <em>Enum Definitions</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getComponentDefinition()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface ComponentDefinition extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Type</b></em>' attribute.
|
||||
* The literals are from the enumeration {@link com.minres.rdl.rdl.ComponentDefinitionType}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Type</em>' attribute.
|
||||
* @see com.minres.rdl.rdl.ComponentDefinitionType
|
||||
* @see #setType(ComponentDefinitionType)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getComponentDefinition_Type()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
ComponentDefinitionType getType();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.ComponentDefinition#getType <em>Type</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Type</em>' attribute.
|
||||
* @see com.minres.rdl.rdl.ComponentDefinitionType
|
||||
* @see #getType()
|
||||
* @generated
|
||||
*/
|
||||
void setType(ComponentDefinitionType value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Name</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Name</em>' attribute.
|
||||
* @see #setName(String)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getComponentDefinition_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.ComponentDefinition#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>Component Definitions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link com.minres.rdl.rdl.ComponentDefinition}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Component Definitions</em>' containment reference list.
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getComponentDefinition_ComponentDefinitions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<ComponentDefinition> getComponentDefinitions();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Instantiations</b></em>' containment reference list.
|
||||
* The list contents are of type {@link com.minres.rdl.rdl.Instantiation}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Instantiations</em>' containment reference list.
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getComponentDefinition_Instantiations()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<Instantiation> getInstantiations();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Property Assignments</b></em>' containment reference list.
|
||||
* The list contents are of type {@link com.minres.rdl.rdl.PropertyAssignment}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Property Assignments</em>' containment reference list.
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getComponentDefinition_PropertyAssignments()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<PropertyAssignment> getPropertyAssignments();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Enum Definitions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link com.minres.rdl.rdl.EnumDefinition}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Enum Definitions</em>' containment reference list.
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getComponentDefinition_EnumDefinitions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<EnumDefinition> getEnumDefinitions();
|
||||
|
||||
} // ComponentDefinition
|
|
@ -0,0 +1,294 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.eclipse.emf.common.util.Enumerator;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the literals of the enumeration '<em><b>Component Definition Type</b></em>',
|
||||
* and utility methods for working with them.
|
||||
* <!-- end-user-doc -->
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getComponentDefinitionType()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public enum ComponentDefinitionType implements Enumerator
|
||||
{
|
||||
/**
|
||||
* The '<em><b>SIGNAL</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #SIGNAL_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
SIGNAL(0, "SIGNAL", "signal"),
|
||||
|
||||
/**
|
||||
* The '<em><b>ADDRMAP</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #ADDRMAP_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
ADDRMAP(1, "ADDRMAP", "addrmap"),
|
||||
|
||||
/**
|
||||
* The '<em><b>REGFILE</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #REGFILE_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
REGFILE(2, "REGFILE", "regfile"),
|
||||
|
||||
/**
|
||||
* The '<em><b>REG</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #REG_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
REG(3, "REG", "reg"),
|
||||
|
||||
/**
|
||||
* The '<em><b>FIELD</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #FIELD_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
FIELD(4, "FIELD", "field");
|
||||
|
||||
/**
|
||||
* The '<em><b>SIGNAL</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #SIGNAL
|
||||
* @model literal="signal"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int SIGNAL_VALUE = 0;
|
||||
|
||||
/**
|
||||
* The '<em><b>ADDRMAP</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #ADDRMAP
|
||||
* @model literal="addrmap"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int ADDRMAP_VALUE = 1;
|
||||
|
||||
/**
|
||||
* The '<em><b>REGFILE</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #REGFILE
|
||||
* @model literal="regfile"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int REGFILE_VALUE = 2;
|
||||
|
||||
/**
|
||||
* The '<em><b>REG</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #REG
|
||||
* @model literal="reg"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int REG_VALUE = 3;
|
||||
|
||||
/**
|
||||
* The '<em><b>FIELD</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #FIELD
|
||||
* @model literal="field"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int FIELD_VALUE = 4;
|
||||
|
||||
/**
|
||||
* An array of all the '<em><b>Component Definition Type</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final ComponentDefinitionType[] VALUES_ARRAY =
|
||||
new ComponentDefinitionType[]
|
||||
{
|
||||
SIGNAL,
|
||||
ADDRMAP,
|
||||
REGFILE,
|
||||
REG,
|
||||
FIELD,
|
||||
};
|
||||
|
||||
/**
|
||||
* A public read-only list of all the '<em><b>Component Definition Type</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static final List<ComponentDefinitionType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Component Definition Type</b></em>' literal with the specified literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param literal the literal.
|
||||
* @return the matching enumerator or <code>null</code>.
|
||||
* @generated
|
||||
*/
|
||||
public static ComponentDefinitionType get(String literal)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
ComponentDefinitionType result = VALUES_ARRAY[i];
|
||||
if (result.toString().equals(literal))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Component Definition Type</b></em>' literal with the specified name.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param name the name.
|
||||
* @return the matching enumerator or <code>null</code>.
|
||||
* @generated
|
||||
*/
|
||||
public static ComponentDefinitionType getByName(String name)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
ComponentDefinitionType result = VALUES_ARRAY[i];
|
||||
if (result.getName().equals(name))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Component Definition Type</b></em>' literal with the specified integer value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the integer value.
|
||||
* @return the matching enumerator or <code>null</code>.
|
||||
* @generated
|
||||
*/
|
||||
public static ComponentDefinitionType get(int value)
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
case SIGNAL_VALUE: return SIGNAL;
|
||||
case ADDRMAP_VALUE: return ADDRMAP;
|
||||
case REGFILE_VALUE: return REGFILE;
|
||||
case REG_VALUE: return REG;
|
||||
case FIELD_VALUE: return FIELD;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private final int value;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private final String name;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private final String literal;
|
||||
|
||||
/**
|
||||
* Only this class can construct instances.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private ComponentDefinitionType(int value, String name, String literal)
|
||||
{
|
||||
this.value = value;
|
||||
this.name = name;
|
||||
this.literal = literal;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public int getValue()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getLiteral()
|
||||
{
|
||||
return literal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the literal value of the enumerator, which is its string representation.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return literal;
|
||||
}
|
||||
|
||||
} //ComponentDefinitionType
|
|
@ -0,0 +1,139 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Component Instance</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.ComponentInstance#getRange <em>Range</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.ComponentInstance#getReset <em>Reset</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.ComponentInstance#getAddress <em>Address</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.ComponentInstance#getAddrInc <em>Addr Inc</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.ComponentInstance#getAddrMod <em>Addr Mod</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getComponentInstance()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface ComponentInstance extends Entity
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Range</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Range</em>' containment reference.
|
||||
* @see #setRange(Range)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getComponentInstance_Range()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
Range getRange();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.ComponentInstance#getRange <em>Range</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Range</em>' containment reference.
|
||||
* @see #getRange()
|
||||
* @generated
|
||||
*/
|
||||
void setRange(Range value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Reset</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Reset</em>' attribute.
|
||||
* @see #setReset(Object)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getComponentInstance_Reset()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
Object getReset();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.ComponentInstance#getReset <em>Reset</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Reset</em>' attribute.
|
||||
* @see #getReset()
|
||||
* @generated
|
||||
*/
|
||||
void setReset(Object value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Address</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Address</em>' attribute.
|
||||
* @see #setAddress(Object)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getComponentInstance_Address()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
Object getAddress();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.ComponentInstance#getAddress <em>Address</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Address</em>' attribute.
|
||||
* @see #getAddress()
|
||||
* @generated
|
||||
*/
|
||||
void setAddress(Object value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Addr Inc</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Addr Inc</em>' attribute.
|
||||
* @see #setAddrInc(Object)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getComponentInstance_AddrInc()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
Object getAddrInc();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.ComponentInstance#getAddrInc <em>Addr Inc</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Addr Inc</em>' attribute.
|
||||
* @see #getAddrInc()
|
||||
* @generated
|
||||
*/
|
||||
void setAddrInc(Object value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Addr Mod</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Addr Mod</em>' attribute.
|
||||
* @see #setAddrMod(Object)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getComponentInstance_AddrMod()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
Object getAddrMod();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.ComponentInstance#getAddrMod <em>Addr Mod</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Addr Mod</em>' attribute.
|
||||
* @see #getAddrMod()
|
||||
* @generated
|
||||
*/
|
||||
void setAddrMod(Object value);
|
||||
|
||||
} // ComponentInstance
|
|
@ -0,0 +1,40 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Concat</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.Concat#getElements <em>Elements</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getConcat()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface Concat extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Elements</b></em>' containment reference list.
|
||||
* The list contents are of type {@link com.minres.rdl.rdl.ConcatElem}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Elements</em>' containment reference list.
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getConcat_Elements()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<ConcatElem> getElements();
|
||||
|
||||
} // Concat
|
|
@ -0,0 +1,71 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Concat Elem</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.ConcatElem#getInstPropRef <em>Inst Prop Ref</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.ConcatElem#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getConcatElem()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface ConcatElem extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Inst Prop Ref</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Inst Prop Ref</em>' containment reference.
|
||||
* @see #setInstPropRef(InstancePropertyRef)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getConcatElem_InstPropRef()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
InstancePropertyRef getInstPropRef();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.ConcatElem#getInstPropRef <em>Inst Prop Ref</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Inst Prop Ref</em>' containment reference.
|
||||
* @see #getInstPropRef()
|
||||
* @generated
|
||||
*/
|
||||
void setInstPropRef(InstancePropertyRef value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Value</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Value</em>' attribute.
|
||||
* @see #setValue(Object)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getConcatElem_Value()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
Object getValue();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.ConcatElem#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(Object value);
|
||||
|
||||
} // ConcatElem
|
|
@ -0,0 +1,19 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Default Propery Assignment</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getDefaultProperyAssignment()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface DefaultProperyAssignment extends PropertyAssignment
|
||||
{
|
||||
} // DefaultProperyAssignment
|
|
@ -0,0 +1,48 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Entity</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.Entity#getName <em>Name</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getEntity()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface Entity extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Name</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Name</em>' attribute.
|
||||
* @see #setName(String)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getEntity_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.Entity#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);
|
||||
|
||||
} // Entity
|
|
@ -0,0 +1,40 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Enum Body</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.EnumBody#getEntries <em>Entries</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getEnumBody()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EnumBody extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Entries</b></em>' containment reference list.
|
||||
* The list contents are of type {@link com.minres.rdl.rdl.EnumEntry}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Entries</em>' containment reference list.
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getEnumBody_Entries()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<EnumEntry> getEntries();
|
||||
|
||||
} // EnumBody
|
|
@ -0,0 +1,47 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Enum Definition</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.EnumDefinition#getBody <em>Body</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getEnumDefinition()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EnumDefinition extends Entity
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Body</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Body</em>' containment reference.
|
||||
* @see #setBody(EnumBody)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getEnumDefinition_Body()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EnumBody getBody();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.EnumDefinition#getBody <em>Body</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Body</em>' containment reference.
|
||||
* @see #getBody()
|
||||
* @generated
|
||||
*/
|
||||
void setBody(EnumBody value);
|
||||
|
||||
} // EnumDefinition
|
|
@ -0,0 +1,86 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Enum Entry</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.EnumEntry#getName <em>Name</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.EnumEntry#getIndex <em>Index</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.EnumEntry#getProperties <em>Properties</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getEnumEntry()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EnumEntry extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Name</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Name</em>' attribute.
|
||||
* @see #setName(String)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getEnumEntry_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.EnumEntry#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>Index</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Index</em>' attribute.
|
||||
* @see #setIndex(Object)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getEnumEntry_Index()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
Object getIndex();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.EnumEntry#getIndex <em>Index</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Index</em>' attribute.
|
||||
* @see #getIndex()
|
||||
* @generated
|
||||
*/
|
||||
void setIndex(Object value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Properties</b></em>' containment reference list.
|
||||
* The list contents are of type {@link com.minres.rdl.rdl.EnumProperty}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Properties</em>' containment reference list.
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getEnumEntry_Properties()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<EnumProperty> getProperties();
|
||||
|
||||
} // EnumEntry
|
|
@ -0,0 +1,71 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Enum Instance Type</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.EnumInstanceType#getEXTERNAL <em>EXTERNAL</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.EnumInstanceType#getINTERNAL <em>INTERNAL</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getEnumInstanceType()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EnumInstanceType extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>EXTERNAL</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>EXTERNAL</em>' attribute.
|
||||
* @see #setEXTERNAL(String)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getEnumInstanceType_EXTERNAL()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getEXTERNAL();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.EnumInstanceType#getEXTERNAL <em>EXTERNAL</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>EXTERNAL</em>' attribute.
|
||||
* @see #getEXTERNAL()
|
||||
* @generated
|
||||
*/
|
||||
void setEXTERNAL(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>INTERNAL</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>INTERNAL</em>' attribute.
|
||||
* @see #setINTERNAL(String)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getEnumInstanceType_INTERNAL()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getINTERNAL();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.EnumInstanceType#getINTERNAL <em>INTERNAL</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>INTERNAL</em>' attribute.
|
||||
* @see #getINTERNAL()
|
||||
* @generated
|
||||
*/
|
||||
void setINTERNAL(String value);
|
||||
|
||||
} // EnumInstanceType
|
|
@ -0,0 +1,71 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Enum Property</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.EnumProperty#getName <em>Name</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.EnumProperty#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getEnumProperty()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EnumProperty extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Name</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Name</em>' attribute.
|
||||
* @see #setName(String)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getEnumProperty_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.EnumProperty#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>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Value</em>' attribute.
|
||||
* @see #setValue(String)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getEnumProperty_Value()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getValue();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.EnumProperty#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);
|
||||
|
||||
} // EnumProperty
|
|
@ -0,0 +1,99 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Explicit Property Assignment</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.ExplicitPropertyAssignment#getModifier <em>Modifier</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.ExplicitPropertyAssignment#getName <em>Name</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.ExplicitPropertyAssignment#getRhs <em>Rhs</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getExplicitPropertyAssignment()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface ExplicitPropertyAssignment extends PropertyAssignment, DefaultProperyAssignment
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Modifier</b></em>' attribute.
|
||||
* The literals are from the enumeration {@link com.minres.rdl.rdl.PropertyModifier}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Modifier</em>' attribute.
|
||||
* @see com.minres.rdl.rdl.PropertyModifier
|
||||
* @see #setModifier(PropertyModifier)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getExplicitPropertyAssignment_Modifier()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
PropertyModifier getModifier();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.ExplicitPropertyAssignment#getModifier <em>Modifier</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Modifier</em>' attribute.
|
||||
* @see com.minres.rdl.rdl.PropertyModifier
|
||||
* @see #getModifier()
|
||||
* @generated
|
||||
*/
|
||||
void setModifier(PropertyModifier value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Name</b></em>' attribute.
|
||||
* The literals are from the enumeration {@link com.minres.rdl.rdl.PropertyEnum}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Name</em>' attribute.
|
||||
* @see com.minres.rdl.rdl.PropertyEnum
|
||||
* @see #setName(PropertyEnum)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getExplicitPropertyAssignment_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
PropertyEnum getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.ExplicitPropertyAssignment#getName <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Name</em>' attribute.
|
||||
* @see com.minres.rdl.rdl.PropertyEnum
|
||||
* @see #getName()
|
||||
* @generated
|
||||
*/
|
||||
void setName(PropertyEnum value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Rhs</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Rhs</em>' containment reference.
|
||||
* @see #setRhs(PropertyAssignmentRhs)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getExplicitPropertyAssignment_Rhs()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
PropertyAssignmentRhs getRhs();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.ExplicitPropertyAssignment#getRhs <em>Rhs</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Rhs</em>' containment reference.
|
||||
* @see #getRhs()
|
||||
* @generated
|
||||
*/
|
||||
void setRhs(PropertyAssignmentRhs value);
|
||||
|
||||
} // ExplicitPropertyAssignment
|
|
@ -0,0 +1,48 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Include</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.Include#getImportURI <em>Import URI</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getInclude()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface Include extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Import URI</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Import URI</em>' attribute.
|
||||
* @see #setImportURI(String)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getInclude_ImportURI()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getImportURI();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.Include#getImportURI <em>Import URI</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Import URI</em>' attribute.
|
||||
* @see #getImportURI()
|
||||
* @generated
|
||||
*/
|
||||
void setImportURI(String value);
|
||||
|
||||
} // Include
|
|
@ -0,0 +1,97 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Instance Property Ref</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.InstancePropertyRef#getInstance <em>Instance</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.InstancePropertyRef#getPropertyEnum <em>Property Enum</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.InstancePropertyRef#getProperty <em>Property</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getInstancePropertyRef()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface InstancePropertyRef extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Instance</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Instance</em>' containment reference.
|
||||
* @see #setInstance(InstanceRef)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getInstancePropertyRef_Instance()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
InstanceRef getInstance();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.InstancePropertyRef#getInstance <em>Instance</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Instance</em>' containment reference.
|
||||
* @see #getInstance()
|
||||
* @generated
|
||||
*/
|
||||
void setInstance(InstanceRef value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Property Enum</b></em>' attribute.
|
||||
* The literals are from the enumeration {@link com.minres.rdl.rdl.PropertyEnum}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Property Enum</em>' attribute.
|
||||
* @see com.minres.rdl.rdl.PropertyEnum
|
||||
* @see #setPropertyEnum(PropertyEnum)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getInstancePropertyRef_PropertyEnum()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
PropertyEnum getPropertyEnum();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.InstancePropertyRef#getPropertyEnum <em>Property Enum</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Property Enum</em>' attribute.
|
||||
* @see com.minres.rdl.rdl.PropertyEnum
|
||||
* @see #getPropertyEnum()
|
||||
* @generated
|
||||
*/
|
||||
void setPropertyEnum(PropertyEnum value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Property</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Property</em>' reference.
|
||||
* @see #setProperty(PropertyDefinition)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getInstancePropertyRef_Property()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
PropertyDefinition getProperty();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.InstancePropertyRef#getProperty <em>Property</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Property</em>' reference.
|
||||
* @see #getProperty()
|
||||
* @generated
|
||||
*/
|
||||
void setProperty(PropertyDefinition value);
|
||||
|
||||
} // InstancePropertyRef
|
|
@ -0,0 +1,71 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Instance Ref</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.InstanceRef#getInstance <em>Instance</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.InstanceRef#getTail <em>Tail</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getInstanceRef()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface InstanceRef extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Instance</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Instance</em>' reference.
|
||||
* @see #setInstance(Entity)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getInstanceRef_Instance()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
Entity getInstance();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.InstanceRef#getInstance <em>Instance</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Instance</em>' reference.
|
||||
* @see #getInstance()
|
||||
* @generated
|
||||
*/
|
||||
void setInstance(Entity value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Tail</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Tail</em>' containment reference.
|
||||
* @see #setTail(InstanceRef)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getInstanceRef_Tail()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
InstanceRef getTail();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.InstanceRef#getTail <em>Tail</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Tail</em>' containment reference.
|
||||
* @see #getTail()
|
||||
* @generated
|
||||
*/
|
||||
void setTail(InstanceRef value);
|
||||
|
||||
} // InstanceRef
|
|
@ -0,0 +1,132 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Instantiation</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.Instantiation#getInstanceType <em>Instance Type</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.Instantiation#getAlias <em>Alias</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.Instantiation#getComponentRef <em>Component Ref</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.Instantiation#getComponent <em>Component</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.Instantiation#getComponentInstances <em>Component Instances</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getInstantiation()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface Instantiation extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Instance Type</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Instance Type</em>' containment reference.
|
||||
* @see #setInstanceType(EnumInstanceType)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getInstantiation_InstanceType()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EnumInstanceType getInstanceType();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.Instantiation#getInstanceType <em>Instance Type</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Instance Type</em>' containment reference.
|
||||
* @see #getInstanceType()
|
||||
* @generated
|
||||
*/
|
||||
void setInstanceType(EnumInstanceType value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Alias</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Alias</em>' attribute.
|
||||
* @see #setAlias(String)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getInstantiation_Alias()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getAlias();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.Instantiation#getAlias <em>Alias</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Alias</em>' attribute.
|
||||
* @see #getAlias()
|
||||
* @generated
|
||||
*/
|
||||
void setAlias(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Component Ref</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Component Ref</em>' reference.
|
||||
* @see #setComponentRef(ComponentDefinition)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getInstantiation_ComponentRef()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
ComponentDefinition getComponentRef();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.Instantiation#getComponentRef <em>Component Ref</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Component Ref</em>' reference.
|
||||
* @see #getComponentRef()
|
||||
* @generated
|
||||
*/
|
||||
void setComponentRef(ComponentDefinition value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Component</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Component</em>' containment reference.
|
||||
* @see #setComponent(ComponentDefinition)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getInstantiation_Component()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
ComponentDefinition getComponent();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.Instantiation#getComponent <em>Component</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Component</em>' containment reference.
|
||||
* @see #getComponent()
|
||||
* @generated
|
||||
*/
|
||||
void setComponent(ComponentDefinition value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Component Instances</b></em>' containment reference list.
|
||||
* The list contents are of type {@link com.minres.rdl.rdl.ComponentInstance}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Component Instances</em>' containment reference list.
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getInstantiation_ComponentInstances()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<ComponentInstance> getComponentInstances();
|
||||
|
||||
} // Instantiation
|
|
@ -0,0 +1,119 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Post Property Assignment</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.PostPropertyAssignment#getInstance <em>Instance</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.PostPropertyAssignment#getPropertyEnum <em>Property Enum</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.PostPropertyAssignment#getProperty <em>Property</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.PostPropertyAssignment#getRhs <em>Rhs</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPostPropertyAssignment()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface PostPropertyAssignment extends PropertyAssignment
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Instance</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Instance</em>' containment reference.
|
||||
* @see #setInstance(InstanceRef)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPostPropertyAssignment_Instance()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
InstanceRef getInstance();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.PostPropertyAssignment#getInstance <em>Instance</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Instance</em>' containment reference.
|
||||
* @see #getInstance()
|
||||
* @generated
|
||||
*/
|
||||
void setInstance(InstanceRef value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Property Enum</b></em>' attribute.
|
||||
* The literals are from the enumeration {@link com.minres.rdl.rdl.PropertyEnum}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Property Enum</em>' attribute.
|
||||
* @see com.minres.rdl.rdl.PropertyEnum
|
||||
* @see #setPropertyEnum(PropertyEnum)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPostPropertyAssignment_PropertyEnum()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
PropertyEnum getPropertyEnum();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.PostPropertyAssignment#getPropertyEnum <em>Property Enum</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Property Enum</em>' attribute.
|
||||
* @see com.minres.rdl.rdl.PropertyEnum
|
||||
* @see #getPropertyEnum()
|
||||
* @generated
|
||||
*/
|
||||
void setPropertyEnum(PropertyEnum value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Property</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Property</em>' reference.
|
||||
* @see #setProperty(PropertyDefinition)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPostPropertyAssignment_Property()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
PropertyDefinition getProperty();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.PostPropertyAssignment#getProperty <em>Property</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Property</em>' reference.
|
||||
* @see #getProperty()
|
||||
* @generated
|
||||
*/
|
||||
void setProperty(PropertyDefinition value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Rhs</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Rhs</em>' containment reference.
|
||||
* @see #setRhs(PropertyAssignmentRhs)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPostPropertyAssignment_Rhs()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
PropertyAssignmentRhs getRhs();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.PostPropertyAssignment#getRhs <em>Rhs</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Rhs</em>' containment reference.
|
||||
* @see #getRhs()
|
||||
* @generated
|
||||
*/
|
||||
void setRhs(PropertyAssignmentRhs value);
|
||||
|
||||
} // PostPropertyAssignment
|
|
@ -0,0 +1,20 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Property Assignment</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPropertyAssignment()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface PropertyAssignment extends EObject
|
||||
{
|
||||
} // PropertyAssignment
|
|
@ -0,0 +1,140 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Property Assignment Rhs</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.PropertyAssignmentRhs#getValue <em>Value</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.PropertyAssignmentRhs#getInstPropRef <em>Inst Prop Ref</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.PropertyAssignmentRhs#getEnumRef <em>Enum Ref</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.PropertyAssignmentRhs#getEnums <em>Enums</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.PropertyAssignmentRhs#getElements <em>Elements</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPropertyAssignmentRhs()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface PropertyAssignmentRhs extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Value</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Value</em>' containment reference.
|
||||
* @see #setValue(RValue)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPropertyAssignmentRhs_Value()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
RValue getValue();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.PropertyAssignmentRhs#getValue <em>Value</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Value</em>' containment reference.
|
||||
* @see #getValue()
|
||||
* @generated
|
||||
*/
|
||||
void setValue(RValue value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Inst Prop Ref</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Inst Prop Ref</em>' containment reference.
|
||||
* @see #setInstPropRef(InstancePropertyRef)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPropertyAssignmentRhs_InstPropRef()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
InstancePropertyRef getInstPropRef();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.PropertyAssignmentRhs#getInstPropRef <em>Inst Prop Ref</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Inst Prop Ref</em>' containment reference.
|
||||
* @see #getInstPropRef()
|
||||
* @generated
|
||||
*/
|
||||
void setInstPropRef(InstancePropertyRef value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Enum Ref</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Enum Ref</em>' reference.
|
||||
* @see #setEnumRef(EnumDefinition)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPropertyAssignmentRhs_EnumRef()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EnumDefinition getEnumRef();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.PropertyAssignmentRhs#getEnumRef <em>Enum Ref</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Enum Ref</em>' reference.
|
||||
* @see #getEnumRef()
|
||||
* @generated
|
||||
*/
|
||||
void setEnumRef(EnumDefinition value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Enums</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Enums</em>' containment reference.
|
||||
* @see #setEnums(EnumBody)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPropertyAssignmentRhs_Enums()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EnumBody getEnums();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.PropertyAssignmentRhs#getEnums <em>Enums</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Enums</em>' containment reference.
|
||||
* @see #getEnums()
|
||||
* @generated
|
||||
*/
|
||||
void setEnums(EnumBody value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Elements</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Elements</em>' containment reference.
|
||||
* @see #setElements(Concat)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPropertyAssignmentRhs_Elements()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
Concat getElements();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.PropertyAssignmentRhs#getElements <em>Elements</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Elements</em>' containment reference.
|
||||
* @see #getElements()
|
||||
* @generated
|
||||
*/
|
||||
void setElements(Concat value);
|
||||
|
||||
} // PropertyAssignmentRhs
|
|
@ -0,0 +1,317 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.eclipse.emf.common.util.Enumerator;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the literals of the enumeration '<em><b>Property Component</b></em>',
|
||||
* and utility methods for working with them.
|
||||
* <!-- end-user-doc -->
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPropertyComponent()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public enum PropertyComponent implements Enumerator
|
||||
{
|
||||
/**
|
||||
* The '<em><b>SIGNAL</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #SIGNAL_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
SIGNAL(0, "SIGNAL", "signal"),
|
||||
|
||||
/**
|
||||
* The '<em><b>ADDRMAP</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #ADDRMAP_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
ADDRMAP(1, "ADDRMAP", "addrmap"),
|
||||
|
||||
/**
|
||||
* The '<em><b>REG</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #REG_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
REG(2, "REG", "reg"),
|
||||
|
||||
/**
|
||||
* The '<em><b>REGFILE</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #REGFILE_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
REGFILE(3, "REGFILE", "regfile"),
|
||||
|
||||
/**
|
||||
* The '<em><b>FIELD</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #FIELD_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
FIELD(4, "FIELD", "field"),
|
||||
|
||||
/**
|
||||
* The '<em><b>ALL</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #ALL_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
ALL(5, "ALL", "all");
|
||||
|
||||
/**
|
||||
* The '<em><b>SIGNAL</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #SIGNAL
|
||||
* @model literal="signal"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int SIGNAL_VALUE = 0;
|
||||
|
||||
/**
|
||||
* The '<em><b>ADDRMAP</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #ADDRMAP
|
||||
* @model literal="addrmap"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int ADDRMAP_VALUE = 1;
|
||||
|
||||
/**
|
||||
* The '<em><b>REG</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #REG
|
||||
* @model literal="reg"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int REG_VALUE = 2;
|
||||
|
||||
/**
|
||||
* The '<em><b>REGFILE</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #REGFILE
|
||||
* @model literal="regfile"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int REGFILE_VALUE = 3;
|
||||
|
||||
/**
|
||||
* The '<em><b>FIELD</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #FIELD
|
||||
* @model literal="field"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int FIELD_VALUE = 4;
|
||||
|
||||
/**
|
||||
* The '<em><b>ALL</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #ALL
|
||||
* @model literal="all"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int ALL_VALUE = 5;
|
||||
|
||||
/**
|
||||
* An array of all the '<em><b>Property Component</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final PropertyComponent[] VALUES_ARRAY =
|
||||
new PropertyComponent[]
|
||||
{
|
||||
SIGNAL,
|
||||
ADDRMAP,
|
||||
REG,
|
||||
REGFILE,
|
||||
FIELD,
|
||||
ALL,
|
||||
};
|
||||
|
||||
/**
|
||||
* A public read-only list of all the '<em><b>Property Component</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static final List<PropertyComponent> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Property Component</b></em>' literal with the specified literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param literal the literal.
|
||||
* @return the matching enumerator or <code>null</code>.
|
||||
* @generated
|
||||
*/
|
||||
public static PropertyComponent get(String literal)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
PropertyComponent result = VALUES_ARRAY[i];
|
||||
if (result.toString().equals(literal))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Property Component</b></em>' literal with the specified name.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param name the name.
|
||||
* @return the matching enumerator or <code>null</code>.
|
||||
* @generated
|
||||
*/
|
||||
public static PropertyComponent getByName(String name)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
PropertyComponent result = VALUES_ARRAY[i];
|
||||
if (result.getName().equals(name))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Property Component</b></em>' literal with the specified integer value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the integer value.
|
||||
* @return the matching enumerator or <code>null</code>.
|
||||
* @generated
|
||||
*/
|
||||
public static PropertyComponent get(int value)
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
case SIGNAL_VALUE: return SIGNAL;
|
||||
case ADDRMAP_VALUE: return ADDRMAP;
|
||||
case REG_VALUE: return REG;
|
||||
case REGFILE_VALUE: return REGFILE;
|
||||
case FIELD_VALUE: return FIELD;
|
||||
case ALL_VALUE: return ALL;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private final int value;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private final String name;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private final String literal;
|
||||
|
||||
/**
|
||||
* Only this class can construct instances.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private PropertyComponent(int value, String name, String literal)
|
||||
{
|
||||
this.value = value;
|
||||
this.name = name;
|
||||
this.literal = literal;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public int getValue()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getLiteral()
|
||||
{
|
||||
return literal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the literal value of the enumerator, which is its string representation.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return literal;
|
||||
}
|
||||
|
||||
} //PropertyComponent
|
|
@ -0,0 +1,71 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Property Default</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.PropertyDefault#getString <em>String</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.PropertyDefault#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPropertyDefault()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface PropertyDefault extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>String</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>String</em>' attribute.
|
||||
* @see #setString(String)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPropertyDefault_String()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getString();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.PropertyDefault#getString <em>String</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>String</em>' attribute.
|
||||
* @see #getString()
|
||||
* @generated
|
||||
*/
|
||||
void setString(String value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Value</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Value</em>' attribute.
|
||||
* @see #setValue(Object)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPropertyDefault_Value()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
Object getValue();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.PropertyDefault#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(Object value);
|
||||
|
||||
} // PropertyDefault
|
|
@ -0,0 +1,96 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Property Definition</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.PropertyDefinition#getType <em>Type</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.PropertyDefinition#getUsage <em>Usage</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.PropertyDefinition#getDefault <em>Default</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPropertyDefinition()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface PropertyDefinition extends Entity
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Type</b></em>' attribute.
|
||||
* The literals are from the enumeration {@link com.minres.rdl.rdl.PropertyTypeName}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Type</em>' attribute.
|
||||
* @see com.minres.rdl.rdl.PropertyTypeName
|
||||
* @see #setType(PropertyTypeName)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPropertyDefinition_Type()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
PropertyTypeName getType();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.PropertyDefinition#getType <em>Type</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Type</em>' attribute.
|
||||
* @see com.minres.rdl.rdl.PropertyTypeName
|
||||
* @see #getType()
|
||||
* @generated
|
||||
*/
|
||||
void setType(PropertyTypeName value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Usage</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Usage</em>' containment reference.
|
||||
* @see #setUsage(PropertyUsage)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPropertyDefinition_Usage()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
PropertyUsage getUsage();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.PropertyDefinition#getUsage <em>Usage</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Usage</em>' containment reference.
|
||||
* @see #getUsage()
|
||||
* @generated
|
||||
*/
|
||||
void setUsage(PropertyUsage value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Default</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Default</em>' containment reference.
|
||||
* @see #setDefault(PropertyDefault)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPropertyDefinition_Default()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
PropertyDefault getDefault();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.PropertyDefinition#getDefault <em>Default</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Default</em>' containment reference.
|
||||
* @see #getDefault()
|
||||
* @generated
|
||||
*/
|
||||
void setDefault(PropertyDefault value);
|
||||
|
||||
} // PropertyDefinition
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,317 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.eclipse.emf.common.util.Enumerator;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the literals of the enumeration '<em><b>Property Modifier</b></em>',
|
||||
* and utility methods for working with them.
|
||||
* <!-- end-user-doc -->
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPropertyModifier()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public enum PropertyModifier implements Enumerator
|
||||
{
|
||||
/**
|
||||
* The '<em><b>UNDEFINED</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #UNDEFINED_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
UNDEFINED(0, "UNDEFINED", "UNDEFINED"),
|
||||
|
||||
/**
|
||||
* The '<em><b>POSEDGE</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #POSEDGE_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
POSEDGE(1, "POSEDGE", "posedge"),
|
||||
|
||||
/**
|
||||
* The '<em><b>NEGEDGE</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #NEGEDGE_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
NEGEDGE(2, "NEGEDGE", "negedge"),
|
||||
|
||||
/**
|
||||
* The '<em><b>BOTHEDGE</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #BOTHEDGE_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
BOTHEDGE(3, "BOTHEDGE", "bothedge"),
|
||||
|
||||
/**
|
||||
* The '<em><b>LEVEL</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #LEVEL_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
LEVEL(4, "LEVEL", "level"),
|
||||
|
||||
/**
|
||||
* The '<em><b>NONSTICKY</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #NONSTICKY_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
NONSTICKY(5, "NONSTICKY", "nonsticky");
|
||||
|
||||
/**
|
||||
* The '<em><b>UNDEFINED</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #UNDEFINED
|
||||
* @model
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int UNDEFINED_VALUE = 0;
|
||||
|
||||
/**
|
||||
* The '<em><b>POSEDGE</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #POSEDGE
|
||||
* @model literal="posedge"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int POSEDGE_VALUE = 1;
|
||||
|
||||
/**
|
||||
* The '<em><b>NEGEDGE</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #NEGEDGE
|
||||
* @model literal="negedge"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int NEGEDGE_VALUE = 2;
|
||||
|
||||
/**
|
||||
* The '<em><b>BOTHEDGE</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #BOTHEDGE
|
||||
* @model literal="bothedge"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int BOTHEDGE_VALUE = 3;
|
||||
|
||||
/**
|
||||
* The '<em><b>LEVEL</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #LEVEL
|
||||
* @model literal="level"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int LEVEL_VALUE = 4;
|
||||
|
||||
/**
|
||||
* The '<em><b>NONSTICKY</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #NONSTICKY
|
||||
* @model literal="nonsticky"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int NONSTICKY_VALUE = 5;
|
||||
|
||||
/**
|
||||
* An array of all the '<em><b>Property Modifier</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final PropertyModifier[] VALUES_ARRAY =
|
||||
new PropertyModifier[]
|
||||
{
|
||||
UNDEFINED,
|
||||
POSEDGE,
|
||||
NEGEDGE,
|
||||
BOTHEDGE,
|
||||
LEVEL,
|
||||
NONSTICKY,
|
||||
};
|
||||
|
||||
/**
|
||||
* A public read-only list of all the '<em><b>Property Modifier</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static final List<PropertyModifier> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Property Modifier</b></em>' literal with the specified literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param literal the literal.
|
||||
* @return the matching enumerator or <code>null</code>.
|
||||
* @generated
|
||||
*/
|
||||
public static PropertyModifier get(String literal)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
PropertyModifier result = VALUES_ARRAY[i];
|
||||
if (result.toString().equals(literal))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Property Modifier</b></em>' literal with the specified name.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param name the name.
|
||||
* @return the matching enumerator or <code>null</code>.
|
||||
* @generated
|
||||
*/
|
||||
public static PropertyModifier getByName(String name)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
PropertyModifier result = VALUES_ARRAY[i];
|
||||
if (result.getName().equals(name))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Property Modifier</b></em>' literal with the specified integer value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the integer value.
|
||||
* @return the matching enumerator or <code>null</code>.
|
||||
* @generated
|
||||
*/
|
||||
public static PropertyModifier get(int value)
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
case UNDEFINED_VALUE: return UNDEFINED;
|
||||
case POSEDGE_VALUE: return POSEDGE;
|
||||
case NEGEDGE_VALUE: return NEGEDGE;
|
||||
case BOTHEDGE_VALUE: return BOTHEDGE;
|
||||
case LEVEL_VALUE: return LEVEL;
|
||||
case NONSTICKY_VALUE: return NONSTICKY;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private final int value;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private final String name;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private final String literal;
|
||||
|
||||
/**
|
||||
* Only this class can construct instances.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private PropertyModifier(int value, String name, String literal)
|
||||
{
|
||||
this.value = value;
|
||||
this.name = name;
|
||||
this.literal = literal;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public int getValue()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getLiteral()
|
||||
{
|
||||
return literal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the literal value of the enumerator, which is its string representation.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return literal;
|
||||
}
|
||||
|
||||
} //PropertyModifier
|
|
@ -0,0 +1,363 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.eclipse.emf.common.util.Enumerator;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the literals of the enumeration '<em><b>Property Type Name</b></em>',
|
||||
* and utility methods for working with them.
|
||||
* <!-- end-user-doc -->
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPropertyTypeName()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public enum PropertyTypeName implements Enumerator
|
||||
{
|
||||
/**
|
||||
* The '<em><b>STRING</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #STRING_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
STRING(0, "STRING", "string"),
|
||||
|
||||
/**
|
||||
* The '<em><b>NUMBER</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #NUMBER_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
NUMBER(1, "NUMBER", "number"),
|
||||
|
||||
/**
|
||||
* The '<em><b>BOOLEAN</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #BOOLEAN_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
BOOLEAN(2, "BOOLEAN", "boolean"),
|
||||
|
||||
/**
|
||||
* The '<em><b>ADDRMAP</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #ADDRMAP_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
ADDRMAP(3, "ADDRMAP", "addrmap"),
|
||||
|
||||
/**
|
||||
* The '<em><b>REG</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #REG_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
REG(4, "REG", "reg"),
|
||||
|
||||
/**
|
||||
* The '<em><b>REGFILE</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #REGFILE_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
REGFILE(5, "REGFILE", "regfile"),
|
||||
|
||||
/**
|
||||
* The '<em><b>FIELD</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #FIELD_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
FIELD(6, "FIELD", "field"),
|
||||
|
||||
/**
|
||||
* The '<em><b>REF</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #REF_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
REF(7, "REF", "ref");
|
||||
|
||||
/**
|
||||
* The '<em><b>STRING</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #STRING
|
||||
* @model literal="string"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int STRING_VALUE = 0;
|
||||
|
||||
/**
|
||||
* The '<em><b>NUMBER</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #NUMBER
|
||||
* @model literal="number"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int NUMBER_VALUE = 1;
|
||||
|
||||
/**
|
||||
* The '<em><b>BOOLEAN</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #BOOLEAN
|
||||
* @model literal="boolean"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int BOOLEAN_VALUE = 2;
|
||||
|
||||
/**
|
||||
* The '<em><b>ADDRMAP</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #ADDRMAP
|
||||
* @model literal="addrmap"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int ADDRMAP_VALUE = 3;
|
||||
|
||||
/**
|
||||
* The '<em><b>REG</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #REG
|
||||
* @model literal="reg"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int REG_VALUE = 4;
|
||||
|
||||
/**
|
||||
* The '<em><b>REGFILE</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #REGFILE
|
||||
* @model literal="regfile"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int REGFILE_VALUE = 5;
|
||||
|
||||
/**
|
||||
* The '<em><b>FIELD</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #FIELD
|
||||
* @model literal="field"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int FIELD_VALUE = 6;
|
||||
|
||||
/**
|
||||
* The '<em><b>REF</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #REF
|
||||
* @model literal="ref"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int REF_VALUE = 7;
|
||||
|
||||
/**
|
||||
* An array of all the '<em><b>Property Type Name</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final PropertyTypeName[] VALUES_ARRAY =
|
||||
new PropertyTypeName[]
|
||||
{
|
||||
STRING,
|
||||
NUMBER,
|
||||
BOOLEAN,
|
||||
ADDRMAP,
|
||||
REG,
|
||||
REGFILE,
|
||||
FIELD,
|
||||
REF,
|
||||
};
|
||||
|
||||
/**
|
||||
* A public read-only list of all the '<em><b>Property Type Name</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static final List<PropertyTypeName> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Property Type Name</b></em>' literal with the specified literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param literal the literal.
|
||||
* @return the matching enumerator or <code>null</code>.
|
||||
* @generated
|
||||
*/
|
||||
public static PropertyTypeName get(String literal)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
PropertyTypeName result = VALUES_ARRAY[i];
|
||||
if (result.toString().equals(literal))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Property Type Name</b></em>' literal with the specified name.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param name the name.
|
||||
* @return the matching enumerator or <code>null</code>.
|
||||
* @generated
|
||||
*/
|
||||
public static PropertyTypeName getByName(String name)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
PropertyTypeName result = VALUES_ARRAY[i];
|
||||
if (result.getName().equals(name))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Property Type Name</b></em>' literal with the specified integer value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the integer value.
|
||||
* @return the matching enumerator or <code>null</code>.
|
||||
* @generated
|
||||
*/
|
||||
public static PropertyTypeName get(int value)
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
case STRING_VALUE: return STRING;
|
||||
case NUMBER_VALUE: return NUMBER;
|
||||
case BOOLEAN_VALUE: return BOOLEAN;
|
||||
case ADDRMAP_VALUE: return ADDRMAP;
|
||||
case REG_VALUE: return REG;
|
||||
case REGFILE_VALUE: return REGFILE;
|
||||
case FIELD_VALUE: return FIELD;
|
||||
case REF_VALUE: return REF;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private final int value;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private final String name;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private final String literal;
|
||||
|
||||
/**
|
||||
* Only this class can construct instances.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private PropertyTypeName(int value, String name, String literal)
|
||||
{
|
||||
this.value = value;
|
||||
this.name = name;
|
||||
this.literal = literal;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public int getValue()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getLiteral()
|
||||
{
|
||||
return literal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the literal value of the enumerator, which is its string representation.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return literal;
|
||||
}
|
||||
|
||||
} //PropertyTypeName
|
|
@ -0,0 +1,42 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Property Usage</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.PropertyUsage#getComponents <em>Components</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPropertyUsage()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface PropertyUsage extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Components</b></em>' attribute list.
|
||||
* The list contents are of type {@link com.minres.rdl.rdl.PropertyComponent}.
|
||||
* The literals are from the enumeration {@link com.minres.rdl.rdl.PropertyComponent}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Components</em>' attribute list.
|
||||
* @see com.minres.rdl.rdl.PropertyComponent
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getPropertyUsage_Components()
|
||||
* @model unique="false"
|
||||
* @generated
|
||||
*/
|
||||
EList<PropertyComponent> getComponents();
|
||||
|
||||
} // PropertyUsage
|
|
@ -0,0 +1,97 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>RValue</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.RValue#getVal <em>Val</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.RValue#getNum <em>Num</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.RValue#getStr <em>Str</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getRValue()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface RValue extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Val</b></em>' attribute.
|
||||
* The literals are from the enumeration {@link com.minres.rdl.rdl.RValueConstant}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Val</em>' attribute.
|
||||
* @see com.minres.rdl.rdl.RValueConstant
|
||||
* @see #setVal(RValueConstant)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getRValue_Val()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
RValueConstant getVal();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.RValue#getVal <em>Val</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Val</em>' attribute.
|
||||
* @see com.minres.rdl.rdl.RValueConstant
|
||||
* @see #getVal()
|
||||
* @generated
|
||||
*/
|
||||
void setVal(RValueConstant value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Num</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Num</em>' attribute.
|
||||
* @see #setNum(Object)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getRValue_Num()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
Object getNum();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.RValue#getNum <em>Num</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Num</em>' attribute.
|
||||
* @see #getNum()
|
||||
* @generated
|
||||
*/
|
||||
void setNum(Object value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Str</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Str</em>' attribute.
|
||||
* @see #setStr(String)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getRValue_Str()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getStr();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.RValue#getStr <em>Str</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Str</em>' attribute.
|
||||
* @see #getStr()
|
||||
* @generated
|
||||
*/
|
||||
void setStr(String value);
|
||||
|
||||
} // RValue
|
|
@ -0,0 +1,478 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.eclipse.emf.common.util.Enumerator;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the literals of the enumeration '<em><b>RValue Constant</b></em>',
|
||||
* and utility methods for working with them.
|
||||
* <!-- end-user-doc -->
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getRValueConstant()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public enum RValueConstant implements Enumerator
|
||||
{
|
||||
/**
|
||||
* The '<em><b>UNDEFINED</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #UNDEFINED_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
UNDEFINED(0, "UNDEFINED", "UNDEFINED"),
|
||||
|
||||
/**
|
||||
* The '<em><b>TRUE</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #TRUE_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
TRUE(1, "TRUE", "true"),
|
||||
|
||||
/**
|
||||
* The '<em><b>FALSE</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #FALSE_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
FALSE(2, "FALSE", "false"),
|
||||
|
||||
/**
|
||||
* The '<em><b>RW</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #RW_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
RW(3, "RW", "rw"),
|
||||
|
||||
/**
|
||||
* The '<em><b>WR</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #WR_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
WR(4, "WR", "wr"),
|
||||
|
||||
/**
|
||||
* The '<em><b>R</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #R_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
R(5, "R", "r"),
|
||||
|
||||
/**
|
||||
* The '<em><b>W</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #W_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
W(6, "W", "w"),
|
||||
|
||||
/**
|
||||
* The '<em><b>NA</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #NA_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
NA(7, "NA", "na"),
|
||||
|
||||
/**
|
||||
* The '<em><b>COMPACT</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #COMPACT_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
COMPACT(8, "COMPACT", "compact"),
|
||||
|
||||
/**
|
||||
* The '<em><b>REGALIGN</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #REGALIGN_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
REGALIGN(9, "REGALIGN", "regalign"),
|
||||
|
||||
/**
|
||||
* The '<em><b>FULLALIGN</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #FULLALIGN_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
FULLALIGN(10, "FULLALIGN", "fullalign"),
|
||||
|
||||
/**
|
||||
* The '<em><b>HW</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #HW_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
HW(11, "HW", "hw"),
|
||||
|
||||
/**
|
||||
* The '<em><b>SW</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #SW_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
SW(12, "SW", "sw");
|
||||
|
||||
/**
|
||||
* The '<em><b>UNDEFINED</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #UNDEFINED
|
||||
* @model
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int UNDEFINED_VALUE = 0;
|
||||
|
||||
/**
|
||||
* The '<em><b>TRUE</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #TRUE
|
||||
* @model literal="true"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int TRUE_VALUE = 1;
|
||||
|
||||
/**
|
||||
* The '<em><b>FALSE</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #FALSE
|
||||
* @model literal="false"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int FALSE_VALUE = 2;
|
||||
|
||||
/**
|
||||
* The '<em><b>RW</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #RW
|
||||
* @model literal="rw"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int RW_VALUE = 3;
|
||||
|
||||
/**
|
||||
* The '<em><b>WR</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #WR
|
||||
* @model literal="wr"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int WR_VALUE = 4;
|
||||
|
||||
/**
|
||||
* The '<em><b>R</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #R
|
||||
* @model literal="r"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int R_VALUE = 5;
|
||||
|
||||
/**
|
||||
* The '<em><b>W</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #W
|
||||
* @model literal="w"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int W_VALUE = 6;
|
||||
|
||||
/**
|
||||
* The '<em><b>NA</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #NA
|
||||
* @model literal="na"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int NA_VALUE = 7;
|
||||
|
||||
/**
|
||||
* The '<em><b>COMPACT</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #COMPACT
|
||||
* @model literal="compact"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int COMPACT_VALUE = 8;
|
||||
|
||||
/**
|
||||
* The '<em><b>REGALIGN</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #REGALIGN
|
||||
* @model literal="regalign"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int REGALIGN_VALUE = 9;
|
||||
|
||||
/**
|
||||
* The '<em><b>FULLALIGN</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #FULLALIGN
|
||||
* @model literal="fullalign"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int FULLALIGN_VALUE = 10;
|
||||
|
||||
/**
|
||||
* The '<em><b>HW</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #HW
|
||||
* @model literal="hw"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int HW_VALUE = 11;
|
||||
|
||||
/**
|
||||
* The '<em><b>SW</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #SW
|
||||
* @model literal="sw"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int SW_VALUE = 12;
|
||||
|
||||
/**
|
||||
* An array of all the '<em><b>RValue Constant</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final RValueConstant[] VALUES_ARRAY =
|
||||
new RValueConstant[]
|
||||
{
|
||||
UNDEFINED,
|
||||
TRUE,
|
||||
FALSE,
|
||||
RW,
|
||||
WR,
|
||||
R,
|
||||
W,
|
||||
NA,
|
||||
COMPACT,
|
||||
REGALIGN,
|
||||
FULLALIGN,
|
||||
HW,
|
||||
SW,
|
||||
};
|
||||
|
||||
/**
|
||||
* A public read-only list of all the '<em><b>RValue Constant</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static final List<RValueConstant> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>RValue Constant</b></em>' literal with the specified literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param literal the literal.
|
||||
* @return the matching enumerator or <code>null</code>.
|
||||
* @generated
|
||||
*/
|
||||
public static RValueConstant get(String literal)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
RValueConstant result = VALUES_ARRAY[i];
|
||||
if (result.toString().equals(literal))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>RValue Constant</b></em>' literal with the specified name.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param name the name.
|
||||
* @return the matching enumerator or <code>null</code>.
|
||||
* @generated
|
||||
*/
|
||||
public static RValueConstant getByName(String name)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
RValueConstant result = VALUES_ARRAY[i];
|
||||
if (result.getName().equals(name))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>RValue Constant</b></em>' literal with the specified integer value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the integer value.
|
||||
* @return the matching enumerator or <code>null</code>.
|
||||
* @generated
|
||||
*/
|
||||
public static RValueConstant get(int value)
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
case UNDEFINED_VALUE: return UNDEFINED;
|
||||
case TRUE_VALUE: return TRUE;
|
||||
case FALSE_VALUE: return FALSE;
|
||||
case RW_VALUE: return RW;
|
||||
case WR_VALUE: return WR;
|
||||
case R_VALUE: return R;
|
||||
case W_VALUE: return W;
|
||||
case NA_VALUE: return NA;
|
||||
case COMPACT_VALUE: return COMPACT;
|
||||
case REGALIGN_VALUE: return REGALIGN;
|
||||
case FULLALIGN_VALUE: return FULLALIGN;
|
||||
case HW_VALUE: return HW;
|
||||
case SW_VALUE: return SW;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private final int value;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private final String name;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private final String literal;
|
||||
|
||||
/**
|
||||
* Only this class can construct instances.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private RValueConstant(int value, String name, String literal)
|
||||
{
|
||||
this.value = value;
|
||||
this.name = name;
|
||||
this.literal = literal;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public int getValue()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getLiteral()
|
||||
{
|
||||
return literal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the literal value of the enumerator, which is its string representation.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return literal;
|
||||
}
|
||||
|
||||
} //RValueConstant
|
|
@ -0,0 +1,94 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Range</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.Range#getLeft <em>Left</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.Range#getRight <em>Right</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.Range#getSize <em>Size</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getRange()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface Range extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Left</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Left</em>' attribute.
|
||||
* @see #setLeft(Object)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getRange_Left()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
Object getLeft();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.Range#getLeft <em>Left</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Left</em>' attribute.
|
||||
* @see #getLeft()
|
||||
* @generated
|
||||
*/
|
||||
void setLeft(Object value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Right</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Right</em>' attribute.
|
||||
* @see #setRight(Object)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getRange_Right()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
Object getRight();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.Range#getRight <em>Right</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Right</em>' attribute.
|
||||
* @see #getRight()
|
||||
* @generated
|
||||
*/
|
||||
void setRight(Object value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Size</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Size</em>' attribute.
|
||||
* @see #setSize(Object)
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getRange_Size()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
Object getSize();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link com.minres.rdl.rdl.Range#getSize <em>Size</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Size</em>' attribute.
|
||||
* @see #getSize()
|
||||
* @generated
|
||||
*/
|
||||
void setSize(Object value);
|
||||
|
||||
} // Range
|
|
@ -0,0 +1,260 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
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 com.minres.rdl.rdl.RdlPackage
|
||||
* @generated
|
||||
*/
|
||||
public interface RdlFactory extends EFactory
|
||||
{
|
||||
/**
|
||||
* The singleton instance of the factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
RdlFactory eINSTANCE = com.minres.rdl.rdl.impl.RdlFactoryImpl.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
|
||||
*/
|
||||
Root createRoot();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Include</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Include</em>'.
|
||||
* @generated
|
||||
*/
|
||||
Include createInclude();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Property Definition</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Property Definition</em>'.
|
||||
* @generated
|
||||
*/
|
||||
PropertyDefinition createPropertyDefinition();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Property Default</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Property Default</em>'.
|
||||
* @generated
|
||||
*/
|
||||
PropertyDefault createPropertyDefault();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Property Usage</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Property Usage</em>'.
|
||||
* @generated
|
||||
*/
|
||||
PropertyUsage createPropertyUsage();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Component Definition</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Component Definition</em>'.
|
||||
* @generated
|
||||
*/
|
||||
ComponentDefinition createComponentDefinition();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Instantiation</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Instantiation</em>'.
|
||||
* @generated
|
||||
*/
|
||||
Instantiation createInstantiation();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Component Instance</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Component Instance</em>'.
|
||||
* @generated
|
||||
*/
|
||||
ComponentInstance createComponentInstance();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Range</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Range</em>'.
|
||||
* @generated
|
||||
*/
|
||||
Range createRange();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Property Assignment</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Property Assignment</em>'.
|
||||
* @generated
|
||||
*/
|
||||
PropertyAssignment createPropertyAssignment();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Default Propery Assignment</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Default Propery Assignment</em>'.
|
||||
* @generated
|
||||
*/
|
||||
DefaultProperyAssignment createDefaultProperyAssignment();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Explicit Property Assignment</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Explicit Property Assignment</em>'.
|
||||
* @generated
|
||||
*/
|
||||
ExplicitPropertyAssignment createExplicitPropertyAssignment();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Post Property Assignment</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Post Property Assignment</em>'.
|
||||
* @generated
|
||||
*/
|
||||
PostPropertyAssignment createPostPropertyAssignment();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Instance Property Ref</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Instance Property Ref</em>'.
|
||||
* @generated
|
||||
*/
|
||||
InstancePropertyRef createInstancePropertyRef();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Entity</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Entity</em>'.
|
||||
* @generated
|
||||
*/
|
||||
Entity createEntity();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Instance Ref</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Instance Ref</em>'.
|
||||
* @generated
|
||||
*/
|
||||
InstanceRef createInstanceRef();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Property Assignment Rhs</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Property Assignment Rhs</em>'.
|
||||
* @generated
|
||||
*/
|
||||
PropertyAssignmentRhs createPropertyAssignmentRhs();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Concat</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Concat</em>'.
|
||||
* @generated
|
||||
*/
|
||||
Concat createConcat();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Concat Elem</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Concat Elem</em>'.
|
||||
* @generated
|
||||
*/
|
||||
ConcatElem createConcatElem();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>RValue</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>RValue</em>'.
|
||||
* @generated
|
||||
*/
|
||||
RValue createRValue();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Enum Definition</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Enum Definition</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EnumDefinition createEnumDefinition();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Enum Body</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Enum Body</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EnumBody createEnumBody();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Enum Entry</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Enum Entry</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EnumEntry createEnumEntry();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Enum Property</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Enum Property</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EnumProperty createEnumProperty();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Enum Instance Type</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Enum Instance Type</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EnumInstanceType createEnumInstanceType();
|
||||
|
||||
/**
|
||||
* Returns the package supported by this factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the package supported by this factory.
|
||||
* @generated
|
||||
*/
|
||||
RdlPackage getRdlPackage();
|
||||
|
||||
} //RdlFactory
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,105 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl;
|
||||
|
||||
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:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.Root#getIncludes <em>Includes</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.Root#getComponentDefinitions <em>Component Definitions</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.Root#getEnumDefinitions <em>Enum Definitions</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.Root#getInstantiations <em>Instantiations</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.Root#getPropertyAssignments <em>Property Assignments</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.Root#getPropertyDefinitions <em>Property Definitions</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getRoot()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface Root extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Includes</b></em>' containment reference list.
|
||||
* The list contents are of type {@link com.minres.rdl.rdl.Include}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Includes</em>' containment reference list.
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getRoot_Includes()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<Include> getIncludes();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Component Definitions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link com.minres.rdl.rdl.ComponentDefinition}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Component Definitions</em>' containment reference list.
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getRoot_ComponentDefinitions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<ComponentDefinition> getComponentDefinitions();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Enum Definitions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link com.minres.rdl.rdl.EnumDefinition}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Enum Definitions</em>' containment reference list.
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getRoot_EnumDefinitions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<EnumDefinition> getEnumDefinitions();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Instantiations</b></em>' containment reference list.
|
||||
* The list contents are of type {@link com.minres.rdl.rdl.Instantiation}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Instantiations</em>' containment reference list.
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getRoot_Instantiations()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<Instantiation> getInstantiations();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Property Assignments</b></em>' containment reference list.
|
||||
* The list contents are of type {@link com.minres.rdl.rdl.PropertyAssignment}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Property Assignments</em>' containment reference list.
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getRoot_PropertyAssignments()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<PropertyAssignment> getPropertyAssignments();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Property Definitions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link com.minres.rdl.rdl.PropertyDefinition}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Property Definitions</em>' containment reference list.
|
||||
* @see com.minres.rdl.rdl.RdlPackage#getRoot_PropertyDefinitions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<PropertyDefinition> getPropertyDefinitions();
|
||||
|
||||
} // Root
|
|
@ -0,0 +1,422 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl.impl;
|
||||
|
||||
import com.minres.rdl.rdl.ComponentDefinition;
|
||||
import com.minres.rdl.rdl.ComponentDefinitionType;
|
||||
import com.minres.rdl.rdl.EnumDefinition;
|
||||
import com.minres.rdl.rdl.Instantiation;
|
||||
import com.minres.rdl.rdl.PropertyAssignment;
|
||||
import com.minres.rdl.rdl.RdlPackage;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Component Definition</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.ComponentDefinitionImpl#getType <em>Type</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.ComponentDefinitionImpl#getName <em>Name</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.ComponentDefinitionImpl#getComponentDefinitions <em>Component Definitions</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.ComponentDefinitionImpl#getInstantiations <em>Instantiations</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.ComponentDefinitionImpl#getPropertyAssignments <em>Property Assignments</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.ComponentDefinitionImpl#getEnumDefinitions <em>Enum Definitions</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class ComponentDefinitionImpl extends MinimalEObjectImpl.Container implements ComponentDefinition
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getType() <em>Type</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getType()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final ComponentDefinitionType TYPE_EDEFAULT = ComponentDefinitionType.SIGNAL;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getType() <em>Type</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getType()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected ComponentDefinitionType type = TYPE_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 #getComponentDefinitions() <em>Component Definitions</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getComponentDefinitions()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<ComponentDefinition> componentDefinitions;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getInstantiations() <em>Instantiations</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getInstantiations()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<Instantiation> instantiations;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getPropertyAssignments() <em>Property Assignments</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getPropertyAssignments()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<PropertyAssignment> propertyAssignments;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getEnumDefinitions() <em>Enum Definitions</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEnumDefinitions()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<EnumDefinition> enumDefinitions;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected ComponentDefinitionImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return RdlPackage.Literals.COMPONENT_DEFINITION;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public ComponentDefinitionType getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setType(ComponentDefinitionType newType)
|
||||
{
|
||||
ComponentDefinitionType oldType = type;
|
||||
type = newType == null ? TYPE_EDEFAULT : newType;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.COMPONENT_DEFINITION__TYPE, oldType, type));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setName(String newName)
|
||||
{
|
||||
String oldName = name;
|
||||
name = newName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.COMPONENT_DEFINITION__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<ComponentDefinition> getComponentDefinitions()
|
||||
{
|
||||
if (componentDefinitions == null)
|
||||
{
|
||||
componentDefinitions = new EObjectContainmentEList<ComponentDefinition>(ComponentDefinition.class, this, RdlPackage.COMPONENT_DEFINITION__COMPONENT_DEFINITIONS);
|
||||
}
|
||||
return componentDefinitions;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<Instantiation> getInstantiations()
|
||||
{
|
||||
if (instantiations == null)
|
||||
{
|
||||
instantiations = new EObjectContainmentEList<Instantiation>(Instantiation.class, this, RdlPackage.COMPONENT_DEFINITION__INSTANTIATIONS);
|
||||
}
|
||||
return instantiations;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<PropertyAssignment> getPropertyAssignments()
|
||||
{
|
||||
if (propertyAssignments == null)
|
||||
{
|
||||
propertyAssignments = new EObjectContainmentEList<PropertyAssignment>(PropertyAssignment.class, this, RdlPackage.COMPONENT_DEFINITION__PROPERTY_ASSIGNMENTS);
|
||||
}
|
||||
return propertyAssignments;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<EnumDefinition> getEnumDefinitions()
|
||||
{
|
||||
if (enumDefinitions == null)
|
||||
{
|
||||
enumDefinitions = new EObjectContainmentEList<EnumDefinition>(EnumDefinition.class, this, RdlPackage.COMPONENT_DEFINITION__ENUM_DEFINITIONS);
|
||||
}
|
||||
return enumDefinitions;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.COMPONENT_DEFINITION__COMPONENT_DEFINITIONS:
|
||||
return ((InternalEList<?>)getComponentDefinitions()).basicRemove(otherEnd, msgs);
|
||||
case RdlPackage.COMPONENT_DEFINITION__INSTANTIATIONS:
|
||||
return ((InternalEList<?>)getInstantiations()).basicRemove(otherEnd, msgs);
|
||||
case RdlPackage.COMPONENT_DEFINITION__PROPERTY_ASSIGNMENTS:
|
||||
return ((InternalEList<?>)getPropertyAssignments()).basicRemove(otherEnd, msgs);
|
||||
case RdlPackage.COMPONENT_DEFINITION__ENUM_DEFINITIONS:
|
||||
return ((InternalEList<?>)getEnumDefinitions()).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 RdlPackage.COMPONENT_DEFINITION__TYPE:
|
||||
return getType();
|
||||
case RdlPackage.COMPONENT_DEFINITION__NAME:
|
||||
return getName();
|
||||
case RdlPackage.COMPONENT_DEFINITION__COMPONENT_DEFINITIONS:
|
||||
return getComponentDefinitions();
|
||||
case RdlPackage.COMPONENT_DEFINITION__INSTANTIATIONS:
|
||||
return getInstantiations();
|
||||
case RdlPackage.COMPONENT_DEFINITION__PROPERTY_ASSIGNMENTS:
|
||||
return getPropertyAssignments();
|
||||
case RdlPackage.COMPONENT_DEFINITION__ENUM_DEFINITIONS:
|
||||
return getEnumDefinitions();
|
||||
}
|
||||
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 RdlPackage.COMPONENT_DEFINITION__TYPE:
|
||||
setType((ComponentDefinitionType)newValue);
|
||||
return;
|
||||
case RdlPackage.COMPONENT_DEFINITION__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
case RdlPackage.COMPONENT_DEFINITION__COMPONENT_DEFINITIONS:
|
||||
getComponentDefinitions().clear();
|
||||
getComponentDefinitions().addAll((Collection<? extends ComponentDefinition>)newValue);
|
||||
return;
|
||||
case RdlPackage.COMPONENT_DEFINITION__INSTANTIATIONS:
|
||||
getInstantiations().clear();
|
||||
getInstantiations().addAll((Collection<? extends Instantiation>)newValue);
|
||||
return;
|
||||
case RdlPackage.COMPONENT_DEFINITION__PROPERTY_ASSIGNMENTS:
|
||||
getPropertyAssignments().clear();
|
||||
getPropertyAssignments().addAll((Collection<? extends PropertyAssignment>)newValue);
|
||||
return;
|
||||
case RdlPackage.COMPONENT_DEFINITION__ENUM_DEFINITIONS:
|
||||
getEnumDefinitions().clear();
|
||||
getEnumDefinitions().addAll((Collection<? extends EnumDefinition>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.COMPONENT_DEFINITION__TYPE:
|
||||
setType(TYPE_EDEFAULT);
|
||||
return;
|
||||
case RdlPackage.COMPONENT_DEFINITION__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
case RdlPackage.COMPONENT_DEFINITION__COMPONENT_DEFINITIONS:
|
||||
getComponentDefinitions().clear();
|
||||
return;
|
||||
case RdlPackage.COMPONENT_DEFINITION__INSTANTIATIONS:
|
||||
getInstantiations().clear();
|
||||
return;
|
||||
case RdlPackage.COMPONENT_DEFINITION__PROPERTY_ASSIGNMENTS:
|
||||
getPropertyAssignments().clear();
|
||||
return;
|
||||
case RdlPackage.COMPONENT_DEFINITION__ENUM_DEFINITIONS:
|
||||
getEnumDefinitions().clear();
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.COMPONENT_DEFINITION__TYPE:
|
||||
return type != TYPE_EDEFAULT;
|
||||
case RdlPackage.COMPONENT_DEFINITION__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
case RdlPackage.COMPONENT_DEFINITION__COMPONENT_DEFINITIONS:
|
||||
return componentDefinitions != null && !componentDefinitions.isEmpty();
|
||||
case RdlPackage.COMPONENT_DEFINITION__INSTANTIATIONS:
|
||||
return instantiations != null && !instantiations.isEmpty();
|
||||
case RdlPackage.COMPONENT_DEFINITION__PROPERTY_ASSIGNMENTS:
|
||||
return propertyAssignments != null && !propertyAssignments.isEmpty();
|
||||
case RdlPackage.COMPONENT_DEFINITION__ENUM_DEFINITIONS:
|
||||
return enumDefinitions != null && !enumDefinitions.isEmpty();
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (type: ");
|
||||
result.append(type);
|
||||
result.append(", name: ");
|
||||
result.append(name);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //ComponentDefinitionImpl
|
|
@ -0,0 +1,443 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl.impl;
|
||||
|
||||
import com.minres.rdl.rdl.ComponentInstance;
|
||||
import com.minres.rdl.rdl.Range;
|
||||
import com.minres.rdl.rdl.RdlPackage;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Component Instance</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.ComponentInstanceImpl#getRange <em>Range</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.ComponentInstanceImpl#getReset <em>Reset</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.ComponentInstanceImpl#getAddress <em>Address</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.ComponentInstanceImpl#getAddrInc <em>Addr Inc</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.ComponentInstanceImpl#getAddrMod <em>Addr Mod</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class ComponentInstanceImpl extends EntityImpl implements ComponentInstance
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getRange() <em>Range</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getRange()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected Range range;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getReset() <em>Reset</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getReset()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final Object RESET_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getReset() <em>Reset</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getReset()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected Object reset = RESET_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getAddress() <em>Address</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getAddress()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final Object ADDRESS_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getAddress() <em>Address</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getAddress()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected Object address = ADDRESS_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getAddrInc() <em>Addr Inc</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getAddrInc()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final Object ADDR_INC_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getAddrInc() <em>Addr Inc</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getAddrInc()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected Object addrInc = ADDR_INC_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getAddrMod() <em>Addr Mod</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getAddrMod()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final Object ADDR_MOD_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getAddrMod() <em>Addr Mod</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getAddrMod()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected Object addrMod = ADDR_MOD_EDEFAULT;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected ComponentInstanceImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return RdlPackage.Literals.COMPONENT_INSTANCE;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Range getRange()
|
||||
{
|
||||
return range;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetRange(Range newRange, NotificationChain msgs)
|
||||
{
|
||||
Range oldRange = range;
|
||||
range = newRange;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RdlPackage.COMPONENT_INSTANCE__RANGE, oldRange, newRange);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setRange(Range newRange)
|
||||
{
|
||||
if (newRange != range)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (range != null)
|
||||
msgs = ((InternalEObject)range).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RdlPackage.COMPONENT_INSTANCE__RANGE, null, msgs);
|
||||
if (newRange != null)
|
||||
msgs = ((InternalEObject)newRange).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - RdlPackage.COMPONENT_INSTANCE__RANGE, null, msgs);
|
||||
msgs = basicSetRange(newRange, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.COMPONENT_INSTANCE__RANGE, newRange, newRange));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object getReset()
|
||||
{
|
||||
return reset;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setReset(Object newReset)
|
||||
{
|
||||
Object oldReset = reset;
|
||||
reset = newReset;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.COMPONENT_INSTANCE__RESET, oldReset, reset));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object getAddress()
|
||||
{
|
||||
return address;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setAddress(Object newAddress)
|
||||
{
|
||||
Object oldAddress = address;
|
||||
address = newAddress;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.COMPONENT_INSTANCE__ADDRESS, oldAddress, address));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object getAddrInc()
|
||||
{
|
||||
return addrInc;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setAddrInc(Object newAddrInc)
|
||||
{
|
||||
Object oldAddrInc = addrInc;
|
||||
addrInc = newAddrInc;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.COMPONENT_INSTANCE__ADDR_INC, oldAddrInc, addrInc));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object getAddrMod()
|
||||
{
|
||||
return addrMod;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setAddrMod(Object newAddrMod)
|
||||
{
|
||||
Object oldAddrMod = addrMod;
|
||||
addrMod = newAddrMod;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.COMPONENT_INSTANCE__ADDR_MOD, oldAddrMod, addrMod));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.COMPONENT_INSTANCE__RANGE:
|
||||
return basicSetRange(null, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.COMPONENT_INSTANCE__RANGE:
|
||||
return getRange();
|
||||
case RdlPackage.COMPONENT_INSTANCE__RESET:
|
||||
return getReset();
|
||||
case RdlPackage.COMPONENT_INSTANCE__ADDRESS:
|
||||
return getAddress();
|
||||
case RdlPackage.COMPONENT_INSTANCE__ADDR_INC:
|
||||
return getAddrInc();
|
||||
case RdlPackage.COMPONENT_INSTANCE__ADDR_MOD:
|
||||
return getAddrMod();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.COMPONENT_INSTANCE__RANGE:
|
||||
setRange((Range)newValue);
|
||||
return;
|
||||
case RdlPackage.COMPONENT_INSTANCE__RESET:
|
||||
setReset(newValue);
|
||||
return;
|
||||
case RdlPackage.COMPONENT_INSTANCE__ADDRESS:
|
||||
setAddress(newValue);
|
||||
return;
|
||||
case RdlPackage.COMPONENT_INSTANCE__ADDR_INC:
|
||||
setAddrInc(newValue);
|
||||
return;
|
||||
case RdlPackage.COMPONENT_INSTANCE__ADDR_MOD:
|
||||
setAddrMod(newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.COMPONENT_INSTANCE__RANGE:
|
||||
setRange((Range)null);
|
||||
return;
|
||||
case RdlPackage.COMPONENT_INSTANCE__RESET:
|
||||
setReset(RESET_EDEFAULT);
|
||||
return;
|
||||
case RdlPackage.COMPONENT_INSTANCE__ADDRESS:
|
||||
setAddress(ADDRESS_EDEFAULT);
|
||||
return;
|
||||
case RdlPackage.COMPONENT_INSTANCE__ADDR_INC:
|
||||
setAddrInc(ADDR_INC_EDEFAULT);
|
||||
return;
|
||||
case RdlPackage.COMPONENT_INSTANCE__ADDR_MOD:
|
||||
setAddrMod(ADDR_MOD_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.COMPONENT_INSTANCE__RANGE:
|
||||
return range != null;
|
||||
case RdlPackage.COMPONENT_INSTANCE__RESET:
|
||||
return RESET_EDEFAULT == null ? reset != null : !RESET_EDEFAULT.equals(reset);
|
||||
case RdlPackage.COMPONENT_INSTANCE__ADDRESS:
|
||||
return ADDRESS_EDEFAULT == null ? address != null : !ADDRESS_EDEFAULT.equals(address);
|
||||
case RdlPackage.COMPONENT_INSTANCE__ADDR_INC:
|
||||
return ADDR_INC_EDEFAULT == null ? addrInc != null : !ADDR_INC_EDEFAULT.equals(addrInc);
|
||||
case RdlPackage.COMPONENT_INSTANCE__ADDR_MOD:
|
||||
return ADDR_MOD_EDEFAULT == null ? addrMod != null : !ADDR_MOD_EDEFAULT.equals(addrMod);
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (reset: ");
|
||||
result.append(reset);
|
||||
result.append(", address: ");
|
||||
result.append(address);
|
||||
result.append(", addrInc: ");
|
||||
result.append(addrInc);
|
||||
result.append(", addrMod: ");
|
||||
result.append(addrMod);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //ComponentInstanceImpl
|
|
@ -0,0 +1,270 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl.impl;
|
||||
|
||||
import com.minres.rdl.rdl.ConcatElem;
|
||||
import com.minres.rdl.rdl.InstancePropertyRef;
|
||||
import com.minres.rdl.rdl.RdlPackage;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Concat Elem</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.ConcatElemImpl#getInstPropRef <em>Inst Prop Ref</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.ConcatElemImpl#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class ConcatElemImpl extends MinimalEObjectImpl.Container implements ConcatElem
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getInstPropRef() <em>Inst Prop Ref</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getInstPropRef()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected InstancePropertyRef instPropRef;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getValue() <em>Value</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getValue()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final Object 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 Object value = VALUE_EDEFAULT;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected ConcatElemImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return RdlPackage.Literals.CONCAT_ELEM;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public InstancePropertyRef getInstPropRef()
|
||||
{
|
||||
return instPropRef;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetInstPropRef(InstancePropertyRef newInstPropRef, NotificationChain msgs)
|
||||
{
|
||||
InstancePropertyRef oldInstPropRef = instPropRef;
|
||||
instPropRef = newInstPropRef;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RdlPackage.CONCAT_ELEM__INST_PROP_REF, oldInstPropRef, newInstPropRef);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setInstPropRef(InstancePropertyRef newInstPropRef)
|
||||
{
|
||||
if (newInstPropRef != instPropRef)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (instPropRef != null)
|
||||
msgs = ((InternalEObject)instPropRef).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RdlPackage.CONCAT_ELEM__INST_PROP_REF, null, msgs);
|
||||
if (newInstPropRef != null)
|
||||
msgs = ((InternalEObject)newInstPropRef).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - RdlPackage.CONCAT_ELEM__INST_PROP_REF, null, msgs);
|
||||
msgs = basicSetInstPropRef(newInstPropRef, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.CONCAT_ELEM__INST_PROP_REF, newInstPropRef, newInstPropRef));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object getValue()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setValue(Object newValue)
|
||||
{
|
||||
Object oldValue = value;
|
||||
value = newValue;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.CONCAT_ELEM__VALUE, oldValue, value));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.CONCAT_ELEM__INST_PROP_REF:
|
||||
return basicSetInstPropRef(null, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.CONCAT_ELEM__INST_PROP_REF:
|
||||
return getInstPropRef();
|
||||
case RdlPackage.CONCAT_ELEM__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 RdlPackage.CONCAT_ELEM__INST_PROP_REF:
|
||||
setInstPropRef((InstancePropertyRef)newValue);
|
||||
return;
|
||||
case RdlPackage.CONCAT_ELEM__VALUE:
|
||||
setValue(newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.CONCAT_ELEM__INST_PROP_REF:
|
||||
setInstPropRef((InstancePropertyRef)null);
|
||||
return;
|
||||
case RdlPackage.CONCAT_ELEM__VALUE:
|
||||
setValue(VALUE_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.CONCAT_ELEM__INST_PROP_REF:
|
||||
return instPropRef != null;
|
||||
case RdlPackage.CONCAT_ELEM__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();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (value: ");
|
||||
result.append(value);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //ConcatElemImpl
|
|
@ -0,0 +1,169 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl.impl;
|
||||
|
||||
import com.minres.rdl.rdl.Concat;
|
||||
import com.minres.rdl.rdl.ConcatElem;
|
||||
import com.minres.rdl.rdl.RdlPackage;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Concat</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.ConcatImpl#getElements <em>Elements</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class ConcatImpl extends MinimalEObjectImpl.Container implements Concat
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getElements() <em>Elements</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getElements()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<ConcatElem> elements;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected ConcatImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return RdlPackage.Literals.CONCAT;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<ConcatElem> getElements()
|
||||
{
|
||||
if (elements == null)
|
||||
{
|
||||
elements = new EObjectContainmentEList<ConcatElem>(ConcatElem.class, this, RdlPackage.CONCAT__ELEMENTS);
|
||||
}
|
||||
return elements;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.CONCAT__ELEMENTS:
|
||||
return ((InternalEList<?>)getElements()).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 RdlPackage.CONCAT__ELEMENTS:
|
||||
return getElements();
|
||||
}
|
||||
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 RdlPackage.CONCAT__ELEMENTS:
|
||||
getElements().clear();
|
||||
getElements().addAll((Collection<? extends ConcatElem>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.CONCAT__ELEMENTS:
|
||||
getElements().clear();
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.CONCAT__ELEMENTS:
|
||||
return elements != null && !elements.isEmpty();
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //ConcatImpl
|
|
@ -0,0 +1,41 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl.impl;
|
||||
|
||||
import com.minres.rdl.rdl.DefaultProperyAssignment;
|
||||
import com.minres.rdl.rdl.RdlPackage;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Default Propery Assignment</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class DefaultProperyAssignmentImpl extends PropertyAssignmentImpl implements DefaultProperyAssignment
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected DefaultProperyAssignmentImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return RdlPackage.Literals.DEFAULT_PROPERY_ASSIGNMENT;
|
||||
}
|
||||
|
||||
} //DefaultProperyAssignmentImpl
|
|
@ -0,0 +1,180 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl.impl;
|
||||
|
||||
import com.minres.rdl.rdl.Entity;
|
||||
import com.minres.rdl.rdl.RdlPackage;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Entity</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.EntityImpl#getName <em>Name</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EntityImpl extends MinimalEObjectImpl.Container implements Entity
|
||||
{
|
||||
/**
|
||||
* 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 EntityImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return RdlPackage.Literals.ENTITY;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setName(String newName)
|
||||
{
|
||||
String oldName = name;
|
||||
name = newName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.ENTITY__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.ENTITY__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 RdlPackage.ENTITY__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 RdlPackage.ENTITY__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.ENTITY__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();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (name: ");
|
||||
result.append(name);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //EntityImpl
|
|
@ -0,0 +1,169 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl.impl;
|
||||
|
||||
import com.minres.rdl.rdl.EnumBody;
|
||||
import com.minres.rdl.rdl.EnumEntry;
|
||||
import com.minres.rdl.rdl.RdlPackage;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Enum Body</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.EnumBodyImpl#getEntries <em>Entries</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EnumBodyImpl extends MinimalEObjectImpl.Container implements EnumBody
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getEntries() <em>Entries</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEntries()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<EnumEntry> entries;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EnumBodyImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return RdlPackage.Literals.ENUM_BODY;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<EnumEntry> getEntries()
|
||||
{
|
||||
if (entries == null)
|
||||
{
|
||||
entries = new EObjectContainmentEList<EnumEntry>(EnumEntry.class, this, RdlPackage.ENUM_BODY__ENTRIES);
|
||||
}
|
||||
return entries;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.ENUM_BODY__ENTRIES:
|
||||
return ((InternalEList<?>)getEntries()).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 RdlPackage.ENUM_BODY__ENTRIES:
|
||||
return getEntries();
|
||||
}
|
||||
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 RdlPackage.ENUM_BODY__ENTRIES:
|
||||
getEntries().clear();
|
||||
getEntries().addAll((Collection<? extends EnumEntry>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.ENUM_BODY__ENTRIES:
|
||||
getEntries().clear();
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.ENUM_BODY__ENTRIES:
|
||||
return entries != null && !entries.isEmpty();
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //EnumBodyImpl
|
|
@ -0,0 +1,196 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl.impl;
|
||||
|
||||
import com.minres.rdl.rdl.EnumBody;
|
||||
import com.minres.rdl.rdl.EnumDefinition;
|
||||
import com.minres.rdl.rdl.RdlPackage;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Enum Definition</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.EnumDefinitionImpl#getBody <em>Body</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EnumDefinitionImpl extends EntityImpl implements EnumDefinition
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getBody() <em>Body</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getBody()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EnumBody body;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EnumDefinitionImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return RdlPackage.Literals.ENUM_DEFINITION;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EnumBody getBody()
|
||||
{
|
||||
return body;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetBody(EnumBody newBody, NotificationChain msgs)
|
||||
{
|
||||
EnumBody oldBody = body;
|
||||
body = newBody;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RdlPackage.ENUM_DEFINITION__BODY, oldBody, newBody);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setBody(EnumBody newBody)
|
||||
{
|
||||
if (newBody != body)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (body != null)
|
||||
msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RdlPackage.ENUM_DEFINITION__BODY, null, msgs);
|
||||
if (newBody != null)
|
||||
msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - RdlPackage.ENUM_DEFINITION__BODY, null, msgs);
|
||||
msgs = basicSetBody(newBody, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.ENUM_DEFINITION__BODY, newBody, newBody));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.ENUM_DEFINITION__BODY:
|
||||
return basicSetBody(null, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.ENUM_DEFINITION__BODY:
|
||||
return getBody();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.ENUM_DEFINITION__BODY:
|
||||
setBody((EnumBody)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.ENUM_DEFINITION__BODY:
|
||||
setBody((EnumBody)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.ENUM_DEFINITION__BODY:
|
||||
return body != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //EnumDefinitionImpl
|
|
@ -0,0 +1,302 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl.impl;
|
||||
|
||||
import com.minres.rdl.rdl.EnumEntry;
|
||||
import com.minres.rdl.rdl.EnumProperty;
|
||||
import com.minres.rdl.rdl.RdlPackage;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Enum Entry</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.EnumEntryImpl#getName <em>Name</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.EnumEntryImpl#getIndex <em>Index</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.EnumEntryImpl#getProperties <em>Properties</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EnumEntryImpl extends MinimalEObjectImpl.Container implements EnumEntry
|
||||
{
|
||||
/**
|
||||
* 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 default value of the '{@link #getIndex() <em>Index</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getIndex()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final Object INDEX_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getIndex() <em>Index</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getIndex()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected Object index = INDEX_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getProperties() <em>Properties</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getProperties()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<EnumProperty> properties;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EnumEntryImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return RdlPackage.Literals.ENUM_ENTRY;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setName(String newName)
|
||||
{
|
||||
String oldName = name;
|
||||
name = newName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.ENUM_ENTRY__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object getIndex()
|
||||
{
|
||||
return index;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setIndex(Object newIndex)
|
||||
{
|
||||
Object oldIndex = index;
|
||||
index = newIndex;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.ENUM_ENTRY__INDEX, oldIndex, index));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<EnumProperty> getProperties()
|
||||
{
|
||||
if (properties == null)
|
||||
{
|
||||
properties = new EObjectContainmentEList<EnumProperty>(EnumProperty.class, this, RdlPackage.ENUM_ENTRY__PROPERTIES);
|
||||
}
|
||||
return properties;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.ENUM_ENTRY__PROPERTIES:
|
||||
return ((InternalEList<?>)getProperties()).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 RdlPackage.ENUM_ENTRY__NAME:
|
||||
return getName();
|
||||
case RdlPackage.ENUM_ENTRY__INDEX:
|
||||
return getIndex();
|
||||
case RdlPackage.ENUM_ENTRY__PROPERTIES:
|
||||
return getProperties();
|
||||
}
|
||||
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 RdlPackage.ENUM_ENTRY__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
case RdlPackage.ENUM_ENTRY__INDEX:
|
||||
setIndex(newValue);
|
||||
return;
|
||||
case RdlPackage.ENUM_ENTRY__PROPERTIES:
|
||||
getProperties().clear();
|
||||
getProperties().addAll((Collection<? extends EnumProperty>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.ENUM_ENTRY__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
case RdlPackage.ENUM_ENTRY__INDEX:
|
||||
setIndex(INDEX_EDEFAULT);
|
||||
return;
|
||||
case RdlPackage.ENUM_ENTRY__PROPERTIES:
|
||||
getProperties().clear();
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.ENUM_ENTRY__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
case RdlPackage.ENUM_ENTRY__INDEX:
|
||||
return INDEX_EDEFAULT == null ? index != null : !INDEX_EDEFAULT.equals(index);
|
||||
case RdlPackage.ENUM_ENTRY__PROPERTIES:
|
||||
return properties != null && !properties.isEmpty();
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (name: ");
|
||||
result.append(name);
|
||||
result.append(", index: ");
|
||||
result.append(index);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //EnumEntryImpl
|
|
@ -0,0 +1,238 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl.impl;
|
||||
|
||||
import com.minres.rdl.rdl.EnumInstanceType;
|
||||
import com.minres.rdl.rdl.RdlPackage;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Enum Instance Type</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.EnumInstanceTypeImpl#getEXTERNAL <em>EXTERNAL</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.EnumInstanceTypeImpl#getINTERNAL <em>INTERNAL</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EnumInstanceTypeImpl extends MinimalEObjectImpl.Container implements EnumInstanceType
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getEXTERNAL() <em>EXTERNAL</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEXTERNAL()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String EXTERNAL_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getEXTERNAL() <em>EXTERNAL</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEXTERNAL()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String external = EXTERNAL_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getINTERNAL() <em>INTERNAL</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getINTERNAL()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String INTERNAL_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getINTERNAL() <em>INTERNAL</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getINTERNAL()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String internal = INTERNAL_EDEFAULT;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EnumInstanceTypeImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return RdlPackage.Literals.ENUM_INSTANCE_TYPE;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getEXTERNAL()
|
||||
{
|
||||
return external;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setEXTERNAL(String newEXTERNAL)
|
||||
{
|
||||
String oldEXTERNAL = external;
|
||||
external = newEXTERNAL;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.ENUM_INSTANCE_TYPE__EXTERNAL, oldEXTERNAL, external));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getINTERNAL()
|
||||
{
|
||||
return internal;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setINTERNAL(String newINTERNAL)
|
||||
{
|
||||
String oldINTERNAL = internal;
|
||||
internal = newINTERNAL;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.ENUM_INSTANCE_TYPE__INTERNAL, oldINTERNAL, internal));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.ENUM_INSTANCE_TYPE__EXTERNAL:
|
||||
return getEXTERNAL();
|
||||
case RdlPackage.ENUM_INSTANCE_TYPE__INTERNAL:
|
||||
return getINTERNAL();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.ENUM_INSTANCE_TYPE__EXTERNAL:
|
||||
setEXTERNAL((String)newValue);
|
||||
return;
|
||||
case RdlPackage.ENUM_INSTANCE_TYPE__INTERNAL:
|
||||
setINTERNAL((String)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.ENUM_INSTANCE_TYPE__EXTERNAL:
|
||||
setEXTERNAL(EXTERNAL_EDEFAULT);
|
||||
return;
|
||||
case RdlPackage.ENUM_INSTANCE_TYPE__INTERNAL:
|
||||
setINTERNAL(INTERNAL_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.ENUM_INSTANCE_TYPE__EXTERNAL:
|
||||
return EXTERNAL_EDEFAULT == null ? external != null : !EXTERNAL_EDEFAULT.equals(external);
|
||||
case RdlPackage.ENUM_INSTANCE_TYPE__INTERNAL:
|
||||
return INTERNAL_EDEFAULT == null ? internal != null : !INTERNAL_EDEFAULT.equals(internal);
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (EXTERNAL: ");
|
||||
result.append(external);
|
||||
result.append(", INTERNAL: ");
|
||||
result.append(internal);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //EnumInstanceTypeImpl
|
|
@ -0,0 +1,238 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl.impl;
|
||||
|
||||
import com.minres.rdl.rdl.EnumProperty;
|
||||
import com.minres.rdl.rdl.RdlPackage;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Enum Property</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.EnumPropertyImpl#getName <em>Name</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.EnumPropertyImpl#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EnumPropertyImpl extends MinimalEObjectImpl.Container implements EnumProperty
|
||||
{
|
||||
/**
|
||||
* 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 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 EnumPropertyImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return RdlPackage.Literals.ENUM_PROPERTY;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setName(String newName)
|
||||
{
|
||||
String oldName = name;
|
||||
name = newName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.ENUM_PROPERTY__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getValue()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setValue(String newValue)
|
||||
{
|
||||
String oldValue = value;
|
||||
value = newValue;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.ENUM_PROPERTY__VALUE, oldValue, value));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.ENUM_PROPERTY__NAME:
|
||||
return getName();
|
||||
case RdlPackage.ENUM_PROPERTY__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 RdlPackage.ENUM_PROPERTY__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
case RdlPackage.ENUM_PROPERTY__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 RdlPackage.ENUM_PROPERTY__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
case RdlPackage.ENUM_PROPERTY__VALUE:
|
||||
setValue(VALUE_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.ENUM_PROPERTY__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
case RdlPackage.ENUM_PROPERTY__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();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (name: ");
|
||||
result.append(name);
|
||||
result.append(", value: ");
|
||||
result.append(value);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //EnumPropertyImpl
|
|
@ -0,0 +1,329 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl.impl;
|
||||
|
||||
import com.minres.rdl.rdl.ExplicitPropertyAssignment;
|
||||
import com.minres.rdl.rdl.PropertyAssignmentRhs;
|
||||
import com.minres.rdl.rdl.PropertyEnum;
|
||||
import com.minres.rdl.rdl.PropertyModifier;
|
||||
import com.minres.rdl.rdl.RdlPackage;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Explicit Property Assignment</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.ExplicitPropertyAssignmentImpl#getModifier <em>Modifier</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.ExplicitPropertyAssignmentImpl#getName <em>Name</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.ExplicitPropertyAssignmentImpl#getRhs <em>Rhs</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class ExplicitPropertyAssignmentImpl extends PropertyAssignmentImpl implements ExplicitPropertyAssignment
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getModifier() <em>Modifier</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getModifier()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final PropertyModifier MODIFIER_EDEFAULT = PropertyModifier.UNDEFINED;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getModifier() <em>Modifier</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getModifier()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected PropertyModifier modifier = MODIFIER_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 PropertyEnum NAME_EDEFAULT = PropertyEnum.UNSPECIFIED;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getName()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected PropertyEnum name = NAME_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getRhs() <em>Rhs</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getRhs()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected PropertyAssignmentRhs rhs;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected ExplicitPropertyAssignmentImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return RdlPackage.Literals.EXPLICIT_PROPERTY_ASSIGNMENT;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public PropertyModifier getModifier()
|
||||
{
|
||||
return modifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setModifier(PropertyModifier newModifier)
|
||||
{
|
||||
PropertyModifier oldModifier = modifier;
|
||||
modifier = newModifier == null ? MODIFIER_EDEFAULT : newModifier;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.EXPLICIT_PROPERTY_ASSIGNMENT__MODIFIER, oldModifier, modifier));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public PropertyEnum getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setName(PropertyEnum newName)
|
||||
{
|
||||
PropertyEnum oldName = name;
|
||||
name = newName == null ? NAME_EDEFAULT : newName;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.EXPLICIT_PROPERTY_ASSIGNMENT__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public PropertyAssignmentRhs getRhs()
|
||||
{
|
||||
return rhs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetRhs(PropertyAssignmentRhs newRhs, NotificationChain msgs)
|
||||
{
|
||||
PropertyAssignmentRhs oldRhs = rhs;
|
||||
rhs = newRhs;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RdlPackage.EXPLICIT_PROPERTY_ASSIGNMENT__RHS, oldRhs, newRhs);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setRhs(PropertyAssignmentRhs newRhs)
|
||||
{
|
||||
if (newRhs != rhs)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (rhs != null)
|
||||
msgs = ((InternalEObject)rhs).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RdlPackage.EXPLICIT_PROPERTY_ASSIGNMENT__RHS, null, msgs);
|
||||
if (newRhs != null)
|
||||
msgs = ((InternalEObject)newRhs).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - RdlPackage.EXPLICIT_PROPERTY_ASSIGNMENT__RHS, null, msgs);
|
||||
msgs = basicSetRhs(newRhs, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.EXPLICIT_PROPERTY_ASSIGNMENT__RHS, newRhs, newRhs));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.EXPLICIT_PROPERTY_ASSIGNMENT__RHS:
|
||||
return basicSetRhs(null, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.EXPLICIT_PROPERTY_ASSIGNMENT__MODIFIER:
|
||||
return getModifier();
|
||||
case RdlPackage.EXPLICIT_PROPERTY_ASSIGNMENT__NAME:
|
||||
return getName();
|
||||
case RdlPackage.EXPLICIT_PROPERTY_ASSIGNMENT__RHS:
|
||||
return getRhs();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.EXPLICIT_PROPERTY_ASSIGNMENT__MODIFIER:
|
||||
setModifier((PropertyModifier)newValue);
|
||||
return;
|
||||
case RdlPackage.EXPLICIT_PROPERTY_ASSIGNMENT__NAME:
|
||||
setName((PropertyEnum)newValue);
|
||||
return;
|
||||
case RdlPackage.EXPLICIT_PROPERTY_ASSIGNMENT__RHS:
|
||||
setRhs((PropertyAssignmentRhs)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.EXPLICIT_PROPERTY_ASSIGNMENT__MODIFIER:
|
||||
setModifier(MODIFIER_EDEFAULT);
|
||||
return;
|
||||
case RdlPackage.EXPLICIT_PROPERTY_ASSIGNMENT__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
case RdlPackage.EXPLICIT_PROPERTY_ASSIGNMENT__RHS:
|
||||
setRhs((PropertyAssignmentRhs)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.EXPLICIT_PROPERTY_ASSIGNMENT__MODIFIER:
|
||||
return modifier != MODIFIER_EDEFAULT;
|
||||
case RdlPackage.EXPLICIT_PROPERTY_ASSIGNMENT__NAME:
|
||||
return name != NAME_EDEFAULT;
|
||||
case RdlPackage.EXPLICIT_PROPERTY_ASSIGNMENT__RHS:
|
||||
return rhs != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (modifier: ");
|
||||
result.append(modifier);
|
||||
result.append(", name: ");
|
||||
result.append(name);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //ExplicitPropertyAssignmentImpl
|
|
@ -0,0 +1,180 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl.impl;
|
||||
|
||||
import com.minres.rdl.rdl.Include;
|
||||
import com.minres.rdl.rdl.RdlPackage;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Include</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.IncludeImpl#getImportURI <em>Import URI</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class IncludeImpl extends MinimalEObjectImpl.Container implements Include
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getImportURI() <em>Import URI</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getImportURI()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String IMPORT_URI_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getImportURI() <em>Import URI</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getImportURI()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String importURI = IMPORT_URI_EDEFAULT;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected IncludeImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return RdlPackage.Literals.INCLUDE;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getImportURI()
|
||||
{
|
||||
return importURI;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setImportURI(String newImportURI)
|
||||
{
|
||||
String oldImportURI = importURI;
|
||||
importURI = newImportURI;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.INCLUDE__IMPORT_URI, oldImportURI, importURI));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.INCLUDE__IMPORT_URI:
|
||||
return getImportURI();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.INCLUDE__IMPORT_URI:
|
||||
setImportURI((String)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.INCLUDE__IMPORT_URI:
|
||||
setImportURI(IMPORT_URI_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.INCLUDE__IMPORT_URI:
|
||||
return IMPORT_URI_EDEFAULT == null ? importURI != null : !IMPORT_URI_EDEFAULT.equals(importURI);
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (importURI: ");
|
||||
result.append(importURI);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //IncludeImpl
|
|
@ -0,0 +1,339 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl.impl;
|
||||
|
||||
import com.minres.rdl.rdl.InstancePropertyRef;
|
||||
import com.minres.rdl.rdl.InstanceRef;
|
||||
import com.minres.rdl.rdl.PropertyDefinition;
|
||||
import com.minres.rdl.rdl.PropertyEnum;
|
||||
import com.minres.rdl.rdl.RdlPackage;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Instance Property Ref</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.InstancePropertyRefImpl#getInstance <em>Instance</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.InstancePropertyRefImpl#getPropertyEnum <em>Property Enum</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.InstancePropertyRefImpl#getProperty <em>Property</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class InstancePropertyRefImpl extends MinimalEObjectImpl.Container implements InstancePropertyRef
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getInstance() <em>Instance</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getInstance()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected InstanceRef instance;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getPropertyEnum() <em>Property Enum</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getPropertyEnum()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final PropertyEnum PROPERTY_ENUM_EDEFAULT = PropertyEnum.UNSPECIFIED;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getPropertyEnum() <em>Property Enum</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getPropertyEnum()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected PropertyEnum propertyEnum = PROPERTY_ENUM_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getProperty() <em>Property</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getProperty()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected PropertyDefinition property;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected InstancePropertyRefImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return RdlPackage.Literals.INSTANCE_PROPERTY_REF;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public InstanceRef getInstance()
|
||||
{
|
||||
return instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetInstance(InstanceRef newInstance, NotificationChain msgs)
|
||||
{
|
||||
InstanceRef oldInstance = instance;
|
||||
instance = newInstance;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RdlPackage.INSTANCE_PROPERTY_REF__INSTANCE, oldInstance, newInstance);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setInstance(InstanceRef newInstance)
|
||||
{
|
||||
if (newInstance != instance)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (instance != null)
|
||||
msgs = ((InternalEObject)instance).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RdlPackage.INSTANCE_PROPERTY_REF__INSTANCE, null, msgs);
|
||||
if (newInstance != null)
|
||||
msgs = ((InternalEObject)newInstance).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - RdlPackage.INSTANCE_PROPERTY_REF__INSTANCE, null, msgs);
|
||||
msgs = basicSetInstance(newInstance, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.INSTANCE_PROPERTY_REF__INSTANCE, newInstance, newInstance));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public PropertyEnum getPropertyEnum()
|
||||
{
|
||||
return propertyEnum;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setPropertyEnum(PropertyEnum newPropertyEnum)
|
||||
{
|
||||
PropertyEnum oldPropertyEnum = propertyEnum;
|
||||
propertyEnum = newPropertyEnum == null ? PROPERTY_ENUM_EDEFAULT : newPropertyEnum;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.INSTANCE_PROPERTY_REF__PROPERTY_ENUM, oldPropertyEnum, propertyEnum));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public PropertyDefinition getProperty()
|
||||
{
|
||||
if (property != null && property.eIsProxy())
|
||||
{
|
||||
InternalEObject oldProperty = (InternalEObject)property;
|
||||
property = (PropertyDefinition)eResolveProxy(oldProperty);
|
||||
if (property != oldProperty)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, RdlPackage.INSTANCE_PROPERTY_REF__PROPERTY, oldProperty, property));
|
||||
}
|
||||
}
|
||||
return property;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public PropertyDefinition basicGetProperty()
|
||||
{
|
||||
return property;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setProperty(PropertyDefinition newProperty)
|
||||
{
|
||||
PropertyDefinition oldProperty = property;
|
||||
property = newProperty;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.INSTANCE_PROPERTY_REF__PROPERTY, oldProperty, property));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.INSTANCE_PROPERTY_REF__INSTANCE:
|
||||
return basicSetInstance(null, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.INSTANCE_PROPERTY_REF__INSTANCE:
|
||||
return getInstance();
|
||||
case RdlPackage.INSTANCE_PROPERTY_REF__PROPERTY_ENUM:
|
||||
return getPropertyEnum();
|
||||
case RdlPackage.INSTANCE_PROPERTY_REF__PROPERTY:
|
||||
if (resolve) return getProperty();
|
||||
return basicGetProperty();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.INSTANCE_PROPERTY_REF__INSTANCE:
|
||||
setInstance((InstanceRef)newValue);
|
||||
return;
|
||||
case RdlPackage.INSTANCE_PROPERTY_REF__PROPERTY_ENUM:
|
||||
setPropertyEnum((PropertyEnum)newValue);
|
||||
return;
|
||||
case RdlPackage.INSTANCE_PROPERTY_REF__PROPERTY:
|
||||
setProperty((PropertyDefinition)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.INSTANCE_PROPERTY_REF__INSTANCE:
|
||||
setInstance((InstanceRef)null);
|
||||
return;
|
||||
case RdlPackage.INSTANCE_PROPERTY_REF__PROPERTY_ENUM:
|
||||
setPropertyEnum(PROPERTY_ENUM_EDEFAULT);
|
||||
return;
|
||||
case RdlPackage.INSTANCE_PROPERTY_REF__PROPERTY:
|
||||
setProperty((PropertyDefinition)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.INSTANCE_PROPERTY_REF__INSTANCE:
|
||||
return instance != null;
|
||||
case RdlPackage.INSTANCE_PROPERTY_REF__PROPERTY_ENUM:
|
||||
return propertyEnum != PROPERTY_ENUM_EDEFAULT;
|
||||
case RdlPackage.INSTANCE_PROPERTY_REF__PROPERTY:
|
||||
return property != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (propertyEnum: ");
|
||||
result.append(propertyEnum);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //InstancePropertyRefImpl
|
|
@ -0,0 +1,264 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl.impl;
|
||||
|
||||
import com.minres.rdl.rdl.Entity;
|
||||
import com.minres.rdl.rdl.InstanceRef;
|
||||
import com.minres.rdl.rdl.RdlPackage;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Instance Ref</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.InstanceRefImpl#getInstance <em>Instance</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.InstanceRefImpl#getTail <em>Tail</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class InstanceRefImpl extends MinimalEObjectImpl.Container implements InstanceRef
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getInstance() <em>Instance</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getInstance()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected Entity instance;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getTail() <em>Tail</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getTail()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected InstanceRef tail;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected InstanceRefImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return RdlPackage.Literals.INSTANCE_REF;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Entity getInstance()
|
||||
{
|
||||
if (instance != null && instance.eIsProxy())
|
||||
{
|
||||
InternalEObject oldInstance = (InternalEObject)instance;
|
||||
instance = (Entity)eResolveProxy(oldInstance);
|
||||
if (instance != oldInstance)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, RdlPackage.INSTANCE_REF__INSTANCE, oldInstance, instance));
|
||||
}
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public Entity basicGetInstance()
|
||||
{
|
||||
return instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setInstance(Entity newInstance)
|
||||
{
|
||||
Entity oldInstance = instance;
|
||||
instance = newInstance;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.INSTANCE_REF__INSTANCE, oldInstance, instance));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public InstanceRef getTail()
|
||||
{
|
||||
return tail;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetTail(InstanceRef newTail, NotificationChain msgs)
|
||||
{
|
||||
InstanceRef oldTail = tail;
|
||||
tail = newTail;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RdlPackage.INSTANCE_REF__TAIL, oldTail, newTail);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setTail(InstanceRef newTail)
|
||||
{
|
||||
if (newTail != tail)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (tail != null)
|
||||
msgs = ((InternalEObject)tail).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RdlPackage.INSTANCE_REF__TAIL, null, msgs);
|
||||
if (newTail != null)
|
||||
msgs = ((InternalEObject)newTail).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - RdlPackage.INSTANCE_REF__TAIL, null, msgs);
|
||||
msgs = basicSetTail(newTail, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.INSTANCE_REF__TAIL, newTail, newTail));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.INSTANCE_REF__TAIL:
|
||||
return basicSetTail(null, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.INSTANCE_REF__INSTANCE:
|
||||
if (resolve) return getInstance();
|
||||
return basicGetInstance();
|
||||
case RdlPackage.INSTANCE_REF__TAIL:
|
||||
return getTail();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.INSTANCE_REF__INSTANCE:
|
||||
setInstance((Entity)newValue);
|
||||
return;
|
||||
case RdlPackage.INSTANCE_REF__TAIL:
|
||||
setTail((InstanceRef)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.INSTANCE_REF__INSTANCE:
|
||||
setInstance((Entity)null);
|
||||
return;
|
||||
case RdlPackage.INSTANCE_REF__TAIL:
|
||||
setTail((InstanceRef)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.INSTANCE_REF__INSTANCE:
|
||||
return instance != null;
|
||||
case RdlPackage.INSTANCE_REF__TAIL:
|
||||
return tail != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //InstanceRefImpl
|
|
@ -0,0 +1,459 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl.impl;
|
||||
|
||||
import com.minres.rdl.rdl.ComponentDefinition;
|
||||
import com.minres.rdl.rdl.ComponentInstance;
|
||||
import com.minres.rdl.rdl.EnumInstanceType;
|
||||
import com.minres.rdl.rdl.Instantiation;
|
||||
import com.minres.rdl.rdl.RdlPackage;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Instantiation</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.InstantiationImpl#getInstanceType <em>Instance Type</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.InstantiationImpl#getAlias <em>Alias</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.InstantiationImpl#getComponentRef <em>Component Ref</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.InstantiationImpl#getComponent <em>Component</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.InstantiationImpl#getComponentInstances <em>Component Instances</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class InstantiationImpl extends MinimalEObjectImpl.Container implements Instantiation
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getInstanceType() <em>Instance Type</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getInstanceType()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EnumInstanceType instanceType;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getAlias() <em>Alias</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getAlias()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final String ALIAS_EDEFAULT = null;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getAlias() <em>Alias</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getAlias()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected String alias = ALIAS_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getComponentRef() <em>Component Ref</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getComponentRef()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected ComponentDefinition componentRef;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getComponent() <em>Component</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getComponent()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected ComponentDefinition component;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getComponentInstances() <em>Component Instances</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getComponentInstances()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<ComponentInstance> componentInstances;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected InstantiationImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return RdlPackage.Literals.INSTANTIATION;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EnumInstanceType getInstanceType()
|
||||
{
|
||||
return instanceType;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetInstanceType(EnumInstanceType newInstanceType, NotificationChain msgs)
|
||||
{
|
||||
EnumInstanceType oldInstanceType = instanceType;
|
||||
instanceType = newInstanceType;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RdlPackage.INSTANTIATION__INSTANCE_TYPE, oldInstanceType, newInstanceType);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setInstanceType(EnumInstanceType newInstanceType)
|
||||
{
|
||||
if (newInstanceType != instanceType)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (instanceType != null)
|
||||
msgs = ((InternalEObject)instanceType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RdlPackage.INSTANTIATION__INSTANCE_TYPE, null, msgs);
|
||||
if (newInstanceType != null)
|
||||
msgs = ((InternalEObject)newInstanceType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - RdlPackage.INSTANTIATION__INSTANCE_TYPE, null, msgs);
|
||||
msgs = basicSetInstanceType(newInstanceType, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.INSTANTIATION__INSTANCE_TYPE, newInstanceType, newInstanceType));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String getAlias()
|
||||
{
|
||||
return alias;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setAlias(String newAlias)
|
||||
{
|
||||
String oldAlias = alias;
|
||||
alias = newAlias;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.INSTANTIATION__ALIAS, oldAlias, alias));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public ComponentDefinition getComponentRef()
|
||||
{
|
||||
if (componentRef != null && componentRef.eIsProxy())
|
||||
{
|
||||
InternalEObject oldComponentRef = (InternalEObject)componentRef;
|
||||
componentRef = (ComponentDefinition)eResolveProxy(oldComponentRef);
|
||||
if (componentRef != oldComponentRef)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, RdlPackage.INSTANTIATION__COMPONENT_REF, oldComponentRef, componentRef));
|
||||
}
|
||||
}
|
||||
return componentRef;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public ComponentDefinition basicGetComponentRef()
|
||||
{
|
||||
return componentRef;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setComponentRef(ComponentDefinition newComponentRef)
|
||||
{
|
||||
ComponentDefinition oldComponentRef = componentRef;
|
||||
componentRef = newComponentRef;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.INSTANTIATION__COMPONENT_REF, oldComponentRef, componentRef));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public ComponentDefinition getComponent()
|
||||
{
|
||||
return component;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetComponent(ComponentDefinition newComponent, NotificationChain msgs)
|
||||
{
|
||||
ComponentDefinition oldComponent = component;
|
||||
component = newComponent;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RdlPackage.INSTANTIATION__COMPONENT, oldComponent, newComponent);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setComponent(ComponentDefinition newComponent)
|
||||
{
|
||||
if (newComponent != component)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (component != null)
|
||||
msgs = ((InternalEObject)component).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RdlPackage.INSTANTIATION__COMPONENT, null, msgs);
|
||||
if (newComponent != null)
|
||||
msgs = ((InternalEObject)newComponent).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - RdlPackage.INSTANTIATION__COMPONENT, null, msgs);
|
||||
msgs = basicSetComponent(newComponent, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.INSTANTIATION__COMPONENT, newComponent, newComponent));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<ComponentInstance> getComponentInstances()
|
||||
{
|
||||
if (componentInstances == null)
|
||||
{
|
||||
componentInstances = new EObjectContainmentEList<ComponentInstance>(ComponentInstance.class, this, RdlPackage.INSTANTIATION__COMPONENT_INSTANCES);
|
||||
}
|
||||
return componentInstances;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.INSTANTIATION__INSTANCE_TYPE:
|
||||
return basicSetInstanceType(null, msgs);
|
||||
case RdlPackage.INSTANTIATION__COMPONENT:
|
||||
return basicSetComponent(null, msgs);
|
||||
case RdlPackage.INSTANTIATION__COMPONENT_INSTANCES:
|
||||
return ((InternalEList<?>)getComponentInstances()).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 RdlPackage.INSTANTIATION__INSTANCE_TYPE:
|
||||
return getInstanceType();
|
||||
case RdlPackage.INSTANTIATION__ALIAS:
|
||||
return getAlias();
|
||||
case RdlPackage.INSTANTIATION__COMPONENT_REF:
|
||||
if (resolve) return getComponentRef();
|
||||
return basicGetComponentRef();
|
||||
case RdlPackage.INSTANTIATION__COMPONENT:
|
||||
return getComponent();
|
||||
case RdlPackage.INSTANTIATION__COMPONENT_INSTANCES:
|
||||
return getComponentInstances();
|
||||
}
|
||||
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 RdlPackage.INSTANTIATION__INSTANCE_TYPE:
|
||||
setInstanceType((EnumInstanceType)newValue);
|
||||
return;
|
||||
case RdlPackage.INSTANTIATION__ALIAS:
|
||||
setAlias((String)newValue);
|
||||
return;
|
||||
case RdlPackage.INSTANTIATION__COMPONENT_REF:
|
||||
setComponentRef((ComponentDefinition)newValue);
|
||||
return;
|
||||
case RdlPackage.INSTANTIATION__COMPONENT:
|
||||
setComponent((ComponentDefinition)newValue);
|
||||
return;
|
||||
case RdlPackage.INSTANTIATION__COMPONENT_INSTANCES:
|
||||
getComponentInstances().clear();
|
||||
getComponentInstances().addAll((Collection<? extends ComponentInstance>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.INSTANTIATION__INSTANCE_TYPE:
|
||||
setInstanceType((EnumInstanceType)null);
|
||||
return;
|
||||
case RdlPackage.INSTANTIATION__ALIAS:
|
||||
setAlias(ALIAS_EDEFAULT);
|
||||
return;
|
||||
case RdlPackage.INSTANTIATION__COMPONENT_REF:
|
||||
setComponentRef((ComponentDefinition)null);
|
||||
return;
|
||||
case RdlPackage.INSTANTIATION__COMPONENT:
|
||||
setComponent((ComponentDefinition)null);
|
||||
return;
|
||||
case RdlPackage.INSTANTIATION__COMPONENT_INSTANCES:
|
||||
getComponentInstances().clear();
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.INSTANTIATION__INSTANCE_TYPE:
|
||||
return instanceType != null;
|
||||
case RdlPackage.INSTANTIATION__ALIAS:
|
||||
return ALIAS_EDEFAULT == null ? alias != null : !ALIAS_EDEFAULT.equals(alias);
|
||||
case RdlPackage.INSTANTIATION__COMPONENT_REF:
|
||||
return componentRef != null;
|
||||
case RdlPackage.INSTANTIATION__COMPONENT:
|
||||
return component != null;
|
||||
case RdlPackage.INSTANTIATION__COMPONENT_INSTANCES:
|
||||
return componentInstances != null && !componentInstances.isEmpty();
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (alias: ");
|
||||
result.append(alias);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //InstantiationImpl
|
|
@ -0,0 +1,412 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl.impl;
|
||||
|
||||
import com.minres.rdl.rdl.InstanceRef;
|
||||
import com.minres.rdl.rdl.PostPropertyAssignment;
|
||||
import com.minres.rdl.rdl.PropertyAssignmentRhs;
|
||||
import com.minres.rdl.rdl.PropertyDefinition;
|
||||
import com.minres.rdl.rdl.PropertyEnum;
|
||||
import com.minres.rdl.rdl.RdlPackage;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Post Property Assignment</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.PostPropertyAssignmentImpl#getInstance <em>Instance</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.PostPropertyAssignmentImpl#getPropertyEnum <em>Property Enum</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.PostPropertyAssignmentImpl#getProperty <em>Property</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.PostPropertyAssignmentImpl#getRhs <em>Rhs</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class PostPropertyAssignmentImpl extends PropertyAssignmentImpl implements PostPropertyAssignment
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getInstance() <em>Instance</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getInstance()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected InstanceRef instance;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getPropertyEnum() <em>Property Enum</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getPropertyEnum()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final PropertyEnum PROPERTY_ENUM_EDEFAULT = PropertyEnum.UNSPECIFIED;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getPropertyEnum() <em>Property Enum</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getPropertyEnum()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected PropertyEnum propertyEnum = PROPERTY_ENUM_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getProperty() <em>Property</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getProperty()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected PropertyDefinition property;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getRhs() <em>Rhs</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getRhs()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected PropertyAssignmentRhs rhs;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected PostPropertyAssignmentImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return RdlPackage.Literals.POST_PROPERTY_ASSIGNMENT;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public InstanceRef getInstance()
|
||||
{
|
||||
return instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetInstance(InstanceRef newInstance, NotificationChain msgs)
|
||||
{
|
||||
InstanceRef oldInstance = instance;
|
||||
instance = newInstance;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RdlPackage.POST_PROPERTY_ASSIGNMENT__INSTANCE, oldInstance, newInstance);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setInstance(InstanceRef newInstance)
|
||||
{
|
||||
if (newInstance != instance)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (instance != null)
|
||||
msgs = ((InternalEObject)instance).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RdlPackage.POST_PROPERTY_ASSIGNMENT__INSTANCE, null, msgs);
|
||||
if (newInstance != null)
|
||||
msgs = ((InternalEObject)newInstance).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - RdlPackage.POST_PROPERTY_ASSIGNMENT__INSTANCE, null, msgs);
|
||||
msgs = basicSetInstance(newInstance, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.POST_PROPERTY_ASSIGNMENT__INSTANCE, newInstance, newInstance));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public PropertyEnum getPropertyEnum()
|
||||
{
|
||||
return propertyEnum;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setPropertyEnum(PropertyEnum newPropertyEnum)
|
||||
{
|
||||
PropertyEnum oldPropertyEnum = propertyEnum;
|
||||
propertyEnum = newPropertyEnum == null ? PROPERTY_ENUM_EDEFAULT : newPropertyEnum;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.POST_PROPERTY_ASSIGNMENT__PROPERTY_ENUM, oldPropertyEnum, propertyEnum));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public PropertyDefinition getProperty()
|
||||
{
|
||||
if (property != null && property.eIsProxy())
|
||||
{
|
||||
InternalEObject oldProperty = (InternalEObject)property;
|
||||
property = (PropertyDefinition)eResolveProxy(oldProperty);
|
||||
if (property != oldProperty)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, RdlPackage.POST_PROPERTY_ASSIGNMENT__PROPERTY, oldProperty, property));
|
||||
}
|
||||
}
|
||||
return property;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public PropertyDefinition basicGetProperty()
|
||||
{
|
||||
return property;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setProperty(PropertyDefinition newProperty)
|
||||
{
|
||||
PropertyDefinition oldProperty = property;
|
||||
property = newProperty;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.POST_PROPERTY_ASSIGNMENT__PROPERTY, oldProperty, property));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public PropertyAssignmentRhs getRhs()
|
||||
{
|
||||
return rhs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetRhs(PropertyAssignmentRhs newRhs, NotificationChain msgs)
|
||||
{
|
||||
PropertyAssignmentRhs oldRhs = rhs;
|
||||
rhs = newRhs;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RdlPackage.POST_PROPERTY_ASSIGNMENT__RHS, oldRhs, newRhs);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setRhs(PropertyAssignmentRhs newRhs)
|
||||
{
|
||||
if (newRhs != rhs)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (rhs != null)
|
||||
msgs = ((InternalEObject)rhs).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RdlPackage.POST_PROPERTY_ASSIGNMENT__RHS, null, msgs);
|
||||
if (newRhs != null)
|
||||
msgs = ((InternalEObject)newRhs).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - RdlPackage.POST_PROPERTY_ASSIGNMENT__RHS, null, msgs);
|
||||
msgs = basicSetRhs(newRhs, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.POST_PROPERTY_ASSIGNMENT__RHS, newRhs, newRhs));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.POST_PROPERTY_ASSIGNMENT__INSTANCE:
|
||||
return basicSetInstance(null, msgs);
|
||||
case RdlPackage.POST_PROPERTY_ASSIGNMENT__RHS:
|
||||
return basicSetRhs(null, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.POST_PROPERTY_ASSIGNMENT__INSTANCE:
|
||||
return getInstance();
|
||||
case RdlPackage.POST_PROPERTY_ASSIGNMENT__PROPERTY_ENUM:
|
||||
return getPropertyEnum();
|
||||
case RdlPackage.POST_PROPERTY_ASSIGNMENT__PROPERTY:
|
||||
if (resolve) return getProperty();
|
||||
return basicGetProperty();
|
||||
case RdlPackage.POST_PROPERTY_ASSIGNMENT__RHS:
|
||||
return getRhs();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.POST_PROPERTY_ASSIGNMENT__INSTANCE:
|
||||
setInstance((InstanceRef)newValue);
|
||||
return;
|
||||
case RdlPackage.POST_PROPERTY_ASSIGNMENT__PROPERTY_ENUM:
|
||||
setPropertyEnum((PropertyEnum)newValue);
|
||||
return;
|
||||
case RdlPackage.POST_PROPERTY_ASSIGNMENT__PROPERTY:
|
||||
setProperty((PropertyDefinition)newValue);
|
||||
return;
|
||||
case RdlPackage.POST_PROPERTY_ASSIGNMENT__RHS:
|
||||
setRhs((PropertyAssignmentRhs)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.POST_PROPERTY_ASSIGNMENT__INSTANCE:
|
||||
setInstance((InstanceRef)null);
|
||||
return;
|
||||
case RdlPackage.POST_PROPERTY_ASSIGNMENT__PROPERTY_ENUM:
|
||||
setPropertyEnum(PROPERTY_ENUM_EDEFAULT);
|
||||
return;
|
||||
case RdlPackage.POST_PROPERTY_ASSIGNMENT__PROPERTY:
|
||||
setProperty((PropertyDefinition)null);
|
||||
return;
|
||||
case RdlPackage.POST_PROPERTY_ASSIGNMENT__RHS:
|
||||
setRhs((PropertyAssignmentRhs)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.POST_PROPERTY_ASSIGNMENT__INSTANCE:
|
||||
return instance != null;
|
||||
case RdlPackage.POST_PROPERTY_ASSIGNMENT__PROPERTY_ENUM:
|
||||
return propertyEnum != PROPERTY_ENUM_EDEFAULT;
|
||||
case RdlPackage.POST_PROPERTY_ASSIGNMENT__PROPERTY:
|
||||
return property != null;
|
||||
case RdlPackage.POST_PROPERTY_ASSIGNMENT__RHS:
|
||||
return rhs != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if (eIsProxy()) return super.toString();
|
||||
|
||||
StringBuilder result = new StringBuilder(super.toString());
|
||||
result.append(" (propertyEnum: ");
|
||||
result.append(propertyEnum);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //PostPropertyAssignmentImpl
|
|
@ -0,0 +1,43 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl.impl;
|
||||
|
||||
import com.minres.rdl.rdl.PropertyAssignment;
|
||||
import com.minres.rdl.rdl.RdlPackage;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Property Assignment</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class PropertyAssignmentImpl extends MinimalEObjectImpl.Container implements PropertyAssignment
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected PropertyAssignmentImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return RdlPackage.Literals.PROPERTY_ASSIGNMENT;
|
||||
}
|
||||
|
||||
} //PropertyAssignmentImpl
|
|
@ -0,0 +1,487 @@
|
|||
/**
|
||||
* generated by Xtext 2.26.0
|
||||
*/
|
||||
package com.minres.rdl.rdl.impl;
|
||||
|
||||
import com.minres.rdl.rdl.Concat;
|
||||
import com.minres.rdl.rdl.EnumBody;
|
||||
import com.minres.rdl.rdl.EnumDefinition;
|
||||
import com.minres.rdl.rdl.InstancePropertyRef;
|
||||
import com.minres.rdl.rdl.PropertyAssignmentRhs;
|
||||
import com.minres.rdl.rdl.RValue;
|
||||
import com.minres.rdl.rdl.RdlPackage;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Property Assignment Rhs</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.PropertyAssignmentRhsImpl#getValue <em>Value</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.PropertyAssignmentRhsImpl#getInstPropRef <em>Inst Prop Ref</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.PropertyAssignmentRhsImpl#getEnumRef <em>Enum Ref</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.PropertyAssignmentRhsImpl#getEnums <em>Enums</em>}</li>
|
||||
* <li>{@link com.minres.rdl.rdl.impl.PropertyAssignmentRhsImpl#getElements <em>Elements</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class PropertyAssignmentRhsImpl extends MinimalEObjectImpl.Container implements PropertyAssignmentRhs
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getValue() <em>Value</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getValue()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected RValue value;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getInstPropRef() <em>Inst Prop Ref</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getInstPropRef()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected InstancePropertyRef instPropRef;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getEnumRef() <em>Enum Ref</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEnumRef()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EnumDefinition enumRef;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getEnums() <em>Enums</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getEnums()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EnumBody enums;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getElements() <em>Elements</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getElements()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected Concat elements;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected PropertyAssignmentRhsImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return RdlPackage.Literals.PROPERTY_ASSIGNMENT_RHS;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public RValue getValue()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetValue(RValue newValue, NotificationChain msgs)
|
||||
{
|
||||
RValue oldValue = value;
|
||||
value = newValue;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RdlPackage.PROPERTY_ASSIGNMENT_RHS__VALUE, oldValue, newValue);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setValue(RValue newValue)
|
||||
{
|
||||
if (newValue != value)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (value != null)
|
||||
msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RdlPackage.PROPERTY_ASSIGNMENT_RHS__VALUE, null, msgs);
|
||||
if (newValue != null)
|
||||
msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - RdlPackage.PROPERTY_ASSIGNMENT_RHS__VALUE, null, msgs);
|
||||
msgs = basicSetValue(newValue, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.PROPERTY_ASSIGNMENT_RHS__VALUE, newValue, newValue));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public InstancePropertyRef getInstPropRef()
|
||||
{
|
||||
return instPropRef;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetInstPropRef(InstancePropertyRef newInstPropRef, NotificationChain msgs)
|
||||
{
|
||||
InstancePropertyRef oldInstPropRef = instPropRef;
|
||||
instPropRef = newInstPropRef;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RdlPackage.PROPERTY_ASSIGNMENT_RHS__INST_PROP_REF, oldInstPropRef, newInstPropRef);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setInstPropRef(InstancePropertyRef newInstPropRef)
|
||||
{
|
||||
if (newInstPropRef != instPropRef)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (instPropRef != null)
|
||||
msgs = ((InternalEObject)instPropRef).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RdlPackage.PROPERTY_ASSIGNMENT_RHS__INST_PROP_REF, null, msgs);
|
||||
if (newInstPropRef != null)
|
||||
msgs = ((InternalEObject)newInstPropRef).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - RdlPackage.PROPERTY_ASSIGNMENT_RHS__INST_PROP_REF, null, msgs);
|
||||
msgs = basicSetInstPropRef(newInstPropRef, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.PROPERTY_ASSIGNMENT_RHS__INST_PROP_REF, newInstPropRef, newInstPropRef));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EnumDefinition getEnumRef()
|
||||
{
|
||||
if (enumRef != null && enumRef.eIsProxy())
|
||||
{
|
||||
InternalEObject oldEnumRef = (InternalEObject)enumRef;
|
||||
enumRef = (EnumDefinition)eResolveProxy(oldEnumRef);
|
||||
if (enumRef != oldEnumRef)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, RdlPackage.PROPERTY_ASSIGNMENT_RHS__ENUM_REF, oldEnumRef, enumRef));
|
||||
}
|
||||
}
|
||||
return enumRef;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EnumDefinition basicGetEnumRef()
|
||||
{
|
||||
return enumRef;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setEnumRef(EnumDefinition newEnumRef)
|
||||
{
|
||||
EnumDefinition oldEnumRef = enumRef;
|
||||
enumRef = newEnumRef;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.PROPERTY_ASSIGNMENT_RHS__ENUM_REF, oldEnumRef, enumRef));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EnumBody getEnums()
|
||||
{
|
||||
return enums;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetEnums(EnumBody newEnums, NotificationChain msgs)
|
||||
{
|
||||
EnumBody oldEnums = enums;
|
||||
enums = newEnums;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RdlPackage.PROPERTY_ASSIGNMENT_RHS__ENUMS, oldEnums, newEnums);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setEnums(EnumBody newEnums)
|
||||
{
|
||||
if (newEnums != enums)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (enums != null)
|
||||
msgs = ((InternalEObject)enums).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RdlPackage.PROPERTY_ASSIGNMENT_RHS__ENUMS, null, msgs);
|
||||
if (newEnums != null)
|
||||
msgs = ((InternalEObject)newEnums).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - RdlPackage.PROPERTY_ASSIGNMENT_RHS__ENUMS, null, msgs);
|
||||
msgs = basicSetEnums(newEnums, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.PROPERTY_ASSIGNMENT_RHS__ENUMS, newEnums, newEnums));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Concat getElements()
|
||||
{
|
||||
return elements;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetElements(Concat newElements, NotificationChain msgs)
|
||||
{
|
||||
Concat oldElements = elements;
|
||||
elements = newElements;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RdlPackage.PROPERTY_ASSIGNMENT_RHS__ELEMENTS, oldElements, newElements);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setElements(Concat newElements)
|
||||
{
|
||||
if (newElements != elements)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (elements != null)
|
||||
msgs = ((InternalEObject)elements).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RdlPackage.PROPERTY_ASSIGNMENT_RHS__ELEMENTS, null, msgs);
|
||||
if (newElements != null)
|
||||
msgs = ((InternalEObject)newElements).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - RdlPackage.PROPERTY_ASSIGNMENT_RHS__ELEMENTS, null, msgs);
|
||||
msgs = basicSetElements(newElements, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, RdlPackage.PROPERTY_ASSIGNMENT_RHS__ELEMENTS, newElements, newElements));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__VALUE:
|
||||
return basicSetValue(null, msgs);
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__INST_PROP_REF:
|
||||
return basicSetInstPropRef(null, msgs);
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__ENUMS:
|
||||
return basicSetEnums(null, msgs);
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__ELEMENTS:
|
||||
return basicSetElements(null, msgs);
|
||||
}
|
||||
return super.eInverseRemove(otherEnd, featureID, msgs);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__VALUE:
|
||||
return getValue();
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__INST_PROP_REF:
|
||||
return getInstPropRef();
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__ENUM_REF:
|
||||
if (resolve) return getEnumRef();
|
||||
return basicGetEnumRef();
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__ENUMS:
|
||||
return getEnums();
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__ELEMENTS:
|
||||
return getElements();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__VALUE:
|
||||
setValue((RValue)newValue);
|
||||
return;
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__INST_PROP_REF:
|
||||
setInstPropRef((InstancePropertyRef)newValue);
|
||||
return;
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__ENUM_REF:
|
||||
setEnumRef((EnumDefinition)newValue);
|
||||
return;
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__ENUMS:
|
||||
setEnums((EnumBody)newValue);
|
||||
return;
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__ELEMENTS:
|
||||
setElements((Concat)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__VALUE:
|
||||
setValue((RValue)null);
|
||||
return;
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__INST_PROP_REF:
|
||||
setInstPropRef((InstancePropertyRef)null);
|
||||
return;
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__ENUM_REF:
|
||||
setEnumRef((EnumDefinition)null);
|
||||
return;
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__ENUMS:
|
||||
setEnums((EnumBody)null);
|
||||
return;
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__ELEMENTS:
|
||||
setElements((Concat)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__VALUE:
|
||||
return value != null;
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__INST_PROP_REF:
|
||||
return instPropRef != null;
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__ENUM_REF:
|
||||
return enumRef != null;
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__ENUMS:
|
||||
return enums != null;
|
||||
case RdlPackage.PROPERTY_ASSIGNMENT_RHS__ELEMENTS:
|
||||
return elements != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //PropertyAssignmentRhsImpl
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue