public abstract class AbstractQueryParser extends org.antlr.runtime.Parser implements ParsingScope
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ERROR_MESSAGE |
protected InputSuggestion |
inputSuggestion |
protected List<Sink> |
sinks |
| Constructor and Description |
|---|
AbstractQueryParser(org.antlr.runtime.TokenStream input) |
AbstractQueryParser(org.antlr.runtime.TokenStream input,
org.antlr.runtime.RecognizerSharedState state) |
getCurrentInputSymbol, getMissingSymbol, getSourceName, getTokenStream, reset, setTokenStream, traceIn, traceOutalreadyParsedRule, beginResync, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, displayRecognitionError, emitErrorMessage, endResync, failed, getBacktrackingLevel, getErrorHeader, getErrorMessage, getGrammarFileName, getNumberOfSyntaxErrors, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenErrorDisplay, getTokenNames, match, matchAny, memoize, mismatchIsMissingToken, mismatchIsUnwantedToken, pushFollow, recover, reportError, setBacktrackingLevel, toStrings, traceIn, traceOutpublic static final String DEFAULT_ERROR_MESSAGE
protected InputSuggestion inputSuggestion
public AbstractQueryParser(org.antlr.runtime.TokenStream input)
public AbstractQueryParser(org.antlr.runtime.TokenStream input,
org.antlr.runtime.RecognizerSharedState state)
public void addFunction(String name, ExpressionFunction function)
public EvaluationExpression coerce(String type, EvaluationExpression valueExpression)
public EvaluationExpression createCheckedMethodCall(String packageName, org.antlr.runtime.Token name, EvaluationExpression object, EvaluationExpression[] params) throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionExceptionpublic EvaluationExpression createCheckedMethodCall(String packageName, org.antlr.runtime.Token name, EvaluationExpression[] params) throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionExceptionpublic IConstantRegistry getConstantRegistry()
getConstantRegistry in interface EvaluationScopepublic IConfObjectRegistry<SopremoFormat> getFileFormatRegistry()
getFileFormatRegistry in interface ParsingScopepublic IFunctionRegistry getFunctionRegistry()
getFunctionRegistry in interface EvaluationScopepublic IConfObjectRegistry<Operator<?>> getOperatorRegistry()
getOperatorRegistry in interface ParsingScopepublic PackageManager getPackageManager()
public ITypeRegistry getTypeRegistry()
getTypeRegistry in interface EvaluationScopepublic SopremoPlan parse() throws QueryParserException
QueryParserExceptionpublic Object recoverFromMismatchedSet(org.antlr.runtime.IntStream input, org.antlr.runtime.RecognitionException e, org.antlr.runtime.BitSet follow) throws org.antlr.runtime.RecognitionException
recoverFromMismatchedSet in class org.antlr.runtime.BaseRecognizerorg.antlr.runtime.RecognitionExceptionprotected void explainUsage(String usage, org.antlr.runtime.RecognitionException e) throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionExceptionprotected ConfObjectInfo<? extends SopremoFormat> findFormat(String packageName, org.antlr.runtime.Token name, String pathName) throws RecognitionExceptionWithUsageHint
protected ConfObjectInfo.ConfObjectIndexedPropertyInfo findInputPropertyRelunctantly(ConfigurableSopremoType object, ConfObjectInfo<?> info, org.antlr.runtime.Token firstWord, boolean consume)
protected ConfObjectInfo<? extends Operator<?>> findOperatorGreedily(String packageName, org.antlr.runtime.Token firstWord) throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionExceptionprotected ConfObjectInfo.ConfObjectPropertyInfo findPropertyGreedily(ConfigurableSopremoType object, ConfObjectInfo<?> info, org.antlr.runtime.Token firstWord) throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionExceptionprotected ConfObjectInfo.ConfObjectPropertyInfo findPropertyRelunctantly(ConfigurableSopremoType object, ConfObjectInfo<?> info, org.antlr.runtime.Token firstWord) throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionExceptionprotected EvaluationContext getContext()
protected abstract Class<? extends SopremoFormat> getDefaultFileFormat()
SopremoFormat associated with the language that is parsedprotected abstract NameChooserProvider getNameChooserProvider()
protected ConfObjectInfo<? extends Operator<?>> getOperatorInfo(Operator<?> operator)
protected ParsingScope getScope(String packageName)
protected SopremoFunction getSopremoFunction(String packageName, org.antlr.runtime.Token name)
protected abstract void parseSinks()
throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionExceptionprotected Object recoverFromMismatchedToken(org.antlr.runtime.IntStream input, int ttype, org.antlr.runtime.BitSet follow) throws org.antlr.runtime.RecognitionException
recoverFromMismatchedToken in class org.antlr.runtime.BaseRecognizerorg.antlr.runtime.RecognitionExceptionCopyright © 2011–2014. All rights reserved.