Class SpecialTokens.Token

    • Constructor Summary

      Constructors 
      Constructor Description
      Token​(java.lang.String token)
      Creates a special token
      Token​(java.lang.String token, java.lang.String replacement)
      Creates a special token which will be represented by the given replacement token
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(SpecialTokens.Token other)  
      boolean equals​(java.lang.Object other)  
      int hashCode()  
      java.lang.String replacement()
      Returns the token to replace occurrences of this by, which equals token() unless this has a replacement.
      java.lang.String token()
      Returns the special token
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Token

        public Token​(java.lang.String token)
        Creates a special token
      • Token

        public Token​(java.lang.String token,
                     java.lang.String replacement)
        Creates a special token which will be represented by the given replacement token
    • Method Detail

      • token

        public java.lang.String token()
        Returns the special token
      • replacement

        public java.lang.String replacement()
        Returns the token to replace occurrences of this by, which equals token() unless this has a replacement.
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object