Package org.ocpsoft.rewrite.param
Interface ParameterizedPatternResult
public interface ParameterizedPatternResult
Stores the result of
ParameterizedPatternParser#matches(Rewrite, EvaluationContext, String). Provides methods
for controlling parameter value submission.- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptiongetParameters(EvaluationContext context) booleanisValid(Rewrite event, EvaluationContext context) Validate allParametervalues defined within the originalParameterizedPattern.booleanmatches()booleansubmit(Rewrite event, EvaluationContext context) Submit allParametervalues to theParameterValueStore, only if the values are match a prior value or have not yet had a value set.
-
Method Details
-
matches
boolean matches() -
isValid
Validate allParametervalues defined within the originalParameterizedPattern. Returntrueif all values matched configuredConstraintinstances, and matched an already submitted parameter value; otherwise, returnfalse. -
submit
Submit allParametervalues to theParameterValueStore, only if the values are match a prior value or have not yet had a value set. Returnstrueif submission was successful,falseif not. -
getParameters
-