|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.xtext.xtend2.richstring.AbstractRichStringPartAcceptor
org.eclipse.xtext.xtend2.richstring.AbstractRichStringPartAcceptor.ForLoopOnce
org.eclipse.xtext.xtend2.compiler.Xtend2Compiler.RichStringPrepareCompiler
public class Xtend2Compiler.RichStringPrepareCompiler
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.xtext.xtend2.richstring.AbstractRichStringPartAcceptor |
|---|
AbstractRichStringPartAcceptor.ForLoopOnce |
| Constructor Summary | |
|---|---|
Xtend2Compiler.RichStringPrepareCompiler(IAppendable appendable,
java.lang.String variableName)
|
|
| Method Summary | |
|---|---|
void |
acceptElse()
Announces that an |
void |
acceptElseIfCondition(XExpression condition)
Announces that an |
void |
acceptEndFor(XExpression after,
java.lang.CharSequence indentation)
Announces that an |
void |
acceptEndIf()
Announces that an |
void |
acceptExpression(XExpression expression,
java.lang.CharSequence indentation)
Announces that an |
void |
acceptForLoop(JvmFormalParameter parameter,
XExpression expression)
Announces that a |
void |
acceptIfCondition(XExpression condition)
Announces that an |
void |
acceptSemanticLineBreak(int charCount,
RichStringLiteral origin,
boolean controlStructureSeen)
Indicates a semantic line break in a rich string literal. |
void |
acceptSemanticText(java.lang.CharSequence text,
RichStringLiteral origin)
|
void |
acceptTemplateLineBreak(int charCount,
RichStringLiteral origin)
Indicates a template line break in a rich string literal. |
boolean |
forLoopHasNext(XExpression before,
XExpression separator,
java.lang.CharSequence indentation)
Queried to determine whether the body of the for-loop should be evaluated (again). |
protected void |
writeElse()
|
protected void |
writeExpression(XExpression expression,
java.lang.CharSequence indentation,
boolean immediate)
|
protected void |
writeIf(XExpression condition)
|
| Methods inherited from class org.eclipse.xtext.xtend2.richstring.AbstractRichStringPartAcceptor |
|---|
acceptTemplateText, announceNextLiteral |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Xtend2Compiler.RichStringPrepareCompiler(IAppendable appendable,
java.lang.String variableName)
| Method Detail |
|---|
public void acceptSemanticLineBreak(int charCount,
RichStringLiteral origin,
boolean controlStructureSeen)
IRichStringPartAcceptor
acceptSemanticLineBreak in interface IRichStringPartAcceptoracceptSemanticLineBreak in class AbstractRichStringPartAcceptorcharCount - the number of characters in the line break.origin - the instance holding the complete text value that contains the line break.
public void acceptTemplateLineBreak(int charCount,
RichStringLiteral origin)
IRichStringPartAcceptor
acceptTemplateLineBreak in interface IRichStringPartAcceptoracceptTemplateLineBreak in class AbstractRichStringPartAcceptorcharCount - the number of characters in the line break.origin - the instance holding the complete text value that contains the line break.
public void acceptSemanticText(java.lang.CharSequence text,
RichStringLiteral origin)
acceptSemanticText in interface IRichStringPartAcceptoracceptSemanticText in class AbstractRichStringPartAcceptortext - the semantic text. May not be null.origin - the value holder for the full text or null, if unknown.public void acceptIfCondition(XExpression condition)
IRichStringPartAcceptor«IF condition»has been consumed.
acceptIfCondition in interface IRichStringPartAcceptoracceptIfCondition in class AbstractRichStringPartAcceptorcondition - the condition of an RichStringIf.public void acceptElseIfCondition(XExpression condition)
IRichStringPartAcceptor«ELSEIF condition»has been consumed.
acceptElseIfCondition in interface IRichStringPartAcceptoracceptElseIfCondition in class AbstractRichStringPartAcceptorcondition - the condition of an RichStringElseIf.protected void writeIf(XExpression condition)
protected void writeElse()
public void acceptElse()
IRichStringPartAcceptor«ELSE»has been consumed.
acceptElse in interface IRichStringPartAcceptoracceptElse in class AbstractRichStringPartAcceptorpublic void acceptEndIf()
IRichStringPartAcceptor«ENDIF»has been consumed.
acceptEndIf in interface IRichStringPartAcceptoracceptEndIf in class AbstractRichStringPartAcceptor
public void acceptForLoop(JvmFormalParameter parameter,
XExpression expression)
IRichStringPartAcceptor«FOR parameter: expression»has been consumed.
acceptForLoop in interface IRichStringPartAcceptoracceptForLoop in class AbstractRichStringPartAcceptor.ForLoopOnceparameter - 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
forLoopHasNext in interface IRichStringPartAcceptorforLoopHasNext in class AbstractRichStringPartAcceptor.ForLoopOncebefore - 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 IRichStringPartAcceptoracceptEndFor in class AbstractRichStringPartAcceptor.ForLoopOnceafter - 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.
public void acceptExpression(XExpression expression,
java.lang.CharSequence indentation)
IRichStringPartAcceptor«expression»has been consumed. If the expression's evaluation result contains more than one line, any line besides the first one may be prefixed with the given indentation.
acceptExpression in interface IRichStringPartAcceptoracceptExpression in class AbstractRichStringPartAcceptorexpression - the consumed expression. May not be null.indentation - the additional indentation for any line besides the first one.
protected void writeExpression(XExpression expression,
java.lang.CharSequence indentation,
boolean immediate)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||