Top Description Fields Constructors Methods
org.hibernate.hql.internal.ast

public Class ErrorTracker

extends Object
implements ParseErrorHandler
Class Inheritance
All Implemented Interfaces
org.hibernate.hql.internal.ast.ParseErrorHandler, org.hibernate.hql.internal.ast.ErrorReporter
Imports
java.util.ArrayList, .Iterator, .List, org.hibernate.QueryException, org.hibernate.internal.CoreMessageLogger, org.jboss.logging.Logger, antlr.RecognitionException

An error handler that counts parsing errors and warnings.

Field Summary

Modifier and TypeField and Description
private List<String>
private final String
private static final CoreMessageLogger
private List<RecognitionException>

Constructor Summary

AccessConstructor and Description
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).

public
ErrorTracker(String hql)

Constructs an ErrorCounter with knowledge of the HQL, meaning that generated QueryException instances *will* contain the HQL.

Method Summary

Modifier and TypeMethod and Description
public int
private String
public void
public void
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

errorListback to summary
private List<String> errorList
hqlback to summary
private final String hql
LOGback to summary
private static final CoreMessageLogger LOG
recognitionExceptionsback to summary
private List<RecognitionException> recognitionExceptions

Constructor Detail

ErrorTrackerback to summary
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).

Annotations
@SuppressWarnings:WeakerAccess
ErrorTrackerback to summary
public ErrorTracker(String hql)

Constructs an ErrorCounter with knowledge of the HQL, meaning that generated QueryException instances *will* contain the HQL.

Annotations
@SuppressWarnings:WeakerAccess

Method Detail

getErrorCountback to summary
public int getErrorCount()

Implements org.hibernate.hql.internal.ast.ParseErrorHandler.getErrorCount.

Annotations
@Override
getErrorStringback to summary
private String getErrorString()
reportErrorback to summary
public void reportError(RecognitionException e)

Implements org.hibernate.hql.internal.ast.ErrorReporter.reportError.

Annotations
@Override
reportErrorback to summary
public void reportError(String message)

Implements org.hibernate.hql.internal.ast.ErrorReporter.reportError.

Annotations
@Override
reportWarningback to summary
public void reportWarning(String message)

Implements org.hibernate.hql.internal.ast.ErrorReporter.reportWarning.

Annotations
@Override
throwQueryExceptionback to summary
public void throwQueryException() throws QueryException

Implements org.hibernate.hql.internal.ast.ParseErrorHandler.throwQueryException.

Annotations
@Override