public class UnaryBooleanFunction extends org.nfunk.jep.function.PostfixMathCommand implements MultiStrategyCommand
The actual concrete implementation defined is by UnaryBooleanFunction.Strategy.
| Modifier and Type | Class and Description |
|---|---|
static class |
UnaryBooleanFunction.Strategy
Defines particular object predicates for the
UnaryBooleanFunction. |
| Constructor and Description |
|---|
UnaryBooleanFunction(UnaryBooleanFunction.Strategy strategy)
Builds this custom command with a fixed number of 1 parameter.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getStrategy() |
void |
run(Stack stack) |
public UnaryBooleanFunction(UnaryBooleanFunction.Strategy strategy)
strategy - the UnaryBooleanFunction.Strategy to be setpublic void run(Stack stack) throws org.nfunk.jep.ParseException
run in interface org.nfunk.jep.function.PostfixMathCommandIrun in class org.nfunk.jep.function.PostfixMathCommandorg.nfunk.jep.ParseExceptionComparative.run(java.util.Stack)public Object getStrategy()
getStrategy in interface MultiStrategyCommandCopyright © 2023. All rights reserved.