Package liqp.parser
Enum Class Flavor
- All Implemented Interfaces:
Serializable,Comparable<Flavor>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the defaultTemplateParserfor this Flavor.Returns the defaultTemplateParser.ErrorModefor this Flavor.Returns the commonFiltersof this flavor.Returns the commonInsertionsof this flavor.booleanReturn default behavior for this Flavor whenever expressions must be evaluated in output tagbooleanbooleanbooleanruby 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.static FlavorReturns the enum constant of this class with the specified name.static Flavor[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LIQUID
-
JEKYLL
-
LIQP
-
-
Field Details
-
snippetsFolderName
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getFilters
Returns the commonFiltersof this flavor.- Returns:
- The
Filters.
-
getInsertions
Returns the commonInsertionsof this flavor.- Returns:
- The
Insertions.
-
defaultParser
Returns the defaultTemplateParserfor this Flavor.- Returns:
- The parser.
-
getErrorMode
Returns the defaultTemplateParser.ErrorModefor 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.
-