| Modifier and Type | Method | Description |
|---|---|---|
AviatorObject |
FunctionMissing.onFunctionMissing(String name,
Map<String,Object> env,
AviatorObject... args) |
Called when function not found, return the invocation result.
|
| Modifier and Type | Method | Description |
|---|---|---|
AviatorObject |
FunctionMissing.onFunctionMissing(String name,
Map<String,Object> env,
AviatorObject... args) |
Called when function not found, return the invocation result.
|
| Modifier and Type | Method | Description |
|---|---|---|
AviatorObject |
OperatorType.eval(AviatorObject[] args,
Map<String,Object> env) |
| Modifier and Type | Method | Description |
|---|---|---|
AviatorObject |
OperatorType.eval(AviatorObject[] args,
Map<String,Object> env) |
| Modifier and Type | Method | Description |
|---|---|---|
static AviatorObject |
RuntimeUtils.assertNotNull(AviatorObject object) |
Ensure the object is not null, cast null into AviatorNil.
|
AviatorObject |
JavaMethodReflectionFunctionMissing.onFunctionMissing(String name,
Map<String,Object> env,
AviatorObject... args) |
| Modifier and Type | Method | Description |
|---|---|---|
static AviatorObject |
RuntimeUtils.assertNotNull(AviatorObject object) |
Ensure the object is not null, cast null into AviatorNil.
|
AviatorObject |
JavaMethodReflectionFunctionMissing.onFunctionMissing(String name,
Map<String,Object> env,
AviatorObject... args) |
| Modifier and Type | Class | Description |
|---|---|---|
class |
AbstractFunction |
Abstract function implementation
|
class |
AbstractVariadicFunction |
Abstract function to implement variadic arguments function.
|
class |
ClassMethodFunction |
An aviator function wraps a class's static method.
|
class |
LambdaFunction |
All lamabda function base class
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
CatchHandler |
|
class |
CatchHandlerFunction |
__catch_handler(fun, exception) to create a
CatchHandler. |
class |
IfCallccFunction |
__if_callcc function
|
class |
NewInstanceFunction |
__new(Class, ...args) to create an instance of special class with arguments.
|
class |
ReducerBreakFunction |
Internal reducer-break function for 'for-loop' structure.
|
class |
ReducerContFunction |
Internal reducer-continue function for 'for-loop' structure.
|
class |
ReducerFunction |
Internal reducer-callcc function for 'for-loop' structure.
|
class |
ReducerResult |
ReducerResult in looping.
|
class |
ReducerReturnFunction |
Internal reducer-return function for 'for-loop' structure.
|
class |
ThrowFunction |
__throw(e) to throw an exception.
|
class |
TryCatchFunction |
__try(try_func, catch_handlers, finally_fn, callcc)
|
| Modifier and Type | Field | Description |
|---|---|---|
AviatorObject |
ReducerResult.obj |
| Modifier and Type | Class | Description |
|---|---|---|
class |
MathAbsFunction |
math.abs(d) function
|
class |
MathCosFunction |
math.cos(d) function
|
class |
MathLog10Function |
math.log10(d) function
|
class |
MathLogFunction |
math.log(d) function
|
class |
MathPowFunction |
math.pow(d1,d2) function
|
class |
MathRoundFunction |
math.round(d) function
|
class |
MathSinFunction |
math.sin(d) function
|
class |
MathSqrtFunction |
math.sqrt(d) function
|
class |
MathTanFunction |
math.tan(d) function
|
| Modifier and Type | Method | Description |
|---|---|---|
AviatorObject |
MathAbsFunction.call(Map<String,Object> env,
AviatorObject arg1) |
|
AviatorObject |
MathCosFunction.call(Map<String,Object> env,
AviatorObject arg1) |
|
AviatorObject |
MathLog10Function.call(Map<String,Object> env,
AviatorObject arg1) |
|
AviatorObject |
MathLogFunction.call(Map<String,Object> env,
AviatorObject arg1) |
|
AviatorObject |
MathPowFunction.call(Map<String,Object> env,
AviatorObject arg1,
AviatorObject arg2) |
|
AviatorObject |
MathRoundFunction.call(Map<String,Object> env,
AviatorObject arg) |
|
AviatorObject |
MathSinFunction.call(Map<String,Object> env,
AviatorObject arg1) |
|
AviatorObject |
MathSqrtFunction.call(Map<String,Object> env,
AviatorObject arg1) |
|
AviatorObject |
MathTanFunction.call(Map<String,Object> env,
AviatorObject arg1) |
| Modifier and Type | Method | Description |
|---|---|---|
AviatorObject |
MathAbsFunction.call(Map<String,Object> env,
AviatorObject arg1) |
|
AviatorObject |
MathCosFunction.call(Map<String,Object> env,
AviatorObject arg1) |
|
AviatorObject |
MathLog10Function.call(Map<String,Object> env,
AviatorObject arg1) |
|
AviatorObject |
MathLogFunction.call(Map<String,Object> env,
AviatorObject arg1) |
|
AviatorObject |
MathPowFunction.call(Map<String,Object> env,
AviatorObject arg1,
AviatorObject arg2) |
|
AviatorObject |
MathRoundFunction.call(Map<String,Object> env,
AviatorObject arg) |
|
AviatorObject |
MathSinFunction.call(Map<String,Object> env,
AviatorObject arg1) |
|
AviatorObject |
MathSqrtFunction.call(Map<String,Object> env,
AviatorObject arg1) |
|
AviatorObject |
MathTanFunction.call(Map<String,Object> env,
AviatorObject arg1) |
| Modifier and Type | Class | Description |
|---|---|---|
class |
AbstractSeqMinMaxFunction |
Base class for min/max function.
|
class |
SeqAddFunction |
seq.add function to add an element into seq.
|
class |
SeqArrayFunction |
seq.array(class, ...elements) function to create a new array of special type and elements.
|
class |
SeqCompsitePredFunFunction |
Composite predicate function with && or ||
|
class |
SeqContainsKeyFunction |
seq.contains_key(map,key) function to check if seq(should be map) contains the key.
|
class |
SeqCountFunction |
count(seq) to get seq's size
|
class |
SeqEveryFunction |
Returns true if fun.call(x) is logical true for every x in sequence, else false.
|
class |
SeqFilterFunction |
filter(seq,predicate) to filter seq by predicate
|
class |
SeqGetFunction |
seq.get function to retrieve a element by index(for list) or key(for map).
|
class |
SeqIncludeFunction |
include(seq,obj) function to check if seq contains object
|
class |
SeqIntoFunction |
into(to_coll, from_coll) Adds all elements in from_coll into to_coll by seq.add(to_coll, element)
and return the to_coll.
|
class |
SeqMakePredicateFunFunction |
Function to make predicate for filter function
|
class |
SeqMapEntryFunction |
seq.entry(key, value) function to create a Map.Entry instance.
|
class |
SeqMapFunction |
map(col,fun) function to iterate seq with function
|
class |
SeqMaxFunction |
seq.max function to find the largest element in sequence.
|
class |
SeqMinFunction |
seq.min function to find the smallest element in sequence.
|
class |
SeqNewArrayFunction |
seq.array_of(class, len) function to create a new array of special type and size.
|
class |
SeqNewListFunction |
seq.list function to new an array list.
|
class |
SeqNewMapFunction |
seq.map function to new a hash map.
|
class |
SeqNewSetFunction |
seq.set function to new a hash set.
|
class |
SeqNotAnyFunction |
Returns false if fun.call(x) is logical true for any x in sequence, else true.
|
class |
SeqPredicateFunction |
A predicate function
|
class |
SeqPutFunction |
seq.put function to set a element value by index(for list) or key(for map).
|
class |
SeqReduceFunction |
reduce(col,fun,init) function to reduce seq with function and a initial value value
|
class |
SeqRemoveFunction |
seq.add function to add an element into seq.
|
class |
SeqSomeFunction |
Returns the first logical true value of fun.call(x) for any x in sequence, else returns nil.
|
class |
SeqSortFunction |
sort(list) function to sort java.util.List or array,return a sorted duplicate object
|
| Constructor | Description |
|---|---|
SeqMakePredicateFunFunction(String name,
OperatorType opType,
AviatorObject value) |
|
SeqPredicateFunction(String name,
OperatorType opType,
AviatorObject value) |
|
SeqPredicateFunction(String name,
OperatorType opType,
AviatorObject value,
AviatorObject propertyName) |
| Modifier and Type | Class | Description |
|---|---|---|
class |
StringContainsFunction |
string.contains(s1,s2) function
|
class |
StringEndsWithFunction |
string.endsWith(s1,s2) function
|
class |
StringIndexOfFunction |
String.indexOf function
|
class |
StringJoinFunction |
string.join function
|
class |
StringLengthFunction |
string.length(s) function
|
class |
StringReplaceAllFunction |
string.replace_all function
|
class |
StringReplaceFirstFunction |
string.replace_first function
|
class |
StringSplitFunction |
string.split function
|
class |
StringStartsWithFunction |
string.startsWith(s1,s2) function
|
class |
StringSubStringFunction |
string.substring(s1,s2) function
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
AbstractMinMaxFunction |
Abstract base class for system min/max function.
|
class |
AssertFunction |
assert function to assert an expression's value is true, otherwise throw an exception.
|
class |
BigIntFunction |
Cast value to bigint
|
class |
BinaryFunction |
Binary function,includes +,-,*,/,%,!
|
class |
BooleanFunction |
Cast value to double,double(a) eg.
|
class |
CompareFunction |
A compare function.
|
class |
ConstantFunction |
Constant function to return the argument itself.
|
class |
Date2StringFunction |
date_to_string function
|
class |
DecimalFunction |
Cast value to decimal.
|
class |
DoubleFunction |
Cast value to double,double(a) eg.
|
class |
EvalFunction |
eval(script) , eval(script, bindings) and eval(script, bindings, cached) to execute a script with
current env or special bindings, default is in caching mode.
|
class |
IdentityFunction |
identity function return the argument itself.
|
class |
IsDefFunction |
is_def(x) returns true when variable x is defined in current scope or parent scopes.
|
class |
LoadFunction |
load('script.av') to load a script and retrieve it's exports.
|
class |
LongFunction |
Cast value to long
|
class |
MaxFunction |
max function to find the largest element in arguments.
|
class |
MinFunction |
min function to find the smallest element in arguments.
|
class |
NowFunction |
now() function to invoke System.currentTimeMillis()
|
class |
PrintFunction |
println(obj) function to print object
|
class |
PrintlnFunction |
println(obj) function to print object with newline
|
class |
PstFunction |
pst([out], e) function to print stacktrace of exception
|
class |
RandomFunction |
rand() function to generate random double value
|
class |
RangeFunction |
A function to create a range in [start, end] with step.
|
class |
RequireFunction |
require('script.av') to load a script and retrieve it's exports, if it's required before, it will
return the exports directly.
|
class |
SeqFunction |
seq(obj) function to cast a object into sequence, throw an runtime exception if fail.
|
class |
StrFunction |
Cast value to string
|
class |
String2DateFunction |
string_to_date function
|
class |
SysDateFunction |
sysdate() function
|
class |
TupleFunction |
tuple(x,y,z, ...) function to return an object array.
|
class |
TypeFunction |
type(x) function return the type of x, the result is a string such as 'string', 'long', 'double'
etc.
|
class |
UndefFunction |
undef(x) to forgot a variable that is defined in current scope.
|
| Constructor | Description |
|---|---|
ConstantFunction(String name,
AviatorObject result) |
| Modifier and Type | Method | Description |
|---|---|---|
static AviatorObject |
OperationRuntime.eval(AviatorObject left,
AviatorObject right,
Map<String,Object> env,
OperatorType opType) |
Eval with binary operator
|
static AviatorObject |
OperationRuntime.eval(AviatorObject arg,
Map<String,Object> env,
OperatorType opType) |
Eval with unary operator
|
static AviatorObject |
OperationRuntime.eval(AviatorObject left,
Map<String,Object> env,
AviatorObject right,
OperatorType opType) |
Just like
OperationRuntime.eval(AviatorObject, AviatorObject, Map, OperatorType), but with difference
arguments order. |
static AviatorObject |
OperationRuntime.eval(Map<String,Object> env,
AviatorObject[] args,
OperatorType opType) |
Eval with arguments array.
|
| Modifier and Type | Method | Description |
|---|---|---|
static AviatorObject |
OperationRuntime.eval(AviatorObject left,
AviatorObject right,
Map<String,Object> env,
OperatorType opType) |
Eval with binary operator
|
static AviatorObject |
OperationRuntime.eval(AviatorObject arg,
Map<String,Object> env,
OperatorType opType) |
Eval with unary operator
|
static AviatorObject |
OperationRuntime.eval(AviatorObject left,
Map<String,Object> env,
AviatorObject right,
OperatorType opType) |
Just like
OperationRuntime.eval(AviatorObject, AviatorObject, Map, OperatorType), but with difference
arguments order. |
static AviatorObject |
OperationRuntime.eval(Map<String,Object> env,
AviatorObject[] args,
OperatorType opType) |
Eval with arguments array.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
AviatorBigInt |
Aviator Big Integer
|
class |
AviatorBoolean |
Aviator boolean type
|
class |
AviatorDecimal |
Aviator Big Decimal
|
class |
AviatorDouble |
Aviator double type
|
class |
AviatorJavaType |
Aviator variable
|
class |
AviatorLong |
Aviator long type
|
class |
AviatorNil |
Aviator nil object
|
class |
AviatorNumber |
Aviator number type
|
class |
AviatorPattern |
A Aviator regular expression pattern
|
class |
AviatorRuntimeJavaElementType |
|
class |
AviatorRuntimeJavaType |
Aviator runtime java type,used by when generate runtime result.
|
class |
AviatorString |
A aviator string
|
class |
AviatorStringBuilder |
Aviator string builder for fast concatenating string.
|
class |
Range |
A range in [start, end) with step.
|
Copyright © 2022–2023. All rights reserved.