Class SpecialTokens.SpecialToken

    • Constructor Summary

      Constructor Description
      SpecialToken​(java.lang.String token, java.lang.String replace)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(SpecialTokens.SpecialToken other)  
      boolean equals​(java.lang.Object other)  
      int hashCode()  
      java.lang.String replace()
      Returns the right replace value, never null or an empty string
      java.lang.String token()
      Returns the special token
      Token toToken​(int start, java.lang.String rawSource)  
      • Methods inherited from class java.lang.Object

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

      • SpecialToken

        public SpecialToken​(java.lang.String token,
                            java.lang.String replace)
    • Method Detail

      • token

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

        public java.lang.String replace()
        Returns the right replace value, never null or an empty string
      • equals

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

        public int hashCode()
        hashCode in class java.lang.Object
      • toToken

        public Token toToken​(int start,
                             java.lang.String rawSource)