public class jThen extends JFunctorImpl
Created by Jeff Gaynor
on 2/27/18 at 10:38 AM
args, executed, result, type
Modifier | Constructor and Description |
---|---|
|
jThen() |
protected |
jThen(FunctorTypeImpl type) |
Modifier and Type | Method and Description |
---|---|
Object |
execute()
There is no actual result from this functor.
|
FunctorMap |
getFunctorMap()
A map of every functor that is associated at the top level with this block.
|
void |
reset()
This resets the entire state of the functor including erasing the argument list.
If you need to clear the executed state and re-run everything, consider invoking
JFunctorImpl.clearState() . |
addArg, addArg, addArg, addArg, addArg, addArg, checkArgs, checkArgs, clearState, getArgs, getBooleanResult, getIntResult, getListResult, getName, getResult, getStringResult, isExecuted, toJSON, toString
public jThen()
protected jThen(FunctorTypeImpl type)
public Object execute()
public void reset()
JFunctorImpl
JFunctorImpl.clearState()
.reset
in class JFunctorImpl
public FunctorMap getFunctorMap()
FunctorTypeImpl
or one of its sublcasses
, e.g. to check if myFunctor has been executed as part of the conditional issue
if(getFunctorMap().containsKey(myFunctor)){...}or to see id the functor jExists has been executed, go to the enumeration of types
if(getFunctorMap().containsKey(FunctorTypeImpl.EXISTS.getvalue())){...}
Copyright © 2019. All Rights Reserved.