|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.interpolation.StringSearchInterpolator
public class StringSearchInterpolator
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_END_EXPR
|
static java.lang.String |
DEFAULT_START_EXPR
|
Constructor Summary | |
---|---|
StringSearchInterpolator()
|
|
StringSearchInterpolator(java.lang.String startExpr,
java.lang.String endExpr)
|
Method Summary | |
---|---|
void |
addPostProcessor(InterpolationPostProcessor postProcessor)
Add a new post-processor to handle final processing after recursively-interpolated value is determined. |
void |
addValueSource(ValueSource valueSource)
Add a new ValueSource to the stack used to resolve expressions
in this interpolator instance. |
void |
clearAnswers()
|
void |
clearFeedback()
Clear the feedback messages from previous interpolate(..) calls. |
java.lang.String |
getEscapeString()
|
java.util.List |
getFeedback()
Return any feedback messages and errors that were generated - but suppressed - during the interpolation process. |
java.lang.String |
interpolate(java.lang.String input)
See Interpolator.interpolate(String, String, RecursionInterceptor) . |
java.lang.String |
interpolate(java.lang.String input,
RecursionInterceptor recursionInterceptor)
Entry point for recursive resolution of an expression and all of its nested expressions. |
java.lang.String |
interpolate(java.lang.String input,
java.lang.String thisPrefixPattern)
See Interpolator.interpolate(String, String, RecursionInterceptor) . |
java.lang.String |
interpolate(java.lang.String input,
java.lang.String thisPrefixPattern,
RecursionInterceptor recursionInterceptor)
Attempt to resolve all expressions in the given input string, using the given pattern to first trim an optional prefix from each expression. |
boolean |
isCacheAnswers()
|
void |
removePostProcessor(InterpolationPostProcessor postProcessor)
Remove the given post-processor. |
void |
removeValuesSource(ValueSource valueSource)
Remove the specified ValueSource from the stack used to resolve
expressions in this interpolator instance. |
void |
setCacheAnswers(boolean cacheAnswers)
|
void |
setEscapeString(java.lang.String escapeString)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_START_EXPR
public static final java.lang.String DEFAULT_END_EXPR
Constructor Detail |
---|
public StringSearchInterpolator()
public StringSearchInterpolator(java.lang.String startExpr, java.lang.String endExpr)
Method Detail |
---|
public void addValueSource(ValueSource valueSource)
ValueSource
to the stack used to resolve expressions
in this interpolator instance.
addValueSource
in interface Interpolator
public void removeValuesSource(ValueSource valueSource)
ValueSource
from the stack used to resolve
expressions in this interpolator instance.
removeValuesSource
in interface Interpolator
public void addPostProcessor(InterpolationPostProcessor postProcessor)
addPostProcessor
in interface Interpolator
public void removePostProcessor(InterpolationPostProcessor postProcessor)
removePostProcessor
in interface Interpolator
public java.lang.String interpolate(java.lang.String input, java.lang.String thisPrefixPattern) throws InterpolationException
Interpolator
Interpolator.interpolate(String, String, RecursionInterceptor)
.
SimpleRecursionInterceptor
instance for protection against expression cycles.
interpolate
in interface Interpolator
input
- The input string to interpolatethisPrefixPattern
- An optional pattern that should be trimmed from
the start of any expressions found in the input.
InterpolationException
public java.lang.String interpolate(java.lang.String input, java.lang.String thisPrefixPattern, RecursionInterceptor recursionInterceptor) throws InterpolationException
Interpolator
interpolate
in interface Interpolator
input
- The input string to interpolatethisPrefixPattern
- An optional pattern that should be trimmed from
the start of any expressions found in the input.recursionInterceptor
- Used to protect the interpolation process
from expression cycles, and throw an
exception if one is detected.
InterpolationException
public java.lang.String interpolate(java.lang.String input) throws InterpolationException
Interpolator
Interpolator.interpolate(String, String, RecursionInterceptor)
.
SimpleRecursionInterceptor
instance for protection against expression cycles. It also leaves empty the
expression prefix which would otherwise be trimmed from expressions. The
result is that any detected expression will be resolved as-is.
interpolate
in interface Interpolator
input
- The input string to interpolate
InterpolationException
public java.lang.String interpolate(java.lang.String input, RecursionInterceptor recursionInterceptor) throws InterpolationException
interpolate
in interface Interpolator
input
- The input string to interpolaterecursionInterceptor
- Used to protect the interpolation process
from expression cycles, and throw an
exception if one is detected.
InterpolationException
public java.util.List getFeedback()
getFeedback
in interface Interpolator
List
that may be interspersed with String
and
Throwable
instances.public void clearFeedback()
clearFeedback
in interface Interpolator
public boolean isCacheAnswers()
isCacheAnswers
in interface Interpolator
public void setCacheAnswers(boolean cacheAnswers)
setCacheAnswers
in interface Interpolator
public void clearAnswers()
clearAnswers
in interface Interpolator
public java.lang.String getEscapeString()
public void setEscapeString(java.lang.String escapeString)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |