commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r800033 - in /commons/proper/jexl/branches/2.0/src: java/org/apache/commons/jexl/scripting/JexlScriptObject.java test/org/apache/commons/jexl/scripting/JexlScriptEngineTest.java
Date Sun, 02 Aug 2009 11:29:52 GMT
Author: sebb
Date: Sun Aug  2 11:29:52 2009
New Revision: 800033

URL: http://svn.apache.org/viewvc?rev=800033&view=rev
Log:
Add method to get System.class

Modified:
    commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/scripting/JexlScriptObject.java
    commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/scripting/JexlScriptEngineTest.java

Modified: commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/scripting/JexlScriptObject.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/scripting/JexlScriptObject.java?rev=800033&r1=800032&r2=800033&view=diff
==============================================================================
--- commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/scripting/JexlScriptObject.java
(original)
+++ commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/scripting/JexlScriptObject.java
Sun Aug  2 11:29:52 2009
@@ -27,14 +27,14 @@
  * <ul>
  * <li>out - System.out</li>
  * <li>err - System.err</li>
+ * <li>System - System.class</li>
  * <li></li>
  * </ul>
  * </p>
  */
 public class JexlScriptObject {
 
-     public JexlScriptObject(){
-        
+    public JexlScriptObject(){
     }
 
     public static PrintStream getOut() {
@@ -45,4 +45,8 @@
         return System.err;
     }
 
+    public static Class<System> getSystem() {
+        return System.class;
+    }
+
 }

Modified: commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/scripting/JexlScriptEngineTest.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/scripting/JexlScriptEngineTest.java?rev=800033&r1=800032&r2=800033&view=diff
==============================================================================
--- commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/scripting/JexlScriptEngineTest.java
(original)
+++ commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/scripting/JexlScriptEngineTest.java
Sun Aug  2 11:29:52 2009
@@ -54,6 +54,7 @@
         assertNotNull(engine.get("JEXL"));
         assertEquals(System.out,engine.eval("JEXL.out"));
         assertEquals(System.err,engine.eval("JEXL.err"));
+        assertEquals(System.class,engine.eval("JEXL.System"));
     }
     
     public void testNulls() throws Exception {



Mime
View raw message