public class RegexpExpander extends NodeVisitor
Modifier and Type | Class and Description |
---|---|
protected static class |
RegexpExpander.PrefixSuffixStatus |
Constructor and Description |
---|
RegexpExpander() |
RegexpExpander(com.exalead.flis.FLISServiceClient dictionary,
UQLConfig uqlConfig) |
Modifier and Type | Method and Description |
---|---|
protected RegexpExpander.PrefixSuffixStatus |
checkPrefixSuffix(java.lang.String word) |
protected Node |
currentExpansion(UserQueryElement node) |
protected com.exalead.dictionary.messages.PatternAnswerList |
doQuery(com.exalead.dictionary.messages.PatternQueryList ql) |
protected void |
handleDictionaryError(java.lang.Exception e) |
int |
matchingMode2Level(TextNode.TextProcessingOptions.MatchingMode matchingMode) |
protected java.lang.String |
normalizePattern(java.lang.String pattern) |
protected Node |
reject(UserQueryChunk node) |
protected Node |
reject(UserQueryRegexp node) |
void |
reset() |
void |
setParameters(PatternsExpansionConfig config) |
void |
setParameters(PatternsExpansionConfig config,
ParsingConfig.ImplicitSequenceOperator dynamicImplicitSequenceOperator) |
Node |
visit(PrefixNode node) |
Node |
visit(RootNode root) |
Node |
visit(UserQueryChunk node) |
Node |
visit(UserQueryRegexp rex) |
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitNary, visitUnary
public RegexpExpander()
public RegexpExpander(com.exalead.flis.FLISServiceClient dictionary, UQLConfig uqlConfig)
public void setParameters(PatternsExpansionConfig config, ParsingConfig.ImplicitSequenceOperator dynamicImplicitSequenceOperator)
public void setParameters(PatternsExpansionConfig config)
public void reset()
public Node visit(PrefixNode node) throws QueryProcessingException
visit
in class NodeVisitor
QueryProcessingException
public Node visit(UserQueryRegexp rex) throws QueryProcessingException
visit
in class NodeVisitor
QueryProcessingException
public int matchingMode2Level(TextNode.TextProcessingOptions.MatchingMode matchingMode)
public Node visit(UserQueryChunk node) throws QueryProcessingException
visit
in class NodeVisitor
QueryProcessingException
public Node visit(RootNode root) throws QueryProcessingException
visit
in class NodeVisitor
QueryProcessingException
protected RegexpExpander.PrefixSuffixStatus checkPrefixSuffix(java.lang.String word)
protected Node reject(UserQueryChunk node) throws QueryProcessingException
QueryProcessingException
protected Node reject(UserQueryRegexp node) throws QueryProcessingException
QueryProcessingException
protected Node currentExpansion(UserQueryElement node)
protected com.exalead.dictionary.messages.PatternAnswerList doQuery(com.exalead.dictionary.messages.PatternQueryList ql) throws java.lang.Exception
java.lang.Exception
protected java.lang.String normalizePattern(java.lang.String pattern)
protected void handleDictionaryError(java.lang.Exception e) throws QueryProcessingException
QueryProcessingException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.