Class FlexibleStringExpander.ConstOffsetElem
- java.lang.Object
-
- org.apache.ofbiz.base.util.string.FlexibleStringExpander
-
- org.apache.ofbiz.base.util.string.FlexibleStringExpander.ArrayOffsetString
-
- org.apache.ofbiz.base.util.string.FlexibleStringExpander.ConstOffsetElem
-
- All Implemented Interfaces:
java.io.Serializable
,IsEmpty
- Enclosing class:
- FlexibleStringExpander
protected static class FlexibleStringExpander.ConstOffsetElem extends FlexibleStringExpander.ArrayOffsetString
An object that represents aString
constant portion of an expression.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.ofbiz.base.util.string.FlexibleStringExpander
FlexibleStringExpander.ArrayOffsetString, FlexibleStringExpander.ConstOffsetElem, FlexibleStringExpander.ConstSimpleElem, FlexibleStringExpander.CurrElem, FlexibleStringExpander.Elements, FlexibleStringExpander.NestedVarElem, FlexibleStringExpander.ScriptElem, FlexibleStringExpander.VarElem
-
-
Field Summary
-
Fields inherited from class org.apache.ofbiz.base.util.string.FlexibleStringExpander.ArrayOffsetString
length, offset
-
Fields inherited from class org.apache.ofbiz.base.util.string.FlexibleStringExpander
chars, closeBracket, exprCache, hint, module, nullExpr, openBracket
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConstOffsetElem(char[] chars, int offset, int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
expandString(java.util.Map<java.lang.String,? extends java.lang.Object> context, java.util.TimeZone timeZone, java.util.Locale locale)
Evaluate this object's expression and return the result as aString
.protected java.lang.Object
get(java.util.Map<java.lang.String,? extends java.lang.Object> context, java.util.TimeZone timeZone, java.util.Locale locale)
-
Methods inherited from class org.apache.ofbiz.base.util.string.FlexibleStringExpander.ArrayOffsetString
getOriginal, isEmpty
-
Methods inherited from class org.apache.ofbiz.base.util.string.FlexibleStringExpander
containsConstant, containsExpression, containsScript, expand, expand, expand, expandString, expandString, expandString, expandString, expandString, getInstance, getInstance, getStrElems, toString
-
-
-
-
Method Detail
-
get
protected java.lang.Object get(java.util.Map<java.lang.String,? extends java.lang.Object> context, java.util.TimeZone timeZone, java.util.Locale locale)
- Specified by:
get
in classFlexibleStringExpander
-
expandString
public java.lang.String expandString(java.util.Map<java.lang.String,? extends java.lang.Object> context, java.util.TimeZone timeZone, java.util.Locale locale)
Description copied from class:FlexibleStringExpander
Evaluate this object's expression and return the result as aString
. Null or empty expressions return an emptyString
. Anull context
argument will return the original expression.- Overrides:
expandString
in classFlexibleStringExpander
- Parameters:
context
- The evaluation contexttimeZone
- The time zone to be used for localizationlocale
- The locale to be used for localization- Returns:
- This object's expression result as a
String
-
-