- java.lang.Object
-
- org.scijava.ops.engine.matcher.adapt.OpAdaptationInfo
-
-
Constructor Summary
Constructors Constructor Description OpAdaptationInfo(OpInfo srcInfo, Type type, InfoTree adaptorTree)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StructInstance<?>createOpInstance(List<?> dependencies)HintsdeclaredHints()Stringdescription()AnnotatedElementgetAnnotationBearer()Stringid()For an adapted Op, we define the implementation name as the concatenation of: The signature of the adaptorInfoTreeThe adaptation delimiter The implementation name of the original infoStringimplementationName()List<String>names()TypeopType()doublepriority()Structstruct()StringtoString()Stringversion()Returns the version of the adapted Op.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.scijava.ops.api.OpInfo
compareTo, inputs, inputTypes, output, outputs, outputType
-
-
-
-
Field Detail
-
IMPL_DECLARATION
protected static final String IMPL_DECLARATION
Identifiers used for an adapted Op in a signature- See Also:
- Constant Field Values
-
ADAPTOR
protected static final String ADAPTOR
- See Also:
- Constant Field Values
-
ORIGINAL
protected static final String ORIGINAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
description
public String description()
- Specified by:
descriptionin interfaceOpInfo
-
declaredHints
public Hints declaredHints()
- Specified by:
declaredHintsin interfaceOpInfo
-
implementationName
public String implementationName()
- Specified by:
implementationNamein interfaceOpInfo
-
createOpInstance
public StructInstance<?> createOpInstance(List<?> dependencies)
- Specified by:
createOpInstancein interfaceOpInfo- Parameters:
dependencies- - the list of depencies for the source Op
-
getAnnotationBearer
public AnnotatedElement getAnnotationBearer()
- Specified by:
getAnnotationBearerin interfaceOpInfo
-
version
public String version()
Returns the version of the adapted Op.Note that
adaptorInfo.version()is used as the Op returned is an inner class of the adaptor Op, and will thus have the same version as the adaptor.
-
id
public String id()
For an adapted Op, we define the implementation name as the concatenation of:- The signature of the adaptor
InfoTree - The adaptation delimiter
- The implementation name of the original info
For example, for a source
com.example.foo.Bar@1.0.0with adaptorcom.example.foo.BazAdaptor@1.0.0with delimiter|Adaptation|, you might havecom.example.foo.BazAdaptor@1.0.0{}|Adaptation|com.example.foo.Bar@1.0.0 - The signature of the adaptor
-
-