- java.lang.Object
-
- org.scijava.ops.engine.yaml.impl.AbstractYAMLOpInfo
-
- org.scijava.ops.engine.yaml.impl.YAMLOpMethodInfo
-
- All Implemented Interfaces:
Comparable<OpInfo>,OpInfo
public class YAMLOpMethodInfo extends AbstractYAMLOpInfo implements OpInfo
- Author:
- Gabriel Selzer
-
-
Field Summary
-
Fields inherited from class org.scijava.ops.engine.yaml.impl.AbstractYAMLOpInfo
description, hints, identifier, names, priority, version, yaml
-
Fields inherited from interface org.scijava.ops.api.OpInfo
IMPL_DECLARATION
-
-
Constructor Summary
Constructors Constructor Description YAMLOpMethodInfo(Map<String,Object> yaml, String identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StructInstance<?>createOpInstance(List<?> dependencies)AnnotatedElementgetAnnotationBearer()Stringid()For anOpMethod, we define the implementation as the concatenation of: The fully qualified name of the class containing the method The method name The method parameters The version of the class containing the method, with a preceding@StringimplementationName()TypeopType()Structstruct()-
Methods inherited from class org.scijava.ops.engine.yaml.impl.AbstractYAMLOpInfo
declaredHints, description, equals, hashCode, names, parseNames, parsePriority, priority, toString, version
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.scijava.ops.api.OpInfo
compareTo, declaredHints, description, inputs, inputTypes, names, output, outputs, outputType, priority, version
-
-
-
-
Constructor Detail
-
YAMLOpMethodInfo
public YAMLOpMethodInfo(Map<String,Object> yaml, String identifier) throws NoSuchMethodException
- Throws:
NoSuchMethodException
-
-
Method Detail
-
struct
public Struct struct()
- Specified by:
structin interfaceOpInfo- Specified by:
structin classAbstractYAMLOpInfo
-
implementationName
public String implementationName()
- Specified by:
implementationNamein interfaceOpInfo
-
createOpInstance
public StructInstance<?> createOpInstance(List<?> dependencies)
- Specified by:
createOpInstancein interfaceOpInfo
-
id
public String id()
For anOpMethod, we define the implementation as the concatenation of:- The fully qualified name of the class containing the method
- The method name
- The method parameters
- The version of the class containing the method, with a preceding
@
For example, for a method
baz(Double in1, String in2)in classcom.example.foo.Bar, you might havecom.example.foo.Bar.baz(Double in1,String in2)@1.0.0
-
getAnnotationBearer
public AnnotatedElement getAnnotationBearer()
- Specified by:
getAnnotationBearerin interfaceOpInfo
-
-