org.eclipse.xtext.Wildcard Java Examples
The following examples show how to use
org.eclipse.xtext.Wildcard.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TerminalRuleInterpreter.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
@Override public Boolean caseWildcard(Wildcard object) { boolean result = false; OUTER: do { if (eof()) break OUTER; input.incOffset(); result = true; continue OUTER; } while(GrammarUtil.isMultipleCardinality(object)); return result || GrammarUtil.isOptionalCardinality(object); }
Example #2
Source File: TerminalRuleToLexerBody.java From xtext-extras with Eclipse Public License 2.0 | 4 votes |
@Override public String caseWildcard(Wildcard object) { result.append('.'); result.append(Strings.emptyIfNull(object.getCardinality())); return ""; }
Example #3
Source File: XtextLabelProvider.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
String text(Wildcard object) { return "*"; }
Example #4
Source File: TerminalRuleToLexerBody.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
@Override public String caseWildcard(Wildcard object) { result.append('.'); result.append(Strings.emptyIfNull(object.getCardinality())); return ""; }
Example #5
Source File: XtextSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 2 votes |
/** * Contexts: * TerminalAlternatives returns Wildcard * TerminalAlternatives.Alternatives_1_0 returns Wildcard * TerminalGroup returns Wildcard * TerminalGroup.Group_1_0 returns Wildcard * TerminalToken returns Wildcard * TerminalTokenElement returns Wildcard * ParenthesizedTerminalElement returns Wildcard * * Constraint: * (cardinality='?' | cardinality='*' | cardinality='+')* */ protected void sequence_TerminalToken_Wildcard(ISerializationContext context, Wildcard semanticObject) { genericSequencer.createSequence(context, semanticObject); }
Example #6
Source File: XtextSemanticSequencer.java From xtext-core with Eclipse Public License 2.0 | 2 votes |
/** * Contexts: * Wildcard returns Wildcard * * Constraint: * {Wildcard} */ protected void sequence_Wildcard(ISerializationContext context, Wildcard semanticObject) { genericSequencer.createSequence(context, semanticObject); }