[Mulgara-svn] r371 - branches/nw-interface/src/jar/query/java/org/mulgara/query/ast

pag at mulgara.org pag at mulgara.org
Thu Aug 23 12:11:22 UTC 2007


Author: pag
Date: 2007-08-23 07:11:22 -0500 (Thu, 23 Aug 2007)
New Revision: 371

Added:
   branches/nw-interface/src/jar/query/java/org/mulgara/query/ast/NullOp.java
Log:
Some updates to make the AST cleaner and allow each element to run on their own. Haven't yet finalized the interfaces (particularly execute())

Added: branches/nw-interface/src/jar/query/java/org/mulgara/query/ast/NullOp.java
===================================================================
--- branches/nw-interface/src/jar/query/java/org/mulgara/query/ast/NullOp.java	2007-08-23 12:10:10 UTC (rev 370)
+++ branches/nw-interface/src/jar/query/java/org/mulgara/query/ast/NullOp.java	2007-08-23 12:11:22 UTC (rev 371)
@@ -0,0 +1,38 @@
+/*
+ * The contents of this file are subject to the Open Software License
+ * Version 3.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.opensource.org/licenses/osl-3.0.txt
+ *
+ * Software distributed under the License is distributed on an "AS IS"
+ * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+ * the License for the specific language governing rights and limitations
+ * under the License.
+ */
+package org.mulgara.query.ast;
+
+/**
+ * An AST element for commands that do not require processing.
+ *
+ * @created 2007-08-21
+ * @author Paul Gearon
+ * @copyright &copy; 2007 <a href="mailto:pgearon at users.sourceforge.net">Paul Gearon</a>
+ * @licence <a href="{@docRoot}/../../LICENCE.txt">Open Software License v3.0</a>
+ */
+public class NullOp extends LocalCommand {
+
+  /**
+   * @see org.mulgara.query.ast.Command#isUICommand()
+   */
+  public boolean isUICommand() {
+    return false;
+  }
+
+  /**
+   * Do nothing.
+   */
+  public Object execute() throws Exception {
+    return null;
+  }
+
+}




More information about the Mulgara-svn mailing list