org.eclipse.xtext.xtend2.ui.highlighting
Class RichStringAwareHighlightingCalculator.RichStringHighlighter

java.lang.Object
  extended by org.eclipse.xtext.xtend2.richstring.AbstractRichStringPartAcceptor
      extended by org.eclipse.xtext.xtend2.richstring.AbstractRichStringPartAcceptor.ForLoopOnce
          extended by org.eclipse.xtext.xtend2.ui.highlighting.RichStringAwareHighlightingCalculator.RichStringHighlighter
All Implemented Interfaces:
IRichStringPartAcceptor
Enclosing class:
RichStringAwareHighlightingCalculator

protected class RichStringAwareHighlightingCalculator.RichStringHighlighter
extends AbstractRichStringPartAcceptor.ForLoopOnce


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.xtext.xtend2.richstring.AbstractRichStringPartAcceptor
AbstractRichStringPartAcceptor.ForLoopOnce
 
Constructor Summary
RichStringAwareHighlightingCalculator.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

RichStringAwareHighlightingCalculator.RichStringHighlighter

public RichStringAwareHighlightingCalculator.RichStringHighlighter(IHighlightedPositionAcceptor acceptor)
Method Detail

announceNextLiteral

public void announceNextLiteral(RichStringLiteral object)
Description copied from interface: IRichStringPartAcceptor
Announces that a next literal will be processed.

Specified by:
announceNextLiteral in interface IRichStringPartAcceptor
Overrides:
announceNextLiteral in class AbstractRichStringPartAcceptor
Parameters:
object - the literal.

acceptSemanticText

public void acceptSemanticText(java.lang.CharSequence text,
                               RichStringLiteral origin)
Specified by:
acceptSemanticText in interface IRichStringPartAcceptor
Overrides:
acceptSemanticText in class AbstractRichStringPartAcceptor
Parameters:
text - the semantic text. May not be null.
origin - the value holder for the full text or null, if unknown.

resetCurrentOffset

protected void resetCurrentOffset(RichStringLiteral origin)

highlightClosingQuotes

protected void highlightClosingQuotes(INode node)

acceptTemplateText

public void acceptTemplateText(java.lang.CharSequence text,
                               RichStringLiteral origin)
Specified by:
acceptTemplateText in interface IRichStringPartAcceptor
Overrides:
acceptTemplateText in class AbstractRichStringPartAcceptor
Parameters:
text - the template text. May not be null.
origin - the value holder for the full text or null, if unknown.

acceptSemanticLineBreak

public void acceptSemanticLineBreak(int charCount,
                                    RichStringLiteral origin,
                                    boolean controlStructureSeen)
Description copied from interface: IRichStringPartAcceptor
Indicates a semantic line break in a rich string literal.

Specified by:
acceptSemanticLineBreak in interface IRichStringPartAcceptor
Overrides:
acceptSemanticLineBreak in class AbstractRichStringPartAcceptor
Parameters:
charCount - the number of characters in the line break.
origin - the instance holding the complete text value that contains the line break.

acceptTemplateLineBreak

public void acceptTemplateLineBreak(int charCount,
                                    RichStringLiteral origin)
Description copied from interface: IRichStringPartAcceptor
Indicates a template line break in a rich string literal.

Specified by:
acceptTemplateLineBreak in interface IRichStringPartAcceptor
Overrides:
acceptTemplateLineBreak in class AbstractRichStringPartAcceptor
Parameters:
charCount - the number of characters in the line break.
origin - the instance holding the complete text value that contains the line break.

acceptIfCondition

public void acceptIfCondition(XExpression condition)
Description copied from interface: IRichStringPartAcceptor
Announces that an
«IF condition»
has been consumed.

Specified by:
acceptIfCondition in interface IRichStringPartAcceptor
Overrides:
acceptIfCondition in class AbstractRichStringPartAcceptor
Parameters:
condition - the condition of an RichStringIf.

acceptElseIfCondition

public void acceptElseIfCondition(XExpression condition)
Description copied from interface: IRichStringPartAcceptor
Announces that an
«ELSEIF condition»
has been consumed.

Specified by:
acceptElseIfCondition in interface IRichStringPartAcceptor
Overrides:
acceptElseIfCondition in class AbstractRichStringPartAcceptor
Parameters:
condition - the condition of an RichStringElseIf.

acceptForLoop

public void acceptForLoop(JvmFormalParameter parameter,
                          XExpression expression)
Description copied from interface: IRichStringPartAcceptor
Announces that a
«FOR parameter: expression»
has been consumed.

Specified by:
acceptForLoop in interface IRichStringPartAcceptor
Overrides:
acceptForLoop in class AbstractRichStringPartAcceptor.ForLoopOnce
Parameters:
parameter - the declared parameter in the for-loop.
expression - the expression that produces an Iterable.

acceptExpression

public void acceptExpression(XExpression expression,
                             java.lang.CharSequence indentation)
Description copied from interface: IRichStringPartAcceptor
Announces that an
«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.

Specified by:
acceptExpression in interface IRichStringPartAcceptor
Overrides:
acceptExpression in class AbstractRichStringPartAcceptor
Parameters:
expression - the consumed expression. May not be null.
indentation - the additional indentation for any line besides the first one.