- java.lang.Object
-
- org.scijava.ops.parser.OpParameter
-
public class OpParameter extends Object
Record class wrangling data pertaining to an Op parameter- Author:
- Gabriel Selzer, Mark Hiner
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpParameter.IO_TYPEOp parameters must be one of the following types
-
Constructor Summary
Constructors Constructor Description OpParameter(String name, String type, OpParameter.IO_TYPE ioType, String description)Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>data()Creates aMaprepresentation for this Op parameter that could be used in YAML generation.
-
-
-
Field Detail
-
ioType
protected final OpParameter.IO_TYPE ioType
-
name
protected final String name
-
type
protected final String type
-
desc
protected final String desc
-
-
Constructor Detail
-
OpParameter
public OpParameter(String name, String type, OpParameter.IO_TYPE ioType, String description)
Default constructor- Parameters:
name- the name of the parametertype- theTypeof the parameter, stringifiedioType- theOpParameter.IO_TYPEof the parameter. Note that functional outputs should useOpParameter.IO_TYPE.OUTPUT, output buffers should useOpParameter.IO_TYPE.CONTAINER, and data structures that are operated on inplace should useOpParameter.IO_TYPE.MUTABLE.description- a description of the parameter
-
-