Class TemplateNode

  • All Implemented Interfaces:
    java.lang.CharSequence, org.eclipse.xtend2.lib.StringConcatenationClient.TargetStringConcatenation, IGeneratorNode

    public class TemplateNode
    extends CompositeGeneratorNode
    implements org.eclipse.xtend2.lib.StringConcatenationClient.TargetStringConcatenation
    A template node applies a StringConcatenationClient to compute its children.
    • Constructor Detail

      • TemplateNode

        public TemplateNode​(org.eclipse.xtend2.lib.StringConcatenationClient contents,
                            GeneratorNodeExtensions nodeFactory)
    • Method Detail

      • append

        public void append​(java.lang.Object object,
                           java.lang.String indentation)
        Specified by:
        append in interface org.eclipse.xtend2.lib.StringConcatenationClient.TargetStringConcatenation
      • append

        public void append​(java.lang.Object object)
        Specified by:
        append in interface org.eclipse.xtend2.lib.StringConcatenationClient.TargetStringConcatenation
      • appendImmediate

        public void appendImmediate​(java.lang.Object object,
                                    java.lang.String indentation)
        Specified by:
        appendImmediate in interface org.eclipse.xtend2.lib.StringConcatenationClient.TargetStringConcatenation
      • hasContent

        protected static boolean hasContent​(java.lang.CharSequence s)
      • newLine

        public void newLine()
        Specified by:
        newLine in interface org.eclipse.xtend2.lib.StringConcatenationClient.TargetStringConcatenation
      • newLineIfNotEmpty

        public void newLineIfNotEmpty()
        Specified by:
        newLineIfNotEmpty in interface org.eclipse.xtend2.lib.StringConcatenationClient.TargetStringConcatenation
      • charAt

        public char charAt​(int index)
        Specified by:
        charAt in interface java.lang.CharSequence
      • length

        public int length()
        Specified by:
        length in interface java.lang.CharSequence
      • subSequence

        public java.lang.CharSequence subSequence​(int start,
                                                  int end)
        Specified by:
        subSequence in interface java.lang.CharSequence