Class AbstractRichStringPartAcceptor

    • Constructor Detail

      • AbstractRichStringPartAcceptor

        public AbstractRichStringPartAcceptor()
    • Method Detail

      • acceptSemanticText

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

        public void acceptTemplateText​(java.lang.CharSequence text,
                                       RichStringLiteral origin)
        Specified by:
        acceptTemplateText in interface IRichStringPartAcceptor
        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
        Parameters:
        charCount - the number of characters in the line break.
        origin - the instance holding the complete text value that contains the line break.
        controlStructureSeen - whether or not the line break occurs in a line that contains a control structure.
      • 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
        Parameters:
        charCount - the number of characters in the line break.
        origin - the instance holding the complete text value that contains the line break.
      • acceptForLoop

        public void acceptForLoop​(org.eclipse.xtext.common.types.JvmFormalParameter parameter,
                                  org.eclipse.xtext.xbase.XExpression expression)
        Description copied from interface: IRichStringPartAcceptor
        Announces that a
        «FOR parameter: expression»
        has been consumed.
        Specified by:
        acceptForLoop in interface IRichStringPartAcceptor
        Parameters:
        parameter - the declared parameter in the for-loop.
        expression - the expression that produces an Iterable.
      • acceptEndFor

        public void acceptEndFor​(org.eclipse.xtext.xbase.XExpression after,
                                 java.lang.CharSequence indentation)
        Description copied from interface: IRichStringPartAcceptor
        Announces that an
        «ENDFOR»
        has been consumed.
        Specified by:
        acceptEndFor in interface IRichStringPartAcceptor
        Parameters:
        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.
      • acceptExpression

        public void acceptExpression​(org.eclipse.xtext.xbase.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
        Parameters:
        expression - the consumed expression. May not be null.
        indentation - the additional indentation for any line besides the first one.