Uses of Class
com.googlecode.aviator.runtime.function.AbstractFunction
Packages that use AbstractFunction
Package
Description
-
Uses of AbstractFunction in com.googlecode.aviator.runtime.function.internal
Subclasses of AbstractFunction in com.googlecode.aviator.runtime.function.internalModifier and TypeClassDescriptionclass
__if_callcc functionclass
Internal reducer-break function for 'for-loop' structure.class
Internal reducer-continue function for 'for-loop' structure.class
Internal reducer-callcc function for 'for-loop' structure.class
Internal reducer-return function for 'for-loop' structure.class
__throw(e) to throw an exception.class
__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.mathModifier and TypeClassDescriptionclass
math.abs(d) functionclass
math.acos(d) functionclass
math.asin(d) functionclass
math.atan(d) functionclass
math.ceil(d) functionclass
math.cos(d) functionclass
math.floor(d) functionclass
math.log10(d) functionclass
math.log(d) functionclass
math.pow(d1,d2) functionclass
math.round(d) functionclass
math.sin(d) functionclass
math.sqrt(d) functionclass
math.tan(d) function -
Uses of AbstractFunction in com.googlecode.aviator.runtime.function.seq
Subclasses of AbstractFunction in com.googlecode.aviator.runtime.function.seqModifier and TypeClassDescriptionclass
Base class for min/max function.class
seq.add function to add all elements in other sequence into this one.class
seq.add function to add an element into seq.class
seq.collector(seq) to create a collector for this sequence.class
seq.raw(collector) to retrieve the raw container of collector.class
seq.contains_key(map,key) function to check if seq(should be map) contains the key.class
count(seq) to get seq's sizeclass
Returns true if fun.call(x) is logical true for every x in sequence, else false.class
filter(seq,predicate) to filter seq by predicateclass
seq.get function to retrieve a element by index(for list) or key(for map).class
include(seq,obj) function to check if seq contains objectclass
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
seq.keys(map) to retrieve keys sequence of the map.class
Function to make predicate for filter functionclass
seq.entry(key, value) function to create a Map.Entry instance.class
map(col,fun) function to iterate seq with functionclass
seq.max function to find the largest element in sequence.class
seq.min function to find the smallest element in sequence.class
Returns false if fun.call(x) is logical true for any x in sequence, else true.class
A predicate functionclass
seq.put function to set a element value by index(for list) or key(for map).class
reduce(col,fun,init) function to reduce seq with function and a initial value valueclass
seq.add function to add an element into seq.class
reverse(seq) to reverse an array or list in place.class
Returns the first logical true value of fun.call(x) for any x in sequence, else returns nil.class
sort(list, [comparator]) function to sort a java.util.List or array,return a sorted duplicate objectclass
seq.vals(map) to retrieve values sequence of the map.class
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.stringModifier and TypeClassDescriptionclass
string.contains(s1,s2) functionclass
string.endsWith(s1,s2) functionclass
String.indexOf functionclass
string.join functionclass
string.length(s) functionclass
string.replace_all functionclass
string.replace_first functionclass
string.split functionclass
string.startsWith(s1,s2) functionclass
string.substring(s1,s2) function -
Uses of AbstractFunction in com.googlecode.aviator.runtime.function.system
Subclasses of AbstractFunction in com.googlecode.aviator.runtime.function.systemModifier and TypeClassDescriptionclass
assert function to assert an expression's value is true, otherwise throw an exception.class
Cast value to bigintclass
Binary function,includes +,-,*,/,%,!class
Cast value to boolean, return false when nil or false, otherwise returns true.class
Returns an implementation of java.util.Comparator based upon pred function.class
A compare function.class
date_to_string functionclass
Cast value to decimal.class
Cast value to double,double(a) eg.class
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
identity function return the argument itself.class
is_a(x, clazz) returns true when x is an intance of the class.class
is_def(x) returns true when variable x is defined in current scope or parent scopes.class
load('script.av') to load a script and retrieve it's exports.class
Cast value to longclass
meta(obj, [key]) function to return the meatadata of obj [with the key], returns null if ithere is no metadata.class
now() function to invoke System.currentTimeMillis()class
println(obj) function to print objectclass
println(obj) function to print object with newlineclass
pst([out], e) function to print stacktrace of exceptionclass
rand() function to generate random double valueclass
A function to create a range in [start, end] with step.class
require('script.av') to load a script and retrieve it's exports, if it's required before, it will return the exports directly.class
seq(obj) function to cast a object into sequence, throw an runtime exception if fail.class
Cast value to stringclass
string_to_date functionclass
sysdate() functionclass
type(x) function return the type of x, the result is a string such as 'string', 'long', 'double' etc.class
undef(x) to forgot a variable that is defined in current scope.class
with_meta(obj, key, value) function to add metadata key/value to obj, return the obj.class
without_meta(obj, key) function to remove metadata by key from obj, return the obj.