|
|||||||||
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 org.eclipse.xtext.xtend2.ui.highlighting.XtendHighlightingCalculator.RichStringHighlighter
protected class XtendHighlightingCalculator.RichStringHighlighter
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.xtext.xtend2.richstring.AbstractRichStringPartAcceptor |
---|
AbstractRichStringPartAcceptor.ForLoopOnce |
Constructor Summary | |
---|---|
XtendHighlightingCalculator.RichStringHighlighter(IHighlightedPositionAcceptor acceptor)
|
Method Summary | |
---|---|
void |
acceptElseIfCondition(XExpression condition)
Announces that an «ELSEIF condition» 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. |
protected void |
highlightClosingQuotes(INode node)
|
protected void |
resetCurrentOffset(RichStringLiteral origin)
|
Methods inherited from class org.eclipse.xtext.xtend2.richstring.AbstractRichStringPartAcceptor.ForLoopOnce |
---|
acceptEndFor, forLoopHasNext |
Methods inherited from class org.eclipse.xtext.xtend2.richstring.AbstractRichStringPartAcceptor |
---|
acceptElse, acceptEndIf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XtendHighlightingCalculator.RichStringHighlighter(IHighlightedPositionAcceptor acceptor)
Method Detail |
---|
public void announceNextLiteral(RichStringLiteral object)
IRichStringPartAcceptor
announceNextLiteral
in interface IRichStringPartAcceptor
announceNextLiteral
in class AbstractRichStringPartAcceptor
object
- the literal.public void acceptSemanticText(java.lang.CharSequence text, RichStringLiteral origin)
acceptSemanticText
in interface IRichStringPartAcceptor
acceptSemanticText
in class AbstractRichStringPartAcceptor
text
- the semantic text. May not be null
.origin
- the value holder for the full text or null, if unknown.protected void resetCurrentOffset(RichStringLiteral origin)
protected void highlightClosingQuotes(INode node)
public void acceptTemplateText(java.lang.CharSequence text, RichStringLiteral origin)
acceptTemplateText
in interface IRichStringPartAcceptor
acceptTemplateText
in class AbstractRichStringPartAcceptor
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
acceptSemanticLineBreak
in class AbstractRichStringPartAcceptor
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
acceptTemplateLineBreak
in class AbstractRichStringPartAcceptor
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
acceptIfCondition
in class AbstractRichStringPartAcceptor
condition
- the condition of an RichStringIf
.public void acceptElseIfCondition(XExpression condition)
IRichStringPartAcceptor
«ELSEIF condition»has been consumed.
acceptElseIfCondition
in interface IRichStringPartAcceptor
acceptElseIfCondition
in class AbstractRichStringPartAcceptor
condition
- the condition of an RichStringElseIf
.public void acceptForLoop(JvmFormalParameter parameter, XExpression expression)
IRichStringPartAcceptor
«FOR parameter: expression»has been consumed.
acceptForLoop
in interface IRichStringPartAcceptor
acceptForLoop
in class AbstractRichStringPartAcceptor.ForLoopOnce
parameter
- the declared parameter in the for-loop.expression
- the expression that produces an Iterable
.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
acceptExpression
in class AbstractRichStringPartAcceptor
expression
- the consumed expression. May not be null
.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 |