Module org.scijava.ops.engine
Class RuntimeSafeMatchingRoutine
- java.lang.Object
-
- org.scijava.ops.engine.matcher.impl.RuntimeSafeMatchingRoutine
-
- All Implemented Interfaces:
Comparable<MatchingRoutine>,MatchingRoutine
- Direct Known Subclasses:
ConversionMatchingRoutine
public class RuntimeSafeMatchingRoutine extends Object implements MatchingRoutine
-
-
Constructor Summary
Constructors Constructor Description RuntimeSafeMatchingRoutine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckSuitability(MatchingConditions conditions)protected List<OpCandidate>filterMatches(List<OpCandidate> candidates)OpCandidatefindMatch(MatchingConditions conditions, OpMatcher matcher, OpEnvironment env)doublepriority()The priority of thisMatchingRoutineprotected booleantypesMatch(Type opType, Type reqType, Map<TypeVariable<?>,Type> typeVarAssigns)Determines whether the specified type satisfies the op's required types.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.scijava.ops.engine.matcher.MatchingRoutine
compareTo, match
-
-
-
-
Method Detail
-
checkSuitability
public void checkSuitability(MatchingConditions conditions) throws OpMatchingException
- Specified by:
checkSuitabilityin interfaceMatchingRoutine- Throws:
OpMatchingException
-
findMatch
public OpCandidate findMatch(MatchingConditions conditions, OpMatcher matcher, OpEnvironment env)
- Specified by:
findMatchin interfaceMatchingRoutine
-
filterMatches
protected List<OpCandidate> filterMatches(List<OpCandidate> candidates)
-
typesMatch
protected boolean typesMatch(Type opType, Type reqType, Map<TypeVariable<?>,Type> typeVarAssigns)
Determines whether the specified type satisfies the op's required types.
-
priority
public double priority()
Description copied from interface:MatchingRoutineThe priority of thisMatchingRoutine- Specified by:
priorityin interfaceMatchingRoutine- Returns:
- the priority
-
-