public abstract class SimpleCliFunction extends SimpleFunction
SimpleFunction.maxArgs, minArgslog, name, spaceParser| Modifier | Constructor and Description |
|---|---|
protected |
SimpleCliFunction(String name,
int minArgs,
int maxArgs)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Value |
apply(CliSession session,
Value[] params)
Apply this function to the given values.
|
protected Value |
apply(ParseSession session,
Value[] params) |
apply, getMaxArgs, getMinArgs, parseParamsgetHelpDetail, getName, getSessionModes, parseExpressionParams, parseNextParameterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHelpSummary, getUsageprotected SimpleCliFunction(String name, int minArgs, int maxArgs)
name - function nameminArgs - minimum number of arguments (inclusive)maxArgs - maximum number of arguments (inclusive)protected final Value apply(ParseSession session, Value[] params)
apply in class SimpleFunctionprotected abstract Value apply(CliSession session, Value[] params)
session - CLI sessionparams - parsed parameters; will already be checked between SimpleFunction.getMinArgs() and SimpleFunction.getMaxArgs()RuntimeException - if there is an errorCopyright © 2016. All rights reserved.