Package org.xbill.DNS

Class Tokenizer.Token

java.lang.Object
org.xbill.DNS.Tokenizer.Token
Enclosing class:
Tokenizer

public static class Tokenizer.Token extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    Deprecated.
    use type(), will be made private and final in 4.0
    Deprecated.
    use value(), will be made private and final in 4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether this token contains an EOL or EOF.
    boolean
    Indicates whether this token contains a string.
    Converts the token to a string containing a representation useful for debugging.
    int
    The type of token.
    The value of the token, or null for tokens without values.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • type

      @Deprecated public int type
      Deprecated.
      use type(), will be made private and final in 4.0
      The type of token.
    • value

      @Deprecated public String value
      Deprecated.
      use value(), will be made private and final in 4.0
      The value of the token, or null for tokens without values.
  • Method Details

    • type

      public int type()
      The type of token.
      Since:
      3.5.1
    • value

      public String value()
      The value of the token, or null for tokens without values.
      Since:
      3.5.1
    • toString

      public String toString()
      Converts the token to a string containing a representation useful for debugging.
      Overrides:
      toString in class Object
    • isString

      public boolean isString()
      Indicates whether this token contains a string.
    • isEOL

      public boolean isEOL()
      Indicates whether this token contains an EOL or EOF.