站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.4 正式版 API 英文文档

HqlToken (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档


org.hibernate.hql.ast
Class HqlToken

java.lang.Object
  extended byantlr.Token
      extended byantlr.CommonToken
          extended byorg.hibernate.hql.ast.HqlToken
All Implemented Interfaces:
Cloneable

public class HqlToken
extends antlr.CommonToken

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.


Field Summary
 
Fields inherited from class antlr.CommonToken
col, line, text
 
Fields inherited from class antlr.Token
badToken, EOF_TYPE, INVALID_TYPE, MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, SKIP, type
 
Constructor Summary
HqlToken()
           
 
Method Summary
 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.
 
Methods inherited from class antlr.CommonToken
getColumn, getLine, getText, setColumn, setLine, setText
 
Methods inherited from class antlr.Token
getFilename, getType, setFilename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HqlToken

public HqlToken()
Method Detail

isPossibleID

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.

setType

public void setType(int t)
Sets the type of the token, remembering the previous type.

Parameters:
t - The new token type.

setPossibleID

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.

toString

public String toString()
Returns a string representation of the object.

Returns:
String - The debug string.