Package org.ocpsoft.rewrite.param
Interface ParameterizedPatternBuilder
- All Superinterfaces:
Parameterized,ParameterizedPattern
- All Known Implementing Classes:
RegexParameterizedPatternBuilder
A
Parameterized regular expression Pattern.- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionUse this expression's pattern to build aStringfrom the given values.Use this expression to build aStringfrom given values.build(Rewrite event, EvaluationContext context) Use this expression to build aStringfrom this expression's pattern.build(Rewrite event, EvaluationContext context, Transposition<String> transposition) Use this expression to build aStringfrom this expression's pattern.Return theParameterizedPatternParsercorresponding to the pattern with which thisParameterizedPatternBuilderwas constructed.booleanisParameterComplete(Rewrite event, EvaluationContext context) Returnstrueif all parameters required by this builder are available; otherwise, returnsfalse.Methods inherited from interface org.ocpsoft.rewrite.param.Parameterized
getRequiredParameterNames, setParameterStoreMethods inherited from interface org.ocpsoft.rewrite.param.ParameterizedPattern
getPattern
-
Method Details
-
getParser
ParameterizedPatternParser getParser()Return theParameterizedPatternParsercorresponding to the pattern with which thisParameterizedPatternBuilderwas constructed. -
build
Use this expression to build aStringfrom this expression's pattern. Extract needed values from theEvaluationContext.- Throws:
ParameterizationException
-
build
String build(Rewrite event, EvaluationContext context, Transposition<String> transposition) throws ParameterizationException Use this expression to build aStringfrom this expression's pattern. Extract needed values from theEvaluationContext. The givenTranspositioninstances will be performed on each parameter in the order that they were provided.- Throws:
ParameterizationException
-
build
Use this expression to build aStringfrom given values.- Throws:
ParameterizationException
-
build
Use this expression's pattern to build aStringfrom the given values. Enforces that the number of values passed must equal the number of expression parameters. Does not apply any configuredTranspositioninstances.- Throws:
ParameterizationException
-
isParameterComplete
Returnstrueif all parameters required by this builder are available; otherwise, returnsfalse.
-