Module org.scijava.ops.engine
Package org.scijava.ops.engine.struct
Class AnnotatedOpDependencyMember<T>
- java.lang.Object
-
- org.scijava.ops.engine.struct.AnnotatedOpDependencyMember<T>
-
- All Implemented Interfaces:
OpDependencyMember<T>,Member<T>
- Direct Known Subclasses:
FieldOpDependencyMember,MethodParameterOpDependencyMember
public abstract class AnnotatedOpDependencyMember<T> extends Object implements OpDependencyMember<T>
- Author:
- Marcel Wiedenmann
-
-
Constructor Summary
Constructors Constructor Description AnnotatedOpDependencyMember(String key, String description, Type type, OpDependency annotation)This constructor is ideal for situations where the key and description are readily availableAnnotatedOpDependencyMember(Supplier<String> keyGenerator, Supplier<String> descriptionGenerator, Type type, OpDependency annotation)This constructor is ideal for situations where obtaining the key or description are computationally expensive.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()OpDependencygetAnnotation()StringgetDependencyName()Hintshints()Stringkey()StringtoString()Typetype()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.scijava.struct.Member
childStruct, createInstance, isInput, isOutput, isRequired, isStruct, rawType
-
Methods inherited from interface org.scijava.ops.engine.OpDependencyMember
getIOType
-
-
-
-
Constructor Detail
-
AnnotatedOpDependencyMember
public AnnotatedOpDependencyMember(String key, String description, Type type, OpDependency annotation)
This constructor is ideal for situations where the key and description are readily available- Parameters:
key- the keydescription- the descriptiontype- theTypeof thisMemberannotation- theOpDependencyannotation
-
AnnotatedOpDependencyMember
public AnnotatedOpDependencyMember(Supplier<String> keyGenerator, Supplier<String> descriptionGenerator, Type type, OpDependency annotation)
This constructor is ideal for situations where obtaining the key or description are computationally expensive.- Parameters:
keyGenerator- theSupplierable to generate the keydescriptionGenerator- theSupplierable to generate the descriptiontype- theTypeof thisMemberannotation- theOpDependencyannotation
-
-
Method Detail
-
getAnnotation
public OpDependency getAnnotation()
-
getDependencyName
public String getDependencyName()
- Specified by:
getDependencyNamein interfaceOpDependencyMember<T>
-
hints
public Hints hints()
- Specified by:
hintsin interfaceOpDependencyMember<T>
-
description
public String description()
- Specified by:
descriptionin interfaceMember<T>
-
-