-
规则匹配的时候,需要通过传入变量是否表达式成立,例如:"1
-
要执行的表达式如下:
`regex.find("\[",requestBody)`
相关代码如下:
``` java
String exp = "regex.find(\"\\[\",requestBody) ";
AviatorEvaluator.addFunction(new AviatorRegularExpressionFunction());
…
-
a=seq.map('k1', 'v1', 'k2', 'v2');
b=map(a,lambda(x) -> x.value end)
above code show the intention to convert a map to a list with only key or value, but encounter runtime error:
Caused by: java.la…
-
constant pool for string/number literals to reduce bytecode and improve performance.
-
public static String paren(String ...values) {
StrBuilder sb= new StrBuilder(values);
return "(" + sb.toStringAndReset() +")";
}
调用此方法时报错,不支持多个参数
-
`(a == 1)?(b = 1.1;c = 1.2;):(b=2.2)`
如上面这个表达式,aviator 报错
`Syntax error:expect ':' at 17, current token: [type='Char',lexeme=';',index=17]. Parsing expression: (a == 1)?(b = 1.1;^^`
-
在 #155 之后想到,理论上也可以一键导入某个类的实例方法,只要主动传入 `this` 参数就可以使用,例如 String 的 indexOf 方法,可以这样导入
```
AviatorEvaluator.addInstanceMethods("str", String.class);
```
那么就可以这样用:
```
str.indexOf("hello", "h)…
-
com.googlecode.aviator.runtime.op.OperationRuntime的trace方法,对于args没有判断是否为空,就调用了desc方法,会导致空指针异常。
比如:
```java
RuntimeUtils.printTrace(env, TRACE_PREFIX + args[0].desc(env) + WHITE_SPACE + opType.tok…
-
4.2.3增加了一键导入类中的public的实例方法功能,能不能指定某些方法呢?
或者排除一些方法?考虑增加注解么?
-
A lot of the warframe augment mods (https://warframe.fandom.com/wiki/Warframe_Augment_Mods), if not all (I didn't test everything), are listed as `tradable: false` even though they are tradable.
Ex…