public class ParseDriver extends Object
Modifier and Type | Class and Description |
---|---|
class |
ParseDriver.ANTLRNoCaseStringStream
ANTLRNoCaseStringStream.
|
class |
ParseDriver.HiveLexerX
HiveLexerX.
|
Modifier and Type | Field and Description |
---|---|
static org.antlr.runtime.tree.TreeAdaptor |
adaptor
Tree adaptor for making antlr return ASTNodes instead of CommonTree nodes
so that the graph walking algorithms and the rules framework defined in
ql.lib can be used with the AST Nodes.
|
Constructor and Description |
---|
ParseDriver() |
Modifier and Type | Method and Description |
---|---|
ASTNode |
parse(String command) |
ASTNode |
parse(String command,
Context ctx) |
ASTNode |
parse(String command,
Context ctx,
boolean setTokenRewriteStream)
Parses a command, optionally assigning the parser's token stream to the
given context.
|
ASTNode |
parseSelect(String command,
Context ctx) |
public static final org.antlr.runtime.tree.TreeAdaptor adaptor
public ASTNode parse(String command) throws ParseException
ParseException
public ASTNode parse(String command, Context ctx) throws ParseException
ParseException
public ASTNode parse(String command, Context ctx, boolean setTokenRewriteStream) throws ParseException
command
- command to parsectx
- context with which to associate this parser's token stream, or
null if either no context is available or the context already has
an existing streamParseException
public ASTNode parseSelect(String command, Context ctx) throws ParseException
ParseException
Copyright © 2017 The Apache Software Foundation. All rights reserved.