Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/rxm.git
source/grammar/Query.g
glob : T_GLOB ;
+/* Map lines affect the tree depth differently.
+ */
map : tableMap | columnMap | innerMap | outerMap;
tableMap : table T_MAP node ;
source/java/com/whitemagicsoftware/rxm/NullRXMException.java
-package com.whitemagicsoftware.rxm;
-
-/**
- * Indicates the RXM instance was invalid.
- */
-public class NullRXMException extends NullPointerException {
- /**
- * Default constructor.
- */
- public NullRXMException() {
- }
-
- /**
- * Constructs an instance with the specified detail message.
- *
- * @param message Additional details about the problem.
- */
- public NullRXMException( String message ) {
- super( message );
- }
-}
-
source/java/com/whitemagicsoftware/rxm/Parser.java
private List<String> statements = new ArrayList<String>();
- /** Tracks the SQL statement insertion point. */
- private int depth = 0;
-
/** The tree constructed while walking the <b>rxm</b>. */
private Tree<ParserRuleContext> queryTree;
*
* @param rxm The <b>rxm</b> instance responsible for receiving information
- * that allows it to build a SQL statement.
- *
- * @throws NullRXMException The <b>rxm</b> parameter is null.
+ * that allows it to build a SQL statement. Must not be null.
*/
- public Parser( RXM rxm ) throws NullRXMException {
- if( rxm == null ) {
- throw new NullRXMException();
- }
-
+ public Parser( RXM rxm ) {
this.rxm = rxm;
}

Removed superfluous variable and exception throwing.

Author Dave Jarvis <email>
Date 2015-03-05 20:32:29 GMT-0800
Commit df0820f56ed21f4bed03bb84502a7cde6445d424
Parent 2d49cd1
Delta 4 lines added, 33 lines removed, 29-line decrease