-
- All Superinterfaces:
Comparable<MatchingRoutine>
- All Known Implementing Classes:
AdaptationMatchingRoutine,ConversionMatchingRoutine,RuntimeSafeMatchingRoutine
public interface MatchingRoutine extends Comparable<MatchingRoutine>
A plugin type employing a particular strategy to generate anOpCandidate.- Author:
- Gabriel Selzer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidcheckSuitability(MatchingConditions conditions)default intcompareTo(MatchingRoutine o)OpCandidatefindMatch(MatchingConditions conditions, OpMatcher matcher, OpEnvironment env)default OpCandidatematch(MatchingConditions conditions, OpMatcher matcher, OpEnvironment env)Generates anOpCandidatefrom the Ops in the providedOpEnvironment, conforming to the providedMatchingConditionsdoublepriority()The priority of thisMatchingRoutine
-
-
-
Method Detail
-
checkSuitability
void checkSuitability(MatchingConditions conditions) throws OpMatchingException
- Throws:
OpMatchingException
-
compareTo
default int compareTo(MatchingRoutine o)
- Specified by:
compareToin interfaceComparable<MatchingRoutine>
-
findMatch
OpCandidate findMatch(MatchingConditions conditions, OpMatcher matcher, OpEnvironment env) throws OpMatchingException
- Throws:
OpMatchingException
-
match
default OpCandidate match(MatchingConditions conditions, OpMatcher matcher, OpEnvironment env)
Generates anOpCandidatefrom the Ops in the providedOpEnvironment, conforming to the providedMatchingConditions- Parameters:
conditions- theMatchingConditionsthe returned Op must conform tomatcher- theOpMatcherresponsible for matchingenv- theOpEnvironmentcontaining the Ops able to be matched- Returns:
- an
OpCandidate
-
priority
double priority()
The priority of thisMatchingRoutine- Returns:
- the priority
-
-