Class AbstractRichStringPartAcceptor.ForLoopOnce

    • Constructor Detail

      • ForLoopOnce

        public ForLoopOnce()
    • Method Detail

      • acceptForLoop

        public void acceptForLoop​(org.eclipse.xtext.common.types.JvmFormalParameter parameter,
                                  org.eclipse.xtext.xbase.XExpression expression)
        Description copied from interface: IRichStringPartAcceptor
        Announces that a
        «FOR parameter: expression»
        has been consumed.
        Specified by:
        acceptForLoop in interface IRichStringPartAcceptor
        Overrides:
        acceptForLoop in class AbstractRichStringPartAcceptor
        Parameters:
        parameter - the declared parameter in the for-loop.
        expression - the expression that produces an Iterable.
      • forLoopHasNext

        public boolean forLoopHasNext​(org.eclipse.xtext.xbase.XExpression before,
                                      org.eclipse.xtext.xbase.XExpression separator,
                                      java.lang.CharSequence indentation)
        Description copied from interface: IRichStringPartAcceptor
        Queried to determine whether the body of the for-loop should be evaluated (again).
        Parameters:
        before - the expression that should be evaluated prior to the first item of the loop, if any.
        separator - the expression that should be evaluated prior to the second and all subsequent items of the loop.
        indentation - the additional indentation for any line besides the first one.
        Returns:
        true if the for-loop body should be evaluated.
      • acceptEndFor

        public void acceptEndFor​(org.eclipse.xtext.xbase.XExpression after,
                                 java.lang.CharSequence indentation)
        Description copied from interface: IRichStringPartAcceptor
        Announces that an
        «ENDFOR»
        has been consumed.
        Specified by:
        acceptEndFor in interface IRichStringPartAcceptor
        Overrides:
        acceptEndFor in class AbstractRichStringPartAcceptor
        Parameters:
        after - the expression that should be evaluated after the last item of the loop, if any.
        indentation - the additional indentation for any line besides the first one.