Package liqp.parser

Enum Class Flavor

All Implemented Interfaces:
Serializable, Comparable<Flavor>, Constable

public enum Flavor extends Enum<Flavor>
  • Enum Constant Details

    • LIQUID

      public static final Flavor LIQUID
    • JEKYLL

      public static final Flavor JEKYLL
    • LIQP

      public static final Flavor LIQP
  • Field Details

    • snippetsFolderName

      public final String snippetsFolderName
  • Method Details

    • values

      public static Flavor[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Flavor valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getFilters

      public Filters getFilters()
      Returns the common Filters of this flavor.
      Returns:
      The Filters.
    • getInsertions

      public Insertions getInsertions()
      Returns the common Insertions of this flavor.
      Returns:
      The Insertions.
    • defaultParser

      public TemplateParser defaultParser()
      Returns the default TemplateParser for this Flavor.
      Returns:
      The parser.
    • getErrorMode

      public TemplateParser.ErrorMode getErrorMode()
      Returns the default TemplateParser.ErrorMode for this Flavor.
    • isEvaluateInOutputTag

      public boolean isEvaluateInOutputTag()
      Return default behavior for this Flavor whenever expressions must be evaluated in output tag
      Returns:
      if true.
    • isLiquidStyleInclude

      public boolean isLiquidStyleInclude()
    • isLiquidStyleWhere

      public boolean isLiquidStyleWhere()
    • isStrictTypedExpressions

      public boolean isStrictTypedExpressions()
      ruby is strictly typed, so comparing string like '98' and number like 97 will raise exception, and we must follow this behavior for compatibility in Liquid and Jekyll flavors but historically in this library and practice from other implementations show that people expect weak-typing in expressions. So this is a flag that actually control this.