- java.lang.Object
-
- org.scijava.ops.api.OpBuilder.Arity1_IV_OU<I1>
-
-
Constructor Summary
Constructors Constructor Description Arity1_IV_OU(I1 in1)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectapply()Match then immediately run a type-unsafeFunctionsop and get its output.Function<I1,?>function()Match aFunctionsop based on the choices made with this builder.Stringhelp()Finds all Ops matching the current partial OpBuilder requestStringhelpVerbose()Finds all Ops matching the current partial OpBuilder requestInplaces.Arity1<I1>inplace()Match anInplacesop, based on the choices made with this builder, to mutate the 1st parameter.voidmutate()Match then immediately run anInplacesop to mutate the 1st parameter.<O> OpBuilder.Arity1_IV_OV<I1,O>output(O out)Matches with this builder will use the given pre-allocated output instance.<O> OpBuilder.Arity1_IV_OT<I1,O>outType(Class<O> outType)Matches with this builder will use the indicated output class.<O> OpBuilder.Arity1_IV_OT<I1,O>outType(Nil<O> outType)Matches with this builder will use the output type of the indicatedNil's generic parameter.
-
-
-
Constructor Detail
-
Arity1_IV_OU
public Arity1_IV_OU(I1 in1)
-
-
Method Detail
-
output
public <O> OpBuilder.Arity1_IV_OV<I1,O> output(O out)
Matches with this builder will use the given pre-allocated output instance.- See Also:
To match then immediately run a Function Op using the input values provided to this builder.,For a reusable Op that generates output instances based on its inputs.,For a reusable Op that modifies a provided input parameter in-place.,To match then immediately run an Inplace Op modifying a provided input parameter.,To specify the output type without providing a concrete instance.,To specify the output type, preserving its generic parameters.
-
outType
public <O> OpBuilder.Arity1_IV_OT<I1,O> outType(Class<O> outType)
Matches with this builder will use the indicated output class.- See Also:
To match then immediately run a Function Op using the input values provided to this builder.,For a reusable Op that generates output instances based on its inputs.,For a reusable Op that modifies a provided input parameter in-place.,To match then immediately run an Inplace Op modifying a provided input parameter.,To specify a concrete output instance. (e.g. pre-allocated for Computers),To specify the output type, preserving its generic parameters.
-
outType
public <O> OpBuilder.Arity1_IV_OT<I1,O> outType(Nil<O> outType)
Matches with this builder will use the output type of the indicatedNil's generic parameter.- See Also:
To match then immediately run a Function Op using the input values provided to this builder.,For a reusable Op that generates output instances based on its inputs.,For a reusable Op that modifies a provided input parameter in-place.,To match then immediately run an Inplace Op modifying a provided input parameter.,To specify a concrete output instance. (e.g. pre-allocated for Computers),To specify the output type without providing a concrete instance.
-
function
public Function<I1,?> function()
Match aFunctionsop based on the choices made with this builder.- Returns:
- An instance of the matched op, e.g. for reuse.
- Throws:
OpMatchingException- if the Op request cannot be satisfied.- See Also:
To match then immediately run a Function Op using the input values provided to this builder.,For a reusable Op that modifies a provided input parameter in-place.,To match then immediately run an Inplace Op modifying a provided input parameter.,To specify a concrete output instance. (e.g. pre-allocated for Computers),To specify the output type without providing a concrete instance.,To specify the output type, preserving its generic parameters.
-
inplace
public Inplaces.Arity1<I1> inplace()
Match anInplacesop, based on the choices made with this builder, to mutate the 1st parameter.- Returns:
- An instance of the matched op, e.g. for reuse.
- Throws:
OpMatchingException- if the Op request cannot be satisfied.- See Also:
To match then immediately run a Function Op using the input values provided to this builder.,For a reusable Op that generates output instances based on its inputs.,To match then immediately run an Inplace Op modifying a provided input parameter.,To specify a concrete output instance. (e.g. pre-allocated for Computers),To specify the output type without providing a concrete instance.,To specify the output type, preserving its generic parameters.
-
apply
public Object apply()
Match then immediately run a type-unsafeFunctionsop and get its output.- Returns:
- The output of this function
- Throws:
OpMatchingException- if the Op request cannot be satisfied.- See Also:
For a reusable Op that generates output instances based on its inputs.,For a reusable Op that modifies a provided input parameter in-place.,To match then immediately run an Inplace Op modifying a provided input parameter.,To specify a concrete output instance. (e.g. pre-allocated for Computers),To specify the output type without providing a concrete instance.,To specify the output type, preserving its generic parameters.
-
mutate
public void mutate()
Match then immediately run anInplacesop to mutate the 1st parameter.- See Also:
To match then immediately run a Function Op using the input values provided to this builder.,For a reusable Op that generates output instances based on its inputs.,For a reusable Op that modifies a provided input parameter in-place.,To specify a concrete output instance. (e.g. pre-allocated for Computers),To specify the output type without providing a concrete instance.,To specify the output type, preserving its generic parameters.
-
help
public String help()
Finds all Ops matching the current partial OpBuilder request- Returns:
- a
Stringwith a simple entry for each Op satisfying the partial request
-
-