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 classIfCallccFunction__if_callcc functionclassReducerBreakFunctionInternal reducer-break function for 'for-loop' structure.classReducerContFunctionInternal reducer-continue function for 'for-loop' structure.classReducerFunctionInternal reducer-callcc function for 'for-loop' structure.classReducerReturnFunctionInternal reducer-return function for 'for-loop' structure.classThrowFunction__throw(e) to throw an exception.classTryCatchFunction__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 classMathAbsFunctionmath.abs(d) functionclassMathAcosFunctionmath.acos(d) functionclassMathAsinFunctionmath.asin(d) functionclassMathAtanFunctionmath.atan(d) functionclassMathCeilFunctionmath.ceil(d) functionclassMathCosFunctionmath.cos(d) functionclassMathFloorFunctionmath.floor(d) functionclassMathLog10Functionmath.log10(d) functionclassMathLogFunctionmath.log(d) functionclassMathPowFunctionmath.pow(d1,d2) functionclassMathRoundFunctionmath.round(d) functionclassMathSinFunctionmath.sin(d) functionclassMathSqrtFunctionmath.sqrt(d) functionclassMathTanFunctionmath.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 classAbstractSeqMinMaxFunctionBase class for min/max function.classSeqAddAllFunctionseq.add function to add all elements in other sequence into this one.classSeqAddFunctionseq.add function to add an element into seq.classSeqCollectorFunctionseq.collector(seq) to create a collector for this sequence.classSeqCollectorRawFunctionseq.raw(collector) to retrieve the raw container of collector.classSeqContainsKeyFunctionseq.contains_key(map,key) function to check if seq(should be map) contains the key.classSeqCountFunctioncount(seq) to get seq's sizeclassSeqEveryFunctionReturns true if fun.call(x) is logical true for every x in sequence, else false.classSeqFilterFunctionfilter(seq,predicate) to filter seq by predicateclassSeqGetFunctionseq.get function to retrieve a element by index(for list) or key(for map).classSeqIncludeFunctioninclude(seq,obj) function to check if seq contains objectclassSeqIntoFunctioninto(to_coll, from_coll) Adds all elements in from_coll into to_coll by seq.add(to_coll, element) and return the to_coll.classSeqKeysFunctionseq.keys(map) to retrieve keys sequence of the map.classSeqMakePredicateFunFunctionFunction to make predicate for filter functionclassSeqMapEntryFunctionseq.entry(key, value) function to create a Map.Entry instance.classSeqMapFunctionmap(col,fun) function to iterate seq with functionclassSeqMaxFunctionseq.max function to find the largest element in sequence.classSeqMinFunctionseq.min function to find the smallest element in sequence.classSeqNotAnyFunctionReturns false if fun.call(x) is logical true for any x in sequence, else true.classSeqPredicateFunctionA predicate functionclassSeqPutFunctionseq.put function to set a element value by index(for list) or key(for map).classSeqReduceFunctionreduce(col,fun,init) function to reduce seq with function and a initial value valueclassSeqRemoveFunctionseq.add function to add an element into seq.classSeqReverseFunctionreverse(seq) to reverse an array or list in place.classSeqSomeFunctionReturns the first logical true value of fun.call(x) for any x in sequence, else returns nil.classSeqSortFunctionsort(list, [comparator]) function to sort a java.util.List or array,return a sorted duplicate objectclassSeqValsFunctionseq.vals(map) to retrieve values sequence of the map.classSeqZipmapFunctionseq.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 classStringContainsFunctionstring.contains(s1,s2) functionclassStringEndsWithFunctionstring.endsWith(s1,s2) functionclassStringIndexOfFunctionString.indexOf functionclassStringJoinFunctionstring.join functionclassStringLengthFunctionstring.length(s) functionclassStringReplaceAllFunctionstring.replace_all functionclassStringReplaceFirstFunctionstring.replace_first functionclassStringSplitFunctionstring.split functionclassStringStartsWithFunctionstring.startsWith(s1,s2) functionclassStringSubStringFunctionstring.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 classAssertFunctionassert function to assert an expression's value is true, otherwise throw an exception.classBigIntFunctionCast value to bigintclassBinaryFunctionBinary function,includes +,-,*,/,%,!classBooleanFunctionCast value to boolean, return false when nil or false, otherwise returns true.classComparatorFunctionReturns an implementation of java.util.Comparator based upon pred function.classCompareFunctionA compare function.classDate2StringFunctiondate_to_string functionclassDecimalFunctionCast value to decimal.classDoubleFunctionCast value to double,double(a) eg.classEvalFunctioneval(script) , eval(script, bindings) and eval(script, bindings, cached) to execute a script with current env or special bindings, default is in caching mode.classIdentityFunctionidentity function return the argument itself.classIsAFunctionis_a(x, clazz) returns true when x is an intance of the class.classIsDefFunctionis_def(x) returns true when variable x is defined in current scope or parent scopes.classLoadFunctionload('script.av') to load a script and retrieve it's exports.classLongFunctionCast value to longclassMetaFunctionmeta(obj, [key]) function to return the meatadata of obj [with the key], returns null if ithere is no metadata.classNowFunctionnow() function to invoke System.currentTimeMillis()classPrintFunctionprintln(obj) function to print objectclassPrintlnFunctionprintln(obj) function to print object with newlineclassPstFunctionpst([out], e) function to print stacktrace of exceptionclassRandomFunctionrand() function to generate random double valueclassRangeFunctionA function to create a range in [start, end] with step.classRequireFunctionrequire('script.av') to load a script and retrieve it's exports, if it's required before, it will return the exports directly.classSeqFunctionseq(obj) function to cast a object into sequence, throw an runtime exception if fail.classStrFunctionCast value to stringclassString2DateFunctionstring_to_date functionclassSysDateFunctionsysdate() functionclassTypeFunctiontype(x) function return the type of x, the result is a string such as 'string', 'long', 'double' etc.classUndefFunctionundef(x) to forgot a variable that is defined in current scope.classWithMetaFunctionwith_meta(obj, key, value) function to add metadata key/value to obj, return the obj.classWithoutMetaFunctionwithout_meta(obj, key) function to remove metadata by key from obj, return the obj.
-