Class FlexibleStringExpander.ArrayOffsetString
java.lang.Object
org.apache.ofbiz.base.util.string.FlexibleStringExpander
org.apache.ofbiz.base.util.string.FlexibleStringExpander.ArrayOffsetString
- All Implemented Interfaces:
Serializable
,IsEmpty
- Direct Known Subclasses:
FlexibleStringExpander.ConstOffsetElem
,FlexibleStringExpander.CurrElem
,FlexibleStringExpander.Elements
,FlexibleStringExpander.NestedVarElem
,FlexibleStringExpander.ScriptElem
,FlexibleStringExpander.VarElem
- Enclosing class:
- FlexibleStringExpander
protected abstract static class FlexibleStringExpander.ArrayOffsetString
extends FlexibleStringExpander
- See Also:
-
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
CLOSE_BRACKET, OPEN_BRACKET
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets length.int
Gets offset.Returns a copy of the original expression.boolean
isEmpty()
Returnstrue
if the original expression is empty ornull
.Methods inherited from class org.apache.ofbiz.base.util.string.FlexibleStringExpander
containsConstant, containsExpression, containsScript, expand, expand, expand, expandString, expandString, expandString, expandString, expandString, expandString, get, getChars, getHint, getInstance, getInstance, getStrElems, setHint, toString
-
Constructor Details
-
ArrayOffsetString
protected ArrayOffsetString(char[] chars, int offset, int length)
-
-
Method Details
-
getLength
public int getLength()Gets length.- Returns:
- the length
-
getOffset
public int getOffset()Gets offset.- Returns:
- the offset
-
isEmpty
public boolean isEmpty()Description copied from class:FlexibleStringExpander
Returnstrue
if the original expression is empty ornull
.- Specified by:
isEmpty
in interfaceIsEmpty
- Specified by:
isEmpty
in classFlexibleStringExpander
- Returns:
true
if the original expression is empty ornull
-
getOriginal
Description copied from class:FlexibleStringExpander
Returns a copy of the original expression.- Specified by:
getOriginal
in classFlexibleStringExpander
- Returns:
- The original expression
-