org.eclipse.xtext.xtend2.richstring
Class AbstractRichStringPartAcceptor.ForLoopOnce

java.lang.Object
  extended by org.eclipse.xtext.xtend2.richstring.AbstractRichStringPartAcceptor
      extended by org.eclipse.xtext.xtend2.richstring.AbstractRichStringPartAcceptor.ForLoopOnce
All Implemented Interfaces:
IRichStringPartAcceptor
Direct Known Subclasses:
RichStringAwareHighlightingCalculator.RichStringHighlighter, ValidatingRichStringAcceptor, Xtend2Compiler.RichStringPrepareCompiler
Enclosing class:
AbstractRichStringPartAcceptor

public static class AbstractRichStringPartAcceptor.ForLoopOnce
extends AbstractRichStringPartAcceptor


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.xtext.xtend2.richstring.AbstractRichStringPartAcceptor
AbstractRichStringPartAcceptor.ForLoopOnce
 
Constructor Summary
AbstractRichStringPartAcceptor.ForLoopOnce()
           
 
Method Summary
 void acceptEndFor(XExpression after, java.lang.CharSequence indentation)
          Announces that an «ENDFOR» has been consumed.
 void acceptForLoop(JvmFormalParameter parameter, XExpression expression)
          Announces that a «FOR parameter: expression» has been consumed.
 boolean forLoopHasNext(XExpression before, XExpression separator, java.lang.CharSequence indentation)
          Queried to determine whether the body of the for-loop should be evaluated (again).
 
Methods inherited from class org.eclipse.xtext.xtend2.richstring.AbstractRichStringPartAcceptor
acceptElse, acceptElseIfCondition, acceptEndIf, acceptExpression, acceptIfCondition, acceptSemanticLineBreak, acceptSemanticText, acceptTemplateLineBreak, acceptTemplateText, announceNextLiteral
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRichStringPartAcceptor.ForLoopOnce

public AbstractRichStringPartAcceptor.ForLoopOnce()
Method Detail

acceptForLoop

public void acceptForLoop(JvmFormalParameter parameter,
                          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(XExpression before,
                              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(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.