You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2013/07/04 11:00:43 UTC

svn commit: r1499691 - /tomcat/trunk/java/javax/el/LambdaExpression.java

Author: markt
Date: Thu Jul  4 09:00:43 2013
New Revision: 1499691

URL: http://svn.apache.org/r1499691
Log:
EL 3.0
Add new class
Implementation not yet complete - need to do some more research

Added:
    tomcat/trunk/java/javax/el/LambdaExpression.java   (with props)

Added: tomcat/trunk/java/javax/el/LambdaExpression.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/javax/el/LambdaExpression.java?rev=1499691&view=auto
==============================================================================
--- tomcat/trunk/java/javax/el/LambdaExpression.java (added)
+++ tomcat/trunk/java/javax/el/LambdaExpression.java Thu Jul  4 09:00:43 2013
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package javax.el;
+
+import java.util.List;
+
+public class LambdaExpression {
+
+    private final List<String> formalParameters;
+    private final ValueExpression expression;
+    private ELContext context = null;
+
+    public LambdaExpression(List<String> formalParameters,
+            ValueExpression expression) {
+        this.formalParameters = formalParameters;
+        this.expression = expression;
+    }
+
+    public void setELContext(ELContext context) {
+        this.context = context;
+    }
+
+    public Object invoke(ELContext context , Object... args)
+            throws ELException {
+
+        if (context == null) {
+            throw new NullPointerException();
+        }
+
+        // TODO
+        return null;
+    }
+
+    public java.lang.Object invoke(Object... args) throws ELException {
+        return invoke (context, args);
+    }
+}

Propchange: tomcat/trunk/java/javax/el/LambdaExpression.java
------------------------------------------------------------------------------
    svn:eol-style = native



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org