-
- All Known Implementing Classes:
DotNotationPathMapper,KebabCasePathMapper,SnakeCasePathMapper,StandardPathMapper
public interface PathMapperInterface to map a sentance to a list of tokens.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidapplyConfig(GestaltConfig config)Apply the GestaltConfig to the PathMapper.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.
-
-
-
Method Detail
-
applyConfig
default void applyConfig(GestaltConfig config)
Apply the GestaltConfig to the PathMapper. Needed when building via the ServiceLoader It is a default method as most Path Mapper don't need to apply configs.- Parameters:
config- GestaltConfig to update the PathMapper
-
map
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.- 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
-
-