mirror of
https://github.com/eMoflon/emoflon-ibex-ui.git
synced 2024-05-20 20:00:25 +00:00
Removes generated code + adds various gitignore entries
This commit is contained in:
parent
c0e3ee3fc8
commit
f91495d692
2
org.emoflon.ibex.gt.editor.ide/.gitignore
vendored
2
org.emoflon.ibex.gt.editor.ide/.gitignore
vendored
|
@ -1,2 +1,4 @@
|
|||
/bin/
|
||||
/xtend-gen/
|
||||
src-gen/
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
org.emoflon.ibex.gt.editor.ide.GTIdeSetup
|
|
@ -1,60 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.ide;
|
||||
|
||||
import com.google.inject.Binder;
|
||||
import com.google.inject.name.Names;
|
||||
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;
|
||||
import org.emoflon.ibex.gt.editor.ide.contentassist.antlr.GTParser;
|
||||
import org.emoflon.ibex.gt.editor.ide.contentassist.antlr.internal.InternalGTLexer;
|
||||
|
||||
/**
|
||||
* Manual modifications go to {@link GTIdeModule}.
|
||||
*/
|
||||
@SuppressWarnings("all")
|
||||
public abstract class AbstractGTIdeModule 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(InternalGTLexer.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends IContentAssistParser> bindIContentAssistParser() {
|
||||
return GTParser.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;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,229 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.ide.contentassist.antlr;
|
||||
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.Singleton;
|
||||
import java.util.Map;
|
||||
import org.eclipse.xtext.AbstractElement;
|
||||
import org.eclipse.xtext.ide.editor.contentassist.antlr.AbstractContentAssistParser;
|
||||
import org.emoflon.ibex.gt.editor.ide.contentassist.antlr.internal.InternalGTParser;
|
||||
import org.emoflon.ibex.gt.editor.services.GTGrammarAccess;
|
||||
|
||||
public class GTParser extends AbstractContentAssistParser {
|
||||
|
||||
@Singleton
|
||||
public static final class NameMappings {
|
||||
|
||||
private final Map<AbstractElement, String> mappings;
|
||||
|
||||
@Inject
|
||||
public NameMappings(GTGrammarAccess 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, GTGrammarAccess grammarAccess) {
|
||||
builder.put(grammarAccess.getEditorGTFileAccess().getAlternatives_1(), "rule__EditorGTFile__Alternatives_1");
|
||||
builder.put(grammarAccess.getEditorParameterOrNodeAccess().getAlternatives(), "rule__EditorParameterOrNode__Alternatives");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getAlternatives_5_1(), "rule__EditorPattern__Alternatives_5_1");
|
||||
builder.put(grammarAccess.getEditorNodeAccess().getAlternatives_5_1(), "rule__EditorNode__Alternatives_5_1");
|
||||
builder.put(grammarAccess.getEditorExpressionAccess().getAlternatives(), "rule__EditorExpression__Alternatives");
|
||||
builder.put(grammarAccess.getEditorLiteralExpressionAccess().getAlternatives(), "rule__EditorLiteralExpression__Alternatives");
|
||||
builder.put(grammarAccess.getEditorLiteralExpressionAccess().getValueAlternatives_0_0(), "rule__EditorLiteralExpression__ValueAlternatives_0_0");
|
||||
builder.put(grammarAccess.getEditorReferenceIteratorAccess().getAlternatives_6(), "rule__EditorReferenceIterator__Alternatives_6");
|
||||
builder.put(grammarAccess.getEditorIteratorAttributeAssignmentAccess().getAlternatives(), "rule__EditorIteratorAttributeAssignment__Alternatives");
|
||||
builder.put(grammarAccess.getEditorSimpleConditionAccess().getAlternatives(), "rule__EditorSimpleCondition__Alternatives");
|
||||
builder.put(grammarAccess.getEditorProbabilityAccess().getAlternatives(), "rule__EditorProbability__Alternatives");
|
||||
builder.put(grammarAccess.getExpExpressionAccess().getAlternatives_0(), "rule__ExpExpression__Alternatives_0");
|
||||
builder.put(grammarAccess.getExpExpressionAccess().getRightAlternatives_1_2_0(), "rule__ExpExpression__RightAlternatives_1_2_0");
|
||||
builder.put(grammarAccess.getOneParameterArithmeticsAccess().getAlternatives(), "rule__OneParameterArithmetics__Alternatives");
|
||||
builder.put(grammarAccess.getArithmeticAttributeAccess().getAlternatives(), "rule__ArithmeticAttribute__Alternatives");
|
||||
builder.put(grammarAccess.getEditorPatternTypeAccess().getAlternatives(), "rule__EditorPatternType__Alternatives");
|
||||
builder.put(grammarAccess.getEditorOperatorAccess().getAlternatives(), "rule__EditorOperator__Alternatives");
|
||||
builder.put(grammarAccess.getEditorRelationAccess().getAlternatives(), "rule__EditorRelation__Alternatives");
|
||||
builder.put(grammarAccess.getEditorApplicationConditionTypeAccess().getAlternatives(), "rule__EditorApplicationConditionType__Alternatives");
|
||||
builder.put(grammarAccess.getPossibleStochasticRangesAccess().getAlternatives(), "rule__PossibleStochasticRanges__Alternatives");
|
||||
builder.put(grammarAccess.getStochasticRangeAccess().getAlternatives(), "rule__StochasticRange__Alternatives");
|
||||
builder.put(grammarAccess.getStochasticDistributionAccess().getAlternatives(), "rule__StochasticDistribution__Alternatives");
|
||||
builder.put(grammarAccess.getMultOperatorAccess().getAlternatives(), "rule__MultOperator__Alternatives");
|
||||
builder.put(grammarAccess.getMinMaxOperatorAccess().getAlternatives(), "rule__MinMaxOperator__Alternatives");
|
||||
builder.put(grammarAccess.getAddOperatorAccess().getAlternatives(), "rule__AddOperator__Alternatives");
|
||||
builder.put(grammarAccess.getAllOneParameterOperatorsAccess().getAlternatives(), "rule__AllOneParameterOperators__Alternatives");
|
||||
builder.put(grammarAccess.getOneParameterOperatorAccess().getAlternatives(), "rule__OneParameterOperator__Alternatives");
|
||||
builder.put(grammarAccess.getEditorGTFileAccess().getGroup(), "rule__EditorGTFile__Group__0");
|
||||
builder.put(grammarAccess.getEditorImportAccess().getGroup(), "rule__EditorImport__Group__0");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getGroup(), "rule__EditorPattern__Group__0");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getGroup_3(), "rule__EditorPattern__Group_3__0");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getGroup_3_1(), "rule__EditorPattern__Group_3_1__0");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getGroup_3_1_1(), "rule__EditorPattern__Group_3_1_1__0");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getGroup_4(), "rule__EditorPattern__Group_4__0");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getGroup_4_2(), "rule__EditorPattern__Group_4_2__0");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getGroup_5(), "rule__EditorPattern__Group_5__0");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getGroup_6(), "rule__EditorPattern__Group_6__0");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getGroup_6_2(), "rule__EditorPattern__Group_6_2__0");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getGroup_7(), "rule__EditorPattern__Group_7__0");
|
||||
builder.put(grammarAccess.getEditorParameterAccess().getGroup(), "rule__EditorParameter__Group__0");
|
||||
builder.put(grammarAccess.getEditorNodeAccess().getGroup(), "rule__EditorNode__Group__0");
|
||||
builder.put(grammarAccess.getEditorNodeAccess().getGroup_5(), "rule__EditorNode__Group_5__0");
|
||||
builder.put(grammarAccess.getEditorAttributeConstraintAccess().getGroup(), "rule__EditorAttributeConstraint__Group__0");
|
||||
builder.put(grammarAccess.getEditorAttributeAssignmentAccess().getGroup(), "rule__EditorAttributeAssignment__Group__0");
|
||||
builder.put(grammarAccess.getEditorAttributeExpressionAccess().getGroup(), "rule__EditorAttributeExpression__Group__0");
|
||||
builder.put(grammarAccess.getEditorCountExpressionAccess().getGroup(), "rule__EditorCountExpression__Group__0");
|
||||
builder.put(grammarAccess.getEditorLiteralExpressionAccess().getGroup_1(), "rule__EditorLiteralExpression__Group_1__0");
|
||||
builder.put(grammarAccess.getNumberAccess().getGroup(), "rule__Number__Group__0");
|
||||
builder.put(grammarAccess.getNumberAccess().getGroup_2(), "rule__Number__Group_2__0");
|
||||
builder.put(grammarAccess.getEditorEnumExpressionAccess().getGroup(), "rule__EditorEnumExpression__Group__0");
|
||||
builder.put(grammarAccess.getEditorParameterExpressionAccess().getGroup(), "rule__EditorParameterExpression__Group__0");
|
||||
builder.put(grammarAccess.getEditorReferenceAccess().getGroup(), "rule__EditorReference__Group__0");
|
||||
builder.put(grammarAccess.getEditorReferenceIteratorAccess().getGroup(), "rule__EditorReferenceIterator__Group__0");
|
||||
builder.put(grammarAccess.getEditorReferenceIteratorAccess().getGroup_4(), "rule__EditorReferenceIterator__Group_4__0");
|
||||
builder.put(grammarAccess.getEditorIteratorAttributeExpressionAccess().getGroup(), "rule__EditorIteratorAttributeExpression__Group__0");
|
||||
builder.put(grammarAccess.getEditorIteratorAttributeAssignmentItrAccess().getGroup(), "rule__EditorIteratorAttributeAssignmentItr__Group__0");
|
||||
builder.put(grammarAccess.getEditorIteratorAttributeAssignmentNodeAccess().getGroup(), "rule__EditorIteratorAttributeAssignmentNode__Group__0");
|
||||
builder.put(grammarAccess.getEditorIteratorReferenceAccess().getGroup(), "rule__EditorIteratorReference__Group__0");
|
||||
builder.put(grammarAccess.getEditorConditionAccess().getGroup(), "rule__EditorCondition__Group__0");
|
||||
builder.put(grammarAccess.getEditorConditionAccess().getGroup_4(), "rule__EditorCondition__Group_4__0");
|
||||
builder.put(grammarAccess.getEditorSimpleConditionAccess().getGroup_0(), "rule__EditorSimpleCondition__Group_0__0");
|
||||
builder.put(grammarAccess.getEditorSimpleConditionAccess().getGroup_1(), "rule__EditorSimpleCondition__Group_1__0");
|
||||
builder.put(grammarAccess.getStochasticFunctionAccess().getGroup(), "rule__StochasticFunction__Group__0");
|
||||
builder.put(grammarAccess.getStochasticFunctionExpressionAccess().getGroup(), "rule__StochasticFunctionExpression__Group__0");
|
||||
builder.put(grammarAccess.getStochasticFunctionExpressionAccess().getGroup_4(), "rule__StochasticFunctionExpression__Group_4__0");
|
||||
builder.put(grammarAccess.getAddExpressionAccess().getGroup(), "rule__AddExpression__Group__0");
|
||||
builder.put(grammarAccess.getAddExpressionAccess().getGroup_1(), "rule__AddExpression__Group_1__0");
|
||||
builder.put(grammarAccess.getMultExpressionAccess().getGroup(), "rule__MultExpression__Group__0");
|
||||
builder.put(grammarAccess.getMultExpressionAccess().getGroup_1(), "rule__MultExpression__Group_1__0");
|
||||
builder.put(grammarAccess.getExpExpressionAccess().getGroup(), "rule__ExpExpression__Group__0");
|
||||
builder.put(grammarAccess.getExpExpressionAccess().getGroup_1(), "rule__ExpExpression__Group_1__0");
|
||||
builder.put(grammarAccess.getMinMaxExpressionAccess().getGroup(), "rule__MinMaxExpression__Group__0");
|
||||
builder.put(grammarAccess.getOneParameterArithmeticsAccess().getGroup_0(), "rule__OneParameterArithmetics__Group_0__0");
|
||||
builder.put(grammarAccess.getEditorGTFileAccess().getImportsAssignment_0(), "rule__EditorGTFile__ImportsAssignment_0");
|
||||
builder.put(grammarAccess.getEditorGTFileAccess().getPatternsAssignment_1_0(), "rule__EditorGTFile__PatternsAssignment_1_0");
|
||||
builder.put(grammarAccess.getEditorGTFileAccess().getConditionsAssignment_1_1(), "rule__EditorGTFile__ConditionsAssignment_1_1");
|
||||
builder.put(grammarAccess.getEditorImportAccess().getNameAssignment_1(), "rule__EditorImport__NameAssignment_1");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getAbstractAssignment_0(), "rule__EditorPattern__AbstractAssignment_0");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getTypeAssignment_1(), "rule__EditorPattern__TypeAssignment_1");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getNameAssignment_2(), "rule__EditorPattern__NameAssignment_2");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getParametersAssignment_3_1_0(), "rule__EditorPattern__ParametersAssignment_3_1_0");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getParametersAssignment_3_1_1_1(), "rule__EditorPattern__ParametersAssignment_3_1_1_1");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getSuperPatternsAssignment_4_1(), "rule__EditorPattern__SuperPatternsAssignment_4_1");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getSuperPatternsAssignment_4_2_1(), "rule__EditorPattern__SuperPatternsAssignment_4_2_1");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getNodesAssignment_5_1_0(), "rule__EditorPattern__NodesAssignment_5_1_0");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getAttributeConstraintsAssignment_5_1_1(), "rule__EditorPattern__AttributeConstraintsAssignment_5_1_1");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getConditionsAssignment_6_1(), "rule__EditorPattern__ConditionsAssignment_6_1");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getConditionsAssignment_6_2_1(), "rule__EditorPattern__ConditionsAssignment_6_2_1");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getStochasticAssignment_7_0(), "rule__EditorPattern__StochasticAssignment_7_0");
|
||||
builder.put(grammarAccess.getEditorPatternAccess().getProbabilityAssignment_7_1(), "rule__EditorPattern__ProbabilityAssignment_7_1");
|
||||
builder.put(grammarAccess.getEditorParameterAccess().getNameAssignment_0(), "rule__EditorParameter__NameAssignment_0");
|
||||
builder.put(grammarAccess.getEditorParameterAccess().getTypeAssignment_2(), "rule__EditorParameter__TypeAssignment_2");
|
||||
builder.put(grammarAccess.getEditorNodeAccess().getOperatorAssignment_0(), "rule__EditorNode__OperatorAssignment_0");
|
||||
builder.put(grammarAccess.getEditorNodeAccess().getLocalAssignment_1(), "rule__EditorNode__LocalAssignment_1");
|
||||
builder.put(grammarAccess.getEditorNodeAccess().getNameAssignment_2(), "rule__EditorNode__NameAssignment_2");
|
||||
builder.put(grammarAccess.getEditorNodeAccess().getTypeAssignment_4(), "rule__EditorNode__TypeAssignment_4");
|
||||
builder.put(grammarAccess.getEditorNodeAccess().getAttributesAssignment_5_1_0(), "rule__EditorNode__AttributesAssignment_5_1_0");
|
||||
builder.put(grammarAccess.getEditorNodeAccess().getReferencesAssignment_5_1_1(), "rule__EditorNode__ReferencesAssignment_5_1_1");
|
||||
builder.put(grammarAccess.getEditorNodeAccess().getIteratorsAssignment_5_1_2(), "rule__EditorNode__IteratorsAssignment_5_1_2");
|
||||
builder.put(grammarAccess.getEditorAttributeConstraintAccess().getLhsAssignment_1(), "rule__EditorAttributeConstraint__LhsAssignment_1");
|
||||
builder.put(grammarAccess.getEditorAttributeConstraintAccess().getRelationAssignment_2(), "rule__EditorAttributeConstraint__RelationAssignment_2");
|
||||
builder.put(grammarAccess.getEditorAttributeConstraintAccess().getRhsAssignment_3(), "rule__EditorAttributeConstraint__RhsAssignment_3");
|
||||
builder.put(grammarAccess.getEditorAttributeAssignmentAccess().getAttributeAssignment_1(), "rule__EditorAttributeAssignment__AttributeAssignment_1");
|
||||
builder.put(grammarAccess.getEditorAttributeAssignmentAccess().getValueAssignment_3(), "rule__EditorAttributeAssignment__ValueAssignment_3");
|
||||
builder.put(grammarAccess.getEditorAttributeExpressionAccess().getNodeAssignment_0(), "rule__EditorAttributeExpression__NodeAssignment_0");
|
||||
builder.put(grammarAccess.getEditorAttributeExpressionAccess().getAttributeAssignment_2(), "rule__EditorAttributeExpression__AttributeAssignment_2");
|
||||
builder.put(grammarAccess.getEditorCountExpressionAccess().getInvokedPattenAssignment_2(), "rule__EditorCountExpression__InvokedPattenAssignment_2");
|
||||
builder.put(grammarAccess.getEditorLiteralExpressionAccess().getValueAssignment_0(), "rule__EditorLiteralExpression__ValueAssignment_0");
|
||||
builder.put(grammarAccess.getEditorLiteralExpressionAccess().getValueAssignment_1_1(), "rule__EditorLiteralExpression__ValueAssignment_1_1");
|
||||
builder.put(grammarAccess.getEditorEnumExpressionAccess().getLiteralAssignment_1(), "rule__EditorEnumExpression__LiteralAssignment_1");
|
||||
builder.put(grammarAccess.getEditorParameterExpressionAccess().getParameterAssignment_1(), "rule__EditorParameterExpression__ParameterAssignment_1");
|
||||
builder.put(grammarAccess.getEditorReferenceAccess().getOperatorAssignment_0(), "rule__EditorReference__OperatorAssignment_0");
|
||||
builder.put(grammarAccess.getEditorReferenceAccess().getTypeAssignment_2(), "rule__EditorReference__TypeAssignment_2");
|
||||
builder.put(grammarAccess.getEditorReferenceAccess().getTargetAssignment_4(), "rule__EditorReference__TargetAssignment_4");
|
||||
builder.put(grammarAccess.getEditorReferenceIteratorAccess().getTypeAssignment_1(), "rule__EditorReferenceIterator__TypeAssignment_1");
|
||||
builder.put(grammarAccess.getEditorReferenceIteratorAccess().getNameAssignment_3(), "rule__EditorReferenceIterator__NameAssignment_3");
|
||||
builder.put(grammarAccess.getEditorReferenceIteratorAccess().getSubTypeAssignment_4_1(), "rule__EditorReferenceIterator__SubTypeAssignment_4_1");
|
||||
builder.put(grammarAccess.getEditorReferenceIteratorAccess().getIteratorAttributesAssignment_6_0(), "rule__EditorReferenceIterator__IteratorAttributesAssignment_6_0");
|
||||
builder.put(grammarAccess.getEditorReferenceIteratorAccess().getReferencesAssignment_6_1(), "rule__EditorReferenceIterator__ReferencesAssignment_6_1");
|
||||
builder.put(grammarAccess.getEditorIteratorAttributeExpressionAccess().getIteratorAssignment_1(), "rule__EditorIteratorAttributeExpression__IteratorAssignment_1");
|
||||
builder.put(grammarAccess.getEditorIteratorAttributeExpressionAccess().getAttributeAssignment_3(), "rule__EditorIteratorAttributeExpression__AttributeAssignment_3");
|
||||
builder.put(grammarAccess.getEditorIteratorAttributeAssignmentItrAccess().getIteratorAttributeAssignment_0(), "rule__EditorIteratorAttributeAssignmentItr__IteratorAttributeAssignment_0");
|
||||
builder.put(grammarAccess.getEditorIteratorAttributeAssignmentItrAccess().getValueAssignment_2(), "rule__EditorIteratorAttributeAssignmentItr__ValueAssignment_2");
|
||||
builder.put(grammarAccess.getEditorIteratorAttributeAssignmentNodeAccess().getNodeAttributeAssignment_0(), "rule__EditorIteratorAttributeAssignmentNode__NodeAttributeAssignment_0");
|
||||
builder.put(grammarAccess.getEditorIteratorAttributeAssignmentNodeAccess().getValueAssignment_2(), "rule__EditorIteratorAttributeAssignmentNode__ValueAssignment_2");
|
||||
builder.put(grammarAccess.getEditorIteratorReferenceAccess().getOperatorAssignment_0(), "rule__EditorIteratorReference__OperatorAssignment_0");
|
||||
builder.put(grammarAccess.getEditorIteratorReferenceAccess().getSourceAssignment_1(), "rule__EditorIteratorReference__SourceAssignment_1");
|
||||
builder.put(grammarAccess.getEditorIteratorReferenceAccess().getTypeAssignment_3(), "rule__EditorIteratorReference__TypeAssignment_3");
|
||||
builder.put(grammarAccess.getEditorIteratorReferenceAccess().getTargetAssignment_5(), "rule__EditorIteratorReference__TargetAssignment_5");
|
||||
builder.put(grammarAccess.getEditorConditionAccess().getNameAssignment_1(), "rule__EditorCondition__NameAssignment_1");
|
||||
builder.put(grammarAccess.getEditorConditionAccess().getConditionsAssignment_3(), "rule__EditorCondition__ConditionsAssignment_3");
|
||||
builder.put(grammarAccess.getEditorConditionAccess().getConditionsAssignment_4_1(), "rule__EditorCondition__ConditionsAssignment_4_1");
|
||||
builder.put(grammarAccess.getEditorSimpleConditionAccess().getConditionAssignment_0_1(), "rule__EditorSimpleCondition__ConditionAssignment_0_1");
|
||||
builder.put(grammarAccess.getEditorSimpleConditionAccess().getTypeAssignment_1_1(), "rule__EditorSimpleCondition__TypeAssignment_1_1");
|
||||
builder.put(grammarAccess.getEditorSimpleConditionAccess().getPatternAssignment_1_2(), "rule__EditorSimpleCondition__PatternAssignment_1_2");
|
||||
builder.put(grammarAccess.getStochasticFunctionAccess().getFunctionExpressionAssignment_0(), "rule__StochasticFunction__FunctionExpressionAssignment_0");
|
||||
builder.put(grammarAccess.getStochasticFunctionAccess().getParameterAssignment_1(), "rule__StochasticFunction__ParameterAssignment_1");
|
||||
builder.put(grammarAccess.getStochasticFunctionExpressionAccess().getOperatorRangeAssignment_0(), "rule__StochasticFunctionExpression__OperatorRangeAssignment_0");
|
||||
builder.put(grammarAccess.getStochasticFunctionExpressionAccess().getDistributionAssignment_1(), "rule__StochasticFunctionExpression__DistributionAssignment_1");
|
||||
builder.put(grammarAccess.getStochasticFunctionExpressionAccess().getMeanAssignment_3(), "rule__StochasticFunctionExpression__MeanAssignment_3");
|
||||
builder.put(grammarAccess.getStochasticFunctionExpressionAccess().getHasSdAssignment_4_0(), "rule__StochasticFunctionExpression__HasSdAssignment_4_0");
|
||||
builder.put(grammarAccess.getStochasticFunctionExpressionAccess().getSdAssignment_4_1(), "rule__StochasticFunctionExpression__SdAssignment_4_1");
|
||||
builder.put(grammarAccess.getArithmeticCalculationExpressionAccess().getExpressionAssignment(), "rule__ArithmeticCalculationExpression__ExpressionAssignment");
|
||||
builder.put(grammarAccess.getAddExpressionAccess().getAddOperatorAssignment_1_1(), "rule__AddExpression__AddOperatorAssignment_1_1");
|
||||
builder.put(grammarAccess.getAddExpressionAccess().getRightAssignment_1_2(), "rule__AddExpression__RightAssignment_1_2");
|
||||
builder.put(grammarAccess.getMultExpressionAccess().getMultOperatorAssignment_1_1(), "rule__MultExpression__MultOperatorAssignment_1_1");
|
||||
builder.put(grammarAccess.getMultExpressionAccess().getRightAssignment_1_2(), "rule__MultExpression__RightAssignment_1_2");
|
||||
builder.put(grammarAccess.getExpExpressionAccess().getRightAssignment_1_2(), "rule__ExpExpression__RightAssignment_1_2");
|
||||
builder.put(grammarAccess.getMinMaxExpressionAccess().getMinMaxOperatorAssignment_1(), "rule__MinMaxExpression__MinMaxOperatorAssignment_1");
|
||||
builder.put(grammarAccess.getMinMaxExpressionAccess().getLeftAssignment_3(), "rule__MinMaxExpression__LeftAssignment_3");
|
||||
builder.put(grammarAccess.getMinMaxExpressionAccess().getRightAssignment_5(), "rule__MinMaxExpression__RightAssignment_5");
|
||||
builder.put(grammarAccess.getOneParameterArithmeticsAccess().getNegativeAssignment_0_1(), "rule__OneParameterArithmetics__NegativeAssignment_0_1");
|
||||
builder.put(grammarAccess.getOneParameterArithmeticsAccess().getOperatorAssignment_0_2(), "rule__OneParameterArithmetics__OperatorAssignment_0_2");
|
||||
builder.put(grammarAccess.getOneParameterArithmeticsAccess().getExpressionAssignment_0_4(), "rule__OneParameterArithmetics__ExpressionAssignment_0_4");
|
||||
}
|
||||
}
|
||||
|
||||
@Inject
|
||||
private NameMappings nameMappings;
|
||||
|
||||
@Inject
|
||||
private GTGrammarAccess grammarAccess;
|
||||
|
||||
@Override
|
||||
protected InternalGTParser createParser() {
|
||||
InternalGTParser result = new InternalGTParser(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" };
|
||||
}
|
||||
|
||||
public GTGrammarAccess getGrammarAccess() {
|
||||
return this.grammarAccess;
|
||||
}
|
||||
|
||||
public void setGrammarAccess(GTGrammarAccess grammarAccess) {
|
||||
this.grammarAccess = grammarAccess;
|
||||
}
|
||||
|
||||
public NameMappings getNameMappings() {
|
||||
return nameMappings;
|
||||
}
|
||||
|
||||
public void setNameMappings(NameMappings nameMappings) {
|
||||
this.nameMappings = nameMappings;
|
||||
}
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.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 PartialGTContentAssistParser extends GTParser {
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -1,125 +0,0 @@
|
|||
'!='=21
|
||||
'#'=54
|
||||
'$context'=15
|
||||
'%'=33
|
||||
'&&'=65
|
||||
'('=45
|
||||
')'=46
|
||||
'*'=31
|
||||
'+'=26
|
||||
'++'=16
|
||||
','=47
|
||||
'-'=27
|
||||
'--'=17
|
||||
'->'=60
|
||||
'.'=55
|
||||
'/'=32
|
||||
':'=53
|
||||
':='=56
|
||||
'<'=23
|
||||
'<='=22
|
||||
'='=64
|
||||
'=='=20
|
||||
'>'=18
|
||||
'>='=19
|
||||
'@'=68
|
||||
'Exp'=30
|
||||
'N'=28
|
||||
'U'=29
|
||||
'^'=66
|
||||
'abs'=37
|
||||
'abstract'=67
|
||||
'condition'=63
|
||||
'cos'=39
|
||||
'count'=57
|
||||
'enforce'=24
|
||||
'enum::'=58
|
||||
'exp'=41
|
||||
'false'=12
|
||||
'forEach'=61
|
||||
'forbid'=25
|
||||
'import'=44
|
||||
'iterator::'=62
|
||||
'ln'=43
|
||||
'local'=69
|
||||
'log'=42
|
||||
'max'=35
|
||||
'min'=34
|
||||
'param::'=59
|
||||
'pattern'=13
|
||||
'refines'=48
|
||||
'rule'=14
|
||||
'sin'=38
|
||||
'sqrt'=36
|
||||
'tan'=40
|
||||
'true'=11
|
||||
'when'=51
|
||||
'{'=49
|
||||
'||'=52
|
||||
'}'=50
|
||||
RULE_ANY_OTHER=10
|
||||
RULE_ID=6
|
||||
RULE_INT=4
|
||||
RULE_ML_COMMENT=7
|
||||
RULE_SL_COMMENT=8
|
||||
RULE_STRING=5
|
||||
RULE_WS=9
|
||||
T__11=11
|
||||
T__12=12
|
||||
T__13=13
|
||||
T__14=14
|
||||
T__15=15
|
||||
T__16=16
|
||||
T__17=17
|
||||
T__18=18
|
||||
T__19=19
|
||||
T__20=20
|
||||
T__21=21
|
||||
T__22=22
|
||||
T__23=23
|
||||
T__24=24
|
||||
T__25=25
|
||||
T__26=26
|
||||
T__27=27
|
||||
T__28=28
|
||||
T__29=29
|
||||
T__30=30
|
||||
T__31=31
|
||||
T__32=32
|
||||
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
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
2
org.emoflon.ibex.gt.editor.tests/.gitignore
vendored
2
org.emoflon.ibex.gt.editor.tests/.gitignore
vendored
|
@ -1,2 +1,4 @@
|
|||
/bin/
|
||||
/xtend-gen/
|
||||
src-gen/
|
||||
|
||||
|
|
|
@ -1,69 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.tests;
|
||||
|
||||
import com.google.inject.Guice;
|
||||
import com.google.inject.Injector;
|
||||
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;
|
||||
import org.emoflon.ibex.gt.editor.GTRuntimeModule;
|
||||
import org.emoflon.ibex.gt.editor.GTStandaloneSetup;
|
||||
|
||||
public class GTInjectorProvider 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 GTStandaloneSetup() {
|
||||
@Override
|
||||
public Injector createInjector() {
|
||||
return Guice.createInjector(createRuntimeModule());
|
||||
}
|
||||
}.createInjectorAndDoEMFRegistration();
|
||||
}
|
||||
|
||||
protected GTRuntimeModule createRuntimeModule() {
|
||||
// make it work also with Maven/Tycho and OSGI
|
||||
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=493672
|
||||
return new GTRuntimeModule() {
|
||||
@Override
|
||||
public ClassLoader bindClassLoaderToInstance() {
|
||||
return GTInjectorProvider.class
|
||||
.getClassLoader();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public void restoreRegistry() {
|
||||
stateBeforeInjectorCreation.restoreGlobalState();
|
||||
stateBeforeInjectorCreation = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setupRegistry() {
|
||||
stateBeforeInjectorCreation = GlobalRegistries.makeCopyOfGlobalState();
|
||||
if (injector == null) {
|
||||
getInjector();
|
||||
}
|
||||
stateAfterInjectorCreation.restoreGlobalState();
|
||||
}
|
||||
}
|
|
@ -1,2 +1,4 @@
|
|||
/bin/
|
||||
/xtend-gen/
|
||||
src-gen/
|
||||
|
||||
|
|
|
@ -13,7 +13,8 @@ Require-Bundle: org.eclipse.core.runtime,
|
|||
org.eclipse.xtext.xbase.junit,
|
||||
org.eclipse.xtext.xbase.testing,
|
||||
org.emoflon.ibex.gt.editor.ui,
|
||||
org.junit;bundle-version="4.12.0"
|
||||
org.junit;bundle-version="4.12.0",
|
||||
org.eclipse.xtext.xbase.ui.testing
|
||||
Export-Package: org.emoflon.ibex.gt.editor.ui.tests;x-internal=true
|
||||
Import-Package: org.hamcrest.core,
|
||||
org.junit;version="4.5.0",
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.ui.tests;
|
||||
|
||||
import com.google.inject.Injector;
|
||||
import org.eclipse.xtext.testing.IInjectorProvider;
|
||||
import org.emoflon.ibex.gt.editor.ui.internal.EditorActivator;
|
||||
|
||||
public class GTUiInjectorProvider implements IInjectorProvider {
|
||||
|
||||
@Override
|
||||
public Injector getInjector() {
|
||||
return EditorActivator.getInstance().getInjector("org.emoflon.ibex.gt.editor.GT");
|
||||
}
|
||||
|
||||
}
|
4
org.emoflon.ibex.gt.editor.ui/.gitignore
vendored
4
org.emoflon.ibex.gt.editor.ui/.gitignore
vendored
|
@ -1,2 +1,4 @@
|
|||
/bin/
|
||||
/xtend-gen/
|
||||
/xtend-gen/
|
||||
src-gen/
|
||||
|
||||
|
|
|
@ -1,293 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.ui;
|
||||
|
||||
import com.google.inject.Binder;
|
||||
import com.google.inject.Provider;
|
||||
import com.google.inject.name.Names;
|
||||
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.emoflon.ibex.gt.editor.ide.contentassist.antlr.GTParser;
|
||||
import org.emoflon.ibex.gt.editor.ide.contentassist.antlr.PartialGTContentAssistParser;
|
||||
import org.emoflon.ibex.gt.editor.ide.contentassist.antlr.internal.InternalGTLexer;
|
||||
import org.emoflon.ibex.gt.editor.ui.contentassist.GTProposalProvider;
|
||||
import org.emoflon.ibex.gt.editor.ui.labeling.GTDescriptionLabelProvider;
|
||||
import org.emoflon.ibex.gt.editor.ui.labeling.GTLabelProvider;
|
||||
import org.emoflon.ibex.gt.editor.ui.outline.GTOutlineTreeProvider;
|
||||
import org.emoflon.ibex.gt.editor.ui.quickfix.GTQuickfixProvider;
|
||||
|
||||
/**
|
||||
* Manual modifications go to {@link GTUiModule}.
|
||||
*/
|
||||
@SuppressWarnings("all")
|
||||
public abstract class AbstractGTUiModule extends DefaultUiModule {
|
||||
|
||||
public AbstractGTUiModule(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(InternalGTLexer.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(org.emoflon.ibex.gt.editor.parser.antlr.internal.InternalGTLexer.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 GTParser.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public void configureContentAssistLexerProvider(Binder binder) {
|
||||
binder.bind(InternalGTLexer.class).toProvider(LexerProvider.create(InternalGTLexer.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.exporting.QualifiedNamesFragment2
|
||||
public Class<? extends IDependentElementsCalculator> bindIDependentElementsCalculator() {
|
||||
return DefaultDependentElementsCalculator.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.ui.labeling.LabelProviderFragment2
|
||||
public Class<? extends ILabelProvider> bindILabelProvider() {
|
||||
return GTLabelProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.labeling.LabelProviderFragment2
|
||||
public void configureResourceUIServiceLabelProvider(Binder binder) {
|
||||
binder.bind(ILabelProvider.class).annotatedWith(ResourceServiceDescriptionLabelProvider.class).to(GTDescriptionLabelProvider.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.outline.OutlineTreeProviderFragment2
|
||||
public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() {
|
||||
return GTOutlineTreeProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.outline.OutlineTreeProviderFragment2
|
||||
public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() {
|
||||
return GTOutlineTreeProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.quickfix.QuickfixProviderFragment2
|
||||
public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() {
|
||||
return GTQuickfixProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.ui.contentAssist.ContentAssistFragment2
|
||||
public Class<? extends IContentProposalProvider> bindIContentProposalProvider() {
|
||||
return GTProposalProvider.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 PartialGTContentAssistParser.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("GT Compare");
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.formatting.Formatter2Fragment2
|
||||
public Class<? extends IContentFormatterFactory> bindIContentFormatterFactory() {
|
||||
return ContentFormatterFactory.class;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.ui;
|
||||
|
||||
import com.google.inject.Injector;
|
||||
import org.eclipse.xtext.ui.guice.AbstractGuiceAwareExecutableExtensionFactory;
|
||||
import org.emoflon.ibex.gt.editor.ui.internal.EditorActivator;
|
||||
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 GTExecutableExtensionFactory extends AbstractGuiceAwareExecutableExtensionFactory {
|
||||
|
||||
@Override
|
||||
protected Bundle getBundle() {
|
||||
return FrameworkUtil.getBundle(EditorActivator.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Injector getInjector() {
|
||||
EditorActivator activator = EditorActivator.getInstance();
|
||||
return activator != null ? activator.getInjector(EditorActivator.ORG_EMOFLON_IBEX_GT_EDITOR_GT) : null;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,400 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.ui.contentassist;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
import org.eclipse.xtext.Alternatives;
|
||||
import org.eclipse.xtext.Assignment;
|
||||
import org.eclipse.xtext.CrossReference;
|
||||
import org.eclipse.xtext.RuleCall;
|
||||
import org.eclipse.xtext.common.ui.contentassist.TerminalsProposalProvider;
|
||||
import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext;
|
||||
import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor;
|
||||
|
||||
/**
|
||||
* Represents a generated, default implementation of superclass {@link TerminalsProposalProvider}.
|
||||
* Methods are dynamically dispatched on the first parameter, i.e., you can override them
|
||||
* with a more concrete subtype.
|
||||
*/
|
||||
public abstract class AbstractGTProposalProvider extends TerminalsProposalProvider {
|
||||
|
||||
public void completeEditorGTFile_Imports(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorGTFile_Patterns(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorGTFile_Conditions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorImport_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorPattern_Abstract(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void completeEditorPattern_Type(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorPattern_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorPattern_Parameters(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorPattern_SuperPatterns(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorPattern_Nodes(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorPattern_AttributeConstraints(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorPattern_Conditions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorPattern_Stochastic(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void completeEditorPattern_Probability(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorParameter_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorParameter_Type(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorNode_Operator(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorNode_Local(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void completeEditorNode_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorNode_Type(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorNode_Attributes(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorNode_References(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorNode_Iterators(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorAttributeConstraint_Lhs(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorAttributeConstraint_Relation(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorAttributeConstraint_Rhs(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorAttributeAssignment_Attribute(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorAttributeAssignment_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorAttributeExpression_Node(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorAttributeExpression_Attribute(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorCountExpression_InvokedPatten(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorLiteralExpression_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
if (assignment.getTerminal() instanceof Alternatives) {
|
||||
// subclasses may override
|
||||
// subclasses may override
|
||||
completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(2)), context, acceptor);
|
||||
}
|
||||
if (assignment.getTerminal() instanceof RuleCall) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
}
|
||||
public void completeEditorEnumExpression_Literal(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorParameterExpression_Parameter(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorReference_Operator(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorReference_Type(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorReference_Target(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorReferenceIterator_Type(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorReferenceIterator_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorReferenceIterator_SubType(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorReferenceIterator_IteratorAttributes(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorReferenceIterator_References(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorIteratorAttributeExpression_Iterator(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorIteratorAttributeExpression_Attribute(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorIteratorAttributeAssignmentItr_IteratorAttribute(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorIteratorAttributeAssignmentItr_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorIteratorAttributeAssignmentNode_NodeAttribute(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorIteratorAttributeAssignmentNode_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorIteratorReference_Operator(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorIteratorReference_Source(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorIteratorReference_Type(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorIteratorReference_Target(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorCondition_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorCondition_Conditions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorSimpleCondition_Condition(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorSimpleCondition_Type(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeEditorSimpleCondition_Pattern(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeStochasticFunction_FunctionExpression(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeStochasticFunction_Parameter(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeStochasticFunctionExpression_OperatorRange(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeStochasticFunctionExpression_Distribution(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeStochasticFunctionExpression_Mean(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeStochasticFunctionExpression_HasSd(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void completeStochasticFunctionExpression_Sd(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeArithmeticCalculationExpression_Expression(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeAddExpression_AddOperator(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeAddExpression_Right(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeMultExpression_MultOperator(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeMultExpression_Right(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeExpExpression_Right(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(0)), context, acceptor);
|
||||
completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(1)), context, acceptor);
|
||||
}
|
||||
public void completeMinMaxExpression_MinMaxOperator(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeMinMaxExpression_Left(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeMinMaxExpression_Right(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeOneParameterArithmetics_Negative(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void completeOneParameterArithmetics_Operator(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
public void completeOneParameterArithmetics_Expression(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
|
||||
}
|
||||
|
||||
public void complete_EditorGTFile(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorParameterOrNode(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorImport(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorPattern(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorPatternType(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorParameter(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorNode(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorOperator(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorAttributeConstraint(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorAttributeAssignment(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorRelation(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorAttributeExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorCountExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorLiteralExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_Number(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorEnumExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorParameterExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorReference(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorReferenceIterator(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorIteratorAttributeExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorIteratorAttributeAssignment(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorIteratorAttributeAssignmentItr(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorIteratorAttributeAssignmentNode(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorIteratorReference(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorCondition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorSimpleCondition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorApplicationConditionType(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_EditorProbability(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_StochasticFunction(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_StochasticFunctionExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_PossibleStochasticRanges(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_StochasticRange(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_StochasticDistribution(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_MultOperator(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_MinMaxOperator(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_AddOperator(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_AllOneParameterOperators(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_OneParameterOperator(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_ArithmeticCalculationExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_ArithmeticExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_AddExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_MultExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_ExpExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_MinMaxExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_OneParameterArithmetics(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
public void complete_ArithmeticAttribute(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
|
||||
// subclasses may override
|
||||
}
|
||||
}
|
|
@ -1,94 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.ui.internal;
|
||||
|
||||
import com.google.common.collect.Maps;
|
||||
import com.google.inject.Guice;
|
||||
import com.google.inject.Injector;
|
||||
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.emoflon.ibex.gt.editor.GTRuntimeModule;
|
||||
import org.emoflon.ibex.gt.editor.ui.GTUiModule;
|
||||
import org.osgi.framework.BundleContext;
|
||||
|
||||
/**
|
||||
* This class was generated. Customizations should only happen in a newly
|
||||
* introduced subclass.
|
||||
*/
|
||||
public class EditorActivator extends AbstractUIPlugin {
|
||||
|
||||
public static final String PLUGIN_ID = "org.emoflon.ibex.gt.editor.ui";
|
||||
public static final String ORG_EMOFLON_IBEX_GT_EDITOR_GT = "org.emoflon.ibex.gt.editor.GT";
|
||||
|
||||
private static final Logger logger = Logger.getLogger(EditorActivator.class);
|
||||
|
||||
private static EditorActivator 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 EditorActivator 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 (ORG_EMOFLON_IBEX_GT_EDITOR_GT.equals(grammar)) {
|
||||
return new GTRuntimeModule();
|
||||
}
|
||||
throw new IllegalArgumentException(grammar);
|
||||
}
|
||||
|
||||
protected com.google.inject.Module getUiModule(String grammar) {
|
||||
if (ORG_EMOFLON_IBEX_GT_EDITOR_GT.equals(grammar)) {
|
||||
return new GTUiModule(this);
|
||||
}
|
||||
throw new IllegalArgumentException(grammar);
|
||||
}
|
||||
|
||||
protected com.google.inject.Module getSharedStateModule() {
|
||||
return new SharedStateModule();
|
||||
}
|
||||
|
||||
|
||||
}
|
3
org.emoflon.ibex.gt.editor/.gitignore
vendored
3
org.emoflon.ibex.gt.editor/.gitignore
vendored
|
@ -1,2 +1,5 @@
|
|||
/bin/
|
||||
/xtend-gen/
|
||||
src-gen/
|
||||
/model/generated/
|
||||
|
||||
|
|
|
@ -1,240 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="gT" nsURI="http://www.emoflon.org/ibex/gt/editor/GT" nsPrefix="gT">
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorGTFile">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="imports" upperBound="-1"
|
||||
eType="#//EditorImport" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="patterns" upperBound="-1"
|
||||
eType="#//EditorPattern" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="conditions" upperBound="-1"
|
||||
eType="#//EditorCondition" containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorParameterOrNode">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorImport">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorPattern">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="abstract" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="#//EditorPatternType"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="parameters" upperBound="-1"
|
||||
eType="#//EditorParameter" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="superPatterns" unique="false"
|
||||
upperBound="-1" eType="#//EditorPattern"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="nodes" upperBound="-1"
|
||||
eType="#//EditorNode" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="attributeConstraints" upperBound="-1"
|
||||
eType="#//EditorAttributeConstraint" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="conditions" unique="false"
|
||||
upperBound="-1" eType="#//EditorCondition"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="stochastic" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="probability" eType="#//EditorProbability"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EEnum" name="EditorPatternType">
|
||||
<eLiterals name="PATTERN" literal="pattern"/>
|
||||
<eLiterals name="RULE" value="1" literal="rule"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorParameter" eSuperTypes="#//EditorParameterOrNode">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EDataType"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorNode" eSuperTypes="#//EditorParameterOrNode">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="operator" eType="#//EditorOperator"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="local" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EClass"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="attributes" upperBound="-1"
|
||||
eType="#//EditorAttributeAssignment" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="references" upperBound="-1"
|
||||
eType="#//EditorReference" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="iterators" upperBound="-1"
|
||||
eType="#//EditorReferenceIterator" containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EEnum" name="EditorOperator">
|
||||
<eLiterals name="CONTEXT" literal="$context"/>
|
||||
<eLiterals name="CREATE" value="1" literal="++"/>
|
||||
<eLiterals name="DELETE" value="2" literal="--"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorAttributeConstraint">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="lhs" eType="#//EditorExpression"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="relation" eType="#//EditorRelation"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="rhs" eType="#//EditorExpression"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorAttributeAssignment">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="attribute" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EAttribute"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="value" eType="#//EditorExpression"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EEnum" name="EditorRelation">
|
||||
<eLiterals name="GREATER" literal=">"/>
|
||||
<eLiterals name="GREATER_OR_EQUAL" value="1" literal=">="/>
|
||||
<eLiterals name="EQUAL" value="2" literal="=="/>
|
||||
<eLiterals name="UNEQUAL" value="3" literal="!="/>
|
||||
<eLiterals name="SMALLER_OR_EQUAL" value="4" literal="<="/>
|
||||
<eLiterals name="SMALLER" value="5" literal="<"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorExpression"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorAttributeExpression" eSuperTypes="#//ArithmeticExpression">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="node" eType="#//EditorNode"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="attribute" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EAttribute"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorCountExpression" eSuperTypes="#//ArithmeticExpression">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="invokedPatten" eType="#//EditorPattern"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorLiteralExpression" eSuperTypes="#//ArithmeticExpression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorEnumExpression" eSuperTypes="#//EditorExpression">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="literal" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EEnumLiteral"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorParameterExpression" eSuperTypes="#//EditorExpression">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="parameter" eType="#//EditorParameter"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorReference">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="operator" eType="#//EditorOperator"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EReference"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="target" eType="#//EditorNode"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorReferenceIterator">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EReference"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="subType" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EClass"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="iteratorAttributes" upperBound="-1"
|
||||
eType="#//EditorIteratorAttributeAssignment" containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="references" upperBound="-1"
|
||||
eType="#//EditorIteratorReference" containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorIteratorAttributeExpression" eSuperTypes="#//ArithmeticExpression">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="iterator" eType="#//EditorReferenceIterator"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="attribute" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EAttribute"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorIteratorAttributeAssignment">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="value" eType="#//EditorExpression"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorIteratorAttributeAssignmentItr"
|
||||
eSuperTypes="#//EditorIteratorAttributeAssignment">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="iteratorAttribute" eType="#//EditorIteratorAttributeExpression"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorIteratorAttributeAssignmentNode"
|
||||
eSuperTypes="#//EditorIteratorAttributeAssignment">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="nodeAttribute" eType="#//EditorAttributeExpression"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorIteratorReference">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="operator" eType="#//EditorOperator"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="source" eType="#//EditorNode"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EReference"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="target" eType="#//EditorReferenceIterator"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorCondition">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="conditions" upperBound="-1"
|
||||
eType="#//EditorSimpleCondition" containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorSimpleCondition"/>
|
||||
<eClassifiers xsi:type="ecore:EEnum" name="EditorApplicationConditionType">
|
||||
<eLiterals name="POSITIVE" literal="enforce"/>
|
||||
<eLiterals name="NEGATIVE" value="1" literal="forbid"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorProbability"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="StochasticFunction" eSuperTypes="#//EditorProbability">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="functionExpression" eType="#//StochasticFunctionExpression"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="parameter" eType="#//ArithmeticExpression"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="StochasticFunctionExpression" eSuperTypes="#//EditorExpression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="operatorRange" eType="#//PossibleStochasticRanges"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="distribution" eType="#//StochasticDistribution"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="mean" eType="#//ArithmeticExpression"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="hasSd" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="sd" eType="#//ArithmeticExpression"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EEnum" name="PossibleStochasticRanges">
|
||||
<eLiterals name="NEUTRAL" literal="NEUTRAL"/>
|
||||
<eLiterals name="POSITIVE" value="1" literal="POSITIVE"/>
|
||||
<eLiterals name="NEGATIVE" value="2" literal="NEGATIVE"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EEnum" name="StochasticDistribution">
|
||||
<eLiterals name="NORMAL" literal="N"/>
|
||||
<eLiterals name="UNIFORM" value="1" literal="U"/>
|
||||
<eLiterals name="EXPONENTIAL" value="2" literal="Exp"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EEnum" name="MultOperator">
|
||||
<eLiterals name="MULTIPLICATION" literal="*"/>
|
||||
<eLiterals name="DIVISION" value="1" literal="/"/>
|
||||
<eLiterals name="MODULO" value="2" literal="%"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EEnum" name="MinMaxOperator">
|
||||
<eLiterals name="MIN" literal="min"/>
|
||||
<eLiterals name="MAX" value="1" literal="max"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EEnum" name="AddOperator">
|
||||
<eLiterals name="ADDITION" literal="+"/>
|
||||
<eLiterals name="SUBTRACTION" value="1" literal="-"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EEnum" name="AllOneParameterOperators">
|
||||
<eLiterals name="BRACKET" literal="BRACKET"/>
|
||||
<eLiterals name="ROOT" value="1" literal="ROOT"/>
|
||||
<eLiterals name="ABSOLUTE" value="2" literal="ABSOLUTE"/>
|
||||
<eLiterals name="SIN" value="3" literal="SIN"/>
|
||||
<eLiterals name="COS" value="4" literal="COS"/>
|
||||
<eLiterals name="TAN" value="5" literal="TAN"/>
|
||||
<eLiterals name="E_EXPONENTIAL" value="6" literal="E_EXPONENTIAL"/>
|
||||
<eLiterals name="LOGARITHMUS" value="7" literal="LOGARITHMUS"/>
|
||||
<eLiterals name="NAT_LOG" value="8" literal="NAT_LOG"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="ArithmeticCalculationExpression" eSuperTypes="#//EditorExpression">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="expression" eType="#//ArithmeticExpression"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="ArithmeticExpression" eSuperTypes="#//EditorProbability"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="StringConstant" eSuperTypes="#//EditorLiteralExpression"/>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorConditionReference" eSuperTypes="#//EditorSimpleCondition">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="condition" eType="#//EditorCondition"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="EditorApplicationCondition" eSuperTypes="#//EditorSimpleCondition">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="#//EditorApplicationConditionType"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="pattern" eType="#//EditorPattern"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="AddExpression" eSuperTypes="#//ArithmeticExpression">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="left" eType="#//ArithmeticExpression"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="addOperator" eType="#//AddOperator"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="right" eType="#//ArithmeticExpression"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="MultExpression" eSuperTypes="#//ArithmeticExpression">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="left" eType="#//ArithmeticExpression"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="multOperator" eType="#//MultOperator"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="right" eType="#//ArithmeticExpression"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="ExpExpression" eSuperTypes="#//ArithmeticExpression">
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="left" eType="#//ArithmeticExpression"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="right" eType="#//ArithmeticExpression"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="MinMaxExpression" eSuperTypes="#//ArithmeticExpression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="minMaxOperator" eType="#//MinMaxOperator"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="left" eType="#//ArithmeticExpression"
|
||||
containment="true"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="right" eType="#//ArithmeticExpression"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
<eClassifiers xsi:type="ecore:EClass" name="OneParameterArithmetics" eSuperTypes="#//ArithmeticExpression">
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="negative" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="operator" eType="#//AllOneParameterOperators"/>
|
||||
<eStructuralFeatures xsi:type="ecore:EReference" name="expression" eType="#//ArithmeticExpression"
|
||||
containment="true"/>
|
||||
</eClassifiers>
|
||||
</ecore:EPackage>
|
|
@ -1,209 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
|
||||
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="generated by Xtext 2.25.0" modelDirectory="/org.emoflon.ibex.gt.editor/src-gen"
|
||||
modelPluginID="org.emoflon.ibex.gt.editor" forceOverwrite="true" modelName="GT"
|
||||
updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
|
||||
complianceLevel="8.0" copyrightFields="false" runtimeVersion="2.20">
|
||||
<genPackages prefix="GT" basePackage="org.emoflon.ibex.gt.editor" disposableProviderFactory="true"
|
||||
fileExtensions="gt" ecorePackage="GT.ecore#/">
|
||||
<genEnums typeSafeEnumCompatible="false" ecoreEnum="GT.ecore#//EditorPatternType">
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//EditorPatternType/PATTERN"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//EditorPatternType/RULE"/>
|
||||
</genEnums>
|
||||
<genEnums typeSafeEnumCompatible="false" ecoreEnum="GT.ecore#//EditorOperator">
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//EditorOperator/CONTEXT"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//EditorOperator/CREATE"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//EditorOperator/DELETE"/>
|
||||
</genEnums>
|
||||
<genEnums typeSafeEnumCompatible="false" ecoreEnum="GT.ecore#//EditorRelation">
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//EditorRelation/GREATER"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//EditorRelation/GREATER_OR_EQUAL"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//EditorRelation/EQUAL"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//EditorRelation/UNEQUAL"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//EditorRelation/SMALLER_OR_EQUAL"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//EditorRelation/SMALLER"/>
|
||||
</genEnums>
|
||||
<genEnums typeSafeEnumCompatible="false" ecoreEnum="GT.ecore#//EditorApplicationConditionType">
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//EditorApplicationConditionType/POSITIVE"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//EditorApplicationConditionType/NEGATIVE"/>
|
||||
</genEnums>
|
||||
<genEnums typeSafeEnumCompatible="false" ecoreEnum="GT.ecore#//PossibleStochasticRanges">
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//PossibleStochasticRanges/NEUTRAL"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//PossibleStochasticRanges/POSITIVE"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//PossibleStochasticRanges/NEGATIVE"/>
|
||||
</genEnums>
|
||||
<genEnums typeSafeEnumCompatible="false" ecoreEnum="GT.ecore#//StochasticDistribution">
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//StochasticDistribution/NORMAL"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//StochasticDistribution/UNIFORM"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//StochasticDistribution/EXPONENTIAL"/>
|
||||
</genEnums>
|
||||
<genEnums typeSafeEnumCompatible="false" ecoreEnum="GT.ecore#//MultOperator">
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//MultOperator/MULTIPLICATION"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//MultOperator/DIVISION"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//MultOperator/MODULO"/>
|
||||
</genEnums>
|
||||
<genEnums typeSafeEnumCompatible="false" ecoreEnum="GT.ecore#//MinMaxOperator">
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//MinMaxOperator/MIN"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//MinMaxOperator/MAX"/>
|
||||
</genEnums>
|
||||
<genEnums typeSafeEnumCompatible="false" ecoreEnum="GT.ecore#//AddOperator">
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//AddOperator/ADDITION"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//AddOperator/SUBTRACTION"/>
|
||||
</genEnums>
|
||||
<genEnums typeSafeEnumCompatible="false" ecoreEnum="GT.ecore#//AllOneParameterOperators">
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//AllOneParameterOperators/BRACKET"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//AllOneParameterOperators/ROOT"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//AllOneParameterOperators/ABSOLUTE"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//AllOneParameterOperators/SIN"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//AllOneParameterOperators/COS"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//AllOneParameterOperators/TAN"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//AllOneParameterOperators/E_EXPONENTIAL"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//AllOneParameterOperators/LOGARITHMUS"/>
|
||||
<genEnumLiterals ecoreEnumLiteral="GT.ecore#//AllOneParameterOperators/NAT_LOG"/>
|
||||
</genEnums>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorGTFile">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//EditorGTFile/imports"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//EditorGTFile/patterns"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//EditorGTFile/conditions"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorParameterOrNode">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GT.ecore#//EditorParameterOrNode/name"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorImport">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GT.ecore#//EditorImport/name"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorPattern">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GT.ecore#//EditorPattern/abstract"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GT.ecore#//EditorPattern/type"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GT.ecore#//EditorPattern/name"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//EditorPattern/parameters"/>
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference GT.ecore#//EditorPattern/superPatterns"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//EditorPattern/nodes"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//EditorPattern/attributeConstraints"/>
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference GT.ecore#//EditorPattern/conditions"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GT.ecore#//EditorPattern/stochastic"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//EditorPattern/probability"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorParameter">
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference GT.ecore#//EditorParameter/type"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorNode">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GT.ecore#//EditorNode/operator"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GT.ecore#//EditorNode/local"/>
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference GT.ecore#//EditorNode/type"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//EditorNode/attributes"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//EditorNode/references"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//EditorNode/iterators"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorAttributeConstraint">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//EditorAttributeConstraint/lhs"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GT.ecore#//EditorAttributeConstraint/relation"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//EditorAttributeConstraint/rhs"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorAttributeAssignment">
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference GT.ecore#//EditorAttributeAssignment/attribute"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//EditorAttributeAssignment/value"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorExpression"/>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorAttributeExpression">
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference GT.ecore#//EditorAttributeExpression/node"/>
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference GT.ecore#//EditorAttributeExpression/attribute"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorCountExpression">
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference GT.ecore#//EditorCountExpression/invokedPatten"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorLiteralExpression">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GT.ecore#//EditorLiteralExpression/value"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorEnumExpression">
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference GT.ecore#//EditorEnumExpression/literal"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorParameterExpression">
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference GT.ecore#//EditorParameterExpression/parameter"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorReference">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GT.ecore#//EditorReference/operator"/>
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference GT.ecore#//EditorReference/type"/>
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference GT.ecore#//EditorReference/target"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorReferenceIterator">
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference GT.ecore#//EditorReferenceIterator/type"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GT.ecore#//EditorReferenceIterator/name"/>
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference GT.ecore#//EditorReferenceIterator/subType"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//EditorReferenceIterator/iteratorAttributes"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//EditorReferenceIterator/references"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorIteratorAttributeExpression">
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference GT.ecore#//EditorIteratorAttributeExpression/iterator"/>
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference GT.ecore#//EditorIteratorAttributeExpression/attribute"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorIteratorAttributeAssignment">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//EditorIteratorAttributeAssignment/value"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorIteratorAttributeAssignmentItr">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//EditorIteratorAttributeAssignmentItr/iteratorAttribute"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorIteratorAttributeAssignmentNode">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//EditorIteratorAttributeAssignmentNode/nodeAttribute"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorIteratorReference">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GT.ecore#//EditorIteratorReference/operator"/>
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference GT.ecore#//EditorIteratorReference/source"/>
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference GT.ecore#//EditorIteratorReference/type"/>
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference GT.ecore#//EditorIteratorReference/target"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorCondition">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GT.ecore#//EditorCondition/name"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//EditorCondition/conditions"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorSimpleCondition"/>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorProbability"/>
|
||||
<genClasses ecoreClass="GT.ecore#//StochasticFunction">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//StochasticFunction/functionExpression"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//StochasticFunction/parameter"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//StochasticFunctionExpression">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GT.ecore#//StochasticFunctionExpression/operatorRange"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GT.ecore#//StochasticFunctionExpression/distribution"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//StochasticFunctionExpression/mean"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GT.ecore#//StochasticFunctionExpression/hasSd"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//StochasticFunctionExpression/sd"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//ArithmeticCalculationExpression">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//ArithmeticCalculationExpression/expression"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//ArithmeticExpression"/>
|
||||
<genClasses ecoreClass="GT.ecore#//StringConstant"/>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorConditionReference">
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference GT.ecore#//EditorConditionReference/condition"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//EditorApplicationCondition">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GT.ecore#//EditorApplicationCondition/type"/>
|
||||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference GT.ecore#//EditorApplicationCondition/pattern"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//AddExpression">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//AddExpression/left"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GT.ecore#//AddExpression/addOperator"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//AddExpression/right"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//MultExpression">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//MultExpression/left"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GT.ecore#//MultExpression/multOperator"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//MultExpression/right"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//ExpExpression">
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//ExpExpression/left"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//ExpExpression/right"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//MinMaxExpression">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GT.ecore#//MinMaxExpression/minMaxOperator"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//MinMaxExpression/left"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//MinMaxExpression/right"/>
|
||||
</genClasses>
|
||||
<genClasses ecoreClass="GT.ecore#//OneParameterArithmetics">
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GT.ecore#//OneParameterArithmetics/negative"/>
|
||||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute GT.ecore#//OneParameterArithmetics/operator"/>
|
||||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference GT.ecore#//OneParameterArithmetics/expression"/>
|
||||
</genClasses>
|
||||
</genPackages>
|
||||
</genmodel:GenModel>
|
|
@ -1,209 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor;
|
||||
|
||||
import com.google.inject.Binder;
|
||||
import com.google.inject.Provider;
|
||||
import com.google.inject.name.Names;
|
||||
import java.util.Properties;
|
||||
import org.eclipse.xtext.Constants;
|
||||
import org.eclipse.xtext.IGrammarAccess;
|
||||
import org.eclipse.xtext.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.DefaultDeclarativeQualifiedNameProvider;
|
||||
import org.eclipse.xtext.naming.IQualifiedNameProvider;
|
||||
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.emoflon.ibex.gt.editor.formatting2.GTFormatter;
|
||||
import org.emoflon.ibex.gt.editor.generator.GTGenerator;
|
||||
import org.emoflon.ibex.gt.editor.parser.antlr.GTAntlrTokenFileProvider;
|
||||
import org.emoflon.ibex.gt.editor.parser.antlr.GTParser;
|
||||
import org.emoflon.ibex.gt.editor.parser.antlr.internal.InternalGTLexer;
|
||||
import org.emoflon.ibex.gt.editor.scoping.GTScopeProvider;
|
||||
import org.emoflon.ibex.gt.editor.serializer.GTSemanticSequencer;
|
||||
import org.emoflon.ibex.gt.editor.serializer.GTSyntacticSequencer;
|
||||
import org.emoflon.ibex.gt.editor.services.GTGrammarAccess;
|
||||
import org.emoflon.ibex.gt.editor.validation.GTValidator;
|
||||
|
||||
/**
|
||||
* Manual modifications go to {@link GTRuntimeModule}.
|
||||
*/
|
||||
@SuppressWarnings("all")
|
||||
public abstract class AbstractGTRuntimeModule extends DefaultRuntimeModule {
|
||||
|
||||
protected Properties properties = null;
|
||||
|
||||
@Override
|
||||
public void configure(Binder binder) {
|
||||
properties = tryBindProperties(binder, "org/emoflon/ibex/gt/editor/GT.properties");
|
||||
super.configure(binder);
|
||||
}
|
||||
|
||||
public void configureLanguageName(Binder binder) {
|
||||
binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("org.emoflon.ibex.gt.editor.GT");
|
||||
}
|
||||
|
||||
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("gt");
|
||||
}
|
||||
|
||||
// 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 GTGrammarAccess.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2
|
||||
public Class<? extends ISemanticSequencer> bindISemanticSequencer() {
|
||||
return GTSemanticSequencer.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2
|
||||
public Class<? extends ISyntacticSequencer> bindISyntacticSequencer() {
|
||||
return GTSyntacticSequencer.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 GTParser.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 GTAntlrTokenFileProvider.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2
|
||||
public Class<? extends Lexer> bindLexer() {
|
||||
return InternalGTLexer.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 InternalGTLexer> provideInternalGTLexer() {
|
||||
return LexerProvider.create(InternalGTLexer.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(InternalGTLexer.class);
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.validation.ValidatorFragment2
|
||||
@SingletonBinding(eager=true)
|
||||
public Class<? extends GTValidator> bindGTValidator() {
|
||||
return GTValidator.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2
|
||||
public Class<? extends IScopeProvider> bindIScopeProvider() {
|
||||
return GTScopeProvider.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.exporting.QualifiedNamesFragment2
|
||||
public Class<? extends IQualifiedNameProvider> bindIQualifiedNameProvider() {
|
||||
return DefaultDeclarativeQualifiedNameProvider.class;
|
||||
}
|
||||
|
||||
// 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 GTGenerator.class;
|
||||
}
|
||||
|
||||
// contributed by org.eclipse.xtext.xtext.generator.formatting.Formatter2Fragment2
|
||||
public Class<? extends IFormatter2> bindIFormatter2() {
|
||||
return GTFormatter.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);
|
||||
}
|
||||
|
||||
}
|
Binary file not shown.
|
@ -1,42 +0,0 @@
|
|||
/*
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor;
|
||||
|
||||
import com.google.inject.Guice;
|
||||
import com.google.inject.Injector;
|
||||
import org.eclipse.emf.ecore.EPackage;
|
||||
import org.eclipse.emf.ecore.resource.Resource;
|
||||
import org.eclipse.xtext.ISetup;
|
||||
import org.eclipse.xtext.common.TerminalsStandaloneSetup;
|
||||
import org.eclipse.xtext.resource.IResourceFactory;
|
||||
import org.eclipse.xtext.resource.IResourceServiceProvider;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
@SuppressWarnings("all")
|
||||
public class GTStandaloneSetupGenerated implements ISetup {
|
||||
|
||||
@Override
|
||||
public Injector createInjectorAndDoEMFRegistration() {
|
||||
TerminalsStandaloneSetup.doSetup();
|
||||
|
||||
Injector injector = createInjector();
|
||||
register(injector);
|
||||
return injector;
|
||||
}
|
||||
|
||||
public Injector createInjector() {
|
||||
return Guice.createInjector(new GTRuntimeModule());
|
||||
}
|
||||
|
||||
public void register(Injector injector) {
|
||||
if (!EPackage.Registry.INSTANCE.containsKey("http://www.emoflon.org/ibex/gt/editor/GT")) {
|
||||
EPackage.Registry.INSTANCE.put("http://www.emoflon.org/ibex/gt/editor/GT", GTPackage.eINSTANCE);
|
||||
}
|
||||
IResourceFactory resourceFactory = injector.getInstance(IResourceFactory.class);
|
||||
IResourceServiceProvider serviceProvider = injector.getInstance(IResourceServiceProvider.class);
|
||||
|
||||
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("gt", resourceFactory);
|
||||
IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("gt", serviceProvider);
|
||||
}
|
||||
}
|
|
@ -1,96 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Add Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.AddExpression#getLeft <em>Left</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.AddExpression#getAddOperator <em>Add Operator</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.AddExpression#getRight <em>Right</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getAddExpression()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface AddExpression extends ArithmeticExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Left</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Left</em>' containment reference.
|
||||
* @see #setLeft(ArithmeticExpression)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getAddExpression_Left()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
ArithmeticExpression getLeft();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.AddExpression#getLeft <em>Left</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Left</em>' containment reference.
|
||||
* @see #getLeft()
|
||||
* @generated
|
||||
*/
|
||||
void setLeft(ArithmeticExpression value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Add Operator</b></em>' attribute.
|
||||
* The literals are from the enumeration {@link org.emoflon.ibex.gt.editor.gT.AddOperator}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Add Operator</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.AddOperator
|
||||
* @see #setAddOperator(AddOperator)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getAddExpression_AddOperator()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
AddOperator getAddOperator();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.AddExpression#getAddOperator <em>Add Operator</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Add Operator</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.AddOperator
|
||||
* @see #getAddOperator()
|
||||
* @generated
|
||||
*/
|
||||
void setAddOperator(AddOperator value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Right</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Right</em>' containment reference.
|
||||
* @see #setRight(ArithmeticExpression)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getAddExpression_Right()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
ArithmeticExpression getRight();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.AddExpression#getRight <em>Right</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Right</em>' containment reference.
|
||||
* @see #getRight()
|
||||
* @generated
|
||||
*/
|
||||
void setRight(ArithmeticExpression value);
|
||||
|
||||
} // AddExpression
|
|
@ -1,225 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
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>Add Operator</b></em>',
|
||||
* and utility methods for working with them.
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getAddOperator()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public enum AddOperator implements Enumerator
|
||||
{
|
||||
/**
|
||||
* The '<em><b>ADDITION</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #ADDITION_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
ADDITION(0, "ADDITION", "+"),
|
||||
|
||||
/**
|
||||
* The '<em><b>SUBTRACTION</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #SUBTRACTION_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
SUBTRACTION(1, "SUBTRACTION", "-");
|
||||
|
||||
/**
|
||||
* The '<em><b>ADDITION</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #ADDITION
|
||||
* @model literal="+"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int ADDITION_VALUE = 0;
|
||||
|
||||
/**
|
||||
* The '<em><b>SUBTRACTION</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #SUBTRACTION
|
||||
* @model literal="-"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int SUBTRACTION_VALUE = 1;
|
||||
|
||||
/**
|
||||
* An array of all the '<em><b>Add Operator</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final AddOperator[] VALUES_ARRAY =
|
||||
new AddOperator[]
|
||||
{
|
||||
ADDITION,
|
||||
SUBTRACTION,
|
||||
};
|
||||
|
||||
/**
|
||||
* A public read-only list of all the '<em><b>Add Operator</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static final List<AddOperator> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Add Operator</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 AddOperator get(String literal)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
AddOperator result = VALUES_ARRAY[i];
|
||||
if (result.toString().equals(literal))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Add Operator</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 AddOperator getByName(String name)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
AddOperator result = VALUES_ARRAY[i];
|
||||
if (result.getName().equals(name))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Add Operator</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 AddOperator get(int value)
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
case ADDITION_VALUE: return ADDITION;
|
||||
case SUBTRACTION_VALUE: return SUBTRACTION;
|
||||
}
|
||||
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 AddOperator(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;
|
||||
}
|
||||
|
||||
} //AddOperator
|
|
@ -1,386 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
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>All One Parameter Operators</b></em>',
|
||||
* and utility methods for working with them.
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getAllOneParameterOperators()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public enum AllOneParameterOperators implements Enumerator
|
||||
{
|
||||
/**
|
||||
* The '<em><b>BRACKET</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #BRACKET_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
BRACKET(0, "BRACKET", "BRACKET"),
|
||||
|
||||
/**
|
||||
* The '<em><b>ROOT</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #ROOT_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
ROOT(1, "ROOT", "ROOT"),
|
||||
|
||||
/**
|
||||
* The '<em><b>ABSOLUTE</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #ABSOLUTE_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
ABSOLUTE(2, "ABSOLUTE", "ABSOLUTE"),
|
||||
|
||||
/**
|
||||
* The '<em><b>SIN</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #SIN_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
SIN(3, "SIN", "SIN"),
|
||||
|
||||
/**
|
||||
* The '<em><b>COS</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #COS_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
COS(4, "COS", "COS"),
|
||||
|
||||
/**
|
||||
* The '<em><b>TAN</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #TAN_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
TAN(5, "TAN", "TAN"),
|
||||
|
||||
/**
|
||||
* The '<em><b>EEXPONENTIAL</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #EEXPONENTIAL_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
EEXPONENTIAL(6, "E_EXPONENTIAL", "E_EXPONENTIAL"),
|
||||
|
||||
/**
|
||||
* The '<em><b>LOGARITHMUS</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #LOGARITHMUS_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
LOGARITHMUS(7, "LOGARITHMUS", "LOGARITHMUS"),
|
||||
|
||||
/**
|
||||
* The '<em><b>NAT LOG</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #NAT_LOG_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
NAT_LOG(8, "NAT_LOG", "NAT_LOG");
|
||||
|
||||
/**
|
||||
* The '<em><b>BRACKET</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #BRACKET
|
||||
* @model
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int BRACKET_VALUE = 0;
|
||||
|
||||
/**
|
||||
* The '<em><b>ROOT</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #ROOT
|
||||
* @model
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int ROOT_VALUE = 1;
|
||||
|
||||
/**
|
||||
* The '<em><b>ABSOLUTE</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #ABSOLUTE
|
||||
* @model
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int ABSOLUTE_VALUE = 2;
|
||||
|
||||
/**
|
||||
* The '<em><b>SIN</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #SIN
|
||||
* @model
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int SIN_VALUE = 3;
|
||||
|
||||
/**
|
||||
* The '<em><b>COS</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #COS
|
||||
* @model
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int COS_VALUE = 4;
|
||||
|
||||
/**
|
||||
* The '<em><b>TAN</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #TAN
|
||||
* @model
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int TAN_VALUE = 5;
|
||||
|
||||
/**
|
||||
* The '<em><b>EEXPONENTIAL</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #EEXPONENTIAL
|
||||
* @model name="E_EXPONENTIAL"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int EEXPONENTIAL_VALUE = 6;
|
||||
|
||||
/**
|
||||
* The '<em><b>LOGARITHMUS</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #LOGARITHMUS
|
||||
* @model
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int LOGARITHMUS_VALUE = 7;
|
||||
|
||||
/**
|
||||
* The '<em><b>NAT LOG</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #NAT_LOG
|
||||
* @model
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int NAT_LOG_VALUE = 8;
|
||||
|
||||
/**
|
||||
* An array of all the '<em><b>All One Parameter Operators</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final AllOneParameterOperators[] VALUES_ARRAY =
|
||||
new AllOneParameterOperators[]
|
||||
{
|
||||
BRACKET,
|
||||
ROOT,
|
||||
ABSOLUTE,
|
||||
SIN,
|
||||
COS,
|
||||
TAN,
|
||||
EEXPONENTIAL,
|
||||
LOGARITHMUS,
|
||||
NAT_LOG,
|
||||
};
|
||||
|
||||
/**
|
||||
* A public read-only list of all the '<em><b>All One Parameter Operators</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static final List<AllOneParameterOperators> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>All One Parameter Operators</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 AllOneParameterOperators get(String literal)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
AllOneParameterOperators result = VALUES_ARRAY[i];
|
||||
if (result.toString().equals(literal))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>All One Parameter Operators</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 AllOneParameterOperators getByName(String name)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
AllOneParameterOperators result = VALUES_ARRAY[i];
|
||||
if (result.getName().equals(name))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>All One Parameter Operators</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 AllOneParameterOperators get(int value)
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
case BRACKET_VALUE: return BRACKET;
|
||||
case ROOT_VALUE: return ROOT;
|
||||
case ABSOLUTE_VALUE: return ABSOLUTE;
|
||||
case SIN_VALUE: return SIN;
|
||||
case COS_VALUE: return COS;
|
||||
case TAN_VALUE: return TAN;
|
||||
case EEXPONENTIAL_VALUE: return EEXPONENTIAL;
|
||||
case LOGARITHMUS_VALUE: return LOGARITHMUS;
|
||||
case NAT_LOG_VALUE: return NAT_LOG;
|
||||
}
|
||||
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 AllOneParameterOperators(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;
|
||||
}
|
||||
|
||||
} //AllOneParameterOperators
|
|
@ -1,47 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Arithmetic Calculation Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.ArithmeticCalculationExpression#getExpression <em>Expression</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getArithmeticCalculationExpression()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface ArithmeticCalculationExpression extends EditorExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Expression</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Expression</em>' containment reference.
|
||||
* @see #setExpression(ArithmeticExpression)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getArithmeticCalculationExpression_Expression()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
ArithmeticExpression getExpression();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.ArithmeticCalculationExpression#getExpression <em>Expression</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Expression</em>' containment reference.
|
||||
* @see #getExpression()
|
||||
* @generated
|
||||
*/
|
||||
void setExpression(ArithmeticExpression value);
|
||||
|
||||
} // ArithmeticCalculationExpression
|
|
@ -1,19 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Arithmetic Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getArithmeticExpression()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface ArithmeticExpression extends EditorProbability
|
||||
{
|
||||
} // ArithmeticExpression
|
|
@ -1,73 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Application Condition</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorApplicationCondition#getType <em>Type</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorApplicationCondition#getPattern <em>Pattern</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorApplicationCondition()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorApplicationCondition extends EditorSimpleCondition
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Type</b></em>' attribute.
|
||||
* The literals are from the enumeration {@link org.emoflon.ibex.gt.editor.gT.EditorApplicationConditionType}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Type</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.EditorApplicationConditionType
|
||||
* @see #setType(EditorApplicationConditionType)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorApplicationCondition_Type()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EditorApplicationConditionType getType();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorApplicationCondition#getType <em>Type</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Type</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.EditorApplicationConditionType
|
||||
* @see #getType()
|
||||
* @generated
|
||||
*/
|
||||
void setType(EditorApplicationConditionType value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Pattern</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Pattern</em>' reference.
|
||||
* @see #setPattern(EditorPattern)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorApplicationCondition_Pattern()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EditorPattern getPattern();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorApplicationCondition#getPattern <em>Pattern</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Pattern</em>' reference.
|
||||
* @see #getPattern()
|
||||
* @generated
|
||||
*/
|
||||
void setPattern(EditorPattern value);
|
||||
|
||||
} // EditorApplicationCondition
|
|
@ -1,225 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
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>Editor Application Condition Type</b></em>',
|
||||
* and utility methods for working with them.
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorApplicationConditionType()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public enum EditorApplicationConditionType implements Enumerator
|
||||
{
|
||||
/**
|
||||
* The '<em><b>POSITIVE</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #POSITIVE_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
POSITIVE(0, "POSITIVE", "enforce"),
|
||||
|
||||
/**
|
||||
* The '<em><b>NEGATIVE</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #NEGATIVE_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
NEGATIVE(1, "NEGATIVE", "forbid");
|
||||
|
||||
/**
|
||||
* The '<em><b>POSITIVE</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #POSITIVE
|
||||
* @model literal="enforce"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int POSITIVE_VALUE = 0;
|
||||
|
||||
/**
|
||||
* The '<em><b>NEGATIVE</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #NEGATIVE
|
||||
* @model literal="forbid"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int NEGATIVE_VALUE = 1;
|
||||
|
||||
/**
|
||||
* An array of all the '<em><b>Editor Application Condition Type</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final EditorApplicationConditionType[] VALUES_ARRAY =
|
||||
new EditorApplicationConditionType[]
|
||||
{
|
||||
POSITIVE,
|
||||
NEGATIVE,
|
||||
};
|
||||
|
||||
/**
|
||||
* A public read-only list of all the '<em><b>Editor Application Condition Type</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static final List<EditorApplicationConditionType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Editor Application Condition 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 EditorApplicationConditionType get(String literal)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
EditorApplicationConditionType result = VALUES_ARRAY[i];
|
||||
if (result.toString().equals(literal))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Editor Application Condition 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 EditorApplicationConditionType getByName(String name)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
EditorApplicationConditionType result = VALUES_ARRAY[i];
|
||||
if (result.getName().equals(name))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Editor Application Condition 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 EditorApplicationConditionType get(int value)
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
case POSITIVE_VALUE: return POSITIVE;
|
||||
case NEGATIVE_VALUE: return NEGATIVE;
|
||||
}
|
||||
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 EditorApplicationConditionType(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;
|
||||
}
|
||||
|
||||
} //EditorApplicationConditionType
|
|
@ -1,72 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
import org.eclipse.emf.ecore.EAttribute;
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Attribute Assignment</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorAttributeAssignment#getAttribute <em>Attribute</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorAttributeAssignment#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorAttributeAssignment()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorAttributeAssignment extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Attribute</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Attribute</em>' reference.
|
||||
* @see #setAttribute(EAttribute)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorAttributeAssignment_Attribute()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EAttribute getAttribute();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorAttributeAssignment#getAttribute <em>Attribute</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Attribute</em>' reference.
|
||||
* @see #getAttribute()
|
||||
* @generated
|
||||
*/
|
||||
void setAttribute(EAttribute value);
|
||||
|
||||
/**
|
||||
* 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(EditorExpression)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorAttributeAssignment_Value()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EditorExpression getValue();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorAttributeAssignment#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(EditorExpression value);
|
||||
|
||||
} // EditorAttributeAssignment
|
|
@ -1,97 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Attribute Constraint</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorAttributeConstraint#getLhs <em>Lhs</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorAttributeConstraint#getRelation <em>Relation</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorAttributeConstraint#getRhs <em>Rhs</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorAttributeConstraint()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorAttributeConstraint extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Lhs</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Lhs</em>' containment reference.
|
||||
* @see #setLhs(EditorExpression)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorAttributeConstraint_Lhs()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EditorExpression getLhs();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorAttributeConstraint#getLhs <em>Lhs</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Lhs</em>' containment reference.
|
||||
* @see #getLhs()
|
||||
* @generated
|
||||
*/
|
||||
void setLhs(EditorExpression value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Relation</b></em>' attribute.
|
||||
* The literals are from the enumeration {@link org.emoflon.ibex.gt.editor.gT.EditorRelation}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Relation</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.EditorRelation
|
||||
* @see #setRelation(EditorRelation)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorAttributeConstraint_Relation()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EditorRelation getRelation();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorAttributeConstraint#getRelation <em>Relation</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Relation</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.EditorRelation
|
||||
* @see #getRelation()
|
||||
* @generated
|
||||
*/
|
||||
void setRelation(EditorRelation 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(EditorExpression)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorAttributeConstraint_Rhs()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EditorExpression getRhs();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorAttributeConstraint#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(EditorExpression value);
|
||||
|
||||
} // EditorAttributeConstraint
|
|
@ -1,71 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
import org.eclipse.emf.ecore.EAttribute;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Attribute Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorAttributeExpression#getNode <em>Node</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorAttributeExpression#getAttribute <em>Attribute</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorAttributeExpression()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorAttributeExpression extends ArithmeticExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Node</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Node</em>' reference.
|
||||
* @see #setNode(EditorNode)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorAttributeExpression_Node()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EditorNode getNode();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorAttributeExpression#getNode <em>Node</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Node</em>' reference.
|
||||
* @see #getNode()
|
||||
* @generated
|
||||
*/
|
||||
void setNode(EditorNode value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Attribute</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Attribute</em>' reference.
|
||||
* @see #setAttribute(EAttribute)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorAttributeExpression_Attribute()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EAttribute getAttribute();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorAttributeExpression#getAttribute <em>Attribute</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Attribute</em>' reference.
|
||||
* @see #getAttribute()
|
||||
* @generated
|
||||
*/
|
||||
void setAttribute(EAttribute value);
|
||||
|
||||
} // EditorAttributeExpression
|
|
@ -1,63 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Condition</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorCondition#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorCondition#getConditions <em>Conditions</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorCondition()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorCondition 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 org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorCondition_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorCondition#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>Conditions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.emoflon.ibex.gt.editor.gT.EditorSimpleCondition}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Conditions</em>' containment reference list.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorCondition_Conditions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<EditorSimpleCondition> getConditions();
|
||||
|
||||
} // EditorCondition
|
|
@ -1,47 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Condition Reference</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorConditionReference#getCondition <em>Condition</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorConditionReference()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorConditionReference extends EditorSimpleCondition
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Condition</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Condition</em>' reference.
|
||||
* @see #setCondition(EditorCondition)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorConditionReference_Condition()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EditorCondition getCondition();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorConditionReference#getCondition <em>Condition</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Condition</em>' reference.
|
||||
* @see #getCondition()
|
||||
* @generated
|
||||
*/
|
||||
void setCondition(EditorCondition value);
|
||||
|
||||
} // EditorConditionReference
|
|
@ -1,47 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Count Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorCountExpression#getInvokedPatten <em>Invoked Patten</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorCountExpression()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorCountExpression extends ArithmeticExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Invoked Patten</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Invoked Patten</em>' reference.
|
||||
* @see #setInvokedPatten(EditorPattern)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorCountExpression_InvokedPatten()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EditorPattern getInvokedPatten();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorCountExpression#getInvokedPatten <em>Invoked Patten</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Invoked Patten</em>' reference.
|
||||
* @see #getInvokedPatten()
|
||||
* @generated
|
||||
*/
|
||||
void setInvokedPatten(EditorPattern value);
|
||||
|
||||
} // EditorCountExpression
|
|
@ -1,48 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
import org.eclipse.emf.ecore.EEnumLiteral;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Enum Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorEnumExpression#getLiteral <em>Literal</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorEnumExpression()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorEnumExpression extends EditorExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Literal</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Literal</em>' reference.
|
||||
* @see #setLiteral(EEnumLiteral)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorEnumExpression_Literal()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EEnumLiteral getLiteral();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorEnumExpression#getLiteral <em>Literal</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Literal</em>' reference.
|
||||
* @see #getLiteral()
|
||||
* @generated
|
||||
*/
|
||||
void setLiteral(EEnumLiteral value);
|
||||
|
||||
} // EditorEnumExpression
|
|
@ -1,20 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorExpression()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorExpression extends EObject
|
||||
{
|
||||
} // EditorExpression
|
|
@ -1,66 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor GT File</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorGTFile#getImports <em>Imports</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorGTFile#getPatterns <em>Patterns</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorGTFile#getConditions <em>Conditions</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorGTFile()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorGTFile extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Imports</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.emoflon.ibex.gt.editor.gT.EditorImport}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Imports</em>' containment reference list.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorGTFile_Imports()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<EditorImport> getImports();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Patterns</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.emoflon.ibex.gt.editor.gT.EditorPattern}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Patterns</em>' containment reference list.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorGTFile_Patterns()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<EditorPattern> getPatterns();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Conditions</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.emoflon.ibex.gt.editor.gT.EditorCondition}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Conditions</em>' containment reference list.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorGTFile_Conditions()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<EditorCondition> getConditions();
|
||||
|
||||
} // EditorGTFile
|
|
@ -1,48 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Import</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorImport#getName <em>Name</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorImport()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorImport 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 org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorImport_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorImport#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);
|
||||
|
||||
} // EditorImport
|
|
@ -1,48 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Iterator Attribute Assignment</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorIteratorAttributeAssignment#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorIteratorAttributeAssignment()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorIteratorAttributeAssignment 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(EditorExpression)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorIteratorAttributeAssignment_Value()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EditorExpression getValue();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorIteratorAttributeAssignment#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(EditorExpression value);
|
||||
|
||||
} // EditorIteratorAttributeAssignment
|
|
@ -1,47 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Iterator Attribute Assignment Itr</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorIteratorAttributeAssignmentItr#getIteratorAttribute <em>Iterator Attribute</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorIteratorAttributeAssignmentItr()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorIteratorAttributeAssignmentItr extends EditorIteratorAttributeAssignment
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Iterator Attribute</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Iterator Attribute</em>' containment reference.
|
||||
* @see #setIteratorAttribute(EditorIteratorAttributeExpression)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorIteratorAttributeAssignmentItr_IteratorAttribute()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EditorIteratorAttributeExpression getIteratorAttribute();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorIteratorAttributeAssignmentItr#getIteratorAttribute <em>Iterator Attribute</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Iterator Attribute</em>' containment reference.
|
||||
* @see #getIteratorAttribute()
|
||||
* @generated
|
||||
*/
|
||||
void setIteratorAttribute(EditorIteratorAttributeExpression value);
|
||||
|
||||
} // EditorIteratorAttributeAssignmentItr
|
|
@ -1,47 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Iterator Attribute Assignment Node</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorIteratorAttributeAssignmentNode#getNodeAttribute <em>Node Attribute</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorIteratorAttributeAssignmentNode()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorIteratorAttributeAssignmentNode extends EditorIteratorAttributeAssignment
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Node Attribute</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Node Attribute</em>' containment reference.
|
||||
* @see #setNodeAttribute(EditorAttributeExpression)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorIteratorAttributeAssignmentNode_NodeAttribute()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EditorAttributeExpression getNodeAttribute();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorIteratorAttributeAssignmentNode#getNodeAttribute <em>Node Attribute</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Node Attribute</em>' containment reference.
|
||||
* @see #getNodeAttribute()
|
||||
* @generated
|
||||
*/
|
||||
void setNodeAttribute(EditorAttributeExpression value);
|
||||
|
||||
} // EditorIteratorAttributeAssignmentNode
|
|
@ -1,71 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
import org.eclipse.emf.ecore.EAttribute;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Iterator Attribute Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorIteratorAttributeExpression#getIterator <em>Iterator</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorIteratorAttributeExpression#getAttribute <em>Attribute</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorIteratorAttributeExpression()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorIteratorAttributeExpression extends ArithmeticExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Iterator</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Iterator</em>' reference.
|
||||
* @see #setIterator(EditorReferenceIterator)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorIteratorAttributeExpression_Iterator()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EditorReferenceIterator getIterator();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorIteratorAttributeExpression#getIterator <em>Iterator</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Iterator</em>' reference.
|
||||
* @see #getIterator()
|
||||
* @generated
|
||||
*/
|
||||
void setIterator(EditorReferenceIterator value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Attribute</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Attribute</em>' reference.
|
||||
* @see #setAttribute(EAttribute)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorIteratorAttributeExpression_Attribute()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EAttribute getAttribute();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorIteratorAttributeExpression#getAttribute <em>Attribute</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Attribute</em>' reference.
|
||||
* @see #getAttribute()
|
||||
* @generated
|
||||
*/
|
||||
void setAttribute(EAttribute value);
|
||||
|
||||
} // EditorIteratorAttributeExpression
|
|
@ -1,121 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
import org.eclipse.emf.ecore.EReference;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Iterator Reference</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorIteratorReference#getOperator <em>Operator</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorIteratorReference#getSource <em>Source</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorIteratorReference#getType <em>Type</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorIteratorReference#getTarget <em>Target</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorIteratorReference()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorIteratorReference extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Operator</b></em>' attribute.
|
||||
* The literals are from the enumeration {@link org.emoflon.ibex.gt.editor.gT.EditorOperator}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Operator</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.EditorOperator
|
||||
* @see #setOperator(EditorOperator)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorIteratorReference_Operator()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EditorOperator getOperator();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorIteratorReference#getOperator <em>Operator</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Operator</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.EditorOperator
|
||||
* @see #getOperator()
|
||||
* @generated
|
||||
*/
|
||||
void setOperator(EditorOperator value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Source</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Source</em>' reference.
|
||||
* @see #setSource(EditorNode)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorIteratorReference_Source()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EditorNode getSource();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorIteratorReference#getSource <em>Source</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Source</em>' reference.
|
||||
* @see #getSource()
|
||||
* @generated
|
||||
*/
|
||||
void setSource(EditorNode value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Type</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Type</em>' reference.
|
||||
* @see #setType(EReference)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorIteratorReference_Type()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EReference getType();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorIteratorReference#getType <em>Type</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Type</em>' reference.
|
||||
* @see #getType()
|
||||
* @generated
|
||||
*/
|
||||
void setType(EReference value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Target</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Target</em>' reference.
|
||||
* @see #setTarget(EditorReferenceIterator)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorIteratorReference_Target()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EditorReferenceIterator getTarget();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorIteratorReference#getTarget <em>Target</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Target</em>' reference.
|
||||
* @see #getTarget()
|
||||
* @generated
|
||||
*/
|
||||
void setTarget(EditorReferenceIterator value);
|
||||
|
||||
} // EditorIteratorReference
|
|
@ -1,47 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Literal Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorLiteralExpression#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorLiteralExpression()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorLiteralExpression extends ArithmeticExpression
|
||||
{
|
||||
/**
|
||||
* 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 org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorLiteralExpression_Value()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getValue();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorLiteralExpression#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);
|
||||
|
||||
} // EditorLiteralExpression
|
|
@ -1,138 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Node</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorNode#getOperator <em>Operator</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorNode#isLocal <em>Local</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorNode#getType <em>Type</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorNode#getAttributes <em>Attributes</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorNode#getReferences <em>References</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorNode#getIterators <em>Iterators</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorNode()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorNode extends EditorParameterOrNode
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Operator</b></em>' attribute.
|
||||
* The literals are from the enumeration {@link org.emoflon.ibex.gt.editor.gT.EditorOperator}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Operator</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.EditorOperator
|
||||
* @see #setOperator(EditorOperator)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorNode_Operator()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EditorOperator getOperator();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorNode#getOperator <em>Operator</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Operator</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.EditorOperator
|
||||
* @see #getOperator()
|
||||
* @generated
|
||||
*/
|
||||
void setOperator(EditorOperator value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Local</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Local</em>' attribute.
|
||||
* @see #setLocal(boolean)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorNode_Local()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
boolean isLocal();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorNode#isLocal <em>Local</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Local</em>' attribute.
|
||||
* @see #isLocal()
|
||||
* @generated
|
||||
*/
|
||||
void setLocal(boolean value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Type</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Type</em>' reference.
|
||||
* @see #setType(EClass)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorNode_Type()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EClass getType();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorNode#getType <em>Type</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Type</em>' reference.
|
||||
* @see #getType()
|
||||
* @generated
|
||||
*/
|
||||
void setType(EClass value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Attributes</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.emoflon.ibex.gt.editor.gT.EditorAttributeAssignment}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Attributes</em>' containment reference list.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorNode_Attributes()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<EditorAttributeAssignment> getAttributes();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>References</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.emoflon.ibex.gt.editor.gT.EditorReference}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>References</em>' containment reference list.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorNode_References()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<EditorReference> getReferences();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Iterators</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.emoflon.ibex.gt.editor.gT.EditorReferenceIterator}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Iterators</em>' containment reference list.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorNode_Iterators()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<EditorReferenceIterator> getIterators();
|
||||
|
||||
} // EditorNode
|
|
@ -1,248 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
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>Editor Operator</b></em>',
|
||||
* and utility methods for working with them.
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorOperator()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public enum EditorOperator implements Enumerator
|
||||
{
|
||||
/**
|
||||
* The '<em><b>CONTEXT</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #CONTEXT_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
CONTEXT(0, "CONTEXT", "$context"),
|
||||
|
||||
/**
|
||||
* The '<em><b>CREATE</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #CREATE_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
CREATE(1, "CREATE", "++"),
|
||||
|
||||
/**
|
||||
* The '<em><b>DELETE</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #DELETE_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
DELETE(2, "DELETE", "--");
|
||||
|
||||
/**
|
||||
* The '<em><b>CONTEXT</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #CONTEXT
|
||||
* @model literal="$context"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int CONTEXT_VALUE = 0;
|
||||
|
||||
/**
|
||||
* The '<em><b>CREATE</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #CREATE
|
||||
* @model literal="++"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int CREATE_VALUE = 1;
|
||||
|
||||
/**
|
||||
* The '<em><b>DELETE</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #DELETE
|
||||
* @model literal="--"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int DELETE_VALUE = 2;
|
||||
|
||||
/**
|
||||
* An array of all the '<em><b>Editor Operator</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final EditorOperator[] VALUES_ARRAY =
|
||||
new EditorOperator[]
|
||||
{
|
||||
CONTEXT,
|
||||
CREATE,
|
||||
DELETE,
|
||||
};
|
||||
|
||||
/**
|
||||
* A public read-only list of all the '<em><b>Editor Operator</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static final List<EditorOperator> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Editor Operator</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 EditorOperator get(String literal)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
EditorOperator result = VALUES_ARRAY[i];
|
||||
if (result.toString().equals(literal))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Editor Operator</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 EditorOperator getByName(String name)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
EditorOperator result = VALUES_ARRAY[i];
|
||||
if (result.getName().equals(name))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Editor Operator</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 EditorOperator get(int value)
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
case CONTEXT_VALUE: return CONTEXT;
|
||||
case CREATE_VALUE: return CREATE;
|
||||
case DELETE_VALUE: return DELETE;
|
||||
}
|
||||
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 EditorOperator(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;
|
||||
}
|
||||
|
||||
} //EditorOperator
|
|
@ -1,48 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
import org.eclipse.emf.ecore.EDataType;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Parameter</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorParameter#getType <em>Type</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorParameter()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorParameter extends EditorParameterOrNode
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Type</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Type</em>' reference.
|
||||
* @see #setType(EDataType)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorParameter_Type()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EDataType getType();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorParameter#getType <em>Type</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Type</em>' reference.
|
||||
* @see #getType()
|
||||
* @generated
|
||||
*/
|
||||
void setType(EDataType value);
|
||||
|
||||
} // EditorParameter
|
|
@ -1,47 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Parameter Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorParameterExpression#getParameter <em>Parameter</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorParameterExpression()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorParameterExpression extends EditorExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Parameter</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Parameter</em>' reference.
|
||||
* @see #setParameter(EditorParameter)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorParameterExpression_Parameter()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EditorParameter getParameter();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorParameterExpression#getParameter <em>Parameter</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Parameter</em>' reference.
|
||||
* @see #getParameter()
|
||||
* @generated
|
||||
*/
|
||||
void setParameter(EditorParameter value);
|
||||
|
||||
} // EditorParameterExpression
|
|
@ -1,48 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Parameter Or Node</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorParameterOrNode#getName <em>Name</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorParameterOrNode()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorParameterOrNode 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 org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorParameterOrNode_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorParameterOrNode#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);
|
||||
|
||||
} // EditorParameterOrNode
|
|
@ -1,210 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Pattern</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorPattern#isAbstract <em>Abstract</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorPattern#getType <em>Type</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorPattern#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorPattern#getParameters <em>Parameters</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorPattern#getSuperPatterns <em>Super Patterns</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorPattern#getNodes <em>Nodes</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorPattern#getAttributeConstraints <em>Attribute Constraints</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorPattern#getConditions <em>Conditions</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorPattern#isStochastic <em>Stochastic</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorPattern#getProbability <em>Probability</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorPattern()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorPattern extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Abstract</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Abstract</em>' attribute.
|
||||
* @see #setAbstract(boolean)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorPattern_Abstract()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
boolean isAbstract();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorPattern#isAbstract <em>Abstract</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Abstract</em>' attribute.
|
||||
* @see #isAbstract()
|
||||
* @generated
|
||||
*/
|
||||
void setAbstract(boolean value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Type</b></em>' attribute.
|
||||
* The literals are from the enumeration {@link org.emoflon.ibex.gt.editor.gT.EditorPatternType}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Type</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.EditorPatternType
|
||||
* @see #setType(EditorPatternType)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorPattern_Type()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EditorPatternType getType();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorPattern#getType <em>Type</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Type</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.EditorPatternType
|
||||
* @see #getType()
|
||||
* @generated
|
||||
*/
|
||||
void setType(EditorPatternType 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 org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorPattern_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorPattern#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>Parameters</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.emoflon.ibex.gt.editor.gT.EditorParameter}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Parameters</em>' containment reference list.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorPattern_Parameters()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<EditorParameter> getParameters();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Super Patterns</b></em>' reference list.
|
||||
* The list contents are of type {@link org.emoflon.ibex.gt.editor.gT.EditorPattern}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Super Patterns</em>' reference list.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorPattern_SuperPatterns()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EList<EditorPattern> getSuperPatterns();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Nodes</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.emoflon.ibex.gt.editor.gT.EditorNode}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Nodes</em>' containment reference list.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorPattern_Nodes()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<EditorNode> getNodes();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Attribute Constraints</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.emoflon.ibex.gt.editor.gT.EditorAttributeConstraint}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Attribute Constraints</em>' containment reference list.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorPattern_AttributeConstraints()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<EditorAttributeConstraint> getAttributeConstraints();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Conditions</b></em>' reference list.
|
||||
* The list contents are of type {@link org.emoflon.ibex.gt.editor.gT.EditorCondition}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Conditions</em>' reference list.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorPattern_Conditions()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EList<EditorCondition> getConditions();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Stochastic</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Stochastic</em>' attribute.
|
||||
* @see #setStochastic(boolean)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorPattern_Stochastic()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
boolean isStochastic();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorPattern#isStochastic <em>Stochastic</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Stochastic</em>' attribute.
|
||||
* @see #isStochastic()
|
||||
* @generated
|
||||
*/
|
||||
void setStochastic(boolean value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Probability</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Probability</em>' containment reference.
|
||||
* @see #setProbability(EditorProbability)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorPattern_Probability()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EditorProbability getProbability();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorPattern#getProbability <em>Probability</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Probability</em>' containment reference.
|
||||
* @see #getProbability()
|
||||
* @generated
|
||||
*/
|
||||
void setProbability(EditorProbability value);
|
||||
|
||||
} // EditorPattern
|
|
@ -1,225 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
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>Editor Pattern Type</b></em>',
|
||||
* and utility methods for working with them.
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorPatternType()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public enum EditorPatternType implements Enumerator
|
||||
{
|
||||
/**
|
||||
* The '<em><b>PATTERN</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #PATTERN_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
PATTERN(0, "PATTERN", "pattern"),
|
||||
|
||||
/**
|
||||
* The '<em><b>RULE</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #RULE_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
RULE(1, "RULE", "rule");
|
||||
|
||||
/**
|
||||
* The '<em><b>PATTERN</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #PATTERN
|
||||
* @model literal="pattern"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int PATTERN_VALUE = 0;
|
||||
|
||||
/**
|
||||
* The '<em><b>RULE</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #RULE
|
||||
* @model literal="rule"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int RULE_VALUE = 1;
|
||||
|
||||
/**
|
||||
* An array of all the '<em><b>Editor Pattern Type</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final EditorPatternType[] VALUES_ARRAY =
|
||||
new EditorPatternType[]
|
||||
{
|
||||
PATTERN,
|
||||
RULE,
|
||||
};
|
||||
|
||||
/**
|
||||
* A public read-only list of all the '<em><b>Editor Pattern Type</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static final List<EditorPatternType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Editor Pattern 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 EditorPatternType get(String literal)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
EditorPatternType result = VALUES_ARRAY[i];
|
||||
if (result.toString().equals(literal))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Editor Pattern 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 EditorPatternType getByName(String name)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
EditorPatternType result = VALUES_ARRAY[i];
|
||||
if (result.getName().equals(name))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Editor Pattern 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 EditorPatternType get(int value)
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
case PATTERN_VALUE: return PATTERN;
|
||||
case RULE_VALUE: return RULE;
|
||||
}
|
||||
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 EditorPatternType(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;
|
||||
}
|
||||
|
||||
} //EditorPatternType
|
|
@ -1,20 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Probability</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorProbability()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorProbability extends EObject
|
||||
{
|
||||
} // EditorProbability
|
|
@ -1,98 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
import org.eclipse.emf.ecore.EReference;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Reference</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorReference#getOperator <em>Operator</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorReference#getType <em>Type</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorReference#getTarget <em>Target</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorReference()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorReference extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Operator</b></em>' attribute.
|
||||
* The literals are from the enumeration {@link org.emoflon.ibex.gt.editor.gT.EditorOperator}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Operator</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.EditorOperator
|
||||
* @see #setOperator(EditorOperator)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorReference_Operator()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EditorOperator getOperator();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorReference#getOperator <em>Operator</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Operator</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.EditorOperator
|
||||
* @see #getOperator()
|
||||
* @generated
|
||||
*/
|
||||
void setOperator(EditorOperator value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Type</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Type</em>' reference.
|
||||
* @see #setType(EReference)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorReference_Type()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EReference getType();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorReference#getType <em>Type</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Type</em>' reference.
|
||||
* @see #getType()
|
||||
* @generated
|
||||
*/
|
||||
void setType(EReference value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Target</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Target</em>' reference.
|
||||
* @see #setTarget(EditorNode)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorReference_Target()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EditorNode getTarget();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorReference#getTarget <em>Target</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Target</em>' reference.
|
||||
* @see #getTarget()
|
||||
* @generated
|
||||
*/
|
||||
void setTarget(EditorNode value);
|
||||
|
||||
} // EditorReference
|
|
@ -1,124 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
import org.eclipse.emf.ecore.EReference;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Reference Iterator</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorReferenceIterator#getType <em>Type</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorReferenceIterator#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorReferenceIterator#getSubType <em>Sub Type</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorReferenceIterator#getIteratorAttributes <em>Iterator Attributes</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.EditorReferenceIterator#getReferences <em>References</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorReferenceIterator()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorReferenceIterator extends EObject
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Type</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Type</em>' reference.
|
||||
* @see #setType(EReference)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorReferenceIterator_Type()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EReference getType();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorReferenceIterator#getType <em>Type</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Type</em>' reference.
|
||||
* @see #getType()
|
||||
* @generated
|
||||
*/
|
||||
void setType(EReference 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 org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorReferenceIterator_Name()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorReferenceIterator#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>Sub Type</b></em>' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Sub Type</em>' reference.
|
||||
* @see #setSubType(EClass)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorReferenceIterator_SubType()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
EClass getSubType();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.EditorReferenceIterator#getSubType <em>Sub Type</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Sub Type</em>' reference.
|
||||
* @see #getSubType()
|
||||
* @generated
|
||||
*/
|
||||
void setSubType(EClass value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Iterator Attributes</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.emoflon.ibex.gt.editor.gT.EditorIteratorAttributeAssignment}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Iterator Attributes</em>' containment reference list.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorReferenceIterator_IteratorAttributes()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<EditorIteratorAttributeAssignment> getIteratorAttributes();
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>References</b></em>' containment reference list.
|
||||
* The list contents are of type {@link org.emoflon.ibex.gt.editor.gT.EditorIteratorReference}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>References</em>' containment reference list.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorReferenceIterator_References()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
EList<EditorIteratorReference> getReferences();
|
||||
|
||||
} // EditorReferenceIterator
|
|
@ -1,317 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
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>Editor Relation</b></em>',
|
||||
* and utility methods for working with them.
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorRelation()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public enum EditorRelation implements Enumerator
|
||||
{
|
||||
/**
|
||||
* The '<em><b>GREATER</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #GREATER_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
GREATER(0, "GREATER", ">"),
|
||||
|
||||
/**
|
||||
* The '<em><b>GREATER OR EQUAL</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #GREATER_OR_EQUAL_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
GREATER_OR_EQUAL(1, "GREATER_OR_EQUAL", ">="),
|
||||
|
||||
/**
|
||||
* The '<em><b>EQUAL</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #EQUAL_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
EQUAL(2, "EQUAL", "=="),
|
||||
|
||||
/**
|
||||
* The '<em><b>UNEQUAL</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #UNEQUAL_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
UNEQUAL(3, "UNEQUAL", "!="),
|
||||
|
||||
/**
|
||||
* The '<em><b>SMALLER OR EQUAL</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #SMALLER_OR_EQUAL_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
SMALLER_OR_EQUAL(4, "SMALLER_OR_EQUAL", "<="),
|
||||
|
||||
/**
|
||||
* The '<em><b>SMALLER</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #SMALLER_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
SMALLER(5, "SMALLER", "<");
|
||||
|
||||
/**
|
||||
* The '<em><b>GREATER</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #GREATER
|
||||
* @model literal=">"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int GREATER_VALUE = 0;
|
||||
|
||||
/**
|
||||
* The '<em><b>GREATER OR EQUAL</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #GREATER_OR_EQUAL
|
||||
* @model literal=">="
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int GREATER_OR_EQUAL_VALUE = 1;
|
||||
|
||||
/**
|
||||
* The '<em><b>EQUAL</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #EQUAL
|
||||
* @model literal="=="
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int EQUAL_VALUE = 2;
|
||||
|
||||
/**
|
||||
* The '<em><b>UNEQUAL</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #UNEQUAL
|
||||
* @model literal="!="
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int UNEQUAL_VALUE = 3;
|
||||
|
||||
/**
|
||||
* The '<em><b>SMALLER OR EQUAL</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #SMALLER_OR_EQUAL
|
||||
* @model literal="<="
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int SMALLER_OR_EQUAL_VALUE = 4;
|
||||
|
||||
/**
|
||||
* The '<em><b>SMALLER</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #SMALLER
|
||||
* @model literal="<"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int SMALLER_VALUE = 5;
|
||||
|
||||
/**
|
||||
* An array of all the '<em><b>Editor Relation</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final EditorRelation[] VALUES_ARRAY =
|
||||
new EditorRelation[]
|
||||
{
|
||||
GREATER,
|
||||
GREATER_OR_EQUAL,
|
||||
EQUAL,
|
||||
UNEQUAL,
|
||||
SMALLER_OR_EQUAL,
|
||||
SMALLER,
|
||||
};
|
||||
|
||||
/**
|
||||
* A public read-only list of all the '<em><b>Editor Relation</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static final List<EditorRelation> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Editor Relation</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 EditorRelation get(String literal)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
EditorRelation result = VALUES_ARRAY[i];
|
||||
if (result.toString().equals(literal))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Editor Relation</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 EditorRelation getByName(String name)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
EditorRelation result = VALUES_ARRAY[i];
|
||||
if (result.getName().equals(name))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Editor Relation</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 EditorRelation get(int value)
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
case GREATER_VALUE: return GREATER;
|
||||
case GREATER_OR_EQUAL_VALUE: return GREATER_OR_EQUAL;
|
||||
case EQUAL_VALUE: return EQUAL;
|
||||
case UNEQUAL_VALUE: return UNEQUAL;
|
||||
case SMALLER_OR_EQUAL_VALUE: return SMALLER_OR_EQUAL;
|
||||
case SMALLER_VALUE: return SMALLER;
|
||||
}
|
||||
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 EditorRelation(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;
|
||||
}
|
||||
|
||||
} //EditorRelation
|
|
@ -1,20 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
import org.eclipse.emf.ecore.EObject;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Editor Simple Condition</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getEditorSimpleCondition()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface EditorSimpleCondition extends EObject
|
||||
{
|
||||
} // EditorSimpleCondition
|
|
@ -1,70 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Exp Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.ExpExpression#getLeft <em>Left</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.ExpExpression#getRight <em>Right</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getExpExpression()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface ExpExpression extends ArithmeticExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Left</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Left</em>' containment reference.
|
||||
* @see #setLeft(ArithmeticExpression)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getExpExpression_Left()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
ArithmeticExpression getLeft();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.ExpExpression#getLeft <em>Left</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Left</em>' containment reference.
|
||||
* @see #getLeft()
|
||||
* @generated
|
||||
*/
|
||||
void setLeft(ArithmeticExpression value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Right</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Right</em>' containment reference.
|
||||
* @see #setRight(ArithmeticExpression)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getExpExpression_Right()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
ArithmeticExpression getRight();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.ExpExpression#getRight <em>Right</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Right</em>' containment reference.
|
||||
* @see #getRight()
|
||||
* @generated
|
||||
*/
|
||||
void setRight(ArithmeticExpression value);
|
||||
|
||||
} // ExpExpression
|
|
@ -1,359 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
import org.eclipse.emf.ecore.EFactory;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* The <b>Factory</b> for the model.
|
||||
* It provides a create method for each non-abstract class of the model.
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage
|
||||
* @generated
|
||||
*/
|
||||
public interface GTFactory extends EFactory
|
||||
{
|
||||
/**
|
||||
* The singleton instance of the factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
GTFactory eINSTANCE = org.emoflon.ibex.gt.editor.gT.impl.GTFactoryImpl.init();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor GT File</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor GT File</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorGTFile createEditorGTFile();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Parameter Or Node</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Parameter Or Node</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorParameterOrNode createEditorParameterOrNode();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Import</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Import</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorImport createEditorImport();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Pattern</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Pattern</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorPattern createEditorPattern();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Parameter</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Parameter</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorParameter createEditorParameter();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Node</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Node</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorNode createEditorNode();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Attribute Constraint</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Attribute Constraint</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorAttributeConstraint createEditorAttributeConstraint();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Attribute Assignment</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Attribute Assignment</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorAttributeAssignment createEditorAttributeAssignment();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Expression</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Expression</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorExpression createEditorExpression();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Attribute Expression</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Attribute Expression</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorAttributeExpression createEditorAttributeExpression();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Count Expression</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Count Expression</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorCountExpression createEditorCountExpression();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Literal Expression</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Literal Expression</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorLiteralExpression createEditorLiteralExpression();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Enum Expression</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Enum Expression</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorEnumExpression createEditorEnumExpression();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Parameter Expression</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Parameter Expression</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorParameterExpression createEditorParameterExpression();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Reference</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Reference</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorReference createEditorReference();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Reference Iterator</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Reference Iterator</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorReferenceIterator createEditorReferenceIterator();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Iterator Attribute Expression</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Iterator Attribute Expression</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorIteratorAttributeExpression createEditorIteratorAttributeExpression();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Iterator Attribute Assignment</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Iterator Attribute Assignment</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorIteratorAttributeAssignment createEditorIteratorAttributeAssignment();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Iterator Attribute Assignment Itr</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Iterator Attribute Assignment Itr</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorIteratorAttributeAssignmentItr createEditorIteratorAttributeAssignmentItr();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Iterator Attribute Assignment Node</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Iterator Attribute Assignment Node</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorIteratorAttributeAssignmentNode createEditorIteratorAttributeAssignmentNode();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Iterator Reference</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Iterator Reference</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorIteratorReference createEditorIteratorReference();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Condition</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Condition</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorCondition createEditorCondition();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Simple Condition</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Simple Condition</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorSimpleCondition createEditorSimpleCondition();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Probability</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Probability</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorProbability createEditorProbability();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Stochastic Function</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Stochastic Function</em>'.
|
||||
* @generated
|
||||
*/
|
||||
StochasticFunction createStochasticFunction();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Stochastic Function Expression</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Stochastic Function Expression</em>'.
|
||||
* @generated
|
||||
*/
|
||||
StochasticFunctionExpression createStochasticFunctionExpression();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Arithmetic Calculation Expression</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Arithmetic Calculation Expression</em>'.
|
||||
* @generated
|
||||
*/
|
||||
ArithmeticCalculationExpression createArithmeticCalculationExpression();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Arithmetic Expression</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Arithmetic Expression</em>'.
|
||||
* @generated
|
||||
*/
|
||||
ArithmeticExpression createArithmeticExpression();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>String Constant</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>String Constant</em>'.
|
||||
* @generated
|
||||
*/
|
||||
StringConstant createStringConstant();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Condition Reference</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Condition Reference</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorConditionReference createEditorConditionReference();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Editor Application Condition</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Editor Application Condition</em>'.
|
||||
* @generated
|
||||
*/
|
||||
EditorApplicationCondition createEditorApplicationCondition();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Add Expression</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Add Expression</em>'.
|
||||
* @generated
|
||||
*/
|
||||
AddExpression createAddExpression();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Mult Expression</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Mult Expression</em>'.
|
||||
* @generated
|
||||
*/
|
||||
MultExpression createMultExpression();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Exp Expression</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Exp Expression</em>'.
|
||||
* @generated
|
||||
*/
|
||||
ExpExpression createExpExpression();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>Min Max Expression</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>Min Max Expression</em>'.
|
||||
* @generated
|
||||
*/
|
||||
MinMaxExpression createMinMaxExpression();
|
||||
|
||||
/**
|
||||
* Returns a new object of class '<em>One Parameter Arithmetics</em>'.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return a new object of class '<em>One Parameter Arithmetics</em>'.
|
||||
* @generated
|
||||
*/
|
||||
OneParameterArithmetics createOneParameterArithmetics();
|
||||
|
||||
/**
|
||||
* Returns the package supported by this factory.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the package supported by this factory.
|
||||
* @generated
|
||||
*/
|
||||
GTPackage getGTPackage();
|
||||
|
||||
} //GTFactory
|
File diff suppressed because it is too large
Load diff
|
@ -1,96 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Min Max Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.MinMaxExpression#getMinMaxOperator <em>Min Max Operator</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.MinMaxExpression#getLeft <em>Left</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.MinMaxExpression#getRight <em>Right</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getMinMaxExpression()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface MinMaxExpression extends ArithmeticExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Min Max Operator</b></em>' attribute.
|
||||
* The literals are from the enumeration {@link org.emoflon.ibex.gt.editor.gT.MinMaxOperator}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Min Max Operator</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.MinMaxOperator
|
||||
* @see #setMinMaxOperator(MinMaxOperator)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getMinMaxExpression_MinMaxOperator()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
MinMaxOperator getMinMaxOperator();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.MinMaxExpression#getMinMaxOperator <em>Min Max Operator</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Min Max Operator</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.MinMaxOperator
|
||||
* @see #getMinMaxOperator()
|
||||
* @generated
|
||||
*/
|
||||
void setMinMaxOperator(MinMaxOperator value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Left</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Left</em>' containment reference.
|
||||
* @see #setLeft(ArithmeticExpression)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getMinMaxExpression_Left()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
ArithmeticExpression getLeft();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.MinMaxExpression#getLeft <em>Left</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Left</em>' containment reference.
|
||||
* @see #getLeft()
|
||||
* @generated
|
||||
*/
|
||||
void setLeft(ArithmeticExpression value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Right</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Right</em>' containment reference.
|
||||
* @see #setRight(ArithmeticExpression)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getMinMaxExpression_Right()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
ArithmeticExpression getRight();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.MinMaxExpression#getRight <em>Right</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Right</em>' containment reference.
|
||||
* @see #getRight()
|
||||
* @generated
|
||||
*/
|
||||
void setRight(ArithmeticExpression value);
|
||||
|
||||
} // MinMaxExpression
|
|
@ -1,225 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
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>Min Max Operator</b></em>',
|
||||
* and utility methods for working with them.
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getMinMaxOperator()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public enum MinMaxOperator implements Enumerator
|
||||
{
|
||||
/**
|
||||
* The '<em><b>MIN</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #MIN_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
MIN(0, "MIN", "min"),
|
||||
|
||||
/**
|
||||
* The '<em><b>MAX</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #MAX_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
MAX(1, "MAX", "max");
|
||||
|
||||
/**
|
||||
* The '<em><b>MIN</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #MIN
|
||||
* @model literal="min"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int MIN_VALUE = 0;
|
||||
|
||||
/**
|
||||
* The '<em><b>MAX</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #MAX
|
||||
* @model literal="max"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int MAX_VALUE = 1;
|
||||
|
||||
/**
|
||||
* An array of all the '<em><b>Min Max Operator</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final MinMaxOperator[] VALUES_ARRAY =
|
||||
new MinMaxOperator[]
|
||||
{
|
||||
MIN,
|
||||
MAX,
|
||||
};
|
||||
|
||||
/**
|
||||
* A public read-only list of all the '<em><b>Min Max Operator</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static final List<MinMaxOperator> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Min Max Operator</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 MinMaxOperator get(String literal)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
MinMaxOperator result = VALUES_ARRAY[i];
|
||||
if (result.toString().equals(literal))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Min Max Operator</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 MinMaxOperator getByName(String name)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
MinMaxOperator result = VALUES_ARRAY[i];
|
||||
if (result.getName().equals(name))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Min Max Operator</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 MinMaxOperator get(int value)
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
case MIN_VALUE: return MIN;
|
||||
case MAX_VALUE: return MAX;
|
||||
}
|
||||
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 MinMaxOperator(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;
|
||||
}
|
||||
|
||||
} //MinMaxOperator
|
|
@ -1,96 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Mult Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.MultExpression#getLeft <em>Left</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.MultExpression#getMultOperator <em>Mult Operator</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.MultExpression#getRight <em>Right</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getMultExpression()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface MultExpression extends ArithmeticExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Left</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Left</em>' containment reference.
|
||||
* @see #setLeft(ArithmeticExpression)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getMultExpression_Left()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
ArithmeticExpression getLeft();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.MultExpression#getLeft <em>Left</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Left</em>' containment reference.
|
||||
* @see #getLeft()
|
||||
* @generated
|
||||
*/
|
||||
void setLeft(ArithmeticExpression value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Mult Operator</b></em>' attribute.
|
||||
* The literals are from the enumeration {@link org.emoflon.ibex.gt.editor.gT.MultOperator}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Mult Operator</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.MultOperator
|
||||
* @see #setMultOperator(MultOperator)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getMultExpression_MultOperator()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
MultOperator getMultOperator();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.MultExpression#getMultOperator <em>Mult Operator</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Mult Operator</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.MultOperator
|
||||
* @see #getMultOperator()
|
||||
* @generated
|
||||
*/
|
||||
void setMultOperator(MultOperator value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Right</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Right</em>' containment reference.
|
||||
* @see #setRight(ArithmeticExpression)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getMultExpression_Right()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
ArithmeticExpression getRight();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.MultExpression#getRight <em>Right</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Right</em>' containment reference.
|
||||
* @see #getRight()
|
||||
* @generated
|
||||
*/
|
||||
void setRight(ArithmeticExpression value);
|
||||
|
||||
} // MultExpression
|
|
@ -1,248 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
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>Mult Operator</b></em>',
|
||||
* and utility methods for working with them.
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getMultOperator()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public enum MultOperator implements Enumerator
|
||||
{
|
||||
/**
|
||||
* The '<em><b>MULTIPLICATION</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #MULTIPLICATION_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
MULTIPLICATION(0, "MULTIPLICATION", "*"),
|
||||
|
||||
/**
|
||||
* The '<em><b>DIVISION</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #DIVISION_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
DIVISION(1, "DIVISION", "/"),
|
||||
|
||||
/**
|
||||
* The '<em><b>MODULO</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #MODULO_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
MODULO(2, "MODULO", "%");
|
||||
|
||||
/**
|
||||
* The '<em><b>MULTIPLICATION</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #MULTIPLICATION
|
||||
* @model literal="*"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int MULTIPLICATION_VALUE = 0;
|
||||
|
||||
/**
|
||||
* The '<em><b>DIVISION</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #DIVISION
|
||||
* @model literal="/"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int DIVISION_VALUE = 1;
|
||||
|
||||
/**
|
||||
* The '<em><b>MODULO</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #MODULO
|
||||
* @model literal="%"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int MODULO_VALUE = 2;
|
||||
|
||||
/**
|
||||
* An array of all the '<em><b>Mult Operator</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final MultOperator[] VALUES_ARRAY =
|
||||
new MultOperator[]
|
||||
{
|
||||
MULTIPLICATION,
|
||||
DIVISION,
|
||||
MODULO,
|
||||
};
|
||||
|
||||
/**
|
||||
* A public read-only list of all the '<em><b>Mult Operator</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static final List<MultOperator> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Mult Operator</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 MultOperator get(String literal)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
MultOperator result = VALUES_ARRAY[i];
|
||||
if (result.toString().equals(literal))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Mult Operator</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 MultOperator getByName(String name)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
MultOperator result = VALUES_ARRAY[i];
|
||||
if (result.getName().equals(name))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Mult Operator</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 MultOperator get(int value)
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
case MULTIPLICATION_VALUE: return MULTIPLICATION;
|
||||
case DIVISION_VALUE: return DIVISION;
|
||||
case MODULO_VALUE: return MODULO;
|
||||
}
|
||||
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 MultOperator(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;
|
||||
}
|
||||
|
||||
} //MultOperator
|
|
@ -1,96 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>One Parameter Arithmetics</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.OneParameterArithmetics#isNegative <em>Negative</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.OneParameterArithmetics#getOperator <em>Operator</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.OneParameterArithmetics#getExpression <em>Expression</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getOneParameterArithmetics()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface OneParameterArithmetics extends ArithmeticExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Negative</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Negative</em>' attribute.
|
||||
* @see #setNegative(boolean)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getOneParameterArithmetics_Negative()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
boolean isNegative();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.OneParameterArithmetics#isNegative <em>Negative</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Negative</em>' attribute.
|
||||
* @see #isNegative()
|
||||
* @generated
|
||||
*/
|
||||
void setNegative(boolean value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Operator</b></em>' attribute.
|
||||
* The literals are from the enumeration {@link org.emoflon.ibex.gt.editor.gT.AllOneParameterOperators}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Operator</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.AllOneParameterOperators
|
||||
* @see #setOperator(AllOneParameterOperators)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getOneParameterArithmetics_Operator()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
AllOneParameterOperators getOperator();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.OneParameterArithmetics#getOperator <em>Operator</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Operator</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.AllOneParameterOperators
|
||||
* @see #getOperator()
|
||||
* @generated
|
||||
*/
|
||||
void setOperator(AllOneParameterOperators value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Expression</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Expression</em>' containment reference.
|
||||
* @see #setExpression(ArithmeticExpression)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getOneParameterArithmetics_Expression()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
ArithmeticExpression getExpression();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.OneParameterArithmetics#getExpression <em>Expression</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Expression</em>' containment reference.
|
||||
* @see #getExpression()
|
||||
* @generated
|
||||
*/
|
||||
void setExpression(ArithmeticExpression value);
|
||||
|
||||
} // OneParameterArithmetics
|
|
@ -1,248 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
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>Possible Stochastic Ranges</b></em>',
|
||||
* and utility methods for working with them.
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getPossibleStochasticRanges()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public enum PossibleStochasticRanges implements Enumerator
|
||||
{
|
||||
/**
|
||||
* The '<em><b>NEUTRAL</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #NEUTRAL_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
NEUTRAL(0, "NEUTRAL", "NEUTRAL"),
|
||||
|
||||
/**
|
||||
* The '<em><b>POSITIVE</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #POSITIVE_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
POSITIVE(1, "POSITIVE", "POSITIVE"),
|
||||
|
||||
/**
|
||||
* The '<em><b>NEGATIVE</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #NEGATIVE_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
NEGATIVE(2, "NEGATIVE", "NEGATIVE");
|
||||
|
||||
/**
|
||||
* The '<em><b>NEUTRAL</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #NEUTRAL
|
||||
* @model
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int NEUTRAL_VALUE = 0;
|
||||
|
||||
/**
|
||||
* The '<em><b>POSITIVE</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #POSITIVE
|
||||
* @model
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int POSITIVE_VALUE = 1;
|
||||
|
||||
/**
|
||||
* The '<em><b>NEGATIVE</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #NEGATIVE
|
||||
* @model
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int NEGATIVE_VALUE = 2;
|
||||
|
||||
/**
|
||||
* An array of all the '<em><b>Possible Stochastic Ranges</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final PossibleStochasticRanges[] VALUES_ARRAY =
|
||||
new PossibleStochasticRanges[]
|
||||
{
|
||||
NEUTRAL,
|
||||
POSITIVE,
|
||||
NEGATIVE,
|
||||
};
|
||||
|
||||
/**
|
||||
* A public read-only list of all the '<em><b>Possible Stochastic Ranges</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static final List<PossibleStochasticRanges> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Possible Stochastic Ranges</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 PossibleStochasticRanges get(String literal)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
PossibleStochasticRanges result = VALUES_ARRAY[i];
|
||||
if (result.toString().equals(literal))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Possible Stochastic Ranges</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 PossibleStochasticRanges getByName(String name)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
PossibleStochasticRanges result = VALUES_ARRAY[i];
|
||||
if (result.getName().equals(name))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Possible Stochastic Ranges</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 PossibleStochasticRanges get(int value)
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
case NEUTRAL_VALUE: return NEUTRAL;
|
||||
case POSITIVE_VALUE: return POSITIVE;
|
||||
case NEGATIVE_VALUE: return NEGATIVE;
|
||||
}
|
||||
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 PossibleStochasticRanges(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;
|
||||
}
|
||||
|
||||
} //PossibleStochasticRanges
|
|
@ -1,248 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
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>Stochastic Distribution</b></em>',
|
||||
* and utility methods for working with them.
|
||||
* <!-- end-user-doc -->
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getStochasticDistribution()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public enum StochasticDistribution implements Enumerator
|
||||
{
|
||||
/**
|
||||
* The '<em><b>NORMAL</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #NORMAL_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
NORMAL(0, "NORMAL", "N"),
|
||||
|
||||
/**
|
||||
* The '<em><b>UNIFORM</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #UNIFORM_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
UNIFORM(1, "UNIFORM", "U"),
|
||||
|
||||
/**
|
||||
* The '<em><b>EXPONENTIAL</b></em>' literal object.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #EXPONENTIAL_VALUE
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
EXPONENTIAL(2, "EXPONENTIAL", "Exp");
|
||||
|
||||
/**
|
||||
* The '<em><b>NORMAL</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #NORMAL
|
||||
* @model literal="N"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int NORMAL_VALUE = 0;
|
||||
|
||||
/**
|
||||
* The '<em><b>UNIFORM</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #UNIFORM
|
||||
* @model literal="U"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int UNIFORM_VALUE = 1;
|
||||
|
||||
/**
|
||||
* The '<em><b>EXPONENTIAL</b></em>' literal value.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #EXPONENTIAL
|
||||
* @model literal="Exp"
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
public static final int EXPONENTIAL_VALUE = 2;
|
||||
|
||||
/**
|
||||
* An array of all the '<em><b>Stochastic Distribution</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
private static final StochasticDistribution[] VALUES_ARRAY =
|
||||
new StochasticDistribution[]
|
||||
{
|
||||
NORMAL,
|
||||
UNIFORM,
|
||||
EXPONENTIAL,
|
||||
};
|
||||
|
||||
/**
|
||||
* A public read-only list of all the '<em><b>Stochastic Distribution</b></em>' enumerators.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public static final List<StochasticDistribution> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Stochastic Distribution</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 StochasticDistribution get(String literal)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
StochasticDistribution result = VALUES_ARRAY[i];
|
||||
if (result.toString().equals(literal))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Stochastic Distribution</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 StochasticDistribution getByName(String name)
|
||||
{
|
||||
for (int i = 0; i < VALUES_ARRAY.length; ++i)
|
||||
{
|
||||
StochasticDistribution result = VALUES_ARRAY[i];
|
||||
if (result.getName().equals(name))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the '<em><b>Stochastic Distribution</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 StochasticDistribution get(int value)
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
case NORMAL_VALUE: return NORMAL;
|
||||
case UNIFORM_VALUE: return UNIFORM;
|
||||
case EXPONENTIAL_VALUE: return EXPONENTIAL;
|
||||
}
|
||||
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 StochasticDistribution(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;
|
||||
}
|
||||
|
||||
} //StochasticDistribution
|
|
@ -1,70 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Stochastic Function</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.StochasticFunction#getFunctionExpression <em>Function Expression</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.StochasticFunction#getParameter <em>Parameter</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getStochasticFunction()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface StochasticFunction extends EditorProbability
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Function Expression</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Function Expression</em>' containment reference.
|
||||
* @see #setFunctionExpression(StochasticFunctionExpression)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getStochasticFunction_FunctionExpression()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
StochasticFunctionExpression getFunctionExpression();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.StochasticFunction#getFunctionExpression <em>Function Expression</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Function Expression</em>' containment reference.
|
||||
* @see #getFunctionExpression()
|
||||
* @generated
|
||||
*/
|
||||
void setFunctionExpression(StochasticFunctionExpression value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Parameter</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Parameter</em>' containment reference.
|
||||
* @see #setParameter(ArithmeticExpression)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getStochasticFunction_Parameter()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
ArithmeticExpression getParameter();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.StochasticFunction#getParameter <em>Parameter</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Parameter</em>' containment reference.
|
||||
* @see #getParameter()
|
||||
* @generated
|
||||
*/
|
||||
void setParameter(ArithmeticExpression value);
|
||||
|
||||
} // StochasticFunction
|
|
@ -1,145 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>Stochastic Function Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* <p>
|
||||
* The following features are supported:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.StochasticFunctionExpression#getOperatorRange <em>Operator Range</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.StochasticFunctionExpression#getDistribution <em>Distribution</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.StochasticFunctionExpression#getMean <em>Mean</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.StochasticFunctionExpression#isHasSd <em>Has Sd</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.StochasticFunctionExpression#getSd <em>Sd</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getStochasticFunctionExpression()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface StochasticFunctionExpression extends EditorExpression
|
||||
{
|
||||
/**
|
||||
* Returns the value of the '<em><b>Operator Range</b></em>' attribute.
|
||||
* The literals are from the enumeration {@link org.emoflon.ibex.gt.editor.gT.PossibleStochasticRanges}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Operator Range</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.PossibleStochasticRanges
|
||||
* @see #setOperatorRange(PossibleStochasticRanges)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getStochasticFunctionExpression_OperatorRange()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
PossibleStochasticRanges getOperatorRange();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.StochasticFunctionExpression#getOperatorRange <em>Operator Range</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Operator Range</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.PossibleStochasticRanges
|
||||
* @see #getOperatorRange()
|
||||
* @generated
|
||||
*/
|
||||
void setOperatorRange(PossibleStochasticRanges value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Distribution</b></em>' attribute.
|
||||
* The literals are from the enumeration {@link org.emoflon.ibex.gt.editor.gT.StochasticDistribution}.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Distribution</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.StochasticDistribution
|
||||
* @see #setDistribution(StochasticDistribution)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getStochasticFunctionExpression_Distribution()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
StochasticDistribution getDistribution();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.StochasticFunctionExpression#getDistribution <em>Distribution</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Distribution</em>' attribute.
|
||||
* @see org.emoflon.ibex.gt.editor.gT.StochasticDistribution
|
||||
* @see #getDistribution()
|
||||
* @generated
|
||||
*/
|
||||
void setDistribution(StochasticDistribution value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Mean</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Mean</em>' containment reference.
|
||||
* @see #setMean(ArithmeticExpression)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getStochasticFunctionExpression_Mean()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
ArithmeticExpression getMean();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.StochasticFunctionExpression#getMean <em>Mean</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Mean</em>' containment reference.
|
||||
* @see #getMean()
|
||||
* @generated
|
||||
*/
|
||||
void setMean(ArithmeticExpression value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Has Sd</b></em>' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Has Sd</em>' attribute.
|
||||
* @see #setHasSd(boolean)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getStochasticFunctionExpression_HasSd()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
boolean isHasSd();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.StochasticFunctionExpression#isHasSd <em>Has Sd</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Has Sd</em>' attribute.
|
||||
* @see #isHasSd()
|
||||
* @generated
|
||||
*/
|
||||
void setHasSd(boolean value);
|
||||
|
||||
/**
|
||||
* Returns the value of the '<em><b>Sd</b></em>' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @return the value of the '<em>Sd</em>' containment reference.
|
||||
* @see #setSd(ArithmeticExpression)
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getStochasticFunctionExpression_Sd()
|
||||
* @model containment="true"
|
||||
* @generated
|
||||
*/
|
||||
ArithmeticExpression getSd();
|
||||
|
||||
/**
|
||||
* Sets the value of the '{@link org.emoflon.ibex.gt.editor.gT.StochasticFunctionExpression#getSd <em>Sd</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @param value the new value of the '<em>Sd</em>' containment reference.
|
||||
* @see #getSd()
|
||||
* @generated
|
||||
*/
|
||||
void setSd(ArithmeticExpression value);
|
||||
|
||||
} // StochasticFunctionExpression
|
|
@ -1,19 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT;
|
||||
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* A representation of the model object '<em><b>String Constant</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
*
|
||||
* @see org.emoflon.ibex.gt.editor.gT.GTPackage#getStringConstant()
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
public interface StringConstant extends EditorLiteralExpression
|
||||
{
|
||||
} // StringConstant
|
|
@ -1,343 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.AddExpression;
|
||||
import org.emoflon.ibex.gt.editor.gT.AddOperator;
|
||||
import org.emoflon.ibex.gt.editor.gT.ArithmeticExpression;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Add Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.AddExpressionImpl#getLeft <em>Left</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.AddExpressionImpl#getAddOperator <em>Add Operator</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.AddExpressionImpl#getRight <em>Right</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class AddExpressionImpl extends ArithmeticExpressionImpl implements AddExpression
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getLeft() <em>Left</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getLeft()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected ArithmeticExpression left;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getAddOperator() <em>Add Operator</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getAddOperator()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final AddOperator ADD_OPERATOR_EDEFAULT = AddOperator.ADDITION;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getAddOperator() <em>Add Operator</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getAddOperator()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected AddOperator addOperator = ADD_OPERATOR_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getRight() <em>Right</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getRight()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected ArithmeticExpression right;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected AddExpressionImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.ADD_EXPRESSION;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public ArithmeticExpression getLeft()
|
||||
{
|
||||
return left;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetLeft(ArithmeticExpression newLeft, NotificationChain msgs)
|
||||
{
|
||||
ArithmeticExpression oldLeft = left;
|
||||
left = newLeft;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GTPackage.ADD_EXPRESSION__LEFT, oldLeft, newLeft);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setLeft(ArithmeticExpression newLeft)
|
||||
{
|
||||
if (newLeft != left)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (left != null)
|
||||
msgs = ((InternalEObject)left).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GTPackage.ADD_EXPRESSION__LEFT, null, msgs);
|
||||
if (newLeft != null)
|
||||
msgs = ((InternalEObject)newLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GTPackage.ADD_EXPRESSION__LEFT, null, msgs);
|
||||
msgs = basicSetLeft(newLeft, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.ADD_EXPRESSION__LEFT, newLeft, newLeft));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public AddOperator getAddOperator()
|
||||
{
|
||||
return addOperator;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setAddOperator(AddOperator newAddOperator)
|
||||
{
|
||||
AddOperator oldAddOperator = addOperator;
|
||||
addOperator = newAddOperator == null ? ADD_OPERATOR_EDEFAULT : newAddOperator;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.ADD_EXPRESSION__ADD_OPERATOR, oldAddOperator, addOperator));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public ArithmeticExpression getRight()
|
||||
{
|
||||
return right;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetRight(ArithmeticExpression newRight, NotificationChain msgs)
|
||||
{
|
||||
ArithmeticExpression oldRight = right;
|
||||
right = newRight;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GTPackage.ADD_EXPRESSION__RIGHT, oldRight, newRight);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setRight(ArithmeticExpression newRight)
|
||||
{
|
||||
if (newRight != right)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (right != null)
|
||||
msgs = ((InternalEObject)right).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GTPackage.ADD_EXPRESSION__RIGHT, null, msgs);
|
||||
if (newRight != null)
|
||||
msgs = ((InternalEObject)newRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GTPackage.ADD_EXPRESSION__RIGHT, null, msgs);
|
||||
msgs = basicSetRight(newRight, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.ADD_EXPRESSION__RIGHT, newRight, newRight));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.ADD_EXPRESSION__LEFT:
|
||||
return basicSetLeft(null, msgs);
|
||||
case GTPackage.ADD_EXPRESSION__RIGHT:
|
||||
return basicSetRight(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 GTPackage.ADD_EXPRESSION__LEFT:
|
||||
return getLeft();
|
||||
case GTPackage.ADD_EXPRESSION__ADD_OPERATOR:
|
||||
return getAddOperator();
|
||||
case GTPackage.ADD_EXPRESSION__RIGHT:
|
||||
return getRight();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.ADD_EXPRESSION__LEFT:
|
||||
setLeft((ArithmeticExpression)newValue);
|
||||
return;
|
||||
case GTPackage.ADD_EXPRESSION__ADD_OPERATOR:
|
||||
setAddOperator((AddOperator)newValue);
|
||||
return;
|
||||
case GTPackage.ADD_EXPRESSION__RIGHT:
|
||||
setRight((ArithmeticExpression)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.ADD_EXPRESSION__LEFT:
|
||||
setLeft((ArithmeticExpression)null);
|
||||
return;
|
||||
case GTPackage.ADD_EXPRESSION__ADD_OPERATOR:
|
||||
setAddOperator(ADD_OPERATOR_EDEFAULT);
|
||||
return;
|
||||
case GTPackage.ADD_EXPRESSION__RIGHT:
|
||||
setRight((ArithmeticExpression)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.ADD_EXPRESSION__LEFT:
|
||||
return left != null;
|
||||
case GTPackage.ADD_EXPRESSION__ADD_OPERATOR:
|
||||
return addOperator != ADD_OPERATOR_EDEFAULT;
|
||||
case GTPackage.ADD_EXPRESSION__RIGHT:
|
||||
return right != 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(" (addOperator: ");
|
||||
result.append(addOperator);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //AddExpressionImpl
|
|
@ -1,196 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.ArithmeticCalculationExpression;
|
||||
import org.emoflon.ibex.gt.editor.gT.ArithmeticExpression;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Arithmetic Calculation Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.ArithmeticCalculationExpressionImpl#getExpression <em>Expression</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class ArithmeticCalculationExpressionImpl extends EditorExpressionImpl implements ArithmeticCalculationExpression
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getExpression() <em>Expression</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getExpression()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected ArithmeticExpression expression;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected ArithmeticCalculationExpressionImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.ARITHMETIC_CALCULATION_EXPRESSION;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public ArithmeticExpression getExpression()
|
||||
{
|
||||
return expression;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetExpression(ArithmeticExpression newExpression, NotificationChain msgs)
|
||||
{
|
||||
ArithmeticExpression oldExpression = expression;
|
||||
expression = newExpression;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GTPackage.ARITHMETIC_CALCULATION_EXPRESSION__EXPRESSION, oldExpression, newExpression);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setExpression(ArithmeticExpression newExpression)
|
||||
{
|
||||
if (newExpression != expression)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (expression != null)
|
||||
msgs = ((InternalEObject)expression).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GTPackage.ARITHMETIC_CALCULATION_EXPRESSION__EXPRESSION, null, msgs);
|
||||
if (newExpression != null)
|
||||
msgs = ((InternalEObject)newExpression).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GTPackage.ARITHMETIC_CALCULATION_EXPRESSION__EXPRESSION, null, msgs);
|
||||
msgs = basicSetExpression(newExpression, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.ARITHMETIC_CALCULATION_EXPRESSION__EXPRESSION, newExpression, newExpression));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.ARITHMETIC_CALCULATION_EXPRESSION__EXPRESSION:
|
||||
return basicSetExpression(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 GTPackage.ARITHMETIC_CALCULATION_EXPRESSION__EXPRESSION:
|
||||
return getExpression();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.ARITHMETIC_CALCULATION_EXPRESSION__EXPRESSION:
|
||||
setExpression((ArithmeticExpression)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.ARITHMETIC_CALCULATION_EXPRESSION__EXPRESSION:
|
||||
setExpression((ArithmeticExpression)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.ARITHMETIC_CALCULATION_EXPRESSION__EXPRESSION:
|
||||
return expression != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //ArithmeticCalculationExpressionImpl
|
|
@ -1,41 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.ArithmeticExpression;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Arithmetic Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class ArithmeticExpressionImpl extends EditorProbabilityImpl implements ArithmeticExpression
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected ArithmeticExpressionImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.ARITHMETIC_EXPRESSION;
|
||||
}
|
||||
|
||||
} //ArithmeticExpressionImpl
|
|
@ -1,249 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorApplicationCondition;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorApplicationConditionType;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorPattern;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor Application Condition</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorApplicationConditionImpl#getType <em>Type</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorApplicationConditionImpl#getPattern <em>Pattern</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorApplicationConditionImpl extends EditorSimpleConditionImpl implements EditorApplicationCondition
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getType() <em>Type</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getType()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final EditorApplicationConditionType TYPE_EDEFAULT = EditorApplicationConditionType.POSITIVE;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getType() <em>Type</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getType()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EditorApplicationConditionType type = TYPE_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getPattern() <em>Pattern</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getPattern()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EditorPattern pattern;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EditorApplicationConditionImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_APPLICATION_CONDITION;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EditorApplicationConditionType getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setType(EditorApplicationConditionType newType)
|
||||
{
|
||||
EditorApplicationConditionType oldType = type;
|
||||
type = newType == null ? TYPE_EDEFAULT : newType;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_APPLICATION_CONDITION__TYPE, oldType, type));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EditorPattern getPattern()
|
||||
{
|
||||
if (pattern != null && pattern.eIsProxy())
|
||||
{
|
||||
InternalEObject oldPattern = (InternalEObject)pattern;
|
||||
pattern = (EditorPattern)eResolveProxy(oldPattern);
|
||||
if (pattern != oldPattern)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GTPackage.EDITOR_APPLICATION_CONDITION__PATTERN, oldPattern, pattern));
|
||||
}
|
||||
}
|
||||
return pattern;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EditorPattern basicGetPattern()
|
||||
{
|
||||
return pattern;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setPattern(EditorPattern newPattern)
|
||||
{
|
||||
EditorPattern oldPattern = pattern;
|
||||
pattern = newPattern;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_APPLICATION_CONDITION__PATTERN, oldPattern, pattern));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_APPLICATION_CONDITION__TYPE:
|
||||
return getType();
|
||||
case GTPackage.EDITOR_APPLICATION_CONDITION__PATTERN:
|
||||
if (resolve) return getPattern();
|
||||
return basicGetPattern();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_APPLICATION_CONDITION__TYPE:
|
||||
setType((EditorApplicationConditionType)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_APPLICATION_CONDITION__PATTERN:
|
||||
setPattern((EditorPattern)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_APPLICATION_CONDITION__TYPE:
|
||||
setType(TYPE_EDEFAULT);
|
||||
return;
|
||||
case GTPackage.EDITOR_APPLICATION_CONDITION__PATTERN:
|
||||
setPattern((EditorPattern)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_APPLICATION_CONDITION__TYPE:
|
||||
return type != TYPE_EDEFAULT;
|
||||
case GTPackage.EDITOR_APPLICATION_CONDITION__PATTERN:
|
||||
return pattern != 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(" (type: ");
|
||||
result.append(type);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //EditorApplicationConditionImpl
|
|
@ -1,265 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.ecore.EAttribute;
|
||||
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.emoflon.ibex.gt.editor.gT.EditorAttributeAssignment;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorExpression;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor Attribute Assignment</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorAttributeAssignmentImpl#getAttribute <em>Attribute</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorAttributeAssignmentImpl#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorAttributeAssignmentImpl extends MinimalEObjectImpl.Container implements EditorAttributeAssignment
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getAttribute() <em>Attribute</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getAttribute()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EAttribute attribute;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getValue() <em>Value</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getValue()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EditorExpression value;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EditorAttributeAssignmentImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_ATTRIBUTE_ASSIGNMENT;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getAttribute()
|
||||
{
|
||||
if (attribute != null && attribute.eIsProxy())
|
||||
{
|
||||
InternalEObject oldAttribute = (InternalEObject)attribute;
|
||||
attribute = (EAttribute)eResolveProxy(oldAttribute);
|
||||
if (attribute != oldAttribute)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GTPackage.EDITOR_ATTRIBUTE_ASSIGNMENT__ATTRIBUTE, oldAttribute, attribute));
|
||||
}
|
||||
}
|
||||
return attribute;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute basicGetAttribute()
|
||||
{
|
||||
return attribute;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setAttribute(EAttribute newAttribute)
|
||||
{
|
||||
EAttribute oldAttribute = attribute;
|
||||
attribute = newAttribute;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_ATTRIBUTE_ASSIGNMENT__ATTRIBUTE, oldAttribute, attribute));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EditorExpression getValue()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetValue(EditorExpression newValue, NotificationChain msgs)
|
||||
{
|
||||
EditorExpression oldValue = value;
|
||||
value = newValue;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_ATTRIBUTE_ASSIGNMENT__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(EditorExpression newValue)
|
||||
{
|
||||
if (newValue != value)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (value != null)
|
||||
msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GTPackage.EDITOR_ATTRIBUTE_ASSIGNMENT__VALUE, null, msgs);
|
||||
if (newValue != null)
|
||||
msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GTPackage.EDITOR_ATTRIBUTE_ASSIGNMENT__VALUE, null, msgs);
|
||||
msgs = basicSetValue(newValue, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_ATTRIBUTE_ASSIGNMENT__VALUE, newValue, newValue));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ATTRIBUTE_ASSIGNMENT__VALUE:
|
||||
return basicSetValue(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 GTPackage.EDITOR_ATTRIBUTE_ASSIGNMENT__ATTRIBUTE:
|
||||
if (resolve) return getAttribute();
|
||||
return basicGetAttribute();
|
||||
case GTPackage.EDITOR_ATTRIBUTE_ASSIGNMENT__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 GTPackage.EDITOR_ATTRIBUTE_ASSIGNMENT__ATTRIBUTE:
|
||||
setAttribute((EAttribute)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_ATTRIBUTE_ASSIGNMENT__VALUE:
|
||||
setValue((EditorExpression)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ATTRIBUTE_ASSIGNMENT__ATTRIBUTE:
|
||||
setAttribute((EAttribute)null);
|
||||
return;
|
||||
case GTPackage.EDITOR_ATTRIBUTE_ASSIGNMENT__VALUE:
|
||||
setValue((EditorExpression)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ATTRIBUTE_ASSIGNMENT__ATTRIBUTE:
|
||||
return attribute != null;
|
||||
case GTPackage.EDITOR_ATTRIBUTE_ASSIGNMENT__VALUE:
|
||||
return value != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //EditorAttributeAssignmentImpl
|
|
@ -1,344 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorAttributeConstraint;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorExpression;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorRelation;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor Attribute Constraint</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorAttributeConstraintImpl#getLhs <em>Lhs</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorAttributeConstraintImpl#getRelation <em>Relation</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorAttributeConstraintImpl#getRhs <em>Rhs</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorAttributeConstraintImpl extends MinimalEObjectImpl.Container implements EditorAttributeConstraint
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getLhs() <em>Lhs</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getLhs()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EditorExpression lhs;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getRelation() <em>Relation</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getRelation()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final EditorRelation RELATION_EDEFAULT = EditorRelation.GREATER;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getRelation() <em>Relation</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getRelation()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EditorRelation relation = RELATION_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getRhs() <em>Rhs</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getRhs()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EditorExpression rhs;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EditorAttributeConstraintImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_ATTRIBUTE_CONSTRAINT;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EditorExpression getLhs()
|
||||
{
|
||||
return lhs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetLhs(EditorExpression newLhs, NotificationChain msgs)
|
||||
{
|
||||
EditorExpression oldLhs = lhs;
|
||||
lhs = newLhs;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_ATTRIBUTE_CONSTRAINT__LHS, oldLhs, newLhs);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setLhs(EditorExpression newLhs)
|
||||
{
|
||||
if (newLhs != lhs)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (lhs != null)
|
||||
msgs = ((InternalEObject)lhs).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GTPackage.EDITOR_ATTRIBUTE_CONSTRAINT__LHS, null, msgs);
|
||||
if (newLhs != null)
|
||||
msgs = ((InternalEObject)newLhs).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GTPackage.EDITOR_ATTRIBUTE_CONSTRAINT__LHS, null, msgs);
|
||||
msgs = basicSetLhs(newLhs, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_ATTRIBUTE_CONSTRAINT__LHS, newLhs, newLhs));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EditorRelation getRelation()
|
||||
{
|
||||
return relation;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setRelation(EditorRelation newRelation)
|
||||
{
|
||||
EditorRelation oldRelation = relation;
|
||||
relation = newRelation == null ? RELATION_EDEFAULT : newRelation;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_ATTRIBUTE_CONSTRAINT__RELATION, oldRelation, relation));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EditorExpression getRhs()
|
||||
{
|
||||
return rhs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetRhs(EditorExpression newRhs, NotificationChain msgs)
|
||||
{
|
||||
EditorExpression oldRhs = rhs;
|
||||
rhs = newRhs;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_ATTRIBUTE_CONSTRAINT__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(EditorExpression newRhs)
|
||||
{
|
||||
if (newRhs != rhs)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (rhs != null)
|
||||
msgs = ((InternalEObject)rhs).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GTPackage.EDITOR_ATTRIBUTE_CONSTRAINT__RHS, null, msgs);
|
||||
if (newRhs != null)
|
||||
msgs = ((InternalEObject)newRhs).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GTPackage.EDITOR_ATTRIBUTE_CONSTRAINT__RHS, null, msgs);
|
||||
msgs = basicSetRhs(newRhs, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_ATTRIBUTE_CONSTRAINT__RHS, newRhs, newRhs));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ATTRIBUTE_CONSTRAINT__LHS:
|
||||
return basicSetLhs(null, msgs);
|
||||
case GTPackage.EDITOR_ATTRIBUTE_CONSTRAINT__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 GTPackage.EDITOR_ATTRIBUTE_CONSTRAINT__LHS:
|
||||
return getLhs();
|
||||
case GTPackage.EDITOR_ATTRIBUTE_CONSTRAINT__RELATION:
|
||||
return getRelation();
|
||||
case GTPackage.EDITOR_ATTRIBUTE_CONSTRAINT__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 GTPackage.EDITOR_ATTRIBUTE_CONSTRAINT__LHS:
|
||||
setLhs((EditorExpression)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_ATTRIBUTE_CONSTRAINT__RELATION:
|
||||
setRelation((EditorRelation)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_ATTRIBUTE_CONSTRAINT__RHS:
|
||||
setRhs((EditorExpression)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ATTRIBUTE_CONSTRAINT__LHS:
|
||||
setLhs((EditorExpression)null);
|
||||
return;
|
||||
case GTPackage.EDITOR_ATTRIBUTE_CONSTRAINT__RELATION:
|
||||
setRelation(RELATION_EDEFAULT);
|
||||
return;
|
||||
case GTPackage.EDITOR_ATTRIBUTE_CONSTRAINT__RHS:
|
||||
setRhs((EditorExpression)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ATTRIBUTE_CONSTRAINT__LHS:
|
||||
return lhs != null;
|
||||
case GTPackage.EDITOR_ATTRIBUTE_CONSTRAINT__RELATION:
|
||||
return relation != RELATION_EDEFAULT;
|
||||
case GTPackage.EDITOR_ATTRIBUTE_CONSTRAINT__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(" (relation: ");
|
||||
result.append(relation);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //EditorAttributeConstraintImpl
|
|
@ -1,243 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EAttribute;
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorAttributeExpression;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorNode;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor Attribute Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorAttributeExpressionImpl#getNode <em>Node</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorAttributeExpressionImpl#getAttribute <em>Attribute</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorAttributeExpressionImpl extends ArithmeticExpressionImpl implements EditorAttributeExpression
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getNode() <em>Node</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getNode()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EditorNode node;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getAttribute() <em>Attribute</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getAttribute()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EAttribute attribute;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EditorAttributeExpressionImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_ATTRIBUTE_EXPRESSION;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EditorNode getNode()
|
||||
{
|
||||
if (node != null && node.eIsProxy())
|
||||
{
|
||||
InternalEObject oldNode = (InternalEObject)node;
|
||||
node = (EditorNode)eResolveProxy(oldNode);
|
||||
if (node != oldNode)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GTPackage.EDITOR_ATTRIBUTE_EXPRESSION__NODE, oldNode, node));
|
||||
}
|
||||
}
|
||||
return node;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EditorNode basicGetNode()
|
||||
{
|
||||
return node;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setNode(EditorNode newNode)
|
||||
{
|
||||
EditorNode oldNode = node;
|
||||
node = newNode;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_ATTRIBUTE_EXPRESSION__NODE, oldNode, node));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getAttribute()
|
||||
{
|
||||
if (attribute != null && attribute.eIsProxy())
|
||||
{
|
||||
InternalEObject oldAttribute = (InternalEObject)attribute;
|
||||
attribute = (EAttribute)eResolveProxy(oldAttribute);
|
||||
if (attribute != oldAttribute)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GTPackage.EDITOR_ATTRIBUTE_EXPRESSION__ATTRIBUTE, oldAttribute, attribute));
|
||||
}
|
||||
}
|
||||
return attribute;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute basicGetAttribute()
|
||||
{
|
||||
return attribute;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setAttribute(EAttribute newAttribute)
|
||||
{
|
||||
EAttribute oldAttribute = attribute;
|
||||
attribute = newAttribute;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_ATTRIBUTE_EXPRESSION__ATTRIBUTE, oldAttribute, attribute));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ATTRIBUTE_EXPRESSION__NODE:
|
||||
if (resolve) return getNode();
|
||||
return basicGetNode();
|
||||
case GTPackage.EDITOR_ATTRIBUTE_EXPRESSION__ATTRIBUTE:
|
||||
if (resolve) return getAttribute();
|
||||
return basicGetAttribute();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ATTRIBUTE_EXPRESSION__NODE:
|
||||
setNode((EditorNode)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_ATTRIBUTE_EXPRESSION__ATTRIBUTE:
|
||||
setAttribute((EAttribute)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ATTRIBUTE_EXPRESSION__NODE:
|
||||
setNode((EditorNode)null);
|
||||
return;
|
||||
case GTPackage.EDITOR_ATTRIBUTE_EXPRESSION__ATTRIBUTE:
|
||||
setAttribute((EAttribute)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ATTRIBUTE_EXPRESSION__NODE:
|
||||
return node != null;
|
||||
case GTPackage.EDITOR_ATTRIBUTE_EXPRESSION__ATTRIBUTE:
|
||||
return attribute != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //EditorAttributeExpressionImpl
|
|
@ -1,244 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorCondition;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorSimpleCondition;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor Condition</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorConditionImpl#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorConditionImpl#getConditions <em>Conditions</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorConditionImpl extends MinimalEObjectImpl.Container implements EditorCondition
|
||||
{
|
||||
/**
|
||||
* 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 #getConditions() <em>Conditions</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getConditions()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<EditorSimpleCondition> conditions;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EditorConditionImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_CONDITION;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- 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, GTPackage.EDITOR_CONDITION__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<EditorSimpleCondition> getConditions()
|
||||
{
|
||||
if (conditions == null)
|
||||
{
|
||||
conditions = new EObjectContainmentEList<EditorSimpleCondition>(EditorSimpleCondition.class, this, GTPackage.EDITOR_CONDITION__CONDITIONS);
|
||||
}
|
||||
return conditions;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_CONDITION__CONDITIONS:
|
||||
return ((InternalEList<?>)getConditions()).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 GTPackage.EDITOR_CONDITION__NAME:
|
||||
return getName();
|
||||
case GTPackage.EDITOR_CONDITION__CONDITIONS:
|
||||
return getConditions();
|
||||
}
|
||||
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 GTPackage.EDITOR_CONDITION__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_CONDITION__CONDITIONS:
|
||||
getConditions().clear();
|
||||
getConditions().addAll((Collection<? extends EditorSimpleCondition>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_CONDITION__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
case GTPackage.EDITOR_CONDITION__CONDITIONS:
|
||||
getConditions().clear();
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_CONDITION__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
case GTPackage.EDITOR_CONDITION__CONDITIONS:
|
||||
return conditions != null && !conditions.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(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //EditorConditionImpl
|
|
@ -1,175 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorCondition;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorConditionReference;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor Condition Reference</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorConditionReferenceImpl#getCondition <em>Condition</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorConditionReferenceImpl extends EditorSimpleConditionImpl implements EditorConditionReference
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getCondition() <em>Condition</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getCondition()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EditorCondition condition;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EditorConditionReferenceImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_CONDITION_REFERENCE;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EditorCondition getCondition()
|
||||
{
|
||||
if (condition != null && condition.eIsProxy())
|
||||
{
|
||||
InternalEObject oldCondition = (InternalEObject)condition;
|
||||
condition = (EditorCondition)eResolveProxy(oldCondition);
|
||||
if (condition != oldCondition)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GTPackage.EDITOR_CONDITION_REFERENCE__CONDITION, oldCondition, condition));
|
||||
}
|
||||
}
|
||||
return condition;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EditorCondition basicGetCondition()
|
||||
{
|
||||
return condition;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setCondition(EditorCondition newCondition)
|
||||
{
|
||||
EditorCondition oldCondition = condition;
|
||||
condition = newCondition;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_CONDITION_REFERENCE__CONDITION, oldCondition, condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_CONDITION_REFERENCE__CONDITION:
|
||||
if (resolve) return getCondition();
|
||||
return basicGetCondition();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_CONDITION_REFERENCE__CONDITION:
|
||||
setCondition((EditorCondition)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_CONDITION_REFERENCE__CONDITION:
|
||||
setCondition((EditorCondition)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_CONDITION_REFERENCE__CONDITION:
|
||||
return condition != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //EditorConditionReferenceImpl
|
|
@ -1,175 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorCountExpression;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorPattern;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor Count Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorCountExpressionImpl#getInvokedPatten <em>Invoked Patten</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorCountExpressionImpl extends ArithmeticExpressionImpl implements EditorCountExpression
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getInvokedPatten() <em>Invoked Patten</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getInvokedPatten()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EditorPattern invokedPatten;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EditorCountExpressionImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_COUNT_EXPRESSION;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EditorPattern getInvokedPatten()
|
||||
{
|
||||
if (invokedPatten != null && invokedPatten.eIsProxy())
|
||||
{
|
||||
InternalEObject oldInvokedPatten = (InternalEObject)invokedPatten;
|
||||
invokedPatten = (EditorPattern)eResolveProxy(oldInvokedPatten);
|
||||
if (invokedPatten != oldInvokedPatten)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GTPackage.EDITOR_COUNT_EXPRESSION__INVOKED_PATTEN, oldInvokedPatten, invokedPatten));
|
||||
}
|
||||
}
|
||||
return invokedPatten;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EditorPattern basicGetInvokedPatten()
|
||||
{
|
||||
return invokedPatten;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setInvokedPatten(EditorPattern newInvokedPatten)
|
||||
{
|
||||
EditorPattern oldInvokedPatten = invokedPatten;
|
||||
invokedPatten = newInvokedPatten;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_COUNT_EXPRESSION__INVOKED_PATTEN, oldInvokedPatten, invokedPatten));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_COUNT_EXPRESSION__INVOKED_PATTEN:
|
||||
if (resolve) return getInvokedPatten();
|
||||
return basicGetInvokedPatten();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_COUNT_EXPRESSION__INVOKED_PATTEN:
|
||||
setInvokedPatten((EditorPattern)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_COUNT_EXPRESSION__INVOKED_PATTEN:
|
||||
setInvokedPatten((EditorPattern)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_COUNT_EXPRESSION__INVOKED_PATTEN:
|
||||
return invokedPatten != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //EditorCountExpressionImpl
|
|
@ -1,175 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.EEnumLiteral;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorEnumExpression;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor Enum Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorEnumExpressionImpl#getLiteral <em>Literal</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorEnumExpressionImpl extends EditorExpressionImpl implements EditorEnumExpression
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getLiteral() <em>Literal</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getLiteral()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EEnumLiteral literal;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EditorEnumExpressionImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_ENUM_EXPRESSION;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EEnumLiteral getLiteral()
|
||||
{
|
||||
if (literal != null && literal.eIsProxy())
|
||||
{
|
||||
InternalEObject oldLiteral = (InternalEObject)literal;
|
||||
literal = (EEnumLiteral)eResolveProxy(oldLiteral);
|
||||
if (literal != oldLiteral)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GTPackage.EDITOR_ENUM_EXPRESSION__LITERAL, oldLiteral, literal));
|
||||
}
|
||||
}
|
||||
return literal;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EEnumLiteral basicGetLiteral()
|
||||
{
|
||||
return literal;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setLiteral(EEnumLiteral newLiteral)
|
||||
{
|
||||
EEnumLiteral oldLiteral = literal;
|
||||
literal = newLiteral;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_ENUM_EXPRESSION__LITERAL, oldLiteral, literal));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ENUM_EXPRESSION__LITERAL:
|
||||
if (resolve) return getLiteral();
|
||||
return basicGetLiteral();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ENUM_EXPRESSION__LITERAL:
|
||||
setLiteral((EEnumLiteral)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ENUM_EXPRESSION__LITERAL:
|
||||
setLiteral((EEnumLiteral)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ENUM_EXPRESSION__LITERAL:
|
||||
return literal != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //EditorEnumExpressionImpl
|
|
@ -1,43 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorExpression;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorExpressionImpl extends MinimalEObjectImpl.Container implements EditorExpression
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EditorExpressionImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_EXPRESSION;
|
||||
}
|
||||
|
||||
} //EditorExpressionImpl
|
|
@ -1,249 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorCondition;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorGTFile;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorImport;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorPattern;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor GT File</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorGTFileImpl#getImports <em>Imports</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorGTFileImpl#getPatterns <em>Patterns</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorGTFileImpl#getConditions <em>Conditions</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorGTFileImpl extends MinimalEObjectImpl.Container implements EditorGTFile
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getImports() <em>Imports</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getImports()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<EditorImport> imports;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getPatterns() <em>Patterns</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getPatterns()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<EditorPattern> patterns;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getConditions() <em>Conditions</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getConditions()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<EditorCondition> conditions;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EditorGTFileImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_GT_FILE;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<EditorImport> getImports()
|
||||
{
|
||||
if (imports == null)
|
||||
{
|
||||
imports = new EObjectContainmentEList<EditorImport>(EditorImport.class, this, GTPackage.EDITOR_GT_FILE__IMPORTS);
|
||||
}
|
||||
return imports;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<EditorPattern> getPatterns()
|
||||
{
|
||||
if (patterns == null)
|
||||
{
|
||||
patterns = new EObjectContainmentEList<EditorPattern>(EditorPattern.class, this, GTPackage.EDITOR_GT_FILE__PATTERNS);
|
||||
}
|
||||
return patterns;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<EditorCondition> getConditions()
|
||||
{
|
||||
if (conditions == null)
|
||||
{
|
||||
conditions = new EObjectContainmentEList<EditorCondition>(EditorCondition.class, this, GTPackage.EDITOR_GT_FILE__CONDITIONS);
|
||||
}
|
||||
return conditions;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_GT_FILE__IMPORTS:
|
||||
return ((InternalEList<?>)getImports()).basicRemove(otherEnd, msgs);
|
||||
case GTPackage.EDITOR_GT_FILE__PATTERNS:
|
||||
return ((InternalEList<?>)getPatterns()).basicRemove(otherEnd, msgs);
|
||||
case GTPackage.EDITOR_GT_FILE__CONDITIONS:
|
||||
return ((InternalEList<?>)getConditions()).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 GTPackage.EDITOR_GT_FILE__IMPORTS:
|
||||
return getImports();
|
||||
case GTPackage.EDITOR_GT_FILE__PATTERNS:
|
||||
return getPatterns();
|
||||
case GTPackage.EDITOR_GT_FILE__CONDITIONS:
|
||||
return getConditions();
|
||||
}
|
||||
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 GTPackage.EDITOR_GT_FILE__IMPORTS:
|
||||
getImports().clear();
|
||||
getImports().addAll((Collection<? extends EditorImport>)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_GT_FILE__PATTERNS:
|
||||
getPatterns().clear();
|
||||
getPatterns().addAll((Collection<? extends EditorPattern>)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_GT_FILE__CONDITIONS:
|
||||
getConditions().clear();
|
||||
getConditions().addAll((Collection<? extends EditorCondition>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_GT_FILE__IMPORTS:
|
||||
getImports().clear();
|
||||
return;
|
||||
case GTPackage.EDITOR_GT_FILE__PATTERNS:
|
||||
getPatterns().clear();
|
||||
return;
|
||||
case GTPackage.EDITOR_GT_FILE__CONDITIONS:
|
||||
getConditions().clear();
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_GT_FILE__IMPORTS:
|
||||
return imports != null && !imports.isEmpty();
|
||||
case GTPackage.EDITOR_GT_FILE__PATTERNS:
|
||||
return patterns != null && !patterns.isEmpty();
|
||||
case GTPackage.EDITOR_GT_FILE__CONDITIONS:
|
||||
return conditions != null && !conditions.isEmpty();
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //EditorGTFileImpl
|
|
@ -1,180 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorImport;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor Import</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorImportImpl#getName <em>Name</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorImportImpl extends MinimalEObjectImpl.Container implements EditorImport
|
||||
{
|
||||
/**
|
||||
* 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 EditorImportImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_IMPORT;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- 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, GTPackage.EDITOR_IMPORT__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_IMPORT__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 GTPackage.EDITOR_IMPORT__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 GTPackage.EDITOR_IMPORT__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_IMPORT__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();
|
||||
}
|
||||
|
||||
} //EditorImportImpl
|
|
@ -1,197 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorExpression;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorIteratorAttributeAssignment;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor Iterator Attribute Assignment</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorIteratorAttributeAssignmentImpl#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorIteratorAttributeAssignmentImpl extends MinimalEObjectImpl.Container implements EditorIteratorAttributeAssignment
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getValue() <em>Value</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getValue()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EditorExpression value;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EditorIteratorAttributeAssignmentImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EditorExpression getValue()
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetValue(EditorExpression newValue, NotificationChain msgs)
|
||||
{
|
||||
EditorExpression oldValue = value;
|
||||
value = newValue;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT__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(EditorExpression newValue)
|
||||
{
|
||||
if (newValue != value)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (value != null)
|
||||
msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT__VALUE, null, msgs);
|
||||
if (newValue != null)
|
||||
msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT__VALUE, null, msgs);
|
||||
msgs = basicSetValue(newValue, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT__VALUE, newValue, newValue));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT__VALUE:
|
||||
return basicSetValue(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 GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT__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 GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT__VALUE:
|
||||
setValue((EditorExpression)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT__VALUE:
|
||||
setValue((EditorExpression)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT__VALUE:
|
||||
return value != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //EditorIteratorAttributeAssignmentImpl
|
|
@ -1,196 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorIteratorAttributeAssignmentItr;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorIteratorAttributeExpression;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor Iterator Attribute Assignment Itr</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorIteratorAttributeAssignmentItrImpl#getIteratorAttribute <em>Iterator Attribute</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorIteratorAttributeAssignmentItrImpl extends EditorIteratorAttributeAssignmentImpl implements EditorIteratorAttributeAssignmentItr
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getIteratorAttribute() <em>Iterator Attribute</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getIteratorAttribute()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EditorIteratorAttributeExpression iteratorAttribute;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EditorIteratorAttributeAssignmentItrImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT_ITR;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EditorIteratorAttributeExpression getIteratorAttribute()
|
||||
{
|
||||
return iteratorAttribute;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetIteratorAttribute(EditorIteratorAttributeExpression newIteratorAttribute, NotificationChain msgs)
|
||||
{
|
||||
EditorIteratorAttributeExpression oldIteratorAttribute = iteratorAttribute;
|
||||
iteratorAttribute = newIteratorAttribute;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT_ITR__ITERATOR_ATTRIBUTE, oldIteratorAttribute, newIteratorAttribute);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setIteratorAttribute(EditorIteratorAttributeExpression newIteratorAttribute)
|
||||
{
|
||||
if (newIteratorAttribute != iteratorAttribute)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (iteratorAttribute != null)
|
||||
msgs = ((InternalEObject)iteratorAttribute).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT_ITR__ITERATOR_ATTRIBUTE, null, msgs);
|
||||
if (newIteratorAttribute != null)
|
||||
msgs = ((InternalEObject)newIteratorAttribute).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT_ITR__ITERATOR_ATTRIBUTE, null, msgs);
|
||||
msgs = basicSetIteratorAttribute(newIteratorAttribute, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT_ITR__ITERATOR_ATTRIBUTE, newIteratorAttribute, newIteratorAttribute));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT_ITR__ITERATOR_ATTRIBUTE:
|
||||
return basicSetIteratorAttribute(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 GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT_ITR__ITERATOR_ATTRIBUTE:
|
||||
return getIteratorAttribute();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT_ITR__ITERATOR_ATTRIBUTE:
|
||||
setIteratorAttribute((EditorIteratorAttributeExpression)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT_ITR__ITERATOR_ATTRIBUTE:
|
||||
setIteratorAttribute((EditorIteratorAttributeExpression)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT_ITR__ITERATOR_ATTRIBUTE:
|
||||
return iteratorAttribute != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //EditorIteratorAttributeAssignmentItrImpl
|
|
@ -1,196 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorAttributeExpression;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorIteratorAttributeAssignmentNode;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor Iterator Attribute Assignment Node</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorIteratorAttributeAssignmentNodeImpl#getNodeAttribute <em>Node Attribute</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorIteratorAttributeAssignmentNodeImpl extends EditorIteratorAttributeAssignmentImpl implements EditorIteratorAttributeAssignmentNode
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getNodeAttribute() <em>Node Attribute</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getNodeAttribute()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EditorAttributeExpression nodeAttribute;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EditorIteratorAttributeAssignmentNodeImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT_NODE;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EditorAttributeExpression getNodeAttribute()
|
||||
{
|
||||
return nodeAttribute;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetNodeAttribute(EditorAttributeExpression newNodeAttribute, NotificationChain msgs)
|
||||
{
|
||||
EditorAttributeExpression oldNodeAttribute = nodeAttribute;
|
||||
nodeAttribute = newNodeAttribute;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT_NODE__NODE_ATTRIBUTE, oldNodeAttribute, newNodeAttribute);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setNodeAttribute(EditorAttributeExpression newNodeAttribute)
|
||||
{
|
||||
if (newNodeAttribute != nodeAttribute)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (nodeAttribute != null)
|
||||
msgs = ((InternalEObject)nodeAttribute).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT_NODE__NODE_ATTRIBUTE, null, msgs);
|
||||
if (newNodeAttribute != null)
|
||||
msgs = ((InternalEObject)newNodeAttribute).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT_NODE__NODE_ATTRIBUTE, null, msgs);
|
||||
msgs = basicSetNodeAttribute(newNodeAttribute, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT_NODE__NODE_ATTRIBUTE, newNodeAttribute, newNodeAttribute));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT_NODE__NODE_ATTRIBUTE:
|
||||
return basicSetNodeAttribute(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 GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT_NODE__NODE_ATTRIBUTE:
|
||||
return getNodeAttribute();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT_NODE__NODE_ATTRIBUTE:
|
||||
setNodeAttribute((EditorAttributeExpression)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT_NODE__NODE_ATTRIBUTE:
|
||||
setNodeAttribute((EditorAttributeExpression)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ITERATOR_ATTRIBUTE_ASSIGNMENT_NODE__NODE_ATTRIBUTE:
|
||||
return nodeAttribute != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //EditorIteratorAttributeAssignmentNodeImpl
|
|
@ -1,243 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EAttribute;
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorIteratorAttributeExpression;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorReferenceIterator;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor Iterator Attribute Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorIteratorAttributeExpressionImpl#getIterator <em>Iterator</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorIteratorAttributeExpressionImpl#getAttribute <em>Attribute</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorIteratorAttributeExpressionImpl extends ArithmeticExpressionImpl implements EditorIteratorAttributeExpression
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getIterator() <em>Iterator</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getIterator()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EditorReferenceIterator iterator;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getAttribute() <em>Attribute</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getAttribute()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EAttribute attribute;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EditorIteratorAttributeExpressionImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_ITERATOR_ATTRIBUTE_EXPRESSION;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EditorReferenceIterator getIterator()
|
||||
{
|
||||
if (iterator != null && iterator.eIsProxy())
|
||||
{
|
||||
InternalEObject oldIterator = (InternalEObject)iterator;
|
||||
iterator = (EditorReferenceIterator)eResolveProxy(oldIterator);
|
||||
if (iterator != oldIterator)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GTPackage.EDITOR_ITERATOR_ATTRIBUTE_EXPRESSION__ITERATOR, oldIterator, iterator));
|
||||
}
|
||||
}
|
||||
return iterator;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EditorReferenceIterator basicGetIterator()
|
||||
{
|
||||
return iterator;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setIterator(EditorReferenceIterator newIterator)
|
||||
{
|
||||
EditorReferenceIterator oldIterator = iterator;
|
||||
iterator = newIterator;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_ITERATOR_ATTRIBUTE_EXPRESSION__ITERATOR, oldIterator, iterator));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EAttribute getAttribute()
|
||||
{
|
||||
if (attribute != null && attribute.eIsProxy())
|
||||
{
|
||||
InternalEObject oldAttribute = (InternalEObject)attribute;
|
||||
attribute = (EAttribute)eResolveProxy(oldAttribute);
|
||||
if (attribute != oldAttribute)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GTPackage.EDITOR_ITERATOR_ATTRIBUTE_EXPRESSION__ATTRIBUTE, oldAttribute, attribute));
|
||||
}
|
||||
}
|
||||
return attribute;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EAttribute basicGetAttribute()
|
||||
{
|
||||
return attribute;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setAttribute(EAttribute newAttribute)
|
||||
{
|
||||
EAttribute oldAttribute = attribute;
|
||||
attribute = newAttribute;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_ITERATOR_ATTRIBUTE_EXPRESSION__ATTRIBUTE, oldAttribute, attribute));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ITERATOR_ATTRIBUTE_EXPRESSION__ITERATOR:
|
||||
if (resolve) return getIterator();
|
||||
return basicGetIterator();
|
||||
case GTPackage.EDITOR_ITERATOR_ATTRIBUTE_EXPRESSION__ATTRIBUTE:
|
||||
if (resolve) return getAttribute();
|
||||
return basicGetAttribute();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ITERATOR_ATTRIBUTE_EXPRESSION__ITERATOR:
|
||||
setIterator((EditorReferenceIterator)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_ITERATOR_ATTRIBUTE_EXPRESSION__ATTRIBUTE:
|
||||
setAttribute((EAttribute)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ITERATOR_ATTRIBUTE_EXPRESSION__ITERATOR:
|
||||
setIterator((EditorReferenceIterator)null);
|
||||
return;
|
||||
case GTPackage.EDITOR_ITERATOR_ATTRIBUTE_EXPRESSION__ATTRIBUTE:
|
||||
setAttribute((EAttribute)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ITERATOR_ATTRIBUTE_EXPRESSION__ITERATOR:
|
||||
return iterator != null;
|
||||
case GTPackage.EDITOR_ITERATOR_ATTRIBUTE_EXPRESSION__ATTRIBUTE:
|
||||
return attribute != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //EditorIteratorAttributeExpressionImpl
|
|
@ -1,386 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.EReference;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorIteratorReference;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorNode;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorOperator;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorReferenceIterator;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor Iterator Reference</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorIteratorReferenceImpl#getOperator <em>Operator</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorIteratorReferenceImpl#getSource <em>Source</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorIteratorReferenceImpl#getType <em>Type</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorIteratorReferenceImpl#getTarget <em>Target</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorIteratorReferenceImpl extends MinimalEObjectImpl.Container implements EditorIteratorReference
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getOperator() <em>Operator</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getOperator()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final EditorOperator OPERATOR_EDEFAULT = EditorOperator.CONTEXT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getOperator() <em>Operator</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getOperator()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EditorOperator operator = OPERATOR_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getSource() <em>Source</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getSource()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EditorNode source;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getType() <em>Type</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getType()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EReference type;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getTarget() <em>Target</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getTarget()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EditorReferenceIterator target;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EditorIteratorReferenceImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_ITERATOR_REFERENCE;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EditorOperator getOperator()
|
||||
{
|
||||
return operator;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setOperator(EditorOperator newOperator)
|
||||
{
|
||||
EditorOperator oldOperator = operator;
|
||||
operator = newOperator == null ? OPERATOR_EDEFAULT : newOperator;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_ITERATOR_REFERENCE__OPERATOR, oldOperator, operator));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EditorNode getSource()
|
||||
{
|
||||
if (source != null && source.eIsProxy())
|
||||
{
|
||||
InternalEObject oldSource = (InternalEObject)source;
|
||||
source = (EditorNode)eResolveProxy(oldSource);
|
||||
if (source != oldSource)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GTPackage.EDITOR_ITERATOR_REFERENCE__SOURCE, oldSource, source));
|
||||
}
|
||||
}
|
||||
return source;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EditorNode basicGetSource()
|
||||
{
|
||||
return source;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setSource(EditorNode newSource)
|
||||
{
|
||||
EditorNode oldSource = source;
|
||||
source = newSource;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_ITERATOR_REFERENCE__SOURCE, oldSource, source));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EReference getType()
|
||||
{
|
||||
if (type != null && type.eIsProxy())
|
||||
{
|
||||
InternalEObject oldType = (InternalEObject)type;
|
||||
type = (EReference)eResolveProxy(oldType);
|
||||
if (type != oldType)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GTPackage.EDITOR_ITERATOR_REFERENCE__TYPE, oldType, type));
|
||||
}
|
||||
}
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference basicGetType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setType(EReference newType)
|
||||
{
|
||||
EReference oldType = type;
|
||||
type = newType;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_ITERATOR_REFERENCE__TYPE, oldType, type));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EditorReferenceIterator getTarget()
|
||||
{
|
||||
if (target != null && target.eIsProxy())
|
||||
{
|
||||
InternalEObject oldTarget = (InternalEObject)target;
|
||||
target = (EditorReferenceIterator)eResolveProxy(oldTarget);
|
||||
if (target != oldTarget)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GTPackage.EDITOR_ITERATOR_REFERENCE__TARGET, oldTarget, target));
|
||||
}
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EditorReferenceIterator basicGetTarget()
|
||||
{
|
||||
return target;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setTarget(EditorReferenceIterator newTarget)
|
||||
{
|
||||
EditorReferenceIterator oldTarget = target;
|
||||
target = newTarget;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_ITERATOR_REFERENCE__TARGET, oldTarget, target));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ITERATOR_REFERENCE__OPERATOR:
|
||||
return getOperator();
|
||||
case GTPackage.EDITOR_ITERATOR_REFERENCE__SOURCE:
|
||||
if (resolve) return getSource();
|
||||
return basicGetSource();
|
||||
case GTPackage.EDITOR_ITERATOR_REFERENCE__TYPE:
|
||||
if (resolve) return getType();
|
||||
return basicGetType();
|
||||
case GTPackage.EDITOR_ITERATOR_REFERENCE__TARGET:
|
||||
if (resolve) return getTarget();
|
||||
return basicGetTarget();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ITERATOR_REFERENCE__OPERATOR:
|
||||
setOperator((EditorOperator)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_ITERATOR_REFERENCE__SOURCE:
|
||||
setSource((EditorNode)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_ITERATOR_REFERENCE__TYPE:
|
||||
setType((EReference)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_ITERATOR_REFERENCE__TARGET:
|
||||
setTarget((EditorReferenceIterator)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ITERATOR_REFERENCE__OPERATOR:
|
||||
setOperator(OPERATOR_EDEFAULT);
|
||||
return;
|
||||
case GTPackage.EDITOR_ITERATOR_REFERENCE__SOURCE:
|
||||
setSource((EditorNode)null);
|
||||
return;
|
||||
case GTPackage.EDITOR_ITERATOR_REFERENCE__TYPE:
|
||||
setType((EReference)null);
|
||||
return;
|
||||
case GTPackage.EDITOR_ITERATOR_REFERENCE__TARGET:
|
||||
setTarget((EditorReferenceIterator)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_ITERATOR_REFERENCE__OPERATOR:
|
||||
return operator != OPERATOR_EDEFAULT;
|
||||
case GTPackage.EDITOR_ITERATOR_REFERENCE__SOURCE:
|
||||
return source != null;
|
||||
case GTPackage.EDITOR_ITERATOR_REFERENCE__TYPE:
|
||||
return type != null;
|
||||
case GTPackage.EDITOR_ITERATOR_REFERENCE__TARGET:
|
||||
return target != 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(" (operator: ");
|
||||
result.append(operator);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //EditorIteratorReferenceImpl
|
|
@ -1,179 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorLiteralExpression;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor Literal Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorLiteralExpressionImpl#getValue <em>Value</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorLiteralExpressionImpl extends ArithmeticExpressionImpl implements EditorLiteralExpression
|
||||
{
|
||||
/**
|
||||
* 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 EditorLiteralExpressionImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_LITERAL_EXPRESSION;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- 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, GTPackage.EDITOR_LITERAL_EXPRESSION__VALUE, oldValue, value));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_LITERAL_EXPRESSION__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 GTPackage.EDITOR_LITERAL_EXPRESSION__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 GTPackage.EDITOR_LITERAL_EXPRESSION__VALUE:
|
||||
setValue(VALUE_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_LITERAL_EXPRESSION__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();
|
||||
}
|
||||
|
||||
} //EditorLiteralExpressionImpl
|
|
@ -1,449 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorAttributeAssignment;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorNode;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorOperator;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorReference;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorReferenceIterator;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor Node</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorNodeImpl#getOperator <em>Operator</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorNodeImpl#isLocal <em>Local</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorNodeImpl#getType <em>Type</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorNodeImpl#getAttributes <em>Attributes</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorNodeImpl#getReferences <em>References</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorNodeImpl#getIterators <em>Iterators</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorNodeImpl extends EditorParameterOrNodeImpl implements EditorNode
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getOperator() <em>Operator</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getOperator()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final EditorOperator OPERATOR_EDEFAULT = EditorOperator.CONTEXT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getOperator() <em>Operator</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getOperator()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EditorOperator operator = OPERATOR_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #isLocal() <em>Local</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #isLocal()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final boolean LOCAL_EDEFAULT = false;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #isLocal() <em>Local</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #isLocal()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected boolean local = LOCAL_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getType() <em>Type</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getType()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EClass type;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getAttributes() <em>Attributes</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getAttributes()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<EditorAttributeAssignment> attributes;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getReferences() <em>References</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getReferences()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<EditorReference> references;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getIterators() <em>Iterators</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getIterators()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<EditorReferenceIterator> iterators;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EditorNodeImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_NODE;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EditorOperator getOperator()
|
||||
{
|
||||
return operator;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setOperator(EditorOperator newOperator)
|
||||
{
|
||||
EditorOperator oldOperator = operator;
|
||||
operator = newOperator == null ? OPERATOR_EDEFAULT : newOperator;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_NODE__OPERATOR, oldOperator, operator));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean isLocal()
|
||||
{
|
||||
return local;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setLocal(boolean newLocal)
|
||||
{
|
||||
boolean oldLocal = local;
|
||||
local = newLocal;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_NODE__LOCAL, oldLocal, local));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EClass getType()
|
||||
{
|
||||
if (type != null && type.eIsProxy())
|
||||
{
|
||||
InternalEObject oldType = (InternalEObject)type;
|
||||
type = (EClass)eResolveProxy(oldType);
|
||||
if (type != oldType)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GTPackage.EDITOR_NODE__TYPE, oldType, type));
|
||||
}
|
||||
}
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EClass basicGetType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setType(EClass newType)
|
||||
{
|
||||
EClass oldType = type;
|
||||
type = newType;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_NODE__TYPE, oldType, type));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<EditorAttributeAssignment> getAttributes()
|
||||
{
|
||||
if (attributes == null)
|
||||
{
|
||||
attributes = new EObjectContainmentEList<EditorAttributeAssignment>(EditorAttributeAssignment.class, this, GTPackage.EDITOR_NODE__ATTRIBUTES);
|
||||
}
|
||||
return attributes;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<EditorReference> getReferences()
|
||||
{
|
||||
if (references == null)
|
||||
{
|
||||
references = new EObjectContainmentEList<EditorReference>(EditorReference.class, this, GTPackage.EDITOR_NODE__REFERENCES);
|
||||
}
|
||||
return references;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<EditorReferenceIterator> getIterators()
|
||||
{
|
||||
if (iterators == null)
|
||||
{
|
||||
iterators = new EObjectContainmentEList<EditorReferenceIterator>(EditorReferenceIterator.class, this, GTPackage.EDITOR_NODE__ITERATORS);
|
||||
}
|
||||
return iterators;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_NODE__ATTRIBUTES:
|
||||
return ((InternalEList<?>)getAttributes()).basicRemove(otherEnd, msgs);
|
||||
case GTPackage.EDITOR_NODE__REFERENCES:
|
||||
return ((InternalEList<?>)getReferences()).basicRemove(otherEnd, msgs);
|
||||
case GTPackage.EDITOR_NODE__ITERATORS:
|
||||
return ((InternalEList<?>)getIterators()).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 GTPackage.EDITOR_NODE__OPERATOR:
|
||||
return getOperator();
|
||||
case GTPackage.EDITOR_NODE__LOCAL:
|
||||
return isLocal();
|
||||
case GTPackage.EDITOR_NODE__TYPE:
|
||||
if (resolve) return getType();
|
||||
return basicGetType();
|
||||
case GTPackage.EDITOR_NODE__ATTRIBUTES:
|
||||
return getAttributes();
|
||||
case GTPackage.EDITOR_NODE__REFERENCES:
|
||||
return getReferences();
|
||||
case GTPackage.EDITOR_NODE__ITERATORS:
|
||||
return getIterators();
|
||||
}
|
||||
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 GTPackage.EDITOR_NODE__OPERATOR:
|
||||
setOperator((EditorOperator)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_NODE__LOCAL:
|
||||
setLocal((Boolean)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_NODE__TYPE:
|
||||
setType((EClass)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_NODE__ATTRIBUTES:
|
||||
getAttributes().clear();
|
||||
getAttributes().addAll((Collection<? extends EditorAttributeAssignment>)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_NODE__REFERENCES:
|
||||
getReferences().clear();
|
||||
getReferences().addAll((Collection<? extends EditorReference>)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_NODE__ITERATORS:
|
||||
getIterators().clear();
|
||||
getIterators().addAll((Collection<? extends EditorReferenceIterator>)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_NODE__OPERATOR:
|
||||
setOperator(OPERATOR_EDEFAULT);
|
||||
return;
|
||||
case GTPackage.EDITOR_NODE__LOCAL:
|
||||
setLocal(LOCAL_EDEFAULT);
|
||||
return;
|
||||
case GTPackage.EDITOR_NODE__TYPE:
|
||||
setType((EClass)null);
|
||||
return;
|
||||
case GTPackage.EDITOR_NODE__ATTRIBUTES:
|
||||
getAttributes().clear();
|
||||
return;
|
||||
case GTPackage.EDITOR_NODE__REFERENCES:
|
||||
getReferences().clear();
|
||||
return;
|
||||
case GTPackage.EDITOR_NODE__ITERATORS:
|
||||
getIterators().clear();
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_NODE__OPERATOR:
|
||||
return operator != OPERATOR_EDEFAULT;
|
||||
case GTPackage.EDITOR_NODE__LOCAL:
|
||||
return local != LOCAL_EDEFAULT;
|
||||
case GTPackage.EDITOR_NODE__TYPE:
|
||||
return type != null;
|
||||
case GTPackage.EDITOR_NODE__ATTRIBUTES:
|
||||
return attributes != null && !attributes.isEmpty();
|
||||
case GTPackage.EDITOR_NODE__REFERENCES:
|
||||
return references != null && !references.isEmpty();
|
||||
case GTPackage.EDITOR_NODE__ITERATORS:
|
||||
return iterators != null && !iterators.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(" (operator: ");
|
||||
result.append(operator);
|
||||
result.append(", local: ");
|
||||
result.append(local);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //EditorNodeImpl
|
|
@ -1,175 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorParameter;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorParameterExpression;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor Parameter Expression</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorParameterExpressionImpl#getParameter <em>Parameter</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorParameterExpressionImpl extends EditorExpressionImpl implements EditorParameterExpression
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getParameter() <em>Parameter</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getParameter()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EditorParameter parameter;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EditorParameterExpressionImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_PARAMETER_EXPRESSION;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EditorParameter getParameter()
|
||||
{
|
||||
if (parameter != null && parameter.eIsProxy())
|
||||
{
|
||||
InternalEObject oldParameter = (InternalEObject)parameter;
|
||||
parameter = (EditorParameter)eResolveProxy(oldParameter);
|
||||
if (parameter != oldParameter)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GTPackage.EDITOR_PARAMETER_EXPRESSION__PARAMETER, oldParameter, parameter));
|
||||
}
|
||||
}
|
||||
return parameter;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EditorParameter basicGetParameter()
|
||||
{
|
||||
return parameter;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setParameter(EditorParameter newParameter)
|
||||
{
|
||||
EditorParameter oldParameter = parameter;
|
||||
parameter = newParameter;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_PARAMETER_EXPRESSION__PARAMETER, oldParameter, parameter));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_PARAMETER_EXPRESSION__PARAMETER:
|
||||
if (resolve) return getParameter();
|
||||
return basicGetParameter();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_PARAMETER_EXPRESSION__PARAMETER:
|
||||
setParameter((EditorParameter)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_PARAMETER_EXPRESSION__PARAMETER:
|
||||
setParameter((EditorParameter)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_PARAMETER_EXPRESSION__PARAMETER:
|
||||
return parameter != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //EditorParameterExpressionImpl
|
|
@ -1,175 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.EDataType;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorParameter;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor Parameter</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorParameterImpl#getType <em>Type</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorParameterImpl extends EditorParameterOrNodeImpl implements EditorParameter
|
||||
{
|
||||
/**
|
||||
* The cached value of the '{@link #getType() <em>Type</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getType()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EDataType type;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EditorParameterImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_PARAMETER;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EDataType getType()
|
||||
{
|
||||
if (type != null && type.eIsProxy())
|
||||
{
|
||||
InternalEObject oldType = (InternalEObject)type;
|
||||
type = (EDataType)eResolveProxy(oldType);
|
||||
if (type != oldType)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GTPackage.EDITOR_PARAMETER__TYPE, oldType, type));
|
||||
}
|
||||
}
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EDataType basicGetType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setType(EDataType newType)
|
||||
{
|
||||
EDataType oldType = type;
|
||||
type = newType;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_PARAMETER__TYPE, oldType, type));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_PARAMETER__TYPE:
|
||||
if (resolve) return getType();
|
||||
return basicGetType();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_PARAMETER__TYPE:
|
||||
setType((EDataType)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_PARAMETER__TYPE:
|
||||
setType((EDataType)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_PARAMETER__TYPE:
|
||||
return type != null;
|
||||
}
|
||||
return super.eIsSet(featureID);
|
||||
}
|
||||
|
||||
} //EditorParameterImpl
|
|
@ -1,180 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorParameterOrNode;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor Parameter Or Node</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorParameterOrNodeImpl#getName <em>Name</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorParameterOrNodeImpl extends MinimalEObjectImpl.Container implements EditorParameterOrNode
|
||||
{
|
||||
/**
|
||||
* 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 EditorParameterOrNodeImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_PARAMETER_OR_NODE;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- 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, GTPackage.EDITOR_PARAMETER_OR_NODE__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_PARAMETER_OR_NODE__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 GTPackage.EDITOR_PARAMETER_OR_NODE__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 GTPackage.EDITOR_PARAMETER_OR_NODE__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_PARAMETER_OR_NODE__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();
|
||||
}
|
||||
|
||||
} //EditorParameterOrNodeImpl
|
|
@ -1,649 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
import org.eclipse.emf.common.notify.NotificationChain;
|
||||
|
||||
import org.eclipse.emf.common.util.EList;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
|
||||
import org.eclipse.emf.ecore.util.EObjectResolvingEList;
|
||||
import org.eclipse.emf.ecore.util.InternalEList;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorAttributeConstraint;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorCondition;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorNode;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorParameter;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorPattern;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorPatternType;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorProbability;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor Pattern</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorPatternImpl#isAbstract <em>Abstract</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorPatternImpl#getType <em>Type</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorPatternImpl#getName <em>Name</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorPatternImpl#getParameters <em>Parameters</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorPatternImpl#getSuperPatterns <em>Super Patterns</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorPatternImpl#getNodes <em>Nodes</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorPatternImpl#getAttributeConstraints <em>Attribute Constraints</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorPatternImpl#getConditions <em>Conditions</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorPatternImpl#isStochastic <em>Stochastic</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorPatternImpl#getProbability <em>Probability</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorPatternImpl extends MinimalEObjectImpl.Container implements EditorPattern
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #isAbstract() <em>Abstract</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #isAbstract()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final boolean ABSTRACT_EDEFAULT = false;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #isAbstract() <em>Abstract</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #isAbstract()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected boolean abstract_ = ABSTRACT_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #getType() <em>Type</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getType()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final EditorPatternType TYPE_EDEFAULT = EditorPatternType.PATTERN;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getType() <em>Type</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getType()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EditorPatternType 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 #getParameters() <em>Parameters</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getParameters()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<EditorParameter> parameters;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getSuperPatterns() <em>Super Patterns</em>}' reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getSuperPatterns()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<EditorPattern> superPatterns;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getNodes() <em>Nodes</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getNodes()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<EditorNode> nodes;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getAttributeConstraints() <em>Attribute Constraints</em>}' containment reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getAttributeConstraints()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<EditorAttributeConstraint> attributeConstraints;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getConditions() <em>Conditions</em>}' reference list.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getConditions()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EList<EditorCondition> conditions;
|
||||
|
||||
/**
|
||||
* The default value of the '{@link #isStochastic() <em>Stochastic</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #isStochastic()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final boolean STOCHASTIC_EDEFAULT = false;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #isStochastic() <em>Stochastic</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #isStochastic()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected boolean stochastic = STOCHASTIC_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getProbability() <em>Probability</em>}' containment reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getProbability()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EditorProbability probability;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EditorPatternImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_PATTERN;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean isAbstract()
|
||||
{
|
||||
return abstract_;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setAbstract(boolean newAbstract)
|
||||
{
|
||||
boolean oldAbstract = abstract_;
|
||||
abstract_ = newAbstract;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_PATTERN__ABSTRACT, oldAbstract, abstract_));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EditorPatternType getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setType(EditorPatternType newType)
|
||||
{
|
||||
EditorPatternType oldType = type;
|
||||
type = newType == null ? TYPE_EDEFAULT : newType;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_PATTERN__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, GTPackage.EDITOR_PATTERN__NAME, oldName, name));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<EditorParameter> getParameters()
|
||||
{
|
||||
if (parameters == null)
|
||||
{
|
||||
parameters = new EObjectContainmentEList<EditorParameter>(EditorParameter.class, this, GTPackage.EDITOR_PATTERN__PARAMETERS);
|
||||
}
|
||||
return parameters;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<EditorPattern> getSuperPatterns()
|
||||
{
|
||||
if (superPatterns == null)
|
||||
{
|
||||
superPatterns = new EObjectResolvingEList<EditorPattern>(EditorPattern.class, this, GTPackage.EDITOR_PATTERN__SUPER_PATTERNS);
|
||||
}
|
||||
return superPatterns;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<EditorNode> getNodes()
|
||||
{
|
||||
if (nodes == null)
|
||||
{
|
||||
nodes = new EObjectContainmentEList<EditorNode>(EditorNode.class, this, GTPackage.EDITOR_PATTERN__NODES);
|
||||
}
|
||||
return nodes;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<EditorAttributeConstraint> getAttributeConstraints()
|
||||
{
|
||||
if (attributeConstraints == null)
|
||||
{
|
||||
attributeConstraints = new EObjectContainmentEList<EditorAttributeConstraint>(EditorAttributeConstraint.class, this, GTPackage.EDITOR_PATTERN__ATTRIBUTE_CONSTRAINTS);
|
||||
}
|
||||
return attributeConstraints;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EList<EditorCondition> getConditions()
|
||||
{
|
||||
if (conditions == null)
|
||||
{
|
||||
conditions = new EObjectResolvingEList<EditorCondition>(EditorCondition.class, this, GTPackage.EDITOR_PATTERN__CONDITIONS);
|
||||
}
|
||||
return conditions;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean isStochastic()
|
||||
{
|
||||
return stochastic;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setStochastic(boolean newStochastic)
|
||||
{
|
||||
boolean oldStochastic = stochastic;
|
||||
stochastic = newStochastic;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_PATTERN__STOCHASTIC, oldStochastic, stochastic));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EditorProbability getProbability()
|
||||
{
|
||||
return probability;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public NotificationChain basicSetProbability(EditorProbability newProbability, NotificationChain msgs)
|
||||
{
|
||||
EditorProbability oldProbability = probability;
|
||||
probability = newProbability;
|
||||
if (eNotificationRequired())
|
||||
{
|
||||
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_PATTERN__PROBABILITY, oldProbability, newProbability);
|
||||
if (msgs == null) msgs = notification; else msgs.add(notification);
|
||||
}
|
||||
return msgs;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setProbability(EditorProbability newProbability)
|
||||
{
|
||||
if (newProbability != probability)
|
||||
{
|
||||
NotificationChain msgs = null;
|
||||
if (probability != null)
|
||||
msgs = ((InternalEObject)probability).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - GTPackage.EDITOR_PATTERN__PROBABILITY, null, msgs);
|
||||
if (newProbability != null)
|
||||
msgs = ((InternalEObject)newProbability).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - GTPackage.EDITOR_PATTERN__PROBABILITY, null, msgs);
|
||||
msgs = basicSetProbability(newProbability, msgs);
|
||||
if (msgs != null) msgs.dispatch();
|
||||
}
|
||||
else if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_PATTERN__PROBABILITY, newProbability, newProbability));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_PATTERN__PARAMETERS:
|
||||
return ((InternalEList<?>)getParameters()).basicRemove(otherEnd, msgs);
|
||||
case GTPackage.EDITOR_PATTERN__NODES:
|
||||
return ((InternalEList<?>)getNodes()).basicRemove(otherEnd, msgs);
|
||||
case GTPackage.EDITOR_PATTERN__ATTRIBUTE_CONSTRAINTS:
|
||||
return ((InternalEList<?>)getAttributeConstraints()).basicRemove(otherEnd, msgs);
|
||||
case GTPackage.EDITOR_PATTERN__PROBABILITY:
|
||||
return basicSetProbability(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 GTPackage.EDITOR_PATTERN__ABSTRACT:
|
||||
return isAbstract();
|
||||
case GTPackage.EDITOR_PATTERN__TYPE:
|
||||
return getType();
|
||||
case GTPackage.EDITOR_PATTERN__NAME:
|
||||
return getName();
|
||||
case GTPackage.EDITOR_PATTERN__PARAMETERS:
|
||||
return getParameters();
|
||||
case GTPackage.EDITOR_PATTERN__SUPER_PATTERNS:
|
||||
return getSuperPatterns();
|
||||
case GTPackage.EDITOR_PATTERN__NODES:
|
||||
return getNodes();
|
||||
case GTPackage.EDITOR_PATTERN__ATTRIBUTE_CONSTRAINTS:
|
||||
return getAttributeConstraints();
|
||||
case GTPackage.EDITOR_PATTERN__CONDITIONS:
|
||||
return getConditions();
|
||||
case GTPackage.EDITOR_PATTERN__STOCHASTIC:
|
||||
return isStochastic();
|
||||
case GTPackage.EDITOR_PATTERN__PROBABILITY:
|
||||
return getProbability();
|
||||
}
|
||||
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 GTPackage.EDITOR_PATTERN__ABSTRACT:
|
||||
setAbstract((Boolean)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_PATTERN__TYPE:
|
||||
setType((EditorPatternType)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_PATTERN__NAME:
|
||||
setName((String)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_PATTERN__PARAMETERS:
|
||||
getParameters().clear();
|
||||
getParameters().addAll((Collection<? extends EditorParameter>)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_PATTERN__SUPER_PATTERNS:
|
||||
getSuperPatterns().clear();
|
||||
getSuperPatterns().addAll((Collection<? extends EditorPattern>)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_PATTERN__NODES:
|
||||
getNodes().clear();
|
||||
getNodes().addAll((Collection<? extends EditorNode>)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_PATTERN__ATTRIBUTE_CONSTRAINTS:
|
||||
getAttributeConstraints().clear();
|
||||
getAttributeConstraints().addAll((Collection<? extends EditorAttributeConstraint>)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_PATTERN__CONDITIONS:
|
||||
getConditions().clear();
|
||||
getConditions().addAll((Collection<? extends EditorCondition>)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_PATTERN__STOCHASTIC:
|
||||
setStochastic((Boolean)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_PATTERN__PROBABILITY:
|
||||
setProbability((EditorProbability)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_PATTERN__ABSTRACT:
|
||||
setAbstract(ABSTRACT_EDEFAULT);
|
||||
return;
|
||||
case GTPackage.EDITOR_PATTERN__TYPE:
|
||||
setType(TYPE_EDEFAULT);
|
||||
return;
|
||||
case GTPackage.EDITOR_PATTERN__NAME:
|
||||
setName(NAME_EDEFAULT);
|
||||
return;
|
||||
case GTPackage.EDITOR_PATTERN__PARAMETERS:
|
||||
getParameters().clear();
|
||||
return;
|
||||
case GTPackage.EDITOR_PATTERN__SUPER_PATTERNS:
|
||||
getSuperPatterns().clear();
|
||||
return;
|
||||
case GTPackage.EDITOR_PATTERN__NODES:
|
||||
getNodes().clear();
|
||||
return;
|
||||
case GTPackage.EDITOR_PATTERN__ATTRIBUTE_CONSTRAINTS:
|
||||
getAttributeConstraints().clear();
|
||||
return;
|
||||
case GTPackage.EDITOR_PATTERN__CONDITIONS:
|
||||
getConditions().clear();
|
||||
return;
|
||||
case GTPackage.EDITOR_PATTERN__STOCHASTIC:
|
||||
setStochastic(STOCHASTIC_EDEFAULT);
|
||||
return;
|
||||
case GTPackage.EDITOR_PATTERN__PROBABILITY:
|
||||
setProbability((EditorProbability)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_PATTERN__ABSTRACT:
|
||||
return abstract_ != ABSTRACT_EDEFAULT;
|
||||
case GTPackage.EDITOR_PATTERN__TYPE:
|
||||
return type != TYPE_EDEFAULT;
|
||||
case GTPackage.EDITOR_PATTERN__NAME:
|
||||
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
|
||||
case GTPackage.EDITOR_PATTERN__PARAMETERS:
|
||||
return parameters != null && !parameters.isEmpty();
|
||||
case GTPackage.EDITOR_PATTERN__SUPER_PATTERNS:
|
||||
return superPatterns != null && !superPatterns.isEmpty();
|
||||
case GTPackage.EDITOR_PATTERN__NODES:
|
||||
return nodes != null && !nodes.isEmpty();
|
||||
case GTPackage.EDITOR_PATTERN__ATTRIBUTE_CONSTRAINTS:
|
||||
return attributeConstraints != null && !attributeConstraints.isEmpty();
|
||||
case GTPackage.EDITOR_PATTERN__CONDITIONS:
|
||||
return conditions != null && !conditions.isEmpty();
|
||||
case GTPackage.EDITOR_PATTERN__STOCHASTIC:
|
||||
return stochastic != STOCHASTIC_EDEFAULT;
|
||||
case GTPackage.EDITOR_PATTERN__PROBABILITY:
|
||||
return probability != 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(" (abstract: ");
|
||||
result.append(abstract_);
|
||||
result.append(", type: ");
|
||||
result.append(type);
|
||||
result.append(", name: ");
|
||||
result.append(name);
|
||||
result.append(", stochastic: ");
|
||||
result.append(stochastic);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //EditorPatternImpl
|
|
@ -1,43 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorProbability;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor Probability</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorProbabilityImpl extends MinimalEObjectImpl.Container implements EditorProbability
|
||||
{
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EditorProbabilityImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_PROBABILITY;
|
||||
}
|
||||
|
||||
} //EditorProbabilityImpl
|
|
@ -1,318 +0,0 @@
|
|||
/**
|
||||
* generated by Xtext 2.25.0
|
||||
*/
|
||||
package org.emoflon.ibex.gt.editor.gT.impl;
|
||||
|
||||
import org.eclipse.emf.common.notify.Notification;
|
||||
|
||||
import org.eclipse.emf.ecore.EClass;
|
||||
import org.eclipse.emf.ecore.EReference;
|
||||
import org.eclipse.emf.ecore.InternalEObject;
|
||||
|
||||
import org.eclipse.emf.ecore.impl.ENotificationImpl;
|
||||
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
|
||||
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorNode;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorOperator;
|
||||
import org.emoflon.ibex.gt.editor.gT.EditorReference;
|
||||
import org.emoflon.ibex.gt.editor.gT.GTPackage;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* An implementation of the model object '<em><b>Editor Reference</b></em>'.
|
||||
* <!-- end-user-doc -->
|
||||
* <p>
|
||||
* The following features are implemented:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorReferenceImpl#getOperator <em>Operator</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorReferenceImpl#getType <em>Type</em>}</li>
|
||||
* <li>{@link org.emoflon.ibex.gt.editor.gT.impl.EditorReferenceImpl#getTarget <em>Target</em>}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @generated
|
||||
*/
|
||||
public class EditorReferenceImpl extends MinimalEObjectImpl.Container implements EditorReference
|
||||
{
|
||||
/**
|
||||
* The default value of the '{@link #getOperator() <em>Operator</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getOperator()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected static final EditorOperator OPERATOR_EDEFAULT = EditorOperator.CONTEXT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getOperator() <em>Operator</em>}' attribute.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getOperator()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EditorOperator operator = OPERATOR_EDEFAULT;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getType() <em>Type</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getType()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EReference type;
|
||||
|
||||
/**
|
||||
* The cached value of the '{@link #getTarget() <em>Target</em>}' reference.
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @see #getTarget()
|
||||
* @generated
|
||||
* @ordered
|
||||
*/
|
||||
protected EditorNode target;
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected EditorReferenceImpl()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
protected EClass eStaticClass()
|
||||
{
|
||||
return GTPackage.Literals.EDITOR_REFERENCE;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EditorOperator getOperator()
|
||||
{
|
||||
return operator;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setOperator(EditorOperator newOperator)
|
||||
{
|
||||
EditorOperator oldOperator = operator;
|
||||
operator = newOperator == null ? OPERATOR_EDEFAULT : newOperator;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_REFERENCE__OPERATOR, oldOperator, operator));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EReference getType()
|
||||
{
|
||||
if (type != null && type.eIsProxy())
|
||||
{
|
||||
InternalEObject oldType = (InternalEObject)type;
|
||||
type = (EReference)eResolveProxy(oldType);
|
||||
if (type != oldType)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GTPackage.EDITOR_REFERENCE__TYPE, oldType, type));
|
||||
}
|
||||
}
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EReference basicGetType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setType(EReference newType)
|
||||
{
|
||||
EReference oldType = type;
|
||||
type = newType;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_REFERENCE__TYPE, oldType, type));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public EditorNode getTarget()
|
||||
{
|
||||
if (target != null && target.eIsProxy())
|
||||
{
|
||||
InternalEObject oldTarget = (InternalEObject)target;
|
||||
target = (EditorNode)eResolveProxy(oldTarget);
|
||||
if (target != oldTarget)
|
||||
{
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.RESOLVE, GTPackage.EDITOR_REFERENCE__TARGET, oldTarget, target));
|
||||
}
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
public EditorNode basicGetTarget()
|
||||
{
|
||||
return target;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void setTarget(EditorNode newTarget)
|
||||
{
|
||||
EditorNode oldTarget = target;
|
||||
target = newTarget;
|
||||
if (eNotificationRequired())
|
||||
eNotify(new ENotificationImpl(this, Notification.SET, GTPackage.EDITOR_REFERENCE__TARGET, oldTarget, target));
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public Object eGet(int featureID, boolean resolve, boolean coreType)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_REFERENCE__OPERATOR:
|
||||
return getOperator();
|
||||
case GTPackage.EDITOR_REFERENCE__TYPE:
|
||||
if (resolve) return getType();
|
||||
return basicGetType();
|
||||
case GTPackage.EDITOR_REFERENCE__TARGET:
|
||||
if (resolve) return getTarget();
|
||||
return basicGetTarget();
|
||||
}
|
||||
return super.eGet(featureID, resolve, coreType);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eSet(int featureID, Object newValue)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_REFERENCE__OPERATOR:
|
||||
setOperator((EditorOperator)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_REFERENCE__TYPE:
|
||||
setType((EReference)newValue);
|
||||
return;
|
||||
case GTPackage.EDITOR_REFERENCE__TARGET:
|
||||
setTarget((EditorNode)newValue);
|
||||
return;
|
||||
}
|
||||
super.eSet(featureID, newValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public void eUnset(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_REFERENCE__OPERATOR:
|
||||
setOperator(OPERATOR_EDEFAULT);
|
||||
return;
|
||||
case GTPackage.EDITOR_REFERENCE__TYPE:
|
||||
setType((EReference)null);
|
||||
return;
|
||||
case GTPackage.EDITOR_REFERENCE__TARGET:
|
||||
setTarget((EditorNode)null);
|
||||
return;
|
||||
}
|
||||
super.eUnset(featureID);
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
@Override
|
||||
public boolean eIsSet(int featureID)
|
||||
{
|
||||
switch (featureID)
|
||||
{
|
||||
case GTPackage.EDITOR_REFERENCE__OPERATOR:
|
||||
return operator != OPERATOR_EDEFAULT;
|
||||
case GTPackage.EDITOR_REFERENCE__TYPE:
|
||||
return type != null;
|
||||
case GTPackage.EDITOR_REFERENCE__TARGET:
|
||||
return target != 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(" (operator: ");
|
||||
result.append(operator);
|
||||
result.append(')');
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
} //EditorReferenceImpl
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue