public class HintProvider
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
ARITHMETIC_OPERATIONS |
static java.util.regex.Pattern |
COLLECTION_MEMBER_PATTERN |
static java.util.regex.Pattern |
JOIN_PATTERN |
Constructor and Description |
---|
HintProvider(DomainModel model) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getLastWord(java.lang.String queryString,
int caretPosition)
Returns word in query denoting entity or field parameter user have requested hint for
|
static java.util.Set<InferredType> |
narrowExpectedTypes(java.lang.String input,
int cursorPos,
java.util.Set<InferredType> expectedTypes) |
HintResponse |
requestHint(HintRequest hintRequest) |
HintResponse |
requestHint(java.lang.String queryStringWithCaret) |
public static final java.util.regex.Pattern COLLECTION_MEMBER_PATTERN
public static final java.util.regex.Pattern JOIN_PATTERN
public static final java.lang.String[] ARITHMETIC_OPERATIONS
public HintProvider(DomainModel model)
public static java.lang.String getLastWord(java.lang.String queryString, int caretPosition)
queryString
- query stringcaretPosition
- caret positionpublic HintResponse requestHint(java.lang.String queryStringWithCaret) throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionException
public HintResponse requestHint(HintRequest hintRequest) throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionException
public static java.util.Set<InferredType> narrowExpectedTypes(java.lang.String input, int cursorPos, java.util.Set<InferredType> expectedTypes)