コード例 #1
0
ファイル: DelayClosure.java プロジェクト: hongun/ELite
 public Object invoke(ELContext elctx, Closure[] args) {
   Object v = getValue(elctx);
   if (v instanceof Closure) {
     return ((Closure) v).invoke(elctx, args);
   } else {
     return ELEngine.invokeTarget(elctx, v, args);
   }
 }
コード例 #2
0
ファイル: EvalClosure.java プロジェクト: hongun/ELite
 public EvaluationContext getContext(ELContext elctx) {
   if (this.context == null) {
     if (elctx == null) elctx = ELEngine.getCurrentELContext();
     this.context = new EvaluationContext(elctx, fm, vm);
   } else {
     if (elctx != null) {
       this.context.setELContext(elctx);
     }
   }
   return this.context;
 }