Class FixedInterpolatorValueSource
- java.lang.Object
-
- org.codehaus.plexus.interpolation.FixedInterpolatorValueSource
-
- All Implemented Interfaces:
ValueSource
public class FixedInterpolatorValueSource extends java.lang.Object implements ValueSource
A value source that allows a fixed interpolator to be injected into a regular interpolator. This value source encapsulates state, so even though the fixed interpolator can be used as a singleton, a single FixedInterpolatorValueSource can only belong to one interpolator any given time.
-
-
Field Summary
Fields Modifier and Type Field Description private InterpolationStateerrorCollectorprivate FixedStringSearchInterpolatorfixedStringSearchInterpolator
-
Constructor Summary
Constructors Constructor Description FixedInterpolatorValueSource(FixedStringSearchInterpolator fixedStringSearchInterpolator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearFeedback()Clear the feedback accumulated by a prior interpolation run.java.util.ListgetFeedback()Return the feedback about resolution failures for a particular expression.java.lang.ObjectgetValue(java.lang.String expression)
-
-
-
Field Detail
-
fixedStringSearchInterpolator
private final FixedStringSearchInterpolator fixedStringSearchInterpolator
-
errorCollector
private final InterpolationState errorCollector
-
-
Constructor Detail
-
FixedInterpolatorValueSource
public FixedInterpolatorValueSource(FixedStringSearchInterpolator fixedStringSearchInterpolator)
-
-
Method Detail
-
getValue
public java.lang.Object getValue(java.lang.String expression)
- Specified by:
getValuein interfaceValueSource- Parameters:
expression- The string expression.- Returns:
- the value related to the expression, or null if not found.
-
getFeedback
public java.util.List getFeedback()
Description copied from interface:ValueSourceReturn the feedback about resolution failures for a particular expression.- Specified by:
getFeedbackin interfaceValueSource- Returns:
- a combination of String and Throwable instances, where strings related to throwables are listed first.
-
clearFeedback
public void clearFeedback()
Description copied from interface:ValueSourceClear the feedback accumulated by a prior interpolation run.- Specified by:
clearFeedbackin interfaceValueSource
-
-