diff options
author | 2017-06-10 20:39:40 +0200 | |
---|---|---|
committer | 2017-06-10 20:39:40 +0200 | |
commit | 10d272818443979dbb15972b397e8ac1bbbd5cd2 (patch) | |
tree | 0e6bafd1a1dabad2affefdaed295f780fcc6f65b /Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language.ui/src-gen/hu/bme/mit/inf/dslreasoner/ui/contentassist/antlr/PartialSmtLanguageContentAssistParser.java | |
parent | Migrating Additional projects (diff) | |
download | VIATRA-Generator-10d272818443979dbb15972b397e8ac1bbbd5cd2.tar.gz VIATRA-Generator-10d272818443979dbb15972b397e8ac1bbbd5cd2.tar.zst VIATRA-Generator-10d272818443979dbb15972b397e8ac1bbbd5cd2.zip |
Added generated Xtext artefacts
Diffstat (limited to 'Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language.ui/src-gen/hu/bme/mit/inf/dslreasoner/ui/contentassist/antlr/PartialSmtLanguageContentAssistParser.java')
-rw-r--r-- | Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language.ui/src-gen/hu/bme/mit/inf/dslreasoner/ui/contentassist/antlr/PartialSmtLanguageContentAssistParser.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language.ui/src-gen/hu/bme/mit/inf/dslreasoner/ui/contentassist/antlr/PartialSmtLanguageContentAssistParser.java b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language.ui/src-gen/hu/bme/mit/inf/dslreasoner/ui/contentassist/antlr/PartialSmtLanguageContentAssistParser.java new file mode 100644 index 00000000..ecd1ebf0 --- /dev/null +++ b/Solvers/SMT-Solver/hu.bme.mit.inf.dslreasoner.smt.language.ui/src-gen/hu/bme/mit/inf/dslreasoner/ui/contentassist/antlr/PartialSmtLanguageContentAssistParser.java | |||
@@ -0,0 +1,38 @@ | |||
1 | /* | ||
2 | * generated by Xtext | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.ui.contentassist.antlr; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | import java.util.Collections; | ||
8 | |||
9 | import org.eclipse.xtext.AbstractRule; | ||
10 | import org.eclipse.xtext.ui.codetemplates.ui.partialEditing.IPartialContentAssistParser; | ||
11 | import org.eclipse.xtext.ui.editor.contentassist.antlr.FollowElement; | ||
12 | import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; | ||
13 | import org.eclipse.xtext.util.PolymorphicDispatcher; | ||
14 | |||
15 | /** | ||
16 | * @author Sebastian Zarnekow - Initial contribution and API | ||
17 | */ | ||
18 | @SuppressWarnings("restriction") | ||
19 | public class PartialSmtLanguageContentAssistParser extends SmtLanguageParser implements IPartialContentAssistParser { | ||
20 | |||
21 | private AbstractRule rule; | ||
22 | |||
23 | public void initializeFor(AbstractRule rule) { | ||
24 | this.rule = rule; | ||
25 | } | ||
26 | |||
27 | @Override | ||
28 | protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { | ||
29 | if (rule == null || rule.eIsProxy()) | ||
30 | return Collections.emptyList(); | ||
31 | String methodName = "entryRule" + rule.getName(); | ||
32 | PolymorphicDispatcher<Collection<FollowElement>> dispatcher = | ||
33 | new PolymorphicDispatcher<Collection<FollowElement>>(methodName, 0, 0, Collections.singletonList(parser)); | ||
34 | dispatcher.invoke(); | ||
35 | return parser.getFollowElements(); | ||
36 | } | ||
37 | |||
38 | } | ||