类 ErrorTracker
- java.lang.Object
-
- org.hibernate.hql.internal.ast.ErrorTracker
-
- 所有已实现的接口:
ErrorReporter,ParseErrorHandler
public class ErrorTracker extends Object implements ParseErrorHandler
An error handler that counts parsing errors and warnings.
-
-
构造器概要
构造器 构造器 说明 ErrorTracker()Constructs an ErrorCounter without knowledge of the HQL, meaning that generated QueryException instances *will not* contain the HQL (and will need to be wrapped at a higher level in another QueryException).ErrorTracker(String hql)Constructs an ErrorCounter with knowledge of the HQL, meaning that generated QueryException instances *will* contain the HQL.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intgetErrorCount()voidreportError(antlr.RecognitionException e)voidreportError(String message)voidreportWarning(String message)voidthrowQueryException()
-
-
-
构造器详细资料
-
ErrorTracker
public ErrorTracker()
Constructs an ErrorCounter without knowledge of the HQL, meaning that generated QueryException instances *will not* contain the HQL (and will need to be wrapped at a higher level in another QueryException).
-
ErrorTracker
public ErrorTracker(String hql)
Constructs an ErrorCounter with knowledge of the HQL, meaning that generated QueryException instances *will* contain the HQL.
-
-
方法详细资料
-
reportError
public void reportError(antlr.RecognitionException e)
- 指定者:
reportError在接口中ErrorReporter
-
reportError
public void reportError(String message)
- 指定者:
reportError在接口中ErrorReporter
-
getErrorCount
public int getErrorCount()
- 指定者:
getErrorCount在接口中ParseErrorHandler
-
reportWarning
public void reportWarning(String message)
- 指定者:
reportWarning在接口中ErrorReporter
-
throwQueryException
public void throwQueryException() throws QueryException- 指定者:
throwQueryException在接口中ParseErrorHandler- 抛出:
QueryException
-
-