Beispiel #1
0
 /*
  * Sets the capacity of the regexp cache.
  */
 public void setRegexpCacheSize(int size) {
   RegexpModule.setRegexpCacheSize(size);
 }
 public Object marshal(Env env, Value value, Class expectedClass) {
   return RegexpModule.createRegexpArray(env, value);
 }
Beispiel #3
0
 /*
  * Gets the max size of the regexp cache.
  */
 public int getRegexpCacheSize() {
   return RegexpModule.getRegexpCacheSize();
 }
 public Object marshal(Env env, Expr expr, Class expectedClass) {
   return RegexpModule.createRegexpArray(env, expr.eval(env));
 }