public abstract class AstTime extends AstPrimitive
| Constructor and Description |
|---|
AstTime() |
| Modifier and Type | Method and Description |
|---|---|
Val |
apply(Env env,
Env.StackHelp stk,
AstRoot[] asts)
Primary method to invoke this function, passing all the parameters
as the `asts` list.
|
java.lang.String[] |
args()
List of argument names.
|
protected java.lang.String[][] |
factors() |
int |
nargs()
Number of function's arguments + 1.
|
abstract long |
op(org.joda.time.MutableDateTime dt) |
description, example, execasBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonBytes, toJsonString, write, writeExternal, writeJSONpublic java.lang.String[] args()
AstPrimitiveargs in class AstPrimitivepublic int nargs()
AstPrimitivenargs in class AstPrimitiveprotected java.lang.String[][] factors()
public abstract long op(org.joda.time.MutableDateTime dt)
public Val apply(Env env, Env.StackHelp stk, AstRoot[] asts)
AstPrimitivePrimary method to invoke this function, passing all the parameters as the `asts` list.
apply in class AstPrimitiveenv - Current execution environment. Variables are looked up here.stk - TODO need clarificationasts - List of AstRoot expressions that are arguments to the
function. First element in this list is the function itself.