Module org.github.gestalt.core
Class SnakeCasePathMapper
- java.lang.Object
-
- org.github.gestalt.config.path.mapper.SnakeCasePathMapper
-
- All Implemented Interfaces:
PathMapper
public final class SnakeCasePathMapper extends java.lang.Object implements PathMapper
Splits the sentence by camel case and converts it to Snake Case.
-
-
Constructor Summary
Constructors Constructor Description SnakeCasePathMapper()
-
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
-
Methods inherited from interface org.github.gestalt.config.path.mapper.PathMapper
applyConfig
-
-
-
-
Method Detail
-
map
public GResultOf<java.util.List<Token>> map(java.lang.String path, java.lang.String sentence, SentenceLexer lexer)
Description copied from interface:PathMapperTakes a sentance and converts it into a set of tokens to navigate.- Specified by:
mapin interfacePathMapper- Parameters:
path- the current path we are looking insentence- the next segment of the path to checklexer- the sentence lexer used to tokenize the sentence.- Returns:
- the list of tokens to check in the path
-
-