public class MiscellaneousFunctions extends AbstractFunctionHandler implements NotFixedResults
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
HANDLER_ID |
q| 构造器和说明 |
|---|
MiscellaneousFunctions() |
| 限定符和类型 | 方法和说明 |
|---|---|
double |
abs(Number d) |
Object |
accessor(Expression oExp,
Expression accExp)
Call the specified accessor on the object.
|
Object |
accessor(Object o,
String acc)
Call the specified accessor on the object.
|
void |
cache(List allobjs,
Expression exp) |
void |
cache(List allobjs,
Getter get) |
Object |
eval(Expression exp) |
String |
fileExtension(Object f) |
Object |
get(Object o,
String name) |
Object |
get(String name) |
Object |
ifThen(Expression ifcond,
Expression thenVal) |
Object |
ifThenElse(Expression ifcond,
Expression thenVal,
Expression elseVal) |
Boolean |
instanceOf(Expression obj,
Expression clazz) |
Date |
now(boolean zeroTime) |
int |
random() |
int |
random(Number n) |
double |
randomDouble() |
Object |
save_value(Object saveValueName) |
Object |
savevalue(Object saveValueName) |
Object |
saveValue(Object saveValueName) |
setQuerypublic Date now(boolean zeroTime)
public void cache(List allobjs, Getter get) throws QueryExecutionException
public void cache(List allobjs, Expression exp) throws QueryExecutionException
public double abs(Number d)
public int random()
public int random(Number n)
public double randomDouble()
public Object accessor(Expression oExp, Expression accExp) throws Exception
oExp - The expression to use to evaluate to get the object.accExp - The expression that is evaluated to get the accessor.Exception - If there is something wrong.public Object accessor(Object o, String acc) throws Exception
o - The object to call the accessor on.acc - The accessor.Exception - If there is something wrong.public Object ifThen(Expression ifcond, Expression thenVal) throws QueryExecutionException
public Object ifThenElse(Expression ifcond, Expression thenVal, Expression elseVal) throws QueryExecutionException
public Object eval(Expression exp) throws QueryExecutionException
public Boolean instanceOf(Expression obj, Expression clazz) throws QueryExecutionException
Copyright © 2021. All rights reserved.