public.javadoc.org.spincast.plugins.dateformatter.SpincastDateFormatterPebbleExtensionDefault.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastDateFormatterPebbleExtensionDefault (org.spincast:spincast-framework 1.0.0 API)
org.spincast.plugins.dateformatter
Class SpincastDateFormatterPebbleExtensionDefault
- java.lang.Object
-
- com.mitchellbosecke.pebble.extension.AbstractExtension
-
- org.spincast.plugins.dateformatter.SpincastDateFormatterPebbleExtensionDefault
-
- All Implemented Interfaces:
- com.mitchellbosecke.pebble.extension.Extension, SpincastDateFormatterPebbleExtension
public class SpincastDateFormatterPebbleExtensionDefault
extends com.mitchellbosecke.pebble.extension.AbstractExtension
implements SpincastDateFormatterPebbleExtension
-
-
Field Summary
Fields
Modifier and Type
Field and Description
static String
FILTER_NAME_DATE_FORMAT
-
Constructor Summary
Constructors
Constructor and Description
SpincastDateFormatterPebbleExtensionDefault(DateFormatterFactory dateFormatterFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
protected Object
formatUsingRelativeFormatter(Object dateObj,
Map<String,Object> args)
protected String
formatUsingStandardFormatter(Object dateObj,
Map<String,Object> args)
protected com.mitchellbosecke.pebble.extension.Filter
getDateFormatFilter()
protected String
getDateFormatFilterName()
protected DateFormatterFactory
getDateFormatterFactory()
Map<String,com.mitchellbosecke.pebble.extension.Filter>
getFilters()
-
Methods inherited from class com.mitchellbosecke.pebble.extension.AbstractExtension
getBinaryOperators, getFunctions, getGlobalVariables, getNodeVisitors, getTests, getTokenParsers, getUnaryOperators
-
-
Field Detail
-
FILTER_NAME_DATE_FORMAT
public static final String FILTER_NAME_DATE_FORMAT
- See Also:
- Constant Field Values
-
Constructor Detail
-
SpincastDateFormatterPebbleExtensionDefault
@Inject
public SpincastDateFormatterPebbleExtensionDefault(DateFormatterFactory dateFormatterFactory)
-
Method Detail
-
getDateFormatterFactory
protected DateFormatterFactory getDateFormatterFactory()
-
getFilters
public Map<String,com.mitchellbosecke.pebble.extension.Filter> getFilters()
- Specified by:
getFilters
in interface com.mitchellbosecke.pebble.extension.Extension
- Overrides:
getFilters
in class com.mitchellbosecke.pebble.extension.AbstractExtension
-
getDateFormatFilterName
protected String getDateFormatFilterName()
-
getDateFormatFilter
protected com.mitchellbosecke.pebble.extension.Filter getDateFormatFilter()
-
formatUsingRelativeFormatter
protected Object formatUsingRelativeFormatter(Object dateObj,
Map<String,Object> args)
Copyright © 2019. All rights reserved.