类 HqlToken

  • 所有已实现的接口:
    Cloneable

    public class HqlToken
    extends antlr.CommonToken
    A custom token class for the HQL grammar.

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

    • 字段概要

      • 从类继承的字段 antlr.CommonToken

        col, line, text
      • 从类继承的字段 antlr.Token

        badToken, EOF_TYPE, INVALID_TYPE, MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, SKIP, type
    • 构造器概要

      构造器 
      构造器 说明
      HqlToken()  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      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.
      • 从类继承的方法 antlr.CommonToken

        getColumn, getLine, getText, setColumn, setLine, setText
      • 从类继承的方法 antlr.Token

        getFilename, getType, setFilename
    • 构造器详细资料

      • HqlToken

        public HqlToken()
    • 方法详细资料

      • isPossibleID

        public boolean isPossibleID()
        Returns true if the token could be an identifier.
        返回:
        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.
        覆盖:
        setType 在类中 antlr.Token
        参数:
        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.
        参数:
        possibleID - True if this is a keyword/identifier, false if not.
      • toString

        public String toString()
        Returns a string representation of the object.
        覆盖:
        toString 在类中 antlr.CommonToken
        返回:
        String - The debug string.