Author: dishara
Date: Sun Jun  3 17:13:12 2012
New Revision: 1345713

URL: http://svn.apache.org/viewvc?rev=1345713&view=rev
Log:
Added major JSR 223 classes with implemented empty methods 

Added:
    
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityBindings.java
    
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityCompilable.java
    
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityInvocable.java
    
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityScriptContext.java
    
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityScriptEngine.java
    
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityScriptEngineFactory.java
    
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityScriptException.java
Modified:
    velocity/sandbox/jsr223/velocity-engine-scripting/pom.xml

Modified: velocity/sandbox/jsr223/velocity-engine-scripting/pom.xml
URL: 
http://svn.apache.org/viewvc/velocity/sandbox/jsr223/velocity-engine-scripting/pom.xml?rev=1345713&r1=1345712&r2=1345713&view=diff
==============================================================================
--- velocity/sandbox/jsr223/velocity-engine-scripting/pom.xml (original)
+++ velocity/sandbox/jsr223/velocity-engine-scripting/pom.xml Sun Jun  3 
17:13:12 2012
@@ -8,8 +8,6 @@
         <version>2.0.0-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
-
     <artifactId>velocity-engine-scripting</artifactId>
 
-
-</project>
\ No newline at end of file
+</project>

Added: 
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityBindings.java
URL: 
http://svn.apache.org/viewvc/velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityBindings.java?rev=1345713&view=auto
==============================================================================
--- 
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityBindings.java
 (added)
+++ 
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityBindings.java
 Sun Jun  3 17:13:12 2012
