= Token.LPAREN) { SQLName name = this.name(); primaryKey.setName(name); } accept(Token.LPAREN); for (;;) { SQLExpr expr; if (lexer.token() == Token.LITERAL_ALIAS) { expr = this.name(); } else { expr = this.expr(); } primaryKey.addColumn(expr); if (!(lexer.token() ...
match_LongAlternative___Kw1Keyword_2_0_0_or_Kw2Keyword_2_1_0_or_Kw3Keyword_2_2_0_or_Kw4Keyword_2_3_0_or_Kw5Keyword_2_4_0_or_Kw6Keyword_2_5_0_or_Kw7Keyword_2_6_0_or_Kw8Keyword_2_7_0__a =newAlternativeAlias(true,true,newTokenAlias(false,false, grammarAccess.getLongAltern...
alias = lexer.stringVal(); lexer.nextToken(); selectItem.getAliasList().add(alias);if(lexer.token() == Token.COMMA) { lexer.nextToken();continue; }break; } accept(Token.RPAREN);returnselectItem; }else{ alias = alias(); } }else{ alias = as(); } SQLSelectItem item =newSQLSelectI...
getTokenStopIndex(), literalVal); } } 代码示例来源:origin: antlr/antlr3 @Override public void visit(Object t) { CommonTree a = (CommonTree)t; String text = tokens.toString(a.getTokenStartIndex(), a.getTokenStopIndex()); tokens.replace(a.getTokenStartIndex(), a.getTokenStopIndex(),...
Alias forCONTAINS_TOKEN(). Description This function tokenizes (i.e. breaks up into meaningful segments) the given input string based on specified delimiters, and other options. It recursively enumerates all tokens in a JSON value and returns an array of values (JSON atomic values) as the re...
alias(String sName, String sInstalled) Add a token alias under the given name for a token already installed void disable(String sName) Disable an installed token stored under the given name void enable(String sName) Enable an installed token stored under the given name boolean isIgnorin...
FunctionParameterAlias 22 FunctionParameterAlias StringLiteral 23 the string literal for search query Aggregate 24 $apply aggregate token AggregateExpression 25 $apply aggregate statement to a property token AggregateGroupBy 26 $apply groupby token Compute 27 $compute token ComputeExpression 28 $...
DbccNamedLiteral DbccOption DbccOptionKind DbccStatement DeallocateCursorStatement DeclareCursorStatement DeclareTableVariableBody DeclareTableVariableStatement DeclareVariableElement DeclareVariableStatement DefaultConstraintDefinition DefaultLiteral DelayedDurabilityDatabaseOption DelayedDurabilityOptionKind DeleteMergeAction Dele...
AsciiStringLiteral Typ tokenu je AsciiStringLiteral. UnicodeStringLiteral Typ tokenu je UnicodeStringLiteral. Identifier Typ tokenu je identifikátor. QuotedIdentifier Typ tokenu je QuotedIdentifier. Variable Typ tokenu je proměnná. OdbcInitiator Typ tokenu je OdbcInitiator. ProcNameSemicolon Typ ...
charAt(0)=='\'') { I = stringLiteralToTypeMap.get(token); } else { // must be a label like ID I = tokenNameToTypeMap.get(token); } int i = (I!=null)? I : Token.INVALID_TYPE; //tool.log("grammar", "grammar type "+type+" "+tokenName+"->"+i); return i; } ...