Class FlexibleStringExpander.ConstOffsetElem

All Implemented Interfaces:
Serializable, IsEmpty
Enclosing class:
FlexibleStringExpander

protected static class FlexibleStringExpander.ConstOffsetElem extends FlexibleStringExpander.ArrayOffsetString
An object that represents a String constant portion of an expression.
See Also:
  • Constructor Details

    • ConstOffsetElem

      protected ConstOffsetElem(char[] chars, int offset, int length)
  • Method Details

    • get

      protected Object get(Map<String,? extends Object> context, TimeZone timeZone, Locale locale)
      Specified by:
      get in class FlexibleStringExpander
    • expandString

      public String expandString(Map<String,? extends Object> context, TimeZone timeZone, Locale locale)
      Description copied from class: FlexibleStringExpander
      Evaluate this object's expression and return the result as a String. Null or empty expressions return an empty String. A null context argument will return the original expression.
      Overrides:
      expandString in class FlexibleStringExpander
      Parameters:
      context - The evaluation context
      timeZone - The time zone to be used for localization
      locale - The locale to be used for localization
      Returns:
      This object's expression result as a String