public FormattingConfigBasedStream(ITokenStream out, String initialIndentation, FormattingConfig cfg, IElementMatcher<ElementPattern> matcher, IHiddenTokenHelper hiddenTokenHelper, boolean preserveSpaces) { super(out); this.cfg = cfg; this.matcher = matcher; this.hiddenTokenHelper = hiddenTokenHelper; this.preserveSpaces = preserveSpaces; this.indentationPrefix = initialIndentation == null ? "" : initialIndentation; }
/** * @deprecated use {@link FormattingConfig2} instead */ @Deprecated public FormattingConfig(IGrammarAccess grammarAccess, IHiddenTokenHelper hiddenTokenHelper, IIndentationInformation indentInfo) { super(grammarAccess, hiddenTokenHelper); this.indentInfo = indentInfo; }
public ExtendedFormattingConfigBasedStream(final ITokenStream out, final String indentation, final FormattingConfig cfg, final IElementMatcher<ElementPattern> matcher, final IHiddenTokenHelper hiddenTokenHelper, final boolean preserveSpaces, final AbstractExtendedFormatter formatter) { // @Format-On super(out, indentation, cfg, matcher, hiddenTokenHelper, preserveSpaces); this.storedPreserveSpacesValue = preserveSpaces; this.formatter = formatter; this.noFormatMemento = new NoFormatLocator(cfg); }
/** * adds EOL to white spaces */ public Class<? extends IHiddenTokenHelper> bindIHiddenTokenHelper() { return N4JSHiddenTokenHelper.class; }
public AbstractFormattingConfig(IGrammarAccess grammarAccess, IHiddenTokenHelper hiddenTokenHelper) { super(); this.grammarAccess = grammarAccess; this.hiddenTokenHelper = hiddenTokenHelper; }
public FormattingConfig2(IGrammarAccess grammarAccess, IHiddenTokenHelper hiddenTokenHelper, IIndentationInformation indentInfo, ILineSeparatorInformation lineSeparatorInfo) { super(grammarAccess, hiddenTokenHelper, indentInfo); this.lineSeparatorInfo = lineSeparatorInfo; }
protected IHiddenTokenHelper getHiddenTokenHelper() { return hiddenTokenHelper; }
public IHiddenTokenHelper getHiddenTokenHelper() { return hiddenTokenHelper; }
/** * Instantiates a new wrap entry. * * @param hiddenTokenHelper * the hidden token helper * @param line * the line * @param entry * the entry */ public WrapEntry(final IHiddenTokenHelper hiddenTokenHelper, final ExtendedLine line, final ExtendedLineEntry entry) { this.entry = entry; this.hiddenTokenHelper = hiddenTokenHelper; this.line = line; }
/** * Instantiates a new space entry. * * @param hiddenTokenHelper * the hidden token helper * @param line * the line * @param entry * the entry */ public SpaceEntry(final IHiddenTokenHelper hiddenTokenHelper, final ExtendedLine line, final ExtendedLineEntry entry) { this.entry = entry; this.hiddenTokenHelper = hiddenTokenHelper; this.line = line; }
/** * Instantiates a new AcfFormattingConfig. * * @param grammarAccess * the grammar access * @param hiddenTokenHelper * the hidden token helper * @param indentInfo * the indent info * @param lineSeparatorInfo * the line separator info */ public ExtendedFormattingConfig(final IGrammarAccess grammarAccess, final IHiddenTokenHelper hiddenTokenHelper, final IIndentationInformation indentInfo, final ILineSeparatorInformation lineSeparatorInfo) { super(grammarAccess, hiddenTokenHelper, indentInfo, lineSeparatorInfo); }