| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.sqltools.parsers.sql.SQLParseErrorInfo
public class SQLParseErrorInfo
This class provides information about an error that may occur when the
 SQLQueryParser parses an input that
 either is ambiguous to interpret or is not valid according to the parser's
 grammar rules. In such a case the parser throws an 
 SQLParserException, which contains a
 List of SQLParseErrorInfo objects.
 An SQLParseErrorInfo contains information about the position of
 the error, the token or token sequence (word/character or phrase) 
 that caused the error and a suggestion how to correct the wrong input.
 
org.eclipse.datatools.sqltools.parsers.sql.query.SQLParserManager#parse(String)| Field Summary | |
|---|---|
| static java.lang.String | NO_CORRECTION_AVAILABLE | 
| Constructor Summary | |
|---|---|
| SQLParseErrorInfo(int lineNumberStart,
                  int columnNumberStart,
                  int lineNumberEnd,
                  int columnNumberEnd,
                  java.lang.String errorSourceText,
                  java.lang.String expectedText,
                  java.lang.String parserErrorMessage,
                  java.lang.String errorCode) | |
| SQLParseErrorInfo(SQLQuerySourceInfo sourceInfo,
                  java.lang.String expectedText,
                  java.lang.String parserErrorMessage,
                  java.lang.String errorCode)The given SQLQuerySourceInfoprovides:
 
    lineNumberStart
    columnNumberStart
    lineNumberEnd
    columnNumberEnd
    errorSourceText | |
| Method Summary | |
|---|---|
|  int | getColumnNumberEnd() | 
|  int | getColumnNumberStart() | 
|  java.lang.String | getErrorCode()Returns the static errorCodeto be compared by reference to
 String constants. | 
|  java.lang.String | getErrorSourceText()Return the text causing the parser exception. | 
|  java.lang.String | getExpectedText() | 
|  int | getLineNumberEnd() | 
|  int | getLineNumberStart() | 
|  java.lang.String | getParserErrorMessage() | 
|  void | setColumnNumberEnd(int columnNumberEnd) | 
|  void | setColumnNumberStart(int columnNumberStart) | 
|  void | setErrorCode(java.lang.String errorCode)Sets the static errorCodeto be compared by refenrence
 rather than by value - use String constants! | 
|  void | setErrorSourceText(java.lang.String errorSourceText)Sets the text causing the parser exception. | 
|  void | setExpectedText(java.lang.String expectedText) | 
|  void | setLineNumberEnd(int lineNumberEnd) | 
|  void | setLineNumberStart(int lineNumberStart) | 
|  void | setParserErrorMessage(java.lang.String parserErrorMessage) | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String NO_CORRECTION_AVAILABLE
| Constructor Detail | 
|---|
public SQLParseErrorInfo(int lineNumberStart,
                         int columnNumberStart,
                         int lineNumberEnd,
                         int columnNumberEnd,
                         java.lang.String errorSourceText,
                         java.lang.String expectedText,
                         java.lang.String parserErrorMessage,
                         java.lang.String errorCode)
lineNumberStart - columnNumberStart - lineNumberEnd - columnNumberEnd - errorSourceText - expectedText - parserErrorMessage - errorCode - 
public SQLParseErrorInfo(SQLQuerySourceInfo sourceInfo,
                         java.lang.String expectedText,
                         java.lang.String parserErrorMessage,
                         java.lang.String errorCode)
SQLQuerySourceInfo provides:
 
sourceInfo - expectedText - parserErrorMessage - errorCode - | Method Detail | 
|---|
public int getColumnNumberEnd()
public void setColumnNumberEnd(int columnNumberEnd)
columnNumberEnd - The columnNumberEnd to set.public int getColumnNumberStart()
public void setColumnNumberStart(int columnNumberStart)
columnNumberStart - The columnNumberStart to set.public java.lang.String getErrorSourceText()
public void setErrorSourceText(java.lang.String errorSourceText)
errorSourceText - The errorSourceText to set.public java.lang.String getExpectedText()
public void setExpectedText(java.lang.String expectedText)
expectedText - The expectedText to set.public int getLineNumberEnd()
public void setLineNumberEnd(int lineNumberEnd)
lineNumberEnd - The lineNumberEnd to set.public int getLineNumberStart()
public void setLineNumberStart(int lineNumberStart)
lineNumberStart - The lineNumberStart to set.public java.lang.String getParserErrorMessage()
public void setParserErrorMessage(java.lang.String parserErrorMessage)
parserErrorMessage - The parserErrorMessage to set.public java.lang.String getErrorCode()
errorCode to be compared by reference to
 String constants.
errorCode to reference-comparepublic void setErrorCode(java.lang.String errorCode)
errorCode to be compared by refenrence
 rather than by value - use String constants!
errorCode - The errorCode to set.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||