Class jThen
- java.lang.Object
-
- edu.uiuc.ncsa.security.util.functor.JFunctorImpl
-
- edu.uiuc.ncsa.security.util.functor.logic.jThen
-
- All Implemented Interfaces:
JFunctor
,JMetaMetaFunctor
,JSONFunctor
,Serializable
- Direct Known Subclasses:
jElse
public class jThen extends JFunctorImpl
A model for all consequents.Created by Jeff Gaynor
on 2/27/18 at 10:38 AM- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class edu.uiuc.ncsa.security.util.functor.JFunctorImpl
args, executed, result, type
-
-
Constructor Summary
Constructors Modifier Constructor Description jThen()
protected
jThen(FunctorTypeImpl type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 invokingJFunctorImpl.clearState()
.-
Methods inherited from class edu.uiuc.ncsa.security.util.functor.JFunctorImpl
addArg, addArg, addArg, addArg, addArg, addArg, checkArgs, checkArgs, clearState, getArgs, getBooleanResult, getIntResult, getListResult, getName, getResult, getStringResult, isExecuted, toJSON, toString
-
-
-
-
Constructor Detail
-
jThen
public jThen()
-
jThen
protected jThen(FunctorTypeImpl type)
-
-
Method Detail
-
execute
public Object execute()
There is no actual result from this functor. What happens is that each element in its argument list is executed.- Returns:
-
reset
public void reset()
Description copied from class:JFunctorImpl
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 invokingJFunctorImpl.clearState()
.- Overrides:
reset
in classJFunctorImpl
-
getFunctorMap
public FunctorMap getFunctorMap()
A map of every functor that is associated at the top level with this block. Note that the value is list of functors in case any of them are repeated (e.g. the set functor for claims). This allows you to look up specific functors that have been executed directly. You do this by checking an instance of the functor or by checking the value of the type directly on (FunctorTypeImpl
or one of its sublcasses , e.g. to check if myFunctor has been executed as part of the conditional issueif(getFunctorMap().containsKey(myFunctor)){...}
or to see id the functor jExists has been executed, go to the enumeration of typesif(getFunctorMap().containsKey(FunctorTypeImpl.EXISTS.getvalue())){...}
- Returns:
-
-