- java.lang.Object
-
- org.scijava.ops.engine.matcher.impl.DefaultOpRequest
-
- All Implemented Interfaces:
OpRequest
public class DefaultOpRequest extends Object implements OpRequest
Data structure which identifies an Op by name and/or type(s) and/or argument type(s), along with a list of input arguments.With the help of the
OpMatcher, anOpRequestholds all information needed to create an appropriate Op.- Author:
- Christian Dietz (University of Konstanz), Curtis Rueden
-
-
Constructor Summary
Constructors Constructor Description DefaultOpRequest(String name, Type type, Type outType, Type[] args)Creates a new op request.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Type[]argTypes()Gets the op's arguments.booleanequals(Object obj)static DefaultOpRequestfromTypes(String name, Type type, Type outType, Type... args)inthashCode()Stringlabel()Gets a label identifying the op's scope (i.e., its name and/or types).Stringname()Gets the name of the op.TypeoutType()Gets the op's output type constraint, or null for no constraint.StringtoString()Typetype()Gets the type which the op must match.booleantypesMatch(Type opType, Map<TypeVariable<?>,Type> typeVarAssigns)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.scijava.ops.api.OpRequest
requestEquals, requestHashCode, requestString
-
-
-
-
Method Detail
-
fromTypes
public static DefaultOpRequest fromTypes(String name, Type type, Type outType, Type... args)
-
type
public Type type()
Gets the type which the op must match.
-
outType
public Type outType()
Gets the op's output type constraint, or null for no constraint.
-
argTypes
public Type[] argTypes()
Gets the op's arguments.
-
label
public String label()
Gets a label identifying the op's scope (i.e., its name and/or types).
-
typesMatch
public boolean typesMatch(Type opType, Map<TypeVariable<?>,Type> typeVarAssigns)
- Specified by:
typesMatchin interfaceOpRequest
-
-