/** * @Deprecated This is an internal API of FreeMarker; will be changed in 2.4. */ public FMParser(Template template, Reader reader, boolean strictSyntaxMode, boolean whitespaceStripping, int tagSyntax, int namingConvention, int incompatibleImprovements) { this(template, reader, new LegacyConstructorParserConfiguration( strictSyntaxMode, whitespaceStripping, tagSyntax, LEGACY_INTERPOLATION_SYNTAX, namingConvention, template != null ? template.getParserConfiguration().getAutoEscapingPolicy() : Configuration.ENABLE_IF_DEFAULT_AUTO_ESCAPING_POLICY, template != null ? template.getParserConfiguration().getOutputFormat() : null, template != null ? template.getParserConfiguration().getRecognizeStandardFileExtensions() : null, template != null ? template.getParserConfiguration().getTabSize() : null, new Version(incompatibleImprovements), template != null ? template.getArithmeticEngine() : null)); }
lpCfg.setOutputFormatIfNotSet(template.getOutputFormat()); lpCfg.setRecognizeStandardFileExtensionsIfNotSet( template.getParserConfiguration().getRecognizeStandardFileExtensions()); lpCfg.setTabSizeIfNotSet( template.getParserConfiguration().getTabSize()); if (!pCfg.getRecognizeStandardFileExtensions() || (outputFormatFromExt = getFormatFromStdFileExt()) == null) { autoEscapingPolicy = pCfg.getAutoEscapingPolicy();
/** * @Deprecated This is an internal API of FreeMarker; will be changed in 2.4. */ public FMParser(Template template, Reader reader, boolean strictSyntaxMode, boolean whitespaceStripping, int tagSyntax, int namingConvention, int incompatibleImprovements) { this(template, reader, new LegacyConstructorParserConfiguration( strictSyntaxMode, whitespaceStripping, tagSyntax, LEGACY_INTERPOLATION_SYNTAX, namingConvention, template != null ? template.getParserConfiguration().getAutoEscapingPolicy() : Configuration.ENABLE_IF_DEFAULT_AUTO_ESCAPING_POLICY, template != null ? template.getParserConfiguration().getOutputFormat() : null, template != null ? template.getParserConfiguration().getRecognizeStandardFileExtensions() : null, template != null ? template.getParserConfiguration().getTabSize() : null, new Version(incompatibleImprovements), template != null ? template.getArithmeticEngine() : null)); }
/** * @Deprecated This is an internal API of FreeMarker; will be changed in 2.4. */ public FMParser(Template template, Reader reader, boolean strictSyntaxMode, boolean whitespaceStripping, int tagSyntax, int namingConvention, int incompatibleImprovements) { this(template, reader, new LegacyConstructorParserConfiguration( strictSyntaxMode, whitespaceStripping, tagSyntax, LEGACY_INTERPOLATION_SYNTAX, namingConvention, template != null ? template.getParserConfiguration().getAutoEscapingPolicy() : Configuration.ENABLE_IF_DEFAULT_AUTO_ESCAPING_POLICY, template != null ? template.getParserConfiguration().getOutputFormat() : null, template != null ? template.getParserConfiguration().getRecognizeStandardFileExtensions() : null, template != null ? template.getParserConfiguration().getTabSize() : null, new Version(incompatibleImprovements), template != null ? template.getArithmeticEngine() : null)); }
lpCfg.setOutputFormatIfNotSet(template.getOutputFormat()); lpCfg.setRecognizeStandardFileExtensionsIfNotSet( template.getParserConfiguration().getRecognizeStandardFileExtensions()); lpCfg.setTabSizeIfNotSet( template.getParserConfiguration().getTabSize()); if (!pCfg.getRecognizeStandardFileExtensions() || (outputFormatFromExt = getFormatFromStdFileExt()) == null) { autoEscapingPolicy = pCfg.getAutoEscapingPolicy();
lpCfg.setOutputFormatIfNotSet(template.getOutputFormat()); lpCfg.setRecognizeStandardFileExtensionsIfNotSet( template.getParserConfiguration().getRecognizeStandardFileExtensions()); lpCfg.setTabSizeIfNotSet( template.getParserConfiguration().getTabSize()); if (!pCfg.getRecognizeStandardFileExtensions() || (outputFormatFromExt = getFormatFromStdFileExt()) == null) { autoEscapingPolicy = pCfg.getAutoEscapingPolicy();