Class QlElementMatcherProvider.QlTransitionMatcher<T extends org.eclipse.xtext.formatting.IElementMatcherProvider.IElementPattern>

  • Type Parameters:
    T -
    All Implemented Interfaces:
    org.eclipse.xtext.formatting.IElementMatcherProvider.IElementMatcher<T>, org.eclipse.xtext.formatting.IElementMatcherProvider.IElementMatcherExtension<T>
    Enclosing class:
    QlElementMatcherProvider

    protected static class QlElementMatcherProvider.QlTransitionMatcher<T extends org.eclipse.xtext.formatting.IElementMatcherProvider.IElementPattern>
    extends Object
    Special ElementMatcherProvider.TransitionMatcher for Ql.
    Supports right behavior for common unary expression
    • Constructor Detail

      • QlTransitionMatcher

        public QlTransitionMatcher​(org.eclipse.xtext.IGrammarAccess grammar,
                                   org.eclipse.xtext.formatting.impl.MatcherNFAProvider nfaProvider,
                                   Iterable<T> patterns,
                                   String skipRuleName)
        Parameters:
        grammar - actual IGrammarAccess
        nfaProvider - actual MatcherNFAProvider
        patterns - actual patterns
        skipRuleName - name of the special rule from Ql grammar which must be skiped
    • Method Detail

      • findTransitionPath

        protected org.eclipse.xtext.util.Pair<List<org.eclipse.xtext.formatting.impl.MatcherTransition>,​List<org.eclipse.xtext.formatting.impl.MatcherState>> findTransitionPath​(org.eclipse.xtext.formatting.impl.MatcherState from,
                                                                                                                                                                                       org.eclipse.xtext.AbstractElement to,
                                                                                                                                                                                       boolean returning,
                                                                                                                                                                                       boolean canReturn,
                                                                                                                                                                                       Set<org.eclipse.xtext.util.Pair<Boolean,​org.eclipse.xtext.formatting.impl.MatcherState>> visited)