public interface IRestrictionEvaluationContext
setting
values for variables, startEvaluation() shall be called
by IVersionRestriction.evaluate(IRestrictionEvaluationContext, Version). unsetValue(IVariable) shall
be called before ending the evaluation to clean up the variable binding. Finally
IVersionRestriction.evaluate(IRestrictionEvaluationContext, Version) shall call #endEvaluation().| Modifier and Type | Method and Description |
|---|---|
void |
endEvaluation(java.lang.Object processor)
Notifies the context about the end of the evaluation.
|
void |
setValue(IVariable variable,
Version version)
Defines the value for the given variable in this context.
|
java.lang.Object |
startEvaluation()
Notifies the context about starting the evaluation.
|
void |
unsetValue(IVariable variable)
Unsets the value for the given variable.
|
void setValue(IVariable variable, Version version) throws RestrictionEvaluationException
variable - the variable to be definedversion - the actual valueRestrictionEvaluationException - in case that setting the variable fails, e.g., due to type conflictsvoid unsetValue(IVariable variable) throws RestrictionEvaluationException
variable - the variable to be unsetRestrictionEvaluationException - in case that setting the variable fails, e.g., due to type conflictsjava.lang.Object startEvaluation()
throws RestrictionEvaluationException
RestrictionEvaluationException - in case that a sub context cannot be createdvoid endEvaluation(java.lang.Object processor)
throws RestrictionEvaluationException
processor - the evaluation processor for releaseRestrictionEvaluationException - in case that a sub context cannot be removedCopyright © 2009 - 2018 SSE. All Rights Reserved.