- java.lang.Object
-
- org.scijava.ops.api.InfoTree
-
public class InfoTree extends Object
A data structure wrangling a hierarchy ofOpInfos, created for every Op match and called upon to instantiate any number ofOpInstances. ThisInfoTreecontains:- An
OpInfodescribing the Op - A
ListofOpInfos that should be mapped to the Op dependencies of this Op, in the order that they are presented by the Op.
This
NOTE: This class is not responsible for generatingInfoTreeis also able to generate aStringuniquely identifying itself.RichOps.- Author:
- Gabriel Selzer
- See Also:
RichOp.infoTree()
- An
-
-
Field Summary
Fields Modifier and Type Field Description static CharacterDEP_END_DELIMstatic CharacterDEP_START_DELIMstatic StringDEPENDENCY_DELIM
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<InfoTree>dependencies()booleanequals(Object obj)protected ObjectgenerateOp()inthashCode()OpInfoinfo()OpInstance<?>newInstance()OpInstance<?>newInstance(Type opType)Stringsignature()Builds a String uniquely identifying this tree of Ops.StringtoString()
-
-
-
Field Detail
-
DEP_START_DELIM
public static final Character DEP_START_DELIM
-
DEP_END_DELIM
public static final Character DEP_END_DELIM
-
DEPENDENCY_DELIM
public static final String DEPENDENCY_DELIM
- See Also:
- Constant Field Values
-
-
Method Detail
-
signature
public String signature()
Builds a String uniquely identifying this tree of Ops. As eachOpInfo.id()should be unique to thatOpInfo, we can use those to uniquely identify a hierarchy ofOpInfos, and thus by extension a uniqueInfoTree.
-
info
public OpInfo info()
-
newInstance
public OpInstance<?> newInstance()
-
newInstance
public OpInstance<?> newInstance(Type opType)
-
generateOp
protected Object generateOp()
-
-