Java 类org.eclipse.xtext.ide.editor.contentassist.antlr.internal.Lexer 实例源码

项目:n4js    文件:NodeModelTokenSource.java   
/**
 * Produce an Antlr token for the prefix of the given leaf that overlaps the requested region
 *
 * @see #endOffset
 */
private Token toPrefixToken(ILeafNode leaf) {
    Lexer lexer = new InternalN4JSLexer();
    String text = leaf.getText();
    String prefix = text.substring(0, endOffset - leaf.getTotalOffset());
    ANTLRStringStream stream = new ANTLRStringStream(prefix);
    lexer.setCharStream(stream);
    Token nextToken = lexer.nextToken();
    // copy to get rid of the reference to the stream again
    return new CommonToken(nextToken.getType(), nextToken.getText());
}
项目:pokemon-tcgo-deck-generator    文件:AbstractPkmntcgoUiModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalPkmntcgoLexer.class);
}
项目:pokemon-tcgo-deck-generator    文件:AbstractPkmntcgoUiModule.java   
public void configureHighlightingLexer(Binder binder) {
    binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING))
        .to(de.baernreuther.dsls.parser.antlr.internal.InternalPkmntcgoLexer.class);
}
项目:pokemon-tcgo-deck-generator    文件:AbstractPkmntcgoIdeModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalPkmntcgoLexer.class);
}
项目:n4js    文件:AbstractN4JSIdeModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalN4JSLexer.class);
}
项目:n4js    文件:AbstractN4JSUiModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalN4JSLexer.class);
}
项目:n4js    文件:AbstractN4JSUiModule.java   
public void configureHighlightingLexer(Binder binder) {
    binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING))
        .to(org.eclipse.n4js.parser.antlr.lexer.InternalN4JSLexer.class);
}
项目:n4js    文件:AbstractRegularExpressionIdeModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalRegularExpressionLexer.class);
}
项目:n4js    文件:AbstractRegularExpressionUiModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalRegularExpressionLexer.class);
}
项目:n4js    文件:AbstractRegularExpressionUiModule.java   
public void configureHighlightingLexer(Binder binder) {
    binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING))
        .to(org.eclipse.n4js.regex.parser.antlr.lexer.InternalRegularExpressionLexer.class);
}
项目:n4js    文件:AbstractN4MFUiModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalN4MFLexer.class);
}
项目:n4js    文件:AbstractN4MFUiModule.java   
public void configureHighlightingLexer(Binder binder) {
    binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING))
        .to(org.eclipse.n4js.n4mf.parser.antlr.lexer.InternalN4MFLexer.class);
}
项目:n4js    文件:AbstractN4MFIdeModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalN4MFLexer.class);
}
项目:n4js    文件:AbstractTypesIdeModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalTypesLexer.class);
}
项目:n4js    文件:AbstractTypesUiModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalTypesLexer.class);
}
项目:n4js    文件:AbstractTypesUiModule.java   
public void configureHighlightingLexer(Binder binder) {
    binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING))
        .to(org.eclipse.n4js.ts.parser.antlr.lexer.InternalTypesLexer.class);
}
项目:Xtext_Xtend_HTML_Generator    文件:AbstractMyDslUiModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalMyDslLexer.class);
}
项目:Xtext_Xtend_HTML_Generator    文件:AbstractMyDslUiModule.java   
public void configureHighlightingLexer(Binder binder) {
    binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING))
        .to(org.xtext.example.mydsl.parser.antlr.internal.InternalMyDslLexer.class);
}
项目:bromium    文件:AbstractBromiumIdeModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalBromiumLexer.class);
}
项目:bromium    文件:AbstractBromiumUiModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalBromiumLexer.class);
}
项目:bromium    文件:AbstractBromiumUiModule.java   
public void configureHighlightingLexer(Binder binder) {
    binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING))
        .to(com.hribol.bromium.dsl.parser.antlr.internal.InternalBromiumLexer.class);
}
项目:gw4e.project    文件:AbstractDSLPoliciesUiModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalDSLPoliciesLexer.class);
}
项目:gw4e.project    文件:AbstractDSLPoliciesUiModule.java   
public void configureHighlightingLexer(Binder binder) {
    binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING))
        .to(gw4e.eclipse.dsl.parser.antlr.internal.InternalDSLPoliciesLexer.class);
}
项目:gw4e.project    文件:AbstractDSLPoliciesIdeModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalDSLPoliciesLexer.class);
}
项目:lcdsl    文件:AbstractLcDslUiModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalLcDslLexer.class);
}
项目:lcdsl    文件:AbstractLcDslUiModule.java   
public void configureHighlightingLexer(Binder binder) {
    binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING))
        .to(com.wamas.ide.launching.parser.antlr.internal.InternalLcDslLexer.class);
}
项目:lcdsl    文件:AbstractLcDslIdeModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalLcDslLexer.class);
}
项目:gemoc-studio    文件:AbstractDslUiModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalDslLexer.class);
}
项目:gemoc-studio    文件:AbstractDslUiModule.java   
public void configureHighlightingLexer(Binder binder) {
    binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING))
        .to(org.eclipse.gemoc.parser.antlr.internal.InternalDslLexer.class);
}
项目:gemoc-studio    文件:AbstractDslIdeModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalDslLexer.class);
}
项目:org.xtext.dsl.restaurante    文件:AbstractRestauranteIdeModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalRestauranteLexer.class);
}
项目:org.xtext.dsl.restaurante    文件:AbstractRestauranteUiModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalRestauranteLexer.class);
}
项目:org.xtext.dsl.restaurante    文件:AbstractRestauranteUiModule.java   
public void configureHighlightingLexer(Binder binder) {
    binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING))
        .to(org.xtext.dsl.restaurante.parser.antlr.internal.InternalRestauranteLexer.class);
}
项目:OCCI-Studio    文件:AbstractOCCIIdeModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalOCCILexer.class);
}
项目:OCCI-Studio    文件:AbstractOCCIUiModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalOCCILexer.class);
}
项目:OCCI-Studio    文件:AbstractOCCIUiModule.java   
public void configureHighlightingLexer(Binder binder) {
    binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING))
        .to(org.eclipse.cmf.occi.core.xtext.parser.antlr.internal.InternalOCCILexer.class);
}
项目:xtext-extras    文件:AbstractXbaseWithAnnotationsIdeModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalXbaseWithAnnotationsLexer.class);
}
项目:xtext-extras    文件:AbstractXbaseIdeModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalXbaseLexer.class);
}
项目:xtext-extras    文件:AbstractXtypeIdeModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalXtypeLexer.class);
}
项目:xtext-extras    文件:AbstractBug462047LangIdeModule.java   
public void configureContentAssistLexer(Binder binder) {
    binder.bind(Lexer.class)
        .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST))
        .to(InternalBug462047LangLexer.class);
}