Beispiel #1
0
  public Collection<ELFunctionDefinition> getAllFunctions() {
    List<ELFunctionDefinition> fns = new ArrayList<>(functionLibrary.entries());

    if (parent != null) {
      fns.addAll(parent.getAllFunctions());
    }

    return fns;
  }
Beispiel #2
0
 public ELFunctionDefinition getFunction(String name) {
   ELFunctionDefinition f = functionLibrary.getFunction(name);
   if (f != null) {
     return f;
   }
   if (parent != null) {
     return parent.getFunction(name);
   }
   return null;
 }
Beispiel #3
0
 public void registerFunction(ELFunctionDefinition f) {
   functionLibrary.addFunction(f);
 }