public class UnaryStringFunction extends org.nfunk.jep.function.PostfixMathCommand implements MultiStrategyCommand
UnaryStringFunction.Strategy.| Modifier and Type | Class and Description |
|---|---|
static class |
UnaryStringFunction.Strategy
Defines the strategy to be executed for a string, such as trimming and conversion to
lower/upper/camel-case.
|
| Constructor and Description |
|---|
UnaryStringFunction(UnaryStringFunction.Strategy strategy)
Builds this function with a fixed number of one parameter.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getStrategy() |
void |
run(Stack stack) |
public UnaryStringFunction(UnaryStringFunction.Strategy strategy)
strategy - the UnaryStringFunction.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.ParseExceptionPostfixMathCommand.run(java.util.Stack)public Object getStrategy()
getStrategy in interface MultiStrategyCommandMultiStrategyCommand.getStrategy()Copyright © 2023. All rights reserved.