|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtend.core.richstring.AbstractRichStringPartAcceptor
@NonNullByDefault 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 |
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. |
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.xtend.core.richstring.IRichStringPartAcceptor |
---|
forLoopHasNext |
Constructor Detail |
---|
public AbstractRichStringPartAcceptor()
Method Detail |
---|
public void acceptSemanticText(java.lang.CharSequence text, @Nullable RichStringLiteral origin)
acceptSemanticText
in interface IRichStringPartAcceptor
text
- 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, @Nullable RichStringLiteral origin)
acceptTemplateText
in interface IRichStringPartAcceptor
text
- 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 IRichStringPartAcceptor
charCount
- 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 IRichStringPartAcceptor
charCount
- 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 IRichStringPartAcceptor
condition
- the condition of an RichStringIf
.public void acceptElseIfCondition(XExpression condition)
IRichStringPartAcceptor
«ELSEIF condition»has been consumed.
acceptElseIfCondition
in interface IRichStringPartAcceptor
condition
- the condition of an RichStringElseIf
.public void acceptElse()
IRichStringPartAcceptor
«ELSE»has been consumed.
acceptElse
in interface IRichStringPartAcceptor
public 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 IRichStringPartAcceptor
parameter
- the declared parameter in the for-loop.expression
- the expression that produces an Iterable
.public void acceptEndFor(@Nullable XExpression after, java.lang.CharSequence indentation)
IRichStringPartAcceptor
«ENDFOR»has been consumed.
acceptEndFor
in interface IRichStringPartAcceptor
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.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 IRichStringPartAcceptor
expression
- 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 IRichStringPartAcceptor
object
- the literal.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |