当前位置: 首页>>代码示例>>Java>>正文


Java BaseRecognizer类代码示例

本文整理汇总了Java中org.antlr.runtime.BaseRecognizer的典型用法代码示例。如果您正苦于以下问题:Java BaseRecognizer类的具体用法?Java BaseRecognizer怎么用?Java BaseRecognizer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


BaseRecognizer类属于org.antlr.runtime包,在下文中一共展示了BaseRecognizer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: syntaxError

import org.antlr.runtime.BaseRecognizer; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void syntaxError(BaseRecognizer recognizer, String[] tokenNames, RecognitionException e)
{
    String hdr = recognizer.getErrorHeader(e);
    String msg = recognizer.getErrorMessage(e, tokenNames);

    StringBuilder builder = new StringBuilder().append(hdr)
            .append(' ')
            .append(msg);

    if (recognizer instanceof Parser)
        appendQuerySnippet((Parser) recognizer, builder);

    errorMsgs.add(builder.toString());
}
 
开发者ID:Netflix,项目名称:sstable-adaptor,代码行数:19,代码来源:ErrorCollector.java

示例2: DFA1

import org.antlr.runtime.BaseRecognizer; //导入依赖的package包/类
public DFA1(BaseRecognizer recognizer) {
	this.recognizer = recognizer;
	this.decisionNumber = 1;
	this.eot = DFA1_eot;
	this.eof = DFA1_eof;
	this.min = DFA1_min;
	this.max = DFA1_max;
	this.accept = DFA1_accept;
	this.special = DFA1_special;
	this.transition = DFA1_transition;
}
 
开发者ID:Netflix,项目名称:sstable-adaptor,代码行数:12,代码来源:CqlLexer.java

示例3: DFA15

import org.antlr.runtime.BaseRecognizer; //导入依赖的package包/类
public DFA15(BaseRecognizer recognizer) {
	this.recognizer = recognizer;
	this.decisionNumber = 15;
	this.eot = DFA15_eot;
	this.eof = DFA15_eof;
	this.min = DFA15_min;
	this.max = DFA15_max;
	this.accept = DFA15_accept;
	this.special = DFA15_special;
	this.transition = DFA15_transition;
}
 
开发者ID:Netflix,项目名称:sstable-adaptor,代码行数:12,代码来源:Cql_Parser.java

示例4: DFA44

import org.antlr.runtime.BaseRecognizer; //导入依赖的package包/类
public DFA44(BaseRecognizer recognizer) {
	this.recognizer = recognizer;
	this.decisionNumber = 44;
	this.eot = DFA44_eot;
	this.eof = DFA44_eof;
	this.min = DFA44_min;
	this.max = DFA44_max;
	this.accept = DFA44_accept;
	this.special = DFA44_special;
	this.transition = DFA44_transition;
}
 
开发者ID:Netflix,项目名称:sstable-adaptor,代码行数:12,代码来源:Cql_Parser.java

示例5: DFA153

import org.antlr.runtime.BaseRecognizer; //导入依赖的package包/类
public DFA153(BaseRecognizer recognizer) {
	this.recognizer = recognizer;
	this.decisionNumber = 153;
	this.eot = DFA153_eot;
	this.eof = DFA153_eof;
	this.min = DFA153_min;
	this.max = DFA153_max;
	this.accept = DFA153_accept;
	this.special = DFA153_special;
	this.transition = DFA153_transition;
}
 
开发者ID:Netflix,项目名称:sstable-adaptor,代码行数:12,代码来源:Cql_Parser.java

示例6: DFA154

import org.antlr.runtime.BaseRecognizer; //导入依赖的package包/类
public DFA154(BaseRecognizer recognizer) {
	this.recognizer = recognizer;
	this.decisionNumber = 154;
	this.eot = DFA154_eot;
	this.eof = DFA154_eof;
	this.min = DFA154_min;
	this.max = DFA154_max;
	this.accept = DFA154_accept;
	this.special = DFA154_special;
	this.transition = DFA154_transition;
}
 
开发者ID:Netflix,项目名称:sstable-adaptor,代码行数:12,代码来源:Cql_Parser.java

示例7: DFA172

import org.antlr.runtime.BaseRecognizer; //导入依赖的package包/类
public DFA172(BaseRecognizer recognizer) {
	this.recognizer = recognizer;
	this.decisionNumber = 172;
	this.eot = DFA172_eot;
	this.eof = DFA172_eof;
	this.min = DFA172_min;
	this.max = DFA172_max;
	this.accept = DFA172_accept;
	this.special = DFA172_special;
	this.transition = DFA172_transition;
}
 
开发者ID:Netflix,项目名称:sstable-adaptor,代码行数:12,代码来源:Cql_Parser.java

示例8: DFA174

import org.antlr.runtime.BaseRecognizer; //导入依赖的package包/类
public DFA174(BaseRecognizer recognizer) {
	this.recognizer = recognizer;
	this.decisionNumber = 174;
	this.eot = DFA174_eot;
	this.eof = DFA174_eof;
	this.min = DFA174_min;
	this.max = DFA174_max;
	this.accept = DFA174_accept;
	this.special = DFA174_special;
	this.transition = DFA174_transition;
}
 
开发者ID:Netflix,项目名称:sstable-adaptor,代码行数:12,代码来源:Cql_Parser.java

示例9: DFA176

import org.antlr.runtime.BaseRecognizer; //导入依赖的package包/类
public DFA176(BaseRecognizer recognizer) {
	this.recognizer = recognizer;
	this.decisionNumber = 176;
	this.eot = DFA176_eot;
	this.eof = DFA176_eof;
	this.min = DFA176_min;
	this.max = DFA176_max;
	this.accept = DFA176_accept;
	this.special = DFA176_special;
	this.transition = DFA176_transition;
}
 
开发者ID:Netflix,项目名称:sstable-adaptor,代码行数:12,代码来源:Cql_Parser.java

示例10: DFA178

import org.antlr.runtime.BaseRecognizer; //导入依赖的package包/类
public DFA178(BaseRecognizer recognizer) {
	this.recognizer = recognizer;
	this.decisionNumber = 178;
	this.eot = DFA178_eot;
	this.eof = DFA178_eof;
	this.min = DFA178_min;
	this.max = DFA178_max;
	this.accept = DFA178_accept;
	this.special = DFA178_special;
	this.transition = DFA178_transition;
}
 
开发者ID:Netflix,项目名称:sstable-adaptor,代码行数:12,代码来源:Cql_Parser.java

示例11: DFA181

import org.antlr.runtime.BaseRecognizer; //导入依赖的package包/类
public DFA181(BaseRecognizer recognizer) {
	this.recognizer = recognizer;
	this.decisionNumber = 181;
	this.eot = DFA181_eot;
	this.eof = DFA181_eof;
	this.min = DFA181_min;
	this.max = DFA181_max;
	this.accept = DFA181_accept;
	this.special = DFA181_special;
	this.transition = DFA181_transition;
}
 
开发者ID:Netflix,项目名称:sstable-adaptor,代码行数:12,代码来源:Cql_Parser.java

示例12: DFA189

import org.antlr.runtime.BaseRecognizer; //导入依赖的package包/类
public DFA189(BaseRecognizer recognizer) {
	this.recognizer = recognizer;
	this.decisionNumber = 189;
	this.eot = DFA189_eot;
	this.eof = DFA189_eof;
	this.min = DFA189_min;
	this.max = DFA189_max;
	this.accept = DFA189_accept;
	this.special = DFA189_special;
	this.transition = DFA189_transition;
}
 
开发者ID:Netflix,项目名称:sstable-adaptor,代码行数:12,代码来源:Cql_Parser.java

示例13: DFA195

import org.antlr.runtime.BaseRecognizer; //导入依赖的package包/类
public DFA195(BaseRecognizer recognizer) {
	this.recognizer = recognizer;
	this.decisionNumber = 195;
	this.eot = DFA195_eot;
	this.eof = DFA195_eof;
	this.min = DFA195_min;
	this.max = DFA195_max;
	this.accept = DFA195_accept;
	this.special = DFA195_special;
	this.transition = DFA195_transition;
}
 
开发者ID:Netflix,项目名称:sstable-adaptor,代码行数:12,代码来源:Cql_Parser.java

示例14: DFA194

import org.antlr.runtime.BaseRecognizer; //导入依赖的package包/类
public DFA194(BaseRecognizer recognizer) {
	this.recognizer = recognizer;
	this.decisionNumber = 194;
	this.eot = DFA194_eot;
	this.eof = DFA194_eof;
	this.min = DFA194_min;
	this.max = DFA194_max;
	this.accept = DFA194_accept;
	this.special = DFA194_special;
	this.transition = DFA194_transition;
}
 
开发者ID:Netflix,项目名称:sstable-adaptor,代码行数:12,代码来源:Cql_Parser.java

示例15: DFA204

import org.antlr.runtime.BaseRecognizer; //导入依赖的package包/类
public DFA204(BaseRecognizer recognizer) {
	this.recognizer = recognizer;
	this.decisionNumber = 204;
	this.eot = DFA204_eot;
	this.eof = DFA204_eof;
	this.min = DFA204_min;
	this.max = DFA204_max;
	this.accept = DFA204_accept;
	this.special = DFA204_special;
	this.transition = DFA204_transition;
}
 
开发者ID:Netflix,项目名称:sstable-adaptor,代码行数:12,代码来源:Cql_Parser.java


注:本文中的org.antlr.runtime.BaseRecognizer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。