类 EscapeTokenizer


  • public class EscapeTokenizer
    extends Object
    EscapeTokenizer breaks up an SQL statement into SQL and escape code parts.
    • 构造器详细资料

      • EscapeTokenizer

        public EscapeTokenizer​(String source)
        Creates a new EscapeTokenizer object.
        参数:
        source - the string to tokenize
    • 方法详细资料

      • hasMoreTokens

        public boolean hasMoreTokens()
        Does this tokenizer have more tokens available?
        返回:
        if this tokenizer has more tokens available
      • nextToken

        public String nextToken()
        Returns the next token
        返回:
        the next token.
      • sawVariableUse

        public boolean sawVariableUse()
        Returns true if a variable reference was found. Note that this information isn't accurate until finishing to process all tokens from source String. It also can't be used as per token basis.
        返回:
        true if a variable reference was found.