directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r359054 - /directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/subtree/SubtreeSpecificationParser.java
Date Mon, 26 Dec 2005 10:28:40 GMT
Author: elecharny
Date: Mon Dec 26 02:28:36 2005
New Revision: 359054

URL: http://svn.apache.org/viewcvs?rev=359054&view=rev
Log:
- Used LdapDN instead of LdapName
- No need of a constructor with a Parser argument
- No more isNormalizing() method

Modified:
    directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/subtree/SubtreeSpecificationParser.java

Modified: directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/subtree/SubtreeSpecificationParser.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/subtree/SubtreeSpecificationParser.java?rev=359054&r1=359053&r2=359054&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/subtree/SubtreeSpecificationParser.java
(original)
+++ directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/subtree/SubtreeSpecificationParser.java
Mon Dec 26 02:28:36 2005
@@ -20,8 +20,6 @@
 import java.io.StringReader;
 import java.text.ParseException;
 
-import org.apache.ldap.common.name.NameComponentNormalizer;
-
 import antlr.RecognitionException;
 import antlr.TokenStreamException;
 
@@ -43,8 +41,6 @@
     /** the antlr generated lexer being wrapped */
     private ReusableAntlrSubtreeSpecificationLexer lexer;
 
-    private final boolean isNormalizing;
-
     /**
      * Creates a subtree specification parser.
      */
@@ -53,28 +49,9 @@
         StringReader in = new StringReader(""); // place holder for the first input
         this.lexer = new ReusableAntlrSubtreeSpecificationLexer( in );
         this.parser = new ReusableAntlrSubtreeSpecificationParser( lexer );
-        this.parser.init(); // this method MUST be called while we cannot do
-                            // constructor overloading for antlr generated parser
-        this.isNormalizing = false;
     }
     
     /**
-     * Creates a normalizing subtree specification parser.
-     */
-    public SubtreeSpecificationParser(NameComponentNormalizer normalizer)
-    {
-        StringReader in = new StringReader(""); // place holder for the first input
-        this.lexer = new ReusableAntlrSubtreeSpecificationLexer( in );
-        this.parser = new ReusableAntlrSubtreeSpecificationParser( lexer );
-        
-        this.parser.setNormalizer( normalizer );
-        this.parser.init(); // this method MUST be called while we cannot do
-                            // constructor overloading for antlr generated parser
-        this.isNormalizing = true;
-    }
-
-
-    /**
      * Initializes the plumbing by creating a pipe and coupling the parser/lexer
      * pair with it.
      * 
@@ -130,15 +107,5 @@
         }
 
         return ss;
-    }
-    
-    /**
-     * Tests to see if this parser is normalizing.
-     *
-     * @return true if it normalizes false otherwise
-     */
-    public boolean isNormizing()
-    {
-        return this.isNormalizing ;
     }
 }



Mime
View raw message