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


Java Lexer类代码示例

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


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

示例1: NO_LANG

import org.netbeans.spi.lexer.Lexer; //导入依赖的package包/类
private static Language<TokenId> NO_LANG() {
    if (NO_LANG == null) {
        NO_LANG = new LanguageHierarchy<TokenId>() {
            @Override
            protected Lexer<TokenId> createLexer(LexerRestartInfo<TokenId> info) {
                return null;
            }
            @Override
            protected Collection<TokenId> createTokenIds() {
                return Collections.emptyList();
            }
            @Override
            protected String mimeType() {
                return "obscure/no-language-marker"; //NOI18N
            }
        }.language();
    }
    return NO_LANG;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:20,代码来源:LanguageManager.java

示例2: createLexer

import org.netbeans.spi.lexer.Lexer; //导入依赖的package包/类
protected Lexer<STokenId> createLexer (LexerRestartInfo<STokenId> info) {
    if (tokenIDs == null) createTokenIds ();
    return new SLexer (
        language, 
        tokenIDToType, 
        info
    );
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:SLanguageHierarchy.java

示例3: createLexer

import org.netbeans.spi.lexer.Lexer; //导入依赖的package包/类
@Override
protected synchronized Lexer<JPQLTokenId> createLexer(LexerRestartInfo<JPQLTokenId> info) {
    return new JPQLLexer(info);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:JPQLLanguageHierarchy.java

示例4: createLexer

import org.netbeans.spi.lexer.Lexer; //导入依赖的package包/类
@Override
protected Lexer<TestTokenId> createLexer(LexerRestartInfo<TestTokenId> info) {
    return null;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:LanguageRegistrationTest.java

示例5: createLexer

import org.netbeans.spi.lexer.Lexer; //导入依赖的package包/类
@Override
protected Lexer<CssTokenId> createLexer(LexerRestartInfo<CssTokenId> info) {
    return new NbCss3Lexer(info);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:CssLanguageHierarchy.java

示例6: createLexer

import org.netbeans.spi.lexer.Lexer; //导入依赖的package包/类
protected Lexer<DiffTokenId> createLexer (LexerRestartInfo<DiffTokenId> info) {
    return new DiffLexer (info);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:DiffLanguageHierarchy.java

示例7: createLexer

import org.netbeans.spi.lexer.Lexer; //导入依赖的package包/类
@Override
protected Lexer<CPTokenId> createLexer(LexerRestartInfo<CPTokenId> info) {
    return new CPLexer(info);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:LessLanguage.java

示例8: createLexer

import org.netbeans.spi.lexer.Lexer; //导入依赖的package包/类
@Override
protected Lexer<ATokenId> createLexer (LexerRestartInfo<ATokenId> info) {
    return new ALexer (info);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:ALanguageHierarchy.java

示例9: createLexer

import org.netbeans.spi.lexer.Lexer; //导入依赖的package包/类
protected Lexer<MfTokenId> createLexer (LexerRestartInfo<MfTokenId> info) {
    return new MfLexer (info);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:MfLanguageHierarchy.java

示例10: createLexer

import org.netbeans.spi.lexer.Lexer; //导入依赖的package包/类
protected Lexer<AllLanguagesTokenId> createLexer (LexerRestartInfo<AllLanguagesTokenId> info) {
    return new AllLanguagesLexer (info);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:AllLanguageHierarchy.java

示例11: createLexer

import org.netbeans.spi.lexer.Lexer; //导入依赖的package包/类
protected Lexer<OQLTokenId> createLexer (LexerRestartInfo<OQLTokenId> info) {
    return new OQLLexer (info);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:OQLLanguageHierarchy.java

示例12: createLexer

import org.netbeans.spi.lexer.Lexer; //导入依赖的package包/类
protected Lexer<TestTokenId> createLexer(LexerRestartInfo<TestTokenId> info) {
    return null;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:LanguagePathTest.java

示例13: createLexer

import org.netbeans.spi.lexer.Lexer; //导入依赖的package包/类
@Override
protected Lexer<TestJoinTextTokenId> createLexer(LexerRestartInfo<TestJoinTextTokenId> info) {
    return new TestJoinTextLexer(info);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:TestJoinTextTokenId.java

示例14: createLexer

import org.netbeans.spi.lexer.Lexer; //导入依赖的package包/类
@Override
protected Lexer<TokenId> createLexer(LexerRestartInfo<TokenId> info) {
    return null;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:TestGenLanguage.java

示例15: createLexer

import org.netbeans.spi.lexer.Lexer; //导入依赖的package包/类
@Override
public Lexer<TestPlainTokenId> createLexer(LexerRestartInfo<TestPlainTokenId> info) {
    return new TestPlainLexer(info);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:TestPlainTokenId.java


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