public class PrintFunction extends SimpleCliFunction
maxArgs, minArgs
log, name, spaceParser
Constructor and Description |
---|
PrintFunction() |
Modifier and Type | Method and Description |
---|---|
protected Value |
apply(CliSession session,
Value[] params)
Apply this function to the given values.
|
String |
getHelpSummary()
Get summarized help (typically a single line).
|
EnumSet<SessionMode> |
getSessionModes()
Get the
SessionMode (s) supported by this instance. |
String |
getUsage()
Get function usage string.
|
apply
apply, getMaxArgs, getMinArgs, parseParams
getHelpDetail, getName, parseExpressionParams, parseNextParameter
public String getHelpSummary()
Function
public String getUsage()
Function
pow(base, exponent)
.public EnumSet<SessionMode> getSessionModes()
AbstractFunction
SessionMode
(s) supported by this instance.
The implementation in AbstractFunction
returns an EnumSet
containing
SessionMode.CORE_API
and SessionMode.PERMAZEN
.
getSessionModes
in interface Function
getSessionModes
in class AbstractFunction
SessionMode
sprotected Value apply(CliSession session, Value[] params)
SimpleCliFunction
apply
in class SimpleCliFunction
session
- CLI sessionparams
- parsed parameters; will already be checked between SimpleFunction.getMinArgs()
and SimpleFunction.getMaxArgs()
Copyright © 2022. All rights reserved.