@@ -0,0 +1,75 @@
+package org.apache.velocity.script;
+
+/*
+ * 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.
+ */
+
+import javax.script.Bindings;
+import java.util.Collection;
+import java.util.Map;
+import java.util.Set;
+
+public class VelocityBindings implements Bindings {
+    public Object put(String s, Object o) {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public void putAll(Map<? extends String, ? extends Object> map) {
+        //To change body of implemented methods use File | Settings | File 
Templates.
+    }
+
+    public void clear() {
+        //To change body of implemented methods use File | Settings | File 
Templates.
+    }
+
+    public Set<String> keySet() {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public Collection<Object> values() {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public Set<Entry<String, Object>> entrySet() {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public int size() {
+        return 0;  //To change body of implemented methods use File | Settings 
| File Templates.
+    }
+
+    public boolean isEmpty() {
+        return false;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public boolean containsKey(Object o) {
+        return false;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public boolean containsValue(Object o) {
+        return false;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public Object get(Object o) {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public Object remove(Object o) {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+}

Added: 
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityCompilable.java
URL: 
http://svn.apache.org/viewvc/velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityCompilable.java?rev=1345713&view=auto
==============================================================================
--- 
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityCompilable.java
 (added)
+++ 
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityCompilable.java
 Sun Jun  3 17:13:12 2012
@@ -0,0 +1,35 @@
+package org.apache.velocity.script;
+
+/*
+ * 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.
+ */
+
+import javax.script.Compilable;
+import javax.script.CompiledScript;
+import javax.script.ScriptException;
+import java.io.Reader;
+
+public class VelocityCompilable implements Compilable {
+    public CompiledScript compile(String s) throws ScriptException {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public CompiledScript compile(Reader reader) throws ScriptException {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+}

Added: 
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityInvocable.java
URL: 
http://svn.apache.org/viewvc/velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityInvocable.java?rev=1345713&view=auto
==============================================================================
--- 
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityInvocable.java
 (added)
+++ 
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityInvocable.java
 Sun Jun  3 17:13:12 2012
@@ -0,0 +1,41 @@
+package org.apache.velocity.script;
+
+/*
+ * 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.
+ */
+
+import javax.script.Invocable;
+import javax.script.ScriptException;
+
+public class VelocityInvocable implements Invocable {
+    public Object invokeMethod(Object o, String s, Object... objects) throws 
ScriptException, NoSuchMethodException {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public Object invokeFunction(String s, Object... objects) throws 
ScriptException, NoSuchMethodException {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public <T> T getInterface(Class<T> tClass) {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public <T> T getInterface(Object o, Class<T> tClass) {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+}

Added: 
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityScriptContext.java
URL: 
http://svn.apache.org/viewvc/velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityScriptContext.java?rev=1345713&view=auto
==============================================================================
--- 
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityScriptContext.java
 (added)
+++ 
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityScriptContext.java
 Sun Jun  3 17:13:12 2012
@@ -0,0 +1,84 @@
+package org.apache.velocity.script;
+
+/*
+ * 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.
+ */
+
+import javax.script.Bindings;
+import javax.script.ScriptContext;
+import java.io.Reader;
+import java.io.Writer;
+import java.util.List;
+
+public class VelocityScriptContext implements ScriptContext {
+    public void setBindings(Bindings bindings, int i) {
+        //To change body of implemented methods use File | Settings | File 
Templates.
+    }
+
+    public Bindings getBindings(int i) {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public void setAttribute(String s, Object o, int i) {
+        //To change body of implemented methods use File | Settings | File 
Templates.
+    }
+
+    public Object getAttribute(String s, int i) {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public Object removeAttribute(String s, int i) {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public Object getAttribute(String s) {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public int getAttributesScope(String s) {
+        return 0;  //To change body of implemented methods use File | Settings 
| File Templates.
+    }
+
+    public Writer getWriter() {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public Writer getErrorWriter() {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public void setWriter(Writer writer) {
+        //To change body of implemented methods use File | Settings | File 
Templates.
+    }
+
+    public void setErrorWriter(Writer writer) {
+        //To change body of implemented methods use File | Settings | File 
Templates.
+    }
+
+    public Reader getReader() {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public void setReader(Reader reader) {
+        //To change body of implemented methods use File | Settings | File 
Templates.
+    }
+
+    public List<Integer> getScopes() {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+}

Added: 
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityScriptEngine.java
URL: 
http://svn.apache.org/viewvc/velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityScriptEngine.java?rev=1345713&view=auto
==============================================================================
--- 
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityScriptEngine.java
 (added)
+++ 
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityScriptEngine.java
 Sun Jun  3 17:13:12 2012
@@ -0,0 +1,42 @@
+package org.apache.velocity.script;
+
+/*
+ * 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.
+ */
+
+import javax.script.*;
+import java.io.Reader;
+
+public class VelocityScriptEngine extends AbstractScriptEngine {
+
+    public Object eval(String s, ScriptContext scriptContext) throws 
ScriptException {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public Object eval(Reader reader, ScriptContext scriptContext) throws 
ScriptException {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public Bindings createBindings() {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public ScriptEngineFactory getFactory() {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+}

Added: 
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityScriptEngineFactory.java
URL: 
http://svn.apache.org/viewvc/velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityScriptEngineFactory.java?rev=1345713&view=auto
==============================================================================
--- 
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityScriptEngineFactory.java
 (added)
+++ 
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityScriptEngineFactory.java
 Sun Jun  3 17:13:12 2012
@@ -0,0 +1,73 @@
+package org.apache.velocity.script;
+/*
+ * 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.
+ */
+
+import javax.script.ScriptEngine;
+import javax.script.ScriptEngineFactory;
+import java.util.List;
+
+public class VelocityScriptEngineFactory implements ScriptEngineFactory {
+    public String getEngineName() {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public String getEngineVersion() {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public List<String> getExtensions() {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public List<String> getMimeTypes() {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public List<String> getNames() {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public String getLanguageName() {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public String getLanguageVersion() {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public Object getParameter(String s) {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public String getMethodCallSyntax(String s, String s1, String... strings) {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public String getOutputStatement(String s) {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public String getProgram(String... strings) {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+
+    public ScriptEngine getScriptEngine() {
+        return null;  //To change body of implemented methods use File | 
Settings | File Templates.
+    }
+}

Added: 
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityScriptException.java
URL: 
http://svn.apache.org/viewvc/velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityScriptException.java?rev=1345713&view=auto
==============================================================================
--- 
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityScriptException.java
 (added)
+++ 
velocity/sandbox/jsr223/velocity-engine-scripting/src/main/java/org/apache/velocity/script/VelocityScriptException.java
 Sun Jun  3 17:13:12 2012
@@ -0,0 +1,40 @@
+package org.apache.velocity.script;
+
+/*
+ * 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.
+ */
+
+import javax.script.ScriptException;
+
+public class VelocityScriptException extends ScriptException {
+    public VelocityScriptException(String s) {
+        super(s);
+    }
+
+    public VelocityScriptException(Exception e) {
+        super(e);
+    }
+
+    public VelocityScriptException(String s, String s1, int i) {
+        super(s, s1, i);
+    }
+
+    public VelocityScriptException(String s, String s1, int i, int i1) {
+        super(s, s1, i, i1);
+    }
+}


Reply via email to