org.codehaus.plexus.interpolation

Class StringSearchInterpolator

public class StringSearchInterpolator extends Object implements Interpolator

Field Summary
static StringDEFAULT_END_EXPR
static StringDEFAULT_START_EXPR
Constructor Summary
StringSearchInterpolator()
StringSearchInterpolator(String startExpr, String endExpr)
Method Summary
voidaddPostProcessor(InterpolationPostProcessor postProcessor)
voidaddValueSource(ValueSource valueSource)
voidclearAnswers()
voidclearFeedback()
Clear the feedback messages from previous interpolate(..) calls.
StringgetEscapeString()
ListgetFeedback()
Return any feedback messages and errors that were generated - but suppressed - during the interpolation process.
Stringinterpolate(String input, String thisPrefixPattern)
Stringinterpolate(String input, String thisPrefixPattern, RecursionInterceptor recursionInterceptor)
Stringinterpolate(String input)
Stringinterpolate(String input, RecursionInterceptor recursionInterceptor)
Entry point for recursive resolution of an expression and all of its nested expressions.
booleanisCacheAnswers()
voidremovePostProcessor(InterpolationPostProcessor postProcessor)
voidremoveValuesSource(ValueSource valueSource)
voidsetCacheAnswers(boolean cacheAnswers)
voidsetEscapeString(String escapeString)

Field Detail

DEFAULT_END_EXPR

public static final String DEFAULT_END_EXPR

DEFAULT_START_EXPR

public static final String DEFAULT_START_EXPR

Constructor Detail

StringSearchInterpolator

public StringSearchInterpolator()

StringSearchInterpolator

public StringSearchInterpolator(String startExpr, String endExpr)

Method Detail

addPostProcessor

public void addPostProcessor(InterpolationPostProcessor postProcessor)
{@inheritDoc }

addValueSource

public void addValueSource(ValueSource valueSource)
{@inheritDoc }

clearAnswers

public void clearAnswers()

clearFeedback

public void clearFeedback()
Clear the feedback messages from previous interpolate(..) calls.

getEscapeString

public String getEscapeString()

getFeedback

public List getFeedback()
Return any feedback messages and errors that were generated - but suppressed - during the interpolation process. Since unresolvable expressions will be left in the source string as-is, this feedback is optional, and will only be useful for debugging interpolation problems.

Returns: a List that may be interspersed with String and Throwable instances.

interpolate

public String interpolate(String input, String thisPrefixPattern)

interpolate

public String interpolate(String input, String thisPrefixPattern, RecursionInterceptor recursionInterceptor)

interpolate

public String interpolate(String input)

interpolate

public String interpolate(String input, RecursionInterceptor recursionInterceptor)
Entry point for recursive resolution of an expression and all of its nested expressions.

UNKNOWN: Ensure unresolvable expressions don't trigger infinite recursion.

isCacheAnswers

public boolean isCacheAnswers()

removePostProcessor

public void removePostProcessor(InterpolationPostProcessor postProcessor)
{@inheritDoc }

removeValuesSource

public void removeValuesSource(ValueSource valueSource)
{@inheritDoc }

setCacheAnswers

public void setCacheAnswers(boolean cacheAnswers)

setEscapeString

public void setEscapeString(String escapeString)
Copyright © 2001-2009 Codehaus. All Rights Reserved.