Class KebabCasePathMapper

  • All Implemented Interfaces:
    PathMapper

    public final class KebabCasePathMapper
    extends java.lang.Object
    implements PathMapper
    Splits the sentence by camel case and converts it to Kebab Case.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      GResultOf<java.util.List<Token>> map​(java.lang.String path, java.lang.String sentence, SentenceLexer lexer)
      Takes a sentance and converts it into a set of tokens to navigate.
      • Methods inherited from class java.lang.Object

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

      • KebabCasePathMapper

        public KebabCasePathMapper()
    • Method Detail

      • map

        public GResultOf<java.util.List<Token>> map​(java.lang.String path,
                                                    java.lang.String sentence,
                                                    SentenceLexer lexer)
        Description copied from interface: PathMapper
        Takes a sentance and converts it into a set of tokens to navigate.
        Specified by:
        map in interface PathMapper
        Parameters:
        path - the current path we are looking in
        sentence - the next segment of the path to check
        lexer - the sentence lexer used to tokenize the sentence.
        Returns:
        the list of tokens to check in the path