|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.xtend2.richstring.AbstractRichStringPartAcceptor org.eclipse.xtext.xtend2.richstring.AbstractRichStringPartAcceptor.ForLoopOnce
public static class AbstractRichStringPartAcceptor.ForLoopOnce
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 |
---|
public AbstractRichStringPartAcceptor.ForLoopOnce()
Method Detail |
---|
public void acceptForLoop(JvmFormalParameter parameter, XExpression expression)
IRichStringPartAcceptor
«FOR parameter: expression»has been consumed.
acceptForLoop
in interface IRichStringPartAcceptor
acceptForLoop
in class AbstractRichStringPartAcceptor
parameter
- the declared parameter in the for-loop.expression
- the expression that produces an Iterable
.public boolean forLoopHasNext(XExpression before, XExpression separator, java.lang.CharSequence indentation)
IRichStringPartAcceptor
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.
true
if the for-loop body should be evaluated.public void acceptEndFor(XExpression after, java.lang.CharSequence indentation)
IRichStringPartAcceptor
«ENDFOR»has been consumed.
acceptEndFor
in interface IRichStringPartAcceptor
acceptEndFor
in class AbstractRichStringPartAcceptor
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |