jdk/src/share/classes/com/sun/tools/example/debug/expr/TokenMgrError.java
changeset 21278 ef8a3a2a72f2
parent 14342 8435a30053c1
child 22050 72e7501ac569
equal deleted inserted replaced
21277:bd380b80f9ea 21278:ef8a3a2a72f2
    42     */
    42     */
    43 
    43 
    44     private static final long serialVersionUID = -6236440836177601522L;
    44     private static final long serialVersionUID = -6236440836177601522L;
    45 
    45 
    46    /**
    46    /**
    47     * Lexical error occured.
    47     * Lexical error occurred.
    48     */
    48     */
    49    static final int LEXICAL_ERROR = 0;
    49    static final int LEXICAL_ERROR = 0;
    50 
    50 
    51    /**
    51    /**
    52     * An attempt wass made to create a second instance of a static token manager.
    52     * An attempt wass made to create a second instance of a static token manager.
   121    /**
   121    /**
   122     * Returns a detailed message for the Error when it is thrown by the
   122     * Returns a detailed message for the Error when it is thrown by the
   123     * token manager to indicate a lexical error.
   123     * token manager to indicate a lexical error.
   124     * Parameters :
   124     * Parameters :
   125     *    EOFSeen     : indicates if EOF caused the lexicl error
   125     *    EOFSeen     : indicates if EOF caused the lexicl error
   126     *    curLexState : lexical state in which this error occured
   126     *    curLexState : lexical state in which this error occurred
   127     *    errorLine   : line number when the error occured
   127     *    errorLine   : line number when the error occurred
   128     *    errorColumn : column number when the error occured
   128     *    errorColumn : column number when the error occurred
   129     *    errorAfter  : prefix that was seen before this error occured
   129     *    errorAfter  : prefix that was seen before this error occurred
   130     *    curchar     : the offending character
   130     *    curchar     : the offending character
   131     * Note: You can customize the lexical error message by modifying this method.
   131     * Note: You can customize the lexical error message by modifying this method.
   132     */
   132     */
   133    private static final String LexicalError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar) {
   133    private static final String LexicalError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar) {
   134       return("Lexical error at line " +
   134       return("Lexical error at line " +