Uses of Class
com.googlecode.aviator.runtime.function.AbstractFunction
-
-
Uses of AbstractFunction in com.googlecode.aviator.runtime.function.internal
Subclasses of AbstractFunction in com.googlecode.aviator.runtime.function.internal Modifier and Type Class Description class
IfCallccFunction
__if_callcc functionclass
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
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) -
Uses of AbstractFunction in com.googlecode.aviator.runtime.function.math
Subclasses of AbstractFunction in com.googlecode.aviator.runtime.function.math Modifier and Type Class Description class
MathAbsFunction
math.abs(d) functionclass
MathAcosFunction
math.acos(d) functionclass
MathAsinFunction
math.asin(d) functionclass
MathAtanFunction
math.atan(d) functionclass
MathCeilFunction
math.ceil(d) functionclass
MathCosFunction
math.cos(d) functionclass
MathFloorFunction
math.floor(d) functionclass
MathLog10Function
math.log10(d) functionclass
MathLogFunction
math.log(d) functionclass
MathPowFunction
math.pow(d1,d2) functionclass
MathRoundFunction
math.round(d) functionclass
MathSinFunction
math.sin(d) functionclass
MathSqrtFunction
math.sqrt(d) functionclass
MathTanFunction
math.tan(d) function -
Uses of AbstractFunction in com.googlecode.aviator.runtime.function.seq
Subclasses of AbstractFunction in com.googlecode.aviator.runtime.function.seq Modifier and Type Class Description class
AbstractSeqMinMaxFunction
Base class for min/max function.class
SeqAddAllFunction
seq.add function to add all elements in other sequence into this one.class
SeqAddFunction
seq.add function to add an element into seq.class
SeqCollectorFunction
seq.collector(seq) to create a collector for this sequence.class
SeqCollectorRawFunction
seq.raw(collector) to retrieve the raw container of collector.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 sizeclass
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 predicateclass
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 objectclass
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
SeqKeysFunction
seq.keys(map) to retrieve keys sequence of the map.class
SeqMakePredicateFunFunction
Function to make predicate for filter functionclass
SeqMapEntryFunction
seq.entry(key, value) function to create a Map.Entry instance.class
SeqMapFunction
map(col,fun) function to iterate seq with functionclass
SeqMaxFunction
seq.max function to find the largest element in sequence.class
SeqMinFunction
seq.min function to find the smallest element in sequence.class
SeqNotAnyFunction
Returns false if fun.call(x) is logical true for any x in sequence, else true.class
SeqPredicateFunction
A predicate functionclass
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 valueclass
SeqRemoveFunction
seq.add function to add an element into seq.class
SeqReverseFunction
reverse(seq) to reverse an array or list in place.class
SeqSomeFunction
Returns the first logical true value of fun.call(x) for any x in sequence, else returns nil.class
SeqSortFunction
sort(list, [comparator]) function to sort a java.util.List or array,return a sorted duplicate objectclass
SeqValsFunction
seq.vals(map) to retrieve values sequence of the map.class
SeqZipmapFunction
seq.collector(seq) to create a collector for this sequence. -
Uses of AbstractFunction in com.googlecode.aviator.runtime.function.string
Subclasses of AbstractFunction in com.googlecode.aviator.runtime.function.string Modifier and Type Class Description class
StringContainsFunction
string.contains(s1,s2) functionclass
StringEndsWithFunction
string.endsWith(s1,s2) functionclass
StringIndexOfFunction
String.indexOf functionclass
StringJoinFunction
string.join functionclass
StringLengthFunction
string.length(s) functionclass
StringReplaceAllFunction
string.replace_all functionclass
StringReplaceFirstFunction
string.replace_first functionclass
StringSplitFunction
string.split functionclass
StringStartsWithFunction
string.startsWith(s1,s2) functionclass
StringSubStringFunction
string.substring(s1,s2) function -
Uses of AbstractFunction in com.googlecode.aviator.runtime.function.system
Subclasses of AbstractFunction in com.googlecode.aviator.runtime.function.system Modifier and Type Class Description class
AssertFunction
assert function to assert an expression's value is true, otherwise throw an exception.class
BigIntFunction
Cast value to bigintclass
BinaryFunction
Binary function,includes +,-,*,/,%,!class
BooleanFunction
Cast value to boolean, return false when nil or false, otherwise returns true.class
ComparatorFunction
Returns an implementation of java.util.Comparator based upon pred function.class
CompareFunction
A compare function.class
Date2StringFunction
date_to_string functionclass
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
IsAFunction
is_a(x, clazz) returns true when x is an intance of the class.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 longclass
MetaFunction
meta(obj, [key]) function to return the meatadata of obj [with the key], returns null if ithere is no metadata.class
NowFunction
now() function to invoke System.currentTimeMillis()class
PrintFunction
println(obj) function to print objectclass
PrintlnFunction
println(obj) function to print object with newlineclass
PstFunction
pst([out], e) function to print stacktrace of exceptionclass
RandomFunction
rand() function to generate random double valueclass
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 stringclass
String2DateFunction
string_to_date functionclass
SysDateFunction
sysdate() functionclass
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.class
WithMetaFunction
with_meta(obj, key, value) function to add metadata key/value to obj, return the obj.class
WithoutMetaFunction
without_meta(obj, key) function to remove metadata by key from obj, return the obj.
-