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:
RichStringToLineModel
,ValidatingRichStringAcceptor
,XtendCompiler.RichStringPrepareCompiler
- Enclosing class:
- AbstractRichStringPartAcceptor
public static class AbstractRichStringPartAcceptor.ForLoopOnce extends AbstractRichStringPartAcceptor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.xtend.core.richstring.AbstractRichStringPartAcceptor
AbstractRichStringPartAcceptor.ForLoopOnce
-
-
Constructor Summary
Constructors Constructor Description ForLoopOnce()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acceptEndFor(org.eclipse.xtext.xbase.XExpression after, java.lang.CharSequence indentation)
Announces that anvoid
acceptForLoop(org.eclipse.xtext.common.types.JvmFormalParameter parameter, org.eclipse.xtext.xbase.XExpression expression)
Announces that aboolean
forLoopHasNext(org.eclipse.xtext.xbase.XExpression before, org.eclipse.xtext.xbase.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.xtend.core.richstring.AbstractRichStringPartAcceptor
acceptElse, acceptElseIfCondition, acceptEndIf, acceptExpression, acceptIfCondition, acceptSemanticLineBreak, acceptSemanticText, acceptTemplateLineBreak, acceptTemplateText, announceNextLiteral
-
-
-
-
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 interfaceIRichStringPartAcceptor
- Overrides:
acceptForLoop
in classAbstractRichStringPartAcceptor
- Parameters:
parameter
- the declared parameter in the for-loop.expression
- the expression that produces anIterable
.
-
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 interfaceIRichStringPartAcceptor
- Overrides:
acceptEndFor
in classAbstractRichStringPartAcceptor
- 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.
-
-