public class FixedStringSearchInterpolator extends Object implements FixedValueSource
A fixed string search interpolator is permanently bound to a given set of value sources, an is totally fixed and stateless over these value sources.
The fixed interpolator is also a #StatelessValueSource and can be used as a source for a different fixed interpolator, creating a scope chain.
Once constructed, this interpolator will always point to the same set of objects (value sources), in such a way that if the underlying object is fixed, expressions will always evaluate to the same result.
The fixed interpolator can be shared among different clients and is thread safe to the extent the underlying value sources can be accessed safely. Since interpolation expressions cannot modify the objects, thread safety concerns this will normally be limited to safe publication and memory model visibility of underlying objects.
The fixed interpolator can be a valuesource
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_END_EXPR |
static String |
DEFAULT_START_EXPR |
Modifier and Type | Method and Description |
---|---|
BasicInterpolator |
asBasicInterpolator() |
static FixedStringSearchInterpolator |
create(FixedValueSource... valueSources) |
static FixedStringSearchInterpolator |
create(String startExpr,
String endExpr,
FixedValueSource... valueSources) |
static FixedStringSearchInterpolator |
createWithPermittedNulls(FixedValueSource... valueSources) |
static FixedStringSearchInterpolator |
empty() |
Object |
getValue(String realExpr,
InterpolationState interpolationState) |
String |
interpolate(String input) |
String |
interpolate(String input,
InterpolationState interpolationState) |
FixedStringSearchInterpolator |
withEscapeString(String escapeString) |
FixedStringSearchInterpolator |
withExpressionMarkers(String startExpr,
String endExpr) |
FixedStringSearchInterpolator |
withPostProcessor(InterpolationPostProcessor postProcessor) |
public static final String DEFAULT_START_EXPR
public static final String DEFAULT_END_EXPR
public static FixedStringSearchInterpolator create(String startExpr, String endExpr, FixedValueSource... valueSources)
public static FixedStringSearchInterpolator create(FixedValueSource... valueSources)
public static FixedStringSearchInterpolator createWithPermittedNulls(FixedValueSource... valueSources)
public FixedStringSearchInterpolator withExpressionMarkers(String startExpr, String endExpr)
public FixedStringSearchInterpolator withPostProcessor(InterpolationPostProcessor postProcessor)
public FixedStringSearchInterpolator withEscapeString(String escapeString)
public String interpolate(String input) throws InterpolationCycleException
InterpolationCycleException
public static FixedStringSearchInterpolator empty()
public Object getValue(String realExpr, InterpolationState interpolationState)
getValue
in interface FixedValueSource
realExpr
- The expression.interpolationState
- InterpolationState
.public BasicInterpolator asBasicInterpolator()
public String interpolate(String input, InterpolationState interpolationState) throws InterpolationCycleException
InterpolationCycleException
Copyright © 2001–2018 Codehaus Plexus. All rights reserved.