|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.xtext.xtend2.richstring.AbstractRichStringPartAcceptor
public abstract class AbstractRichStringPartAcceptor
No-op implementation of the IRichStringPartAcceptor. Clients should inherit from this class if they do not
want to implement all methods. It is mandatory to implement #forLoopHasNext().
| Nested Class Summary | |
|---|---|
static class |
AbstractRichStringPartAcceptor.ForLoopOnce
|
| Constructor Summary | |
|---|---|
AbstractRichStringPartAcceptor()
|
|
| Method Summary | |
|---|---|
void |
acceptElse()
Announces that an «ELSE» has been consumed. |
void |
acceptElseIfCondition(XExpression condition)
Announces that an «ELSEIF condition» has been consumed. |
void |
acceptEndFor(XExpression after,
java.lang.CharSequence indentation)
Announces that an «ENDFOR» has been consumed. |
void |
acceptEndIf()
Announces that an «ENDIF» has been consumed. |
void |
acceptExpression(XExpression expression,
java.lang.CharSequence indentation)
Announces that an «expression» has been consumed. |
void |
acceptForLoop(JvmFormalParameter parameter,
XExpression expression)
Announces that a «FOR parameter: expression» has been consumed. |
void |
acceptIfCondition(XExpression condition)
Announces that an «IF condition» has been consumed. |
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. |
void |
acceptTemplateText(java.lang.CharSequence text,
RichStringLiteral origin)
|
void |
announceNextLiteral(RichStringLiteral object)
Announces that a next literal will be processed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.xtext.xtend2.richstring.IRichStringPartAcceptor |
|---|
forLoopHasNext |
| Constructor Detail |
|---|
public AbstractRichStringPartAcceptor()
| Method Detail |
|---|
public void acceptSemanticText(java.lang.CharSequence text,
RichStringLiteral origin)
acceptSemanticText in interface IRichStringPartAcceptortext - the semantic text. May not be null.origin - the value holder for the full text or null, if unknown.
public void acceptTemplateText(java.lang.CharSequence text,
RichStringLiteral origin)
acceptTemplateText in interface IRichStringPartAcceptortext - the template text. May not be null.origin - the value holder for the full text or null, if unknown.
public void acceptSemanticLineBreak(int charCount,
RichStringLiteral origin,
boolean controlStructureSeen)
IRichStringPartAcceptor
acceptSemanticLineBreak in interface IRichStringPartAcceptorcharCount - 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 IRichStringPartAcceptorcharCount - the number of characters in the line break.origin - the instance holding the complete text value that contains the line break.public void acceptIfCondition(XExpression condition)
IRichStringPartAcceptor«IF condition»has been consumed.
acceptIfCondition in interface IRichStringPartAcceptorcondition - the condition of an RichStringIf.public void acceptElseIfCondition(XExpression condition)
IRichStringPartAcceptor«ELSEIF condition»has been consumed.
acceptElseIfCondition in interface IRichStringPartAcceptorcondition - the condition of an RichStringElseIf.public void acceptElse()
IRichStringPartAcceptor«ELSE»has been consumed.
acceptElse in interface IRichStringPartAcceptorpublic void acceptEndIf()
IRichStringPartAcceptor«ENDIF»has been consumed.
acceptEndIf in interface IRichStringPartAcceptor
public void acceptForLoop(JvmFormalParameter parameter,
XExpression expression)
IRichStringPartAcceptor«FOR parameter: expression»has been consumed.
acceptForLoop in interface IRichStringPartAcceptorparameter - the declared parameter in the for-loop.expression - the expression that produces an Iterable.
public void acceptEndFor(XExpression after,
java.lang.CharSequence indentation)
IRichStringPartAcceptor«ENDFOR»has been consumed.
acceptEndFor in interface IRichStringPartAcceptorafter - 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 IRichStringPartAcceptorexpression - the consumed expression. May not be null.indentation - the additional indentation for any line besides the first one.public void announceNextLiteral(RichStringLiteral object)
IRichStringPartAcceptor
announceNextLiteral in interface IRichStringPartAcceptorobject - the literal.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||