public class InvertFunction extends AbstractFunction
log, name, spaceParser| Constructor and Description |
|---|
InvertFunction() |
| Modifier and Type | Method and Description |
|---|---|
Value |
apply(ParseSession session,
Object params)
Evaluate this function.
|
String |
getHelpDetail()
Get expanded help (typically multiple lines).
|
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.
|
org.jsimpledb.parse.func.InvertFunction.InvertInfo |
parseParams(ParseSession session,
ParseContext ctx,
boolean complete)
Parse function parameters.
|
getName, parseExpressionParams, parseNextParameterpublic String getHelpSummary()
Functionpublic String getUsage()
Functionpow(base, exponent).public String getHelpDetail()
AbstractFunction
The implementation in AbstractFunction delegates to getHelpSummary().
The implementation in AbstractFunction just delegates to getHelpSummary().
getHelpDetail in interface FunctiongetHelpDetail in class AbstractFunctionpublic EnumSet<SessionMode> getSessionModes()
AbstractFunctionSessionMode(s) supported by this instance.
The implementation in AbstractFunction returns an EnumSet containing
SessionMode.CORE_API and SessionMode.JSIMPLEDB.
getSessionModes in interface FunctiongetSessionModes in class AbstractFunctionSessionModespublic org.jsimpledb.parse.func.InvertFunction.InvertInfo parseParams(ParseSession session, ParseContext ctx, boolean complete)
Function
The ctx will be pointing at the first parameter (if any) or closing parenthesis. This method should parse
(but not evaluate) function parameters up through the closing parenthesis. The return value is an opaque value
representing the parsed parameters and subsequently passed to apply().
session - parse sessionctx - parse contextcomplete - false if parse is "for real", true if only for tab completion calculationapply()public Value apply(ParseSession session, Object params)
Functionsession - parse sessionparams - parsed parameters returned by parseParams()Copyright © 2017. All rights reserved.