public class OpRef extends Object
With the help of the OpMatchingService, an OpRef holds all
information needed to create an appropriate Op.
| Constructor and Description |
|---|
OpRef(String name,
Collection<? extends Type> types,
Collection<? extends Type> outTypes,
Object... args)
Creates a new op reference.
|
| Modifier and Type | Method and Description |
|---|---|
static OpRef |
create(String name,
Object... args)
Creates a new op reference.
|
static OpRef |
create(Type type,
Object... args)
Creates a new op reference.
|
static OpRef |
createTypes(Collection<? extends Type> types,
Object... args)
Creates a new op reference.
|
static OpRef |
createTypes(Type type1,
Type type2,
Type outType,
Object... args)
Creates a new op reference.
|
boolean |
equals(Object obj) |
Object[] |
getArgs()
Gets the op's arguments.
|
String |
getLabel()
Gets a label identifying the op's scope (i.e., its name and/or types).
|
String |
getName()
Gets the name of the op.
|
List<Type> |
getOutTypes()
Gets the op's output types (one constraint per output), or null for no
constraints.
|
Collection<Type> |
getTypes()
Gets the types which the op must match.
|
int |
hashCode() |
String |
toString() |
static List<Type> |
types(Type... types) |
boolean |
typesMatch(Class<?> c)
Determines whether the op's required types match the given class.
|
public OpRef(String name, Collection<? extends Type> types, Collection<? extends Type> outTypes, Object... args)
name - name of the op, or null for any name.types - types which the ops must match.outTypes - the op's required output types.args - arguments to the op.public static OpRef create(String name, Object... args)
name - name of the op, or null for any name.args - arguments to the op.public static OpRef create(Type type, Object... args)
type - type of op, or null for any type.args - arguments to the op.public static OpRef createTypes(Type type1, Type type2, Type outType, Object... args)
type1 - first type constraint of the op.type2 - second type constraint of the op.outType - the type of the op's primary output, or null for any type.args - arguments to the op.public static OpRef createTypes(Collection<? extends Type> types, Object... args)
types - type constraints of op, or null for any type.args - arguments to the op.public String getName()
public Collection<Type> getTypes()
public List<Type> getOutTypes()
public Object[] getArgs()
public String getLabel()
public boolean typesMatch(Class<?> c)
Copyright © 2014–2022 ImageJ. All rights reserved.