public abstract class AstUniOp<T extends AstUniOp<T>> extends AstBuiltin<T>
Constructor and Description |
---|
AstUniOp() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
args()
List of argument names.
|
Val |
exec(Val... args)
Most Ast* functions will want to override this method.
|
int |
nargs()
Number of function's arguments + 1.
|
abstract double |
op(double d) |
apply
description, example, exec
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonString, write, writeExternal, writeJSON
public java.lang.String[] args()
AstPrimitive
args
in class AstPrimitive<T extends AstUniOp<T>>
public int nargs()
AstPrimitive
nargs
in class AstPrimitive<T extends AstUniOp<T>>
public Val exec(Val... args)
AstBuiltin
exec
in class AstBuiltin<T extends AstUniOp<T>>
public abstract double op(double d)