public ArithmeticEngine getArithmeticEngine() { return wrappedPCfg.getArithmeticEngine(); }
lpCfg.setOutputFormatIfNotSet(template.getOutputFormat()); lpCfg.setRecognizeStandardFileExtensionsIfNotSet( template.getParserConfiguration().getRecognizeStandardFileExtensions()); lpCfg.setTabSizeIfNotSet( template.getParserConfiguration().getTabSize()); int incompatibleImprovements = pCfg.getIncompatibleImprovements().intValue(); token_source.incompatibleImprovements = incompatibleImprovements; this.incompatibleImprovements = incompatibleImprovements; if (!pCfg.getRecognizeStandardFileExtensions() || (outputFormatFromExt = getFormatFromStdFileExt()) == null) { autoEscapingPolicy = pCfg.getAutoEscapingPolicy(); outputFormat = pCfg.getOutputFormat(); } else { token_source.strictSyntaxMode = pCfg.getStrictSyntaxMode(); int tagSyntax = pCfg.getTagSyntax(); switch (tagSyntax) { case Configuration.AUTO_DETECT_TAG_SYNTAX: token_source.interpolationSyntax = pCfg.getInterpolationSyntax(); int namingConvention = pCfg.getNamingConvention(); switch (namingConvention) { case Configuration.AUTO_DETECT_NAMING_CONVENTION: this.stripWhitespace = pCfg.getWhitespaceStripping();
/** * @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)); }
int intSyn = pcfg.getInterpolationSyntax(); if (value.length() > 3 && ( (intSyn == Configuration.LEGACY_INTERPOLATION_SYNTAX beginLine, beginColumn + 1, value.length()); simpleCharacterStream.setTabSize(pcfg.getTabSize());
RUNTIME_EVAL_LINE_DISPLACEMENT, 1, s.length() + 2); simpleCharStream.setTabSize(pCfg.getTabSize()); FMParserTokenManager tkMan = new FMParserTokenManager( simpleCharStream); if (pCfg.getOutputFormat() != outputFormat) { pCfg = new _ParserConfigurationWithInheritedFormat( pCfg, outputFormat, Integer.valueOf(autoEscapingPolicy));
/** * @param r the character stream to wrap */ LineTableBuilder(Reader r, ParserConfiguration parserConfiguration) { super(r); tabSize = parserConfiguration.getTabSize(); }
public int getInterpolationSyntax() { return wrappedPCfg.getInterpolationSyntax(); }
public OutputFormat getOutputFormat() { return outputFormat != null ? outputFormat : wrappedPCfg.getOutputFormat(); }
public Version getIncompatibleImprovements() { return wrappedPCfg.getIncompatibleImprovements(); }
public boolean getStrictSyntaxMode() { return wrappedPCfg.getStrictSyntaxMode(); }
public int getNamingConvention() { return wrappedPCfg.getNamingConvention(); }
public int getTagSyntax() { return wrappedPCfg.getTagSyntax(); }
public int getAutoEscapingPolicy() { return autoEscapingPolicy != null ? autoEscapingPolicy.intValue() : wrappedPCfg.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)); }
int intSyn = pcfg.getInterpolationSyntax(); if (value.length() > 3 && ( (intSyn == Configuration.LEGACY_INTERPOLATION_SYNTAX beginLine, beginColumn + 1, value.length()); simpleCharacterStream.setTabSize(pcfg.getTabSize());
RUNTIME_EVAL_LINE_DISPLACEMENT, 1, s.length() + 2); simpleCharStream.setTabSize(pCfg.getTabSize()); FMParserTokenManager tkMan = new FMParserTokenManager( simpleCharStream); if (pCfg.getOutputFormat() != outputFormat) { pCfg = new _ParserConfigurationWithInheritedFormat( pCfg, outputFormat, Integer.valueOf(autoEscapingPolicy));
public int getTabSize() { return wrappedPCfg.getTabSize(); }
if (interpolate && !raw) { int interpolationSyntax = pCfg.getInterpolationSyntax(); if ((interpolationSyntax == LEGACY_INTERPOLATION_SYNTAX || interpolationSyntax == DOLLAR_INTERPOLATION_SYNTAX)
ParserConfiguration pCfg = parentTemplate.getParserConfiguration(); if (pCfg.getOutputFormat() != outputFormat) { pCfg = new _ParserConfigurationWithInheritedFormat( pCfg, outputFormat, Integer.valueOf(autoEscapingPolicy));
public Version getIncompatibleImprovements() { return wrappedPCfg.getIncompatibleImprovements(); }