- java.lang.Object
-
- org.scijava.ops.api.Ops
-
public final class Ops extends Object
Generic Ops utilities- Author:
- Gabriel Selzer
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OpInfoinfo(Object op)Convenience function for getting theOpInfoofopstatic InfoTreeinfoTree(Object op)Convenience function for getting theInfoTreebehindopstatic booleanisRich(Object op)Convenience function for determining whetheropis aRichOp.static <T> RichOp<T>rich(T op)Convenience function for getting theRichOpofopstatic Stringsignature(Object op)Convenience function for getting the signature ofop
-
-
-
Method Detail
-
isRich
public static boolean isRich(Object op)
Convenience function for determining whetheropis aRichOp.- Parameters:
op- the Op- Returns:
- true iff
opis aRichOp
-
rich
public static <T> RichOp<T> rich(T op)
Convenience function for getting theRichOpofop- Type Parameters:
T- the type ofop- Parameters:
op- the Op- Returns:
- the
RichOpwrappingop - Throws:
IllegalArgumentException- when aRichOpcannot be obtained forop
-
infoTree
public static InfoTree infoTree(Object op)
Convenience function for getting theInfoTreebehindop- Parameters:
op- the Op- Returns:
- the
InfoTreeofop - Throws:
IllegalArgumentException- ifopis not an Op
-
info
public static OpInfo info(Object op)
Convenience function for getting theOpInfoofop- Parameters:
op- the Op- Returns:
- the
OpInfothat generatedop - Throws:
IllegalArgumentException- ifopis not an Op
-
signature
public static String signature(Object op)
Convenience function for getting the signature ofop- Parameters:
op- the Op- Returns:
- the signature of
op, which can be used to completely restoreop - Throws:
IllegalArgumentException- ifopis not an Op
-
-