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 functionclassInternal reducer-break function for 'for-loop' structure.classInternal reducer-continue function for 'for-loop' structure.classInternal reducer-callcc function for 'for-loop' structure.classInternal 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 TypeClassDescriptionclassmath.abs(d) functionclassmath.acos(d) functionclassmath.asin(d) functionclassmath.atan(d) functionclassmath.ceil(d) functionclassmath.cos(d) functionclassmath.floor(d) functionclassmath.log10(d) functionclassmath.log(d) functionclassmath.pow(d1,d2) functionclassmath.round(d) functionclassmath.sin(d) functionclassmath.sqrt(d) functionclassmath.tan(d) function -
Uses of AbstractFunction in com.googlecode.aviator.runtime.function.seq
Subclasses of AbstractFunction in com.googlecode.aviator.runtime.function.seqModifier and TypeClassDescriptionclassBase class for min/max function.classseq.add function to add all elements in other sequence into this one.classseq.add function to add an element into seq.classseq.collector(seq) to create a collector for this sequence.classseq.raw(collector) to retrieve the raw container of collector.classseq.contains_key(map,key) function to check if seq(should be map) contains the key.classcount(seq) to get seq's sizeclassReturns true if fun.call(x) is logical true for every x in sequence, else false.classfilter(seq,predicate) to filter seq by predicateclassseq.get function to retrieve a element by index(for list) or key(for map).classinclude(seq,obj) function to check if seq contains objectclassinto(to_coll, from_coll) Adds all elements in from_coll into to_coll by seq.add(to_coll, element) and return the to_coll.classseq.keys(map) to retrieve keys sequence of the map.classFunction to make predicate for filter functionclassseq.entry(key, value) function to create a Map.Entry instance.classmap(col,fun) function to iterate seq with functionclassseq.max function to find the largest element in sequence.classseq.min function to find the smallest element in sequence.classReturns false if fun.call(x) is logical true for any x in sequence, else true.classA predicate functionclassseq.put function to set a element value by index(for list) or key(for map).classreduce(col,fun,init) function to reduce seq with function and a initial value valueclassseq.add function to add an element into seq.classreverse(seq) to reverse an array or list in place.classReturns the first logical true value of fun.call(x) for any x in sequence, else returns nil.classsort(list, [comparator]) function to sort a java.util.List or array,return a sorted duplicate objectclassseq.vals(map) to retrieve values sequence of the map.classseq.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 TypeClassDescriptionclassstring.contains(s1,s2) functionclassstring.endsWith(s1,s2) functionclassString.indexOf functionclassstring.join functionclassstring.length(s) functionclassstring.replace_all functionclassstring.replace_first functionclassstring.split functionclassstring.startsWith(s1,s2) functionclassstring.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 TypeClassDescriptionclassassert function to assert an expression's value is true, otherwise throw an exception.classCast value to bigintclassBinary function,includes +,-,*,/,%,!classCast value to boolean, return false when nil or false, otherwise returns true.classReturns an implementation of java.util.Comparator based upon pred function.classA compare function.classdate_to_string functionclassCast value to decimal.classCast value to double,double(a) eg.classeval(script) , eval(script, bindings) and eval(script, bindings, cached) to execute a script with current env or special bindings, default is in caching mode.classidentity function return the argument itself.classis_a(x, clazz) returns true when x is an intance of the class.classis_def(x) returns true when variable x is defined in current scope or parent scopes.classload('script.av') to load a script and retrieve it's exports.classCast value to longclassmeta(obj, [key]) function to return the meatadata of obj [with the key], returns null if ithere is no metadata.classnow() function to invoke System.currentTimeMillis()classprintln(obj) function to print objectclassprintln(obj) function to print object with newlineclasspst([out], e) function to print stacktrace of exceptionclassrand() function to generate random double valueclassA function to create a range in [start, end] with step.classrequire('script.av') to load a script and retrieve it's exports, if it's required before, it will return the exports directly.classseq(obj) function to cast a object into sequence, throw an runtime exception if fail.classCast value to stringclassstring_to_date functionclasssysdate() functionclasstype(x) function return the type of x, the result is a string such as 'string', 'long', 'double' etc.classundef(x) to forgot a variable that is defined in current scope.classwith_meta(obj, key, value) function to add metadata key/value to obj, return the obj.classwithout_meta(obj, key) function to remove metadata by key from obj, return the obj.