Module org.github.gestalt.core
Class StandardPathMapper
- java.lang.Object
-
- org.github.gestalt.config.path.mapper.StandardPathMapper
-
- All Implemented Interfaces:
PathMapper
public final class StandardPathMapper extends java.lang.Object implements PathMapper
Standard Path mapper looks for an exact match.
-
-
Constructor Summary
Constructors Constructor Description StandardPathMapper()
-
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
-
-