commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r450028 - /jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/TokenMgrError.java
Date Tue, 26 Sep 2006 12:35:39 GMT
Author: dion
Date: Tue Sep 26 05:35:38 2006
New Revision: 450028

URL: http://svn.apache.org/viewvc?view=rev&rev=450028
Log:
For JEXL-22. javacc 4.0 generated file

Modified:
    jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/TokenMgrError.java

Modified: jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/TokenMgrError.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/TokenMgrError.java?view=diff&rev=450028&r1=450027&r2=450028
==============================================================================
--- jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/TokenMgrError.java
(original)
+++ jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/TokenMgrError.java
Tue Sep 26 05:35:38 2006
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-/* Generated By:JavaCC: Do not edit this line. TokenMgrError.java Version 2.1 */
+/* Generated By:JavaCC: Do not edit this line. TokenMgrError.java Version 3.0 */
 package org.apache.commons.jexl.parser;
 
 public class TokenMgrError extends Error {
@@ -99,16 +99,19 @@
         return retval.toString();
     }
 
-    /**
-     * Returns a detailed message for the Error when it is thrown by the token
-     * manager to indicate a lexical error. Parameters : EOFSeen : indicates if
-     * EOF caused the lexicl error curLexState : lexical state in which this
-     * error occured errorLine : line number when the error occured errorColumn :
-     * column number when the error occured errorAfter : prefix that was seen
-     * before this error occured curchar : the offending character Note: You can
-     * customize the lexical error message by modifying this method.
-     */
-    private static final String LexicalError(boolean EOFSeen, int lexState, int errorLine,
int errorColumn,
+   /**
+    * Returns a detailed message for the Error when it is thrown by the
+    * token manager to indicate a lexical error.
+    * Parameters : 
+    *    EOFSeen     : indicates if EOF caused the lexicl error
+    *    curLexState : lexical state in which this error occured
+    *    errorLine   : line number when the error occured
+    *    errorColumn : column number when the error occured
+    *    errorAfter  : prefix that was seen before this error occured
+    *    curchar     : the offending character
+    * Note: You can customize the lexical error message by modifying this method.
+    */
+   protected static final String LexicalError(boolean EOFSeen, int lexState, int errorLine,
int errorColumn,
         String errorAfter, char curChar) {
         return ("Lexical error at line " + errorLine + ", column " + errorColumn + ".  Encountered:
"
             + (EOFSeen ? "<EOF> " : ("\"" + addEscapes(String.valueOf(curChar)) + "\"")
+ " (" + (int) curChar + "), ")



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message