Class MappedReservedWords.Builder

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ReservedWords build()
      Builds the reserved words.
      MappedReservedWords.Builder put​(java.lang.String reservedWord, java.lang.String conversion)
      Add a new reserved words.
      MappedReservedWords.Builder putCaseInsensitive​(java.lang.String reservedWord, java.lang.String conversion)
      Add a new case-insensitive reserved word that converts the given reserved word to the given conversion string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • put

        public MappedReservedWords.Builder put​(java.lang.String reservedWord,
                                               java.lang.String conversion)
        Add a new reserved words.
        Parameters:
        reservedWord - Reserved word to convert.
        conversion - Word to convert to.
        Returns:
        Returns the builder.
      • putCaseInsensitive

        public MappedReservedWords.Builder putCaseInsensitive​(java.lang.String reservedWord,
                                                              java.lang.String conversion)
        Add a new case-insensitive reserved word that converts the given reserved word to the given conversion string.

        Note that the conversion string is used literally. The casing of the original word has no effect on the conversion. Use ReservedWordsBuilder for a case-insensitive reserved words implementation that can take casing into account.

        Parameters:
        reservedWord - Case-insensitive reserved word to convert.
        conversion - Word to convert to.
        Returns:
        Returns the builder.