类 SqlStatementParser
- java.lang.Object
-
- antlr.Parser
-
- antlr.LLkParser
-
- org.hibernate.hql.internal.antlr.SqlStatementParser
-
- 所有已实现的接口:
SqlStatementParserTokenTypes
public class SqlStatementParser extends antlr.LLkParser implements SqlStatementParserTokenTypes
Lexer and parser used to extract single statements from import SQL script. Supports instructions/comments and quoted strings spread over multiple lines. Each statement must end with semicolon.- 作者:
- Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 classSqlStatementParser.StatementParserException
-
字段概要
字段 修饰符和类型 字段 说明 static String[]_tokenNamesstatic antlr.collections.impl.BitSet_tokenSet_0static antlr.collections.impl.BitSet_tokenSet_1-
从类继承的字段 antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
-
从接口继承的字段 org.hibernate.hql.internal.antlr.SqlStatementParserTokenTypes
EOF, ESCqs, LINE_COMMENT, MULTILINE_COMMENT, NOT_STMT_END, NULL_TREE_LOOKAHEAD, QUOTED_STRING, STMT_END
-
-
构造器概要
构造器 限定符 构造器 说明 SqlStatementParser(antlr.ParserSharedInputState state)SqlStatementParser(antlr.TokenBuffer tokenBuf)protectedSqlStatementParser(antlr.TokenBuffer tokenBuf, int k)SqlStatementParser(antlr.TokenStream lexer)protectedSqlStatementParser(antlr.TokenStream lexer, int k)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 List<String>getStatementList()protected voidout(antlr.Token token)protected voidout(String stmt)voidreportError(antlr.RecognitionException e)voidreportError(String s)voidreportWarning(String s)voidscript()voidstatement()protected voidstatementEnd()voidthrowExceptionIfErrorOccurred()-
从类继承的方法 antlr.Parser
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
-
-
-
-
字段详细资料
-
_tokenNames
public static final String[] _tokenNames
-
_tokenSet_0
public static final antlr.collections.impl.BitSet _tokenSet_0
-
_tokenSet_1
public static final antlr.collections.impl.BitSet _tokenSet_1
-
-
构造器详细资料
-
SqlStatementParser
protected SqlStatementParser(antlr.TokenBuffer tokenBuf, int k)
-
SqlStatementParser
public SqlStatementParser(antlr.TokenBuffer tokenBuf)
-
SqlStatementParser
protected SqlStatementParser(antlr.TokenStream lexer, int k)
-
SqlStatementParser
public SqlStatementParser(antlr.TokenStream lexer)
-
SqlStatementParser
public SqlStatementParser(antlr.ParserSharedInputState state)
-
-
方法详细资料
-
reportError
public void reportError(antlr.RecognitionException e)
- 覆盖:
reportError在类中antlr.Parser
-
reportError
public void reportError(String s)
- 覆盖:
reportError在类中antlr.Parser
-
reportWarning
public void reportWarning(String s)
- 覆盖:
reportWarning在类中antlr.Parser
-
throwExceptionIfErrorOccurred
public void throwExceptionIfErrorOccurred()
-
out
protected void out(String stmt)
-
out
protected void out(antlr.Token token)
-
statementEnd
protected void statementEnd()
-
script
public final void script() throws antlr.RecognitionException, antlr.TokenStreamException- 抛出:
antlr.RecognitionExceptionantlr.TokenStreamException
-
statement
public final void statement() throws antlr.RecognitionException, antlr.TokenStreamException- 抛出:
antlr.RecognitionExceptionantlr.TokenStreamException
-
-