-
public interface OpRequestData structure which identifies an Op by name and/or type(s) and/or argument type(s), along with a list of input arguments.- Author:
- Christian Dietz (University of Konstanz), Curtis Rueden, Gabriel Selzer
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static voidappend(StringBuilder sb, String s)Type[]argTypes()Gets the request's argument types.static Type[]filterNulls(Type... types)Stringlabel()Gets a label identifying the Op's scope (i.e., its name and/or types).Stringname()Gets the name of the requested Op.TypeoutType()Gets the request's expected outputType.default booleanrequestEquals(Object obj)default intrequestHashCode()default StringrequestString()Typetype()Gets the functional OpTyperequested.booleantypesMatch(Type opType, Map<TypeVariable<?>,Type> typeVarAssigns)Determines whether the specified type satisfies the op's required types.
-
-
-
Method Detail
-
name
String name()
Gets the name of the requested Op.- Returns:
- the name of the requested Op
-
outType
Type outType()
Gets the request's expected outputType.- Returns:
- the desired
Typeof output objects.
-
argTypes
Type[] argTypes()
Gets the request's argument types.- Returns:
- the
Types of the arguments that the user wishes to pass to the Op
-
label
String label()
Gets a label identifying the Op's scope (i.e., its name and/or types).- Returns:
- a label identifying the Op's scope
-
typesMatch
boolean typesMatch(Type opType, Map<TypeVariable<?>,Type> typeVarAssigns)
Determines whether the specified type satisfies the op's required types.
-
requestString
default String requestString()
-
requestEquals
default boolean requestEquals(Object obj)
-
requestHashCode
default int requestHashCode()
-
append
static void append(StringBuilder sb, String s)
-
-