public class

HqlToken

extends CommonToken
java.lang.Object
   ↳ antlr.CommonToken
     ↳ org.hibernate.hql.ast.HqlToken

Class Overview

A custom token class for the HQL grammar.

NOTE: This class must be public becuase it is instantiated by the ANTLR library. Ignore any suggestions by various code 'analyzers' about this class being package local.

Summary

Public Constructors
HqlToken()
Public Methods
boolean isPossibleID()
Returns true if the token could be an identifier.
void setPossibleID(boolean possibleID)
Set to true if this token can be interpreted as an identifier, false if not.
void setType(int t)
Sets the type of the token, remembering the previous type.
String toString()
Returns a string representation of the object.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public HqlToken ()

Public Methods

public boolean isPossibleID ()

Returns true if the token could be an identifier.

Returns
  • True if the token could be interpreted as in identifier, false if not.

public void setPossibleID (boolean possibleID)

Set to true if this token can be interpreted as an identifier, false if not.

Parameters
possibleID True if this is a keyword/identifier, false if not.

public void setType (int t)

Sets the type of the token, remembering the previous type.

Parameters
t The new token type.

public String toString ()

Returns a string representation of the object.

Returns
  • String - The debug string.