-
- Type Parameters:
T- the functionalTypeof the wrapped Op
- All Superinterfaces:
GenericTyped
public interface RichOp<T> extends GenericTyped
AnOpInstancewith state- Author:
- Gabriel Selzer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TasOpType()OpEnvironmentenv()Hintshints()default InfoTreeinfoTree()OpInstance<T>instance()Gets theOpInstanceof thisRichOpStringname()default Top()Getter for thisRichOp's raw Op instancedefault voidpostprocess(Object output)Defines behavior performed by the Op after each execution.default voidpreprocess(Object... inputs)Defines behavior performed by the Op before each execution.default Typetype()
-
-
-
Method Detail
-
instance
OpInstance<T> instance()
Gets theOpInstanceof thisRichOp- Returns:
- the
OpInstanceof thisRichOp
-
env
OpEnvironment env()
-
hints
Hints hints()
-
name
String name()
-
op
default T op()
Getter for thisRichOp's raw Op instance- Returns:
- the raw Op instance of this
RichOp
-
type
default Type type()
- Specified by:
typein interfaceGenericTyped- Returns:
- the
Typeof this Op
-
preprocess
default void preprocess(Object... inputs)
Defines behavior performed by the Op before each execution.- Parameters:
inputs- the inputs to the Op's functional method
-
postprocess
default void postprocess(Object output)
Defines behavior performed by the Op after each execution.- Parameters:
output- the output of the Op's functional method
-
-