Class DateFilter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<java.lang.String> argumentNames  
    • Constructor Summary

      Constructors 
      Constructor Description
      DateFilter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object apply​(java.lang.Object input, java.util.Map<java.lang.String,​java.lang.Object> args, PebbleTemplate self, EvaluationContext context, int lineNumber)  
      private java.lang.Object applyDate​(java.lang.Object dateOrString, PebbleTemplate self, java.util.Locale locale, int lineNumber, java.lang.String format, java.lang.String existingFormatString, java.lang.String timeZone)  
      private java.lang.Object applyTemporal​(java.time.temporal.TemporalAccessor input, PebbleTemplate self, java.util.Locale locale, int lineNumber, java.lang.String format, java.lang.String timeZone)  
      java.util.List<java.lang.String> getArgumentNames()  
      private java.time.ZoneId getZoneId​(java.time.temporal.TemporalAccessor input, java.lang.String timeZone)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • argumentNames

        private final java.util.List<java.lang.String> argumentNames
    • Constructor Detail

      • DateFilter

        public DateFilter()
    • Method Detail

      • applyDate

        private java.lang.Object applyDate​(java.lang.Object dateOrString,
                                           PebbleTemplate self,
                                           java.util.Locale locale,
                                           int lineNumber,
                                           java.lang.String format,
                                           java.lang.String existingFormatString,
                                           java.lang.String timeZone)
                                    throws PebbleException
        Throws:
        PebbleException
      • applyTemporal

        private java.lang.Object applyTemporal​(java.time.temporal.TemporalAccessor input,
                                               PebbleTemplate self,
                                               java.util.Locale locale,
                                               int lineNumber,
                                               java.lang.String format,
                                               java.lang.String timeZone)
                                        throws PebbleException
        Throws:
        PebbleException
      • getZoneId

        private java.time.ZoneId getZoneId​(java.time.temporal.TemporalAccessor input,
                                           java.lang.String timeZone)