Home | History | Annotate | Download | only in parser

Lines Matching refs:Separator

636      * at most one separator. As such, separators are ordered in increasing
637 * priority, and setting a separator multiple times between text will
638 * result in the single separator with the highest priority being used.
642 static enum Separator {
644 // enum's ordinal() method is used when determining if a new separator
682 // The next separator to be inserted between two text nodes.
683 private Separator separator = Separator.None;
696 * Sets the next separator between two text nodes. A Space separator is
700 * specify this separator.
702 * A LineBreak separator (single new line) is used if text segments are
704 * etc.). The client should set this separator for opening and closing tags
707 * A BlankLine separator (two new lines) should be set for opening and
711 * separator with a higher priority will override that of a lower priority.
713 final void setSeparator(Separator newSeparator) {
714 if (newSeparator.ordinal() > separator.ordinal()) {
715 separator = newSeparator;
731 * as the next segment of text. This will flush any separator that should
749 setSeparator(Separator.Space);
755 setSeparator(Separator.Space);
782 * any separator that should be appended before it, and any quote marks
817 * Appends any pending separator to the output buffer. This should be
821 switch (separator) {
824 // Only append a space separator if we are not following a new
825 // line character. For example, we don't append a separator
842 separator = Separator.None;
914 printer.setSeparator(PlainTextPrinter.Separator.BlankLine);
921 // All other elements that break the flow add a LineBreak separator.
922 printer.setSeparator(PlainTextPrinter.Separator.LineBreak);
926 printer.setSeparator(PlainTextPrinter.Separator.LineBreak);
946 printer.setSeparator(PlainTextPrinter.Separator.BlankLine);
949 // All other elements that break the flow add a LineBreak separator.
950 printer.setSeparator(PlainTextPrinter.Separator.LineBreak);