org.eclipse.xtend.core.richstring
Class AbstractRichStringPartAcceptor.ForLoopOnce
java.lang.Object
org.eclipse.xtend.core.richstring.AbstractRichStringPartAcceptor
org.eclipse.xtend.core.richstring.AbstractRichStringPartAcceptor.ForLoopOnce
- All Implemented Interfaces:
- IRichStringPartAcceptor
- Direct Known Subclasses:
- ValidatingRichStringAcceptor, XtendCompiler.RichStringPrepareCompiler, XtendHighlightingCalculator.RichStringHighlighter
- Enclosing class:
- AbstractRichStringPartAcceptor
@NonNullByDefault
public static class AbstractRichStringPartAcceptor.ForLoopOnce
- extends AbstractRichStringPartAcceptor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractRichStringPartAcceptor.ForLoopOnce
public AbstractRichStringPartAcceptor.ForLoopOnce()
acceptForLoop
public void acceptForLoop(JvmFormalParameter parameter,
@Nullable
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(@Nullable
XExpression before,
@Nullable
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(@Nullable
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